@font-face {
  font-family: "Lexend Deca";
  src: url(lexend-deca.woff2) format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  font:
    14px/1.45 "Lexend Deca",
    system-ui,
    sans-serif;
  --ink: #323232;
  --sub: #575358;
  --border: #cecece;
  --wash: #efefef;
  --rail: #323232;
  --blue: #005d61;
  --accent: #00494c;
  --hot: #ff5c35;
  --radius: 16px;
  color: var(--ink);
  background: var(--wash);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
a {
  color: var(--blue);
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 3px solid #4a9cca;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: fixed;
  left: 8px;
  top: -80px;
  background: white;
  padding: 12px;
  z-index: 9;
}
.skip:focus {
  top: 8px;
}
.icon {
  width: 18px;
  height: 18px;
  flex: none;
}
#shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
}
.rail {
  background: var(--rail);
  color: white;
  position: sticky;
  top: 0;
  height: 100dvh;
  width: 54px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.brand {
  display: flex;
  align-items: center;
  padding-left: 14px;
  height: 48px;
  min-height: 48px;
  background: #323232;
}
.brand svg {
  width: 25px;
  height: 25px;
}
nav {
  overflow: auto;
  scrollbar-width: thin;
  min-height: 0;
  padding: 5px 5px 15px;
}
.nav-group + .nav-group {
  border-top: 1px solid #606060;
  margin: 8px 0 0;
  padding-top: 8px;
}
nav h2 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}
nav a {
  display: flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  color: #f5f5f5;
  height: 38px;
  margin: 3px 0;
  padding: 0 12px;
  white-space: nowrap;
  font-size: 13px;
  border-radius: 20px;
}
nav a .icon {
  width: 19px;
  height: 19px;
}
nav a span {
  display: none;
}
nav a:hover,
nav a[aria-current] {
  color: white;
  background: #555;
}
#pin-nav {
  margin: auto 8px 10px;
  align-self: flex-start;
  color: #eee;
  background: #454545;
  border: 0;
  border-radius: 50%;
  font-size: 20px;
  width: 35px;
  height: 35px;
}
@media (min-width: 761px) {
  .rail:not(.dismissed):hover,
  .rail:not(.dismissed):has(:focus-visible),
  .nav-pinned .rail {
    width: 190px;
  }
  .rail:not(.dismissed):hover nav a span,
  .rail:not(.dismissed):has(:focus-visible) nav a span,
  .nav-pinned nav a span {
    display: inline;
  }
  .nav-pinned #shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
}
.workspace {
  min-width: 0;
}
.mast {
  height: 48px;
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 18px 0 6px;
  background: var(--rail);
  color: white;
}
.product {
  display: none;
}
button,
.button {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-weight: 640;
  color: var(--ink);
  background: white;
  border: 1px solid #b7c6d1;
  border-radius: 4px;
  padding: 7px 12px;
  line-height: 1.4;
  text-decoration: none;
}
button:hover,
.button:hover {
  background: #eff4f7;
  border-color: #91a8bb;
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}
.primary:hover {
  background: #006365;
  border-color: #006365;
}
#jump-open {
  width: min(38vw, 480px);
  justify-content: space-between;
  min-width: 0;
  border-radius: 18px;
  border: 1px solid #898989;
  background: transparent;
  color: white;
  font-size: 14px;
  font-weight: 400;
  padding: 5px 13px;
}
#jump-open .icon {
  order: 2;
}
#jump-open kbd {
  display: none;
}
#quick-tools {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}
#quick-tools a {
  display: grid;
  place-items: center;
  color: white;
  padding: 7px;
  border-radius: 50%;
}
#quick-tools a:hover {
  background: #555;
}
#account {
  position: relative;
  border-left: 1px solid #777;
  padding-left: 12px;
}
.account-menu summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  list-style: none;
}
.account-menu summary:after {
  content: "▾";
}
.account-menu > div {
  position: absolute;
  right: 0;
  top: 34px;
  min-width: 165px;
  padding: 5px;
  background: white;
  border: 1px solid var(--border);
  box-shadow: 0 7px 19px #0002;
  border-radius: 5px;
}
.account-menu button {
  display: block;
  width: 100%;
  border: 0;
  text-align: left;
  background: white;
  color: var(--ink);
  font-weight: 450;
}
.account-menu button:hover {
  background: var(--wash);
}
.avatar {
  display: inline-grid;
  place-items: center;
  flex: none;
  border-radius: 50%;
  background: #ece9ed;
  color: #514756;
  width: 26px;
  height: 26px;
  font-size: 11px;
  font-weight: 530;
}
#mobile-menu {
  display: none;
}
main {
  max-width: none;
  margin: auto;
  padding: 29px clamp(16px, 2.3vw, 40px) 48px;
  min-width: 0;
}
main:focus:not(:focus-visible) {
  outline: 0;
}
h1,
h2,
h3,
p,
dl {
  margin: 0;
}
h1 {
  font-size: clamp(24px, 2.2vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.04em;
  font-weight: 720;
}
h2 {
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.018em;
  font-weight: 690;
}
h3 {
  font-size: 16px;
  line-height: 1.35;
}
.eyebrow,
.record-back {
  font-size: 13px;
  color: var(--sub);
  font-weight: 540;
  margin-bottom: 6px;
}
.headrow,
.record-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 23px;
}
.queue-views,
.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 0 0 17px;
}
.queue-views a,
.metric {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  min-width: 0;
}
.queue-views a {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--sub);
  font-size: 13px;
  font-weight: 590;
}
.queue-views a:hover {
  border-color: #95abba;
}
.queue-views a[aria-current] {
  background: #fff9f4;
  border-color: #bf775f;
  box-shadow: inset 0 -2px #c76748;
}
.queue-views strong,
.metric strong {
  display: block;
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-weight: 700;
}
.metric-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  color: #3d667d;
  background: #e9f1f7;
}
[data-section="overdue"] .metric-icon {
  color: #9b5344;
  background: #fae8df;
}
[data-section="fresh"] .metric-icon {
  color: #29766c;
  background: #dff1eb;
}
[data-section="needs_follow_up"] .metric-icon {
  color: #69588e;
  background: #ede8f6;
}
.metric span,
.muted,
small {
  color: var(--sub);
}
.metric span {
  font-size: 13px;
}
.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 16px;
  min-width: 0;
}
.panel > h2:first-child {
  margin: -18px -20px 15px;
  padding: 14px 20px;
  border-bottom: 1px solid #e0e6ec;
}
.panel > p {
  margin: 0.6rem 0;
}
.tablewrap {
  overflow: auto;
  max-width: 100%;
  scrollbar-width: thin;
}
.panel > .tablewrap {
  margin-inline: -20px;
  max-width: calc(100% + 40px);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th,
td {
  padding: 11px 13px;
  text-align: left;
  border-bottom: 1px solid #e2e8ee;
  vertical-align: middle;
}
th:first-child,
td:first-child {
  padding-left: 20px;
}
th:last-child,
td:last-child {
  padding-right: 20px;
}
th {
  font-weight: 650;
  background: #f6f4f6;
  color: #332f34;
  font-size: 12px;
  white-space: nowrap;
}
td {
  overflow-wrap: anywhere;
}
tbody tr:hover {
  background: #f8fafc;
}
td a,
.preview > a,
.record-back a {
  font-weight: 650;
  text-decoration: none;
}
td a:hover,
.preview > a:hover,
.record-back a:hover {
  text-decoration: underline;
}
td button {
  padding: 5px 9px;
  font-size: 13px;
}
.person-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 650;
  color: #3b5265;
  background: #ebf1f6;
  padding: 3px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.tag[data-status="ready"],
.tag[data-status="active"],
.tag[data-status="done"],
.tag[data-status="completed"] {
  color: #236b53;
  background: #def2e8;
}
.tag[data-status="fresh"],
.tag[data-status="scheduled"],
.tag[data-status="booked"] {
  background: #e1edf9;
  color: #315e8a;
}
.tag[data-status="requested"],
.tag[data-status="paused"],
.tag[data-status="needs_follow_up"] {
  background: #f9eccd;
  color: #775415;
}
.tag[data-status="blocked"],
.tag[data-status="do_not_contact"] {
  background: #fbe3dd;
  color: #8e3e30;
}
.calendar-strip {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
}
.calendar-strip a {
  padding-left: 16px;
  border-left: 1px solid var(--border);
  text-decoration: none;
}
.calendar-strip small {
  display: block;
}
.daygrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(230px, 24%, 350px);
  align-items: start;
  gap: 15px;
}
.daygrid > .panel:only-child {
  grid-column: 1/-1;
}
.preview-identity,
.record-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.preview-identity {
  margin: 6px 0 18px;
}
.preview-identity .avatar,
.record-head .avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 16px;
}
.preview-identity p,
.record-head p {
  color: var(--sub);
}
.preview > a {
  display: inline-block;
  margin-top: 16px;
}
.record-back {
  margin-bottom: 14px;
}
.record-head {
  justify-content: flex-start;
}
.record-head p {
  margin-top: 3px;
}
.record-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.75fr) minmax(0, 1.8fr);
  gap: 16px;
}
.record-left,
.record-work {
  min-width: 0;
}
.record-left .tag {
  margin-bottom: 14px;
}
dl {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) minmax(0, 2fr);
  gap: 10px 14px;
}
dt {
  color: var(--sub);
}
dd {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
dd dl {
  min-width: 0;
}
.preview dl,
.record-left dl {
  display: block;
}
.preview dt,
.record-left dt {
  font-size: 12px;
  font-weight: 650;
}
.preview dd,
.record-left dd {
  margin: 1px 0 10px;
}
.paper .button {
  margin-top: 13px;
}
.actions,
.filters,
.pager {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.actions {
  margin: 0 0 13px;
}
.panel .actions:last-child,
td .actions {
  margin: 0;
}
.filters {
  margin: 0 0 16px;
  align-items: end;
}
.filters label {
  max-width: 265px;
  flex: 1 1 115px;
}
.pager {
  margin-top: 12px;
  justify-content: flex-end;
  color: var(--sub);
  font-size: 13px;
}
.empty {
  background: #f5f8fb;
  border: 1px dashed #cbd8e1;
  border-radius: 4px;
  padding: 22px 16px;
  text-align: center;
  color: var(--sub);
}
form {
  display: grid;
  gap: 15px;
}
label {
  display: grid;
  gap: 5px;
  font-size: 13px;
  font-weight: 640;
  color: var(--ink);
}
input,
select,
textarea {
  font: inherit;
  width: 100%;
  min-width: 0;
  background: white;
  color: var(--ink);
  padding: 8px 10px;
  border: 1px solid #adbecc;
  border-radius: 4px;
}
input::placeholder {
  color: #687989;
}
textarea {
  min-height: 84px;
  resize: vertical;
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}
.check {
  display: flex;
  align-items: center;
  gap: 8px;
}
.error {
  color: #9a3329;
}
.error:empty {
  display: none;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.cards article {
  border: 1px solid var(--border);
  padding: 14px;
}
.recordname {
  font-weight: 670;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
dialog {
  padding: 24px;
  border: 0;
  color: var(--ink);
  background: white;
  box-shadow: 0 12px 48px #14263833;
}
dialog::backdrop {
  background: #14233370;
}
#editor {
  margin: 0 0 0 auto;
  width: min(465px, 100%);
  height: 100dvh;
  max-height: 100dvh;
  max-width: 100%;
  border-left: 1px solid #bccbd6;
}
dialog h2 {
  font-size: 21px;
}
#form-title {
  padding: 0 38px 17px 0;
  margin-bottom: 17px;
  border-bottom: 1px solid var(--border);
}
.close,
.jump-head button {
  font-size: 20px;
  width: 32px;
  height: 32px;
  padding: 0;
}
.close {
  float: right;
}
dialog form > .primary {
  justify-self: start;
}
.jump-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}
#jump {
  width: min(460px, 90vw);
  max-height: 72dvh;
  border-radius: 9px;
}
.jump-results {
  display: grid;
  gap: 2px;
  margin-top: 10px;
}
.jump-results a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  padding: 8px;
  border-radius: 4px;
}
.jump-results a:hover,
.jump-results a:focus {
  background: var(--wash);
}
#notice:not(:empty) {
  position: fixed;
  z-index: 3;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 5px;
  color: white;
  background: var(--rail);
  box-shadow: 0 3px 16px #172b4030;
}

