.table-view {
  position: absolute;
  inset: 24px 0 22px calc(var(--left) + 20px);
  z-index: 15;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  padding: 24px;
}
.table-toolbar {
  display: flex;
  gap: 18px;
  align-items: center;
  padding-bottom: 23px;
  border-bottom: 1px solid var(--line);
}
.table-toolbar .eyebrow {
  font-size: 8px;
}
.table-toolbar h2 {
  font-size: 20px;
  margin-top: 10px;
  font-weight: 500;
}
.table-toolbar h2 > span {
  font-size: 10px;
  color: var(--muted);
  margin-left: 10px;
}
.table-search {
  margin-left: auto;
  position: relative;
}
.table-search .icon {
  position: absolute;
  left: 10px;
  top: 10px;
  color: var(--muted);
  width: 14px;
  height: 14px;
}
.table-toolbar input {
  padding: 10px 10px 10px 32px;
  font-size: 10px;
  width: 235px;
  background: var(--surface);
  border-radius: 3px;
}
.table-scroll {
  overflow: auto;
  flex: 1;
  min-height: 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}
th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surface);
  font-size: 9px;
  color: var(--muted);
  font-weight: 400;
  padding: 15px 11px;
  border-bottom: 1px solid var(--line);
}
th button {
  padding: 0;
  color: inherit;
  font-size: 9px;
}
td {
  padding: 12px 11px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 9px;
  color: var(--text);
}
td.numeric {
  font-size: 9px;
}
tbody tr:hover {
  background: var(--surface);
}
.table-project {
  text-align: left;
  font-size: 10px;
  padding: 0;
  color: var(--text);
  max-width: 260px;
  white-space: normal;
  line-height: 1.7;
}
.table-project small {
  display: block;
  font-size: 7px;
  color: var(--faint);
  margin-top: 5px;
}
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding-top: 13px;
  font-size: 8px;
  color: var(--muted);
  gap: 12px;
}
.table-footer > div {
  display: flex;
  align-items: center;
  gap: 11px;
}
.table-footer > div > span {
  font-family: var(--number);
  font-size: 9px;
}
.table-footer .icon-button {
  width: 25px;
  height: 25px;
}
.table-footer .icon {
  width: 13px;
  height: 13px;
}
.table-view .quiet-button {
  font-size: 9px;
}
.table-view .quiet-button .icon {
  width: 13px;
  height: 13px;
}
dialog {
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px;
  box-shadow: 0 20px 100px #0008;
  max-height: 88dvh;
  width: 440px;
  overflow: auto;
}
dialog::backdrop {
  background: var(--surface);
  backdrop-filter: blur(3px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}
.dialog-heading .eyebrow {
  font-size: 8px;
}
.dialog-heading h2 {
  font-size: 22px;
  margin-top: 10px;
  letter-spacing: 0.5px;
}
.dialog-heading h2 > span {
  font-family: var(--number);
  font-size: 14px;
  color: var(--accent);
  margin-left: 7px;
}
.dialog-heading > .icon-button {
  align-self: flex-start;
}
.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
dialog > .muted,
dialog form > .muted {
  font-size: 11px;
  line-height: 1.9;
}
.query-dialog {
  width: 560px;
  padding: 30px;
}
.query-row {
  display: grid;
  grid-template-columns: 1fr 72px 100px 26px;
  gap: 9px;
  margin-top: 12px;
  align-items: center;
}
.query-row select,
.query-row input {
  font-size: 11px;
  padding: 10px 8px;
  width: 100%;
  min-width: 0;
  background: var(--surface);
  border-radius: 3px;
}
.query-row button {
  padding: 4px;
  color: var(--muted);
}
.query-row .icon {
  width: 14px;
  height: 14px;
}
#query-rows {
  margin-top: 24px;
}
#add-query-row {
  margin-top: 17px;
  font-size: 11px;
}
#add-query-row small {
  font-family: var(--number);
  font-size: 8px;
  color: var(--faint);
  margin-left: 7px;
}
.saved-query {
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 10px;
  padding: 6px 9px;
  color: var(--text);
  margin: 0 6px 6px 0;
}
.client-preview {
  display: flex;
  align-items: center;
  gap: 17px;
  flex-wrap: wrap;
  font-size: 11px;
  color: var(--muted);
  margin-top: 20px;
}
.client-preview strong {
  font-family: var(--number);
  font-size: 19px;
  font-weight: 400;
  color: var(--accent);
  margin-left: auto;
}
.followup-drawer {
  position: fixed;
  right: 0;
  top: 0;
  bottom: 0;
  margin: 0 0 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  max-width: 440px;
  width: 440px;
  border-radius: 0;
  border-width: 0 0 0 1px;
  padding: 30px;
  overflow: auto;
}
.followup-drawer > .muted {
  font-size: 11px;
  margin-bottom: 28px;
}
.followup-card {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}
.followup-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.followup-card-top > span {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: var(--accent);
}
.followup-card-top .icon {
  width: 12px;
  height: 12px;
}
.followup-card-top .icon-button {
  width: 22px;
  height: 22px;
}
.followup-card h3 {
  font-size: 15px;
  line-height: 1.6;
  margin-top: 9px;
}
.followup-card > p {
  font-size: 9px;
  color: var(--muted);
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.followup-card > p > span {
  font-family: var(--number);
  font-size: 10px;
  color: var(--text);
}
.followup-card textarea {
  display: block;
  width: 100%;
  resize: vertical;
  margin: 17px 0 12px;
  padding: 12px;
  min-height: 66px;
  background: var(--surface);
  border-radius: 3px;
  font-size: 10px;
  line-height: 1.7;
}
.followup-card textarea::placeholder {
  color: var(--faint);
}
.followup-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.followup-card-bottom > span {
  font-size: 8px;
  color: var(--faint);
}
.followup-card-bottom .text-button {
  font-size: 10px;
}
.followups-empty {
  text-align: center;
  padding: 60px 14px;
}
.followups-empty > .icon {
  height: 32px;
  width: 32px;
  color: var(--accent);
  margin: 0 auto 25px;
}
.followups-empty h3 {
  font-size: 17px;
  margin-bottom: 14px;
  font-weight: 400;
}
.followups-empty p {
  font-size: 11px;
  color: var(--muted);
  line-height: 2;
}
.followups-empty > .primary-button {
  margin-top: 30px;
}
.coachmark {
  position: fixed;
  z-index: 20;
  width: 306px;
  left: calc(var(--left) + 51px);
  bottom: 158px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 12px 50px #0005;
  padding: 18px 20px;
  animation: coach-appear 0.45s var(--ease);
}
@keyframes coach-appear {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.coachmark-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.coachmark-top > span {
  font-size: 7px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.coachmark-top > button {
  padding: 0;
  color: var(--muted);
}
.coachmark-top .icon {
  width: 13px;
  height: 13px;
}
.coachmark h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 15px 0 10px;
  letter-spacing: 0.6px;
  color: var(--text);
}
.coachmark p {
  font-size: 10px;
  line-height: 1.9;
  color: var(--text);
}
.coachmark-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 21px;
}
.coachmark-bottom > button {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--accent);
  font-size: 10px;
}
.coachmark-bottom .icon {
  height: 13px;
  width: 13px;
}
.coach-dots {
  display: flex;
  gap: 4px;
}
.coach-dots i {
  height: 3px;
  width: 3px;
  border-radius: 50%;
  background: var(--surface);
}
.coach-dots i.active {
  width: 13px;
  border-radius: 2px;
  background: var(--accent);
}
.toast {
  position: fixed;
  bottom: 128px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  padding: 12px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 4px;
  box-shadow: 0 8px 30px #0004;
  font-size: 11px;
  max-width: calc(100% - 40px);
  line-height: 1.8;
  white-space: normal;
  text-align: center;
  pointer-events: none;
}
.noscript {
  position: fixed;
  inset: 40% 10%;
  background: var(--surface);
  z-index: 100;
  padding: 30px;
  text-align: center;
  border: 1px solid var(--accent);
}
.table-risk-categories {
  display: block;
  font-size: 8px;
  color: var(--muted);
  margin-top: 5px;
}