.timeline-title {
  margin: 18px 0 10px;
  font-size: 16px;
}
.timeline-card {
  position: relative;
  padding: 16px 16px 16px 31px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  margin-bottom: 8px;
}
.timeline-card summary {
  display: block;
  cursor: pointer;
}
.timeline-card summary:before {
  content: "›";
  position: absolute;
  left: 12px;
}
.timeline-card[open] summary:before {
  transform: rotate(90deg);
}
.timeline-card summary::-webkit-details-marker {
  display: none;
}
.timeline-card strong,
.timeline-card time {
  display: block;
}
.timeline-card time {
  color: var(--sub);
  font-size: 12px;
  margin: 0.25rem 0;
}
.timeline-card p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.signed-out #shell {
  display: block;
}
.signed-out .rail {
  display: none;
}
.signed-out .mast {
  height: 48px;
  background: #333;
  padding: 0 22px;
}
.signed-out .product {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
.signed-out #account,
.signed-out #quick-tools {
  display: none;
}
.signed-out main {
  padding: clamp(42px, 9vh, 95px) 16px;
}
.login {
  max-width: 410px;
  margin: auto;
  padding: 30px;
}
.login h1 {
  margin: 4px 0 22px;
}
.login .primary {
  margin-top: 5px;
}
@media (max-width: 1080px) {
  .daygrid {
    grid-template-columns: 1fr;
  }
  .record-grid {
    grid-template-columns: minmax(220px, 0.75fr) minmax(0, 1.5fr);
  }
  .record-associations {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
  }
  .mast {
    padding-right: 16px;
  }
}
@media (max-width: 760px) {
  #shell {
    display: block;
  }
  .rail {
    position: absolute;
    top: 0;
    left: 0;
    height: 48px;
    width: 46px;
    background: transparent;
  }
  .brand {
    padding: 10px;
    background: var(--rail);
  }
  .rail nav,
  #pin-nav {
    display: none;
  }
  .menu-open .rail {
    height: 100dvh;
    position: fixed;
    pointer-events: none;
    width: 210px;
    overflow: visible;
  }
  .menu-open .brand,
  .menu-open .rail nav {
    pointer-events: auto;
  }
  .menu-open .rail nav {
    display: block;
    background: var(--rail);
    width: 210px;
    max-height: calc(100dvh - 48px);
    overflow: auto;
    box-shadow: 6px 7px 16px #0003;
  }
  .menu-open nav a span {
    display: inline;
  }
  .mast {
    padding: 0 9px 0 47px;
    gap: 5px;
  }
  .mast .product {
    display: none;
  }
  #mobile-menu {
    display: inline-flex;
    background: transparent;
    color: white;
    border: 0;
    padding: 5px;
  }
  #mobile-menu span {
    display: none;
  }
  #jump-open {
    width: auto;
    flex: 1;
    padding: 5px 9px;
    font-size: 12px;
  }
  #quick-tools {
    display: none;
  }
  #account {
    padding-left: 7px;
  }
  .account-menu summary > span:not(.avatar) {
    display: none;
  }
  main {
    padding: 15px 10px 32px;
  }
  .headrow {
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px;
  }
  .queue-views,
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .queue-views a,
  .metric {
    padding: 10px;
    gap: 7px;
  }
  .panel {
    padding: 14px;
  }
  .panel > h2:first-child {
    margin: -14px -14px 12px;
    padding: 12px 14px;
  }
  .panel > .tablewrap {
    margin-inline: -14px;
    max-width: calc(100% + 28px);
  }
  .tablewrap table {
    min-width: 380px;
  }
  td,
  th {
    padding: 9px;
  }
  .index-panel {
    padding: 0;
  }
  .index-panel > .tablewrap {
    margin: 0;
    max-width: 100%;
  }
  .record-grid {
    display: flex;
    flex-direction: column;
  }
  .record-associations {
    display: block;
  }
  .record-work,
  .record-left,
  .record-associations {
    min-width: 0;
  }
  .record-grid .preview-identity {
    gap: 8px;
  }
  .record-grid .panel > h2 {
    font-size: 15px;
  }
  .login {
    padding: 22px;
  }
  input,
  select,
  textarea {
    font-size: 16px;
  }
  .daygrid {
    gap: 0;
  }
}

/* Compact workspace chrome, shared by the record and object index pages. */
body:not(.signed-out) {
  background: var(--rail);
}
.workspace {
  background: var(--rail);
}
body:not(.signed-out) main {
  background: var(--wash);
  border-radius: 16px 0 0 0;
  min-height: calc(100dvh - 42px);
  padding: 16px;
  margin: 0;
}
body.signed-out .workspace {
  min-height: 100dvh;
  background: var(--wash);
}
.mast {
  height: 42px;
  gap: 18px;
  padding-left: 0;
}
#jump-open {
  width: min(30vw, 416px);
  height: 32px;
  padding: 4px 15px;
}
#jump-open .icon {
  width: 16px;
  height: 16px;
}
#record-helper {
  border: 0;
  background: transparent;
  color: white;
  padding: 4px 6px;
  font-size: 13px;
  font-weight: 450;
}
#record-helper i {
  font-size: 18px;
  color: #ff6333;
  font-style: normal;
}
#quick-tools {
  gap: 6px;
}
#quick-tools .icon,
nav a .icon {
  width: 16px;
  height: 16px;
}
.signed-name {
  display: block;
  padding: 8px;
  color: var(--ink);
}
button,
.button {
  border-color: #929292;
  border-radius: 99px;
  font-weight: 500;
}
.primary {
  border-color: var(--accent);
}
.avatar {
  background: #eaeaea;
  color: #444;
}
nav a {
  height: 33px;
  margin: 2px 0;
}
.home-link {
  margin-bottom: 10px;
}
#pin-nav {
  margin-inline: auto;
  align-self: center;
}
.panel {
  box-shadow: 0 1px 5px #1717170b;
}
h1 {
  font-weight: 500;
  letter-spacing: -0.025em;
}
.tag {
  padding: 2px 7px;
  border-radius: 6px;
  line-height: 1.35;
}
.tag[data-status="fresh"],
.tag[data-status="open"] {
  background: #006de4;
  color: white;
}
@media (min-width: 761px) {
  #shell {
    grid-template-columns: 68px minmax(0, 1fr);
  }
  .rail {
    width: 68px;
  }
  .brand {
    height: 42px;
    min-height: 42px;
    padding-left: 23px;
  }
  .brand svg {
    width: 22px;
    height: 22px;
  }
  .rail nav {
    padding: 1px 17px 12px;
    scrollbar-width: none;
  }
  nav a {
    padding: 0 9px;
  }
  .rail:hover nav,
  .nav-pinned .rail nav {
    padding-inline: 12px;
  }
  .rail:hover nav a,
  .nav-pinned nav a {
    padding-inline: 14px;
  }
}
main[data-view="prospects"],
main[data-view="tasks"] {
  height: calc(100dvh - 42px);
  min-height: 480px !important;
}
.index-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 19px 24px 0;
  border: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 1px 6px #0001;
}
.list-title,
.list-tools,
.filterstrip,
.grid-foot,
.record-back,
.preview-identity,
.action-circles,
.recent-summary,
.assoc-item,
.sources,
.task-title,
.table-company {
  display: flex;
  align-items: center;
}
.list-title {
  justify-content: space-between;
  min-height: 40px;
  margin-bottom: 9px;
}
.list-title h1 {
  font-size: 23px;
  font-weight: 400;
  letter-spacing: -0.03em;
}
.list-title h1 span {
  font-size: 16px;
  font-weight: 400;
}
.list-title .primary {
  padding: 8px 15px;
}
.list-title .primary::after {
  content: "";
  width: 0;
  height: 0;
  border: 4px solid transparent;
  border-top-color: currentColor;
  transform: translateY(2px);
}
.index-tabs {
  display: flex;
  gap: 3px;
  white-space: nowrap;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  padding: 0 0 7px;
  min-height: 39px;
  flex-shrink: 0;
}
.index-tabs a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  color: #575757;
  font-size: 13px;
  text-decoration: none;
  border-radius: 6px;
}
.index-tabs .icon {
  width: 14px;
  height: 14px;
}
.index-tabs a[aria-current],
.index-tabs a:hover {
  color: #282828;
  background: #e7e7e7;
}
.index-tabs a[aria-current]::after {
  content: "";
  position: absolute;
  bottom: -7px;
  height: 1px;
  background: #333;
  left: 0;
  right: 0;
}
.list-tools {
  gap: 8px;
  margin: 12px 0 6px;
  min-width: 0;
  flex-wrap: wrap;
}
.list-tools button,
.list-tools summary,
.table-mode,
.grid-search {
  min-height: 32px;
  border: 1px solid #909090;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 4px 13px;
  font-size: 13px;
  background: white;
}
.list-tools .icon,
.filterstrip .icon,
.sources .icon,
.assoc-item .icon,
.task-title .icon,
.table-company .icon {
  width: 15px;
  height: 15px;
}
.list-tools .filter-toggle[aria-expanded="true"] {
  background: #bbefec;
}
.list-tools .grid-search {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  margin: 0;
  gap: 8px;
  padding: 4px 12px;
  width: 225px;
  justify-content: start;
}
.grid-search input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font: inherit;
  width: 100%;
}
.grid-search:focus-within {
  outline: 2px solid #0071ed;
}
.table-mode {
  margin-left: auto;
}
.filterstrip {
  gap: 6px;
  min-height: 37px;
  flex-wrap: wrap;
  margin: 0 0 8px;
}
.filterstrip > a {
  text-decoration: none;
  border-left: 1px solid #ccc;
  color: var(--ink);
  padding: 3px 12px;
  font-size: 13px;
  font-weight: 600;
}
.pop-menu {
  position: relative;
  font-size: 13px;
}
.pop-menu > summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.pop-menu > summary::-webkit-details-marker,
.record-card > summary::-webkit-details-marker,
.overview > summary::-webkit-details-marker {
  display: none;
}
.pop-menu > div {
  position: absolute;
  left: 0;
  top: calc(100% + 3px);
  z-index: 4;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  min-width: 160px;
  padding: 5px;
  box-shadow: 0 6px 18px #0002;
  max-height: 270px;
  overflow: auto;
}
.pop-menu > div :is(a, button) {
  display: block;
  text-align: left;
  color: var(--ink);
  text-decoration: none;
  border: 0;
  padding: 8px;
  width: 100%;
  font-weight: 450;
  white-space: nowrap;
  border-radius: 4px;
  background: white;
}
.pop-menu a:hover,
.pop-menu button:hover,
.pop-menu [aria-current] {
  background: #eee;
}
.choice summary {
  font-weight: 600;
  padding: 6px 9px;
}
.choice:first-child summary {
  background: #e7e7e7;
  border-radius: 5px;
}
.bulk-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 7px;
}
.grid-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  scrollbar-color: #c5c5c5 #f5f5f5;
}
.grid-body .tablewrap {
  overflow: visible;
  max-width: none;
}
.grid-body table {
  min-width: 1080px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}
.grid-body th,
.grid-body td {
  border: 0;
  border-bottom: 1px solid #cecece;
  padding: 6px 10px;
  height: 40px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.grid-body th {
  position: sticky;
  top: 0;
  background: white;
  color: #606060;
  z-index: 1;
  font-size: 13px;
  font-weight: 500;
}
.grid-body th:has([name="select_page"]) {
  width: 54px;
}
.grid-body td:has([name="selected"]),
.grid-body th:has(input) {
  padding-inline: 12px;
}
.grid-body input[type="checkbox"] {
  width: 19px;
  height: 19px;
  margin: 0;
  vertical-align: middle;
}
.grid-body tbody tr:hover {
  background: #f5f8f8;
}
.grid-body a {
  color: var(--blue);
  font-weight: 560;
  text-decoration: none;
}
.grid-body .person-link::before {
  content: "›";
  color: #666;
  margin-right: 1px;
}
.grid-body .avatar {
  width: 23px;
  height: 23px;
  font-size: 10px;
}
.grid-body .person-link,
.task-title,
.table-company {
  gap: 9px;
}
.table-company {
  color: var(--blue);
  font-weight: 550;
}
.grid-foot {
  gap: 12px;
  min-height: 57px;
  margin: 10px -24px 0;
  padding: 8px 24px;
  border-top: 1px solid var(--border);
}
.grid-foot strong {
  background: #f0f0f0;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
}
.grid-foot .pager {
  margin: 0 0 0 auto;
}
.grid-foot > button {
  font-size: 12px;
}
.grid-foot .pager > span:only-child {
  display: none;
}
main[data-view="person"] {
  padding: 24px !important;
}
.record-grid {
  display: grid;
  grid-template-columns: minmax(0, 23fr) minmax(0, 51fr) minmax(0, 24fr);
  gap: 16px;
  align-items: start;
}
.record-grid > *,
.record-tabs > div,
.record-work,
.record-left,
.record-associations {
  min-width: 0;
}
.record-left,
.record-work,
.record-associations {
  max-height: calc(100dvh - 90px);
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #c6c6c6 transparent;
}
.record-left {
  padding-right: 6px;
}
.record-grid :is(h1, p, li, .assoc-item) {
  overflow-wrap: anywhere;
}
.record-grid .panel {
  border-radius: 16px;
  margin: 0 0 16px;
  padding: 24px;
  background: white;
  border: 1px solid #ccc;
}
.record-grid .identity-card {
  padding: 0;
}
.record-back {
  justify-content: space-between;
  gap: 8px;
  padding: 14px 24px;
  margin: 0;
  border-bottom: 1px solid #ccc;
}
.record-back a {
  color: #333;
}
.record-back .pop-menu > div,
.quick-more > div {
  left: auto;
  right: 0;
}
.identity-body {
  padding: 17px 24px 24px;
}
.identity-body > p {
  margin: 6px 0 15px;
  font-size: 14px;
}
.preview-identity {
  gap: 12px;
  margin: 0;
}
.record-grid h1 {
  font-size: 21px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 650;
}
.contact-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ededed;
  display: grid;
  place-items: center;
  flex: none;
}
.contact-icon .icon {
  width: 22px;
  height: 22px;
}
.action-circles {
  gap: 3px;
  align-items: start;
  justify-content: center;
  flex-wrap: wrap;
}
.quick-action,
.quick-more summary {
  font: inherit;
  font-size: 13px;
  font-weight: 450;
  display: grid;
  align-content: start;
  justify-items: center;
  text-align: center;
  line-height: 1.25;
  width: 47px;
  gap: 5px;
  padding: 2px 1px;
  border: 0;
  background: transparent;
}
.quick-action:hover,
.quick-more summary:hover {
  background: #f5f5f5;
}
.quick-action > span,
.quick-more summary > span {
  display: grid;
  place-items: center;
  background: white;
  border: 1px solid #898989;
  border-radius: 50%;
  width: 36px;
  height: 36px;
}
.quick-action .icon,
.quick-more .icon {
  width: 15px;
  height: 15px;
}
.record-card > summary,
.overview > summary {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.record-card > summary::before,
.overview > summary::before {
  content: "›";
  font-family: system-ui;
  font-size: 19px;
}
.record-card[open] > summary::before,
.overview[open] > summary::before {
  transform: rotate(90deg);
}
.record-card summary strong,
.insight-card h2 {
  font-size: 16px;
  letter-spacing: -0.015em;
}
.record-card > div {
  margin-top: 27px;
}
.record-card dl {
  display: block;
}
.record-card dt {
  font-size: 13px;
  color: #686868;
  font-weight: 500;
  margin-top: 15px;
}
.record-card dd {
  font-size: 14px;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}
.record-card dd a {
  font-weight: 570;
  text-decoration: none;
}
.record-tabs {
  display: flex;
  align-items: stretch;
  gap: 12px;
}
.record-tabs > div {
  flex: 1;
  display: flex;
  overflow: hidden;
  border: 1px solid #ccc;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
  background: #f5f5f5;
}
.record-tabs a {
  flex: 1;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid #ccc;
  font-size: 14px;
  padding: 14px 0;
}
.record-tabs a + a {
  border-left: 1px solid #ccc;
}
.record-tabs a[aria-current] {
  background: white;
  border-bottom-color: white;
  font-weight: 550;
}
.record-tabs > button {
  padding: 3px 0;
  border: 0;
  background: transparent;
  font-weight: 600;
  font-size: 13px;
}
.record-tabs > button::before {
  content: "⚙︎" / "";
  font-size: 17px;
}
.overview > summary {
  font-size: 19px;
  font-weight: 600;
  padding: 15px 3px;
}
.record-grid .insight-card h2 {
  margin: 0;
  padding: 0;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 22px;
}
.insight-mark {
  font-size: 13px;
  line-height: 1;
  border-radius: 6px;
  color: white;
  background: linear-gradient(155deg, #c90079 10%, #ff4526 85%);
  padding: 3px 7px;
  margin-left: auto;
}
.record-grid .generated {
  color: #666;
  font-size: 13px;
  font-weight: 500;
  margin: 28px 0 13px;
}
.insight-card ul {
  padding-left: 20px;
  margin: 0;
  line-height: 1.7;
  font-size: 14px;
}
.sources {
  gap: 6px;
  margin: 17px 0 21px;
}
.sources a {
  text-decoration: none;
  font-weight: 550;
  color: #333;
  font-size: 13px;
}
.summary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.summary-actions button {
  font-size: 12px;
  padding: 4px 12px;
}
.ask > button {
  color: var(--blue);
}
.summary-actions > button {
  background: #fff1e7;
  border-color: #f64549;
  gap: 4px;
}
.summary-actions > button::before {
  content: "✦" / "";
}
.summary-actions > button:hover {
  background: #ffe5d4;
}
.recent-summary {
  justify-content: space-between;
  gap: 15px;
  line-height: 1.7;
}
.recent-summary .button {
  white-space: nowrap;
  font-size: 13px;
  padding: 5px 14px;
}
.interaction-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 0;
}
.interaction-box {
  border: 1px solid #ccc;
  border-radius: 16px;
  padding: 15px;
  min-height: 175px;
  overflow-wrap: anywhere;
}
.interaction-box p,
.assoc-item {
  display: flex;
  gap: 9px;
  align-items: start;
  margin: 16px 0;
}
.interaction-box p .icon {
  width: 15px;
}
.interaction-box a,
.assoc-item a {
  text-decoration: none;
  font-weight: 550;
}
.interaction-box small {
  display: block;
  margin-top: 4px;
  color: #666;
}
.record-art {
  display: block;
  width: 108px;
  max-width: 60%;
  height: 110px;
  margin: 16px auto;
}
.empty-line {
  justify-content: center;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  padding: 0 8px;
}
.record-associations .record-card > div > p:not(.generated) {
  line-height: 1.7;
}
.record-associations .summary-actions {
  margin-top: 18px;
}
main.hide-context .record-associations {
  display: none;
}
main.hide-context .record-grid {
  grid-template-columns: minmax(240px, 23fr) minmax(0, 77fr);
}
#editor {
  width: min(602px, 100%);
  padding: 0;
  border-left: 1px solid #bbb;
}
#editor::backdrop {
  background: #00000005;
}
#editor #form-title {
  margin: 0;
  padding: 20px 68px 20px 40px;
  font-size: 20px;
  font-weight: 600;
  height: 66px;
}
#editor .close {
  position: absolute;
  right: 18px;
  top: 16px;
  background: transparent;
  border: 0;
  font-weight: 400;
}
#editor form {
  display: flex;
  flex-direction: column;
  height: calc(100% - 66px);
  gap: 0;
}
.drawer-body {
  padding: 24px 40px;
  display: grid;
  align-content: start;
  gap: 12px;
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.drawer-body p {
  overflow-wrap: anywhere;
}
.drawer-body label,
.drawer-body output {
  font-size: 13px;
}
.drawer-body :is(input:not([type="checkbox"]), select, textarea, output) {
  padding: 9px 12px;
  border: 1px solid #555;
  border-radius: 6px;
  min-height: 40px;
  font-weight: 400;
}
.drawer-body output {
  display: block;
  background: #fafafa;
}
.drawer-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.drawer-footer {
  display: flex;
  gap: 10px;
  padding: 24px 0;
  margin: 0 40px;
  border-top: 1px solid #ccc;
  flex-wrap: wrap;
}
.drawer-footer button {
  padding: 10px 18px;
}
@media (max-width: 1100px) and (min-width: 761px) {
  .record-grid {
    grid-template-columns: minmax(220px, 29fr) minmax(0, 71fr);
  }
  .record-associations {
    grid-column: 1/-1;
    max-height: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .record-left,
  .record-work {
    max-height: none;
  }
}
@media (max-width: 760px) {
  .mast {
    padding-left: 47px;
    gap: 6px;
  }
  .mast #record-helper,
  .table-mode {
    display: none;
  }
  body:not(.signed-out) main {
    padding: 10px;
    border-radius: 10px 0 0;
  }
  .rail,
  .brand {
    height: 42px;
    min-height: 42px;
  }
  main[data-view="person"] {
    padding: 10px !important;
  }
  .index-panel {
    padding: 12px 12px 0;
  }
  .list-title h1 {
    font-size: 20px;
  }
  .list-tools .grid-search {
    width: 145px;
    flex: 1;
  }
  .list-tools {
    gap: 4px;
  }
  .filterstrip {
    gap: 0;
  }
  .choice summary {
    padding: 5px;
  }
  .grid-foot {
    margin-inline: -12px;
    padding: 8px 12px;
    gap: 4px;
  }
  .grid-foot strong {
    padding: 6px 8px;
  }
  .grid-foot button {
    padding: 5px 8px;
  }
  .record-grid,
  main.hide-context .record-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .record-left,
  .record-work,
  .record-associations {
    display: block;
    max-height: none;
    overflow: visible;
    width: 100%;
    padding: 0;
  }
  .record-grid .panel {
    padding: 16px;
  }
  .record-grid .identity-card {
    padding: 0;
  }
  .record-tabs {
    gap: 6px;
  }
  .record-tabs button {
    font-size: 12px;
  }
  .interaction-pair {
    grid-template-columns: 1fr;
  }
  .record-left .record-card {
    margin-bottom: 10px;
  }
  .recent-summary {
    align-items: start;
    flex-direction: column;
  }
  .identity-body {
    padding: 14px;
  }
  .action-circles {
    gap: 0;
  }
  #editor #form-title {
    padding-left: 20px;
  }
  .drawer-body {
    padding: 18px 20px;
  }
  .drawer-footer {
    margin-inline: 20px;
    padding: 13px 0;
  }
}
.sources summary {
  font-weight: 580;
}
@media (min-width: 1101px) {
  .record-grid {
    grid-template-columns: minmax(0, 23.5fr) minmax(0, 51fr) minmax(0, 24fr);
  }
  .record-left {
    padding-right: 9px;
  }
}
.table-options {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.icon-button {
  padding: 0;
  width: 32px;
  height: 32px;
}
.icon-button .icon {
  width: 15px;
  height: 15px;
}
.drawer-footer button:disabled {
  background: #f3f3f3;
  color: #777;
  border-color: #f3f3f3;
  opacity: 1;
}
@media (max-width: 760px) {
  .table-options {
    margin: 0;
  }
  .grid-foot .icon-button {
    display: none;
  }
}
