/* The design system as a component kit (blueprint/spec/design.md,
   "Web"), and the shell the signed-in pages sit in (blueprint/spec/web.md,
   "The signed-in pages"). Every block is BEM and prefixed `filt-`:
   block, then __element, then --modifier, one class per rule, so a
   rule's scope is readable from its name and specificity stays flat.

   Colours, faces, sizes and radii come from tokens.css, linked before
   this file; nothing here names a value of its own except ink on a
   fill, which does not flip with the scheme. Hover is a straight
   colour swap, to the hue's dark value or from secondary ink to ink;
   nothing lifts, scales or glows. Focus darkens the hairline to
   secondary ink. Disabled is opacity .4. */

/* ---- The shell -------------------------------------------------------- */

.filt-app {
  width: 100%;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(184px, 228px) minmax(0, 1fr);
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

.filt-nav {
  position: sticky;
  top: 0;
  height: 100vh;
  box-sizing: border-box;
  padding: 26px 14px 20px;
  border-right: 1px solid var(--hairline-soft);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.filt-nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  margin-bottom: 26px;
  font-size: 17px;
  font-weight: var(--weight-semibold);
  letter-spacing: -0.3px;
  color: inherit;
  text-decoration: none;
}

.filt-nav__mark {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

/* A menu item is a link: the page it names is a page. */
.filt-nav__item {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-step);
  background: transparent;
  color: var(--ink-secondary);
  font: inherit;
  font-size: 14.5px;
  font-weight: var(--weight-regular);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.filt-nav__item:hover {
  color: var(--ink);
}

.filt-nav__item:focus-visible {
  outline: 1px solid var(--ink-secondary);
}

.filt-nav__item--active {
  background: var(--fill-faint);
  color: var(--ink);
  font-weight: var(--weight-medium);
}

.filt-nav__spacer {
  flex: 1;
}

/* Where the product lives: the app, and where to get it. */
.filt-nav__app {
  margin-top: 8px;
  padding: 14px 10px;
  border-top: 1px solid var(--hairline-soft);
  display: grid;
  gap: 8px;
}

.filt-nav__note {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink-secondary);
}

.filt-nav__stores {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}

.filt-nav__store {
  font-size: 13.5px;
  font-weight: var(--weight-medium);
  color: var(--ink);
  text-decoration: none;
}

.filt-nav__store:hover {
  color: var(--ink-secondary);
}

/* A store the app is not in yet: named, not linked. */
.filt-nav__store--soon {
  font-weight: var(--weight-regular);
  color: var(--ink-quaternary);
}

/* The way out, last in the menu. */
.filt-nav__out {
  margin: 0;
  padding: 14px 10px 0;
  border-top: 1px solid var(--hairline-soft);
}

/* ---- A page --------------------------------------------------------- */

/* The content column is as wide as the page's content asks: 640 for a
   form, wider for tables. */
.filt-page {
  box-sizing: border-box;
  min-width: 0;
  padding: 44px 48px 96px;
}

.filt-page__body {
  max-width: 640px;
}

.filt-page__body--medium {
  max-width: 720px;
}

.filt-page__body--wide {
  max-width: 760px;
}

.filt-page__body--widest {
  max-width: 880px;
}

@media (max-width: 720px) {
  .filt-page {
    padding: 34px 24px 72px;
  }
}

.filt-page__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.filt-page__title {
  margin: 0;
  font-size: 26px;
  line-height: var(--leading-tight);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.4px;
}

.filt-page__description {
  margin: 8px 0 0;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--ink-secondary);
}

.filt-section {
  margin-top: 44px;
  padding-top: 34px;
  border-top: 1px solid var(--hairline-soft);
}

.filt-section__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.filt-section__title {
  margin: 0;
  font-size: 17px;
  font-weight: var(--weight-semibold);
}

.filt-section__description {
  margin: 6px 0 0;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--ink-secondary);
}

.filt-section__content {
  margin-top: 20px;
}

/* A form's fields, 20 apart. */
.filt-form {
  display: grid;
  gap: 20px;
}

/* Two controls side by side: a field's Save, or the invite kinds. */
.filt-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* One line of settled facts, label then value: the email, the units. */
.filt-fact {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: baseline;
  font-size: var(--text-body);
}

.filt-fact__label {
  font-size: var(--text-meta-size);
  font-weight: var(--weight-medium);
  color: var(--ink-secondary);
}

/* A label for a screen reader over a column whose cells are actions. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ---- Type helpers -------------------------------------------------- */

/* Band type: table headers, eyebrows, the docs TOC groups. */
.filt-eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-band);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-band);
  text-transform: uppercase;
  color: var(--ink-tertiary);
}

/* A number, a date, a code, an address: the monospace face, tabular. */
.filt-mono {
  font-family: var(--font-mono);
  font-variant-numeric: var(--numeric);
  font-size: 13.5px;
}

.filt-mono--meta {
  font-size: var(--text-meta-size);
  color: var(--ink-secondary);
}

/* A value a device measured, not one a person typed. */
.filt-sensed {
  color: var(--blue-dark);
}

/* ---- Buttons and links --------------------------------------------- */

/* The pill. Quiet by default: ink on a hairline. On <button> and <a>
   alike, so it clears both elements' defaults. */
.filt-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  height: var(--h-button);
  padding: 0 18px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--text-button);
  font-weight: var(--weight-medium);
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.filt-button:hover {
  color: var(--ink-secondary);
}

.filt-button:focus-visible {
  outline: none;
  border-color: var(--ink-secondary);
}

.filt-button:disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* The primary action: lime with ink on it. Scarce — one per screen. */
.filt-button--now {
  background: var(--lime-bright);
  border-color: transparent;
  color: #12181F;
}

.filt-button--now:hover {
  background: var(--lime-dark);
  color: var(--ground);
}

/* The action that cannot be undone. */
.filt-button--destructive {
  border-color: var(--terracotta-dark);
  color: var(--terracotta-dark);
}

.filt-button--destructive:hover {
  background: var(--terracotta-dark);
  color: var(--ground);
}

.filt-button--small {
  height: var(--h-button-small);
  padding: 0 12px;
  border-radius: 15px;
  font-size: 13px;
}

/* A link in running text or under a form. */
.filt-link {
  font-size: 14.5px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--hairline);
}

.filt-link:hover {
  color: var(--ink-secondary);
}

.filt-link--destructive {
  color: var(--terracotta-dark);
  text-decoration-color: currentColor;
}

/* The text button in a table row: Remove, Revoke, Disconnect. A
   <button> in a form, since each one is a POST. */
.filt-action {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 14px;
  color: var(--ink-secondary);
  cursor: pointer;
}

.filt-action:hover {
  color: var(--ink);
}

.filt-action:focus-visible {
  outline: 1px solid var(--ink-secondary);
  outline-offset: 2px;
}

/* ---- Fields --------------------------------------------------------- */

.filt-field {
  display: grid;
  gap: 7px;
}

.filt-field__label {
  font-size: var(--text-meta-size);
  font-weight: var(--weight-medium);
  color: var(--ink-secondary);
}

.filt-field__help {
  margin: 0;
  font-size: var(--text-meta-size);
  color: var(--ink-tertiary);
}

.filt-field__error {
  margin: 0;
  font-size: var(--text-meta-size);
  color: var(--terracotta-dark);
}

.filt-field--error .filt-input,
.filt-field--error .filt-textarea,
.filt-field--error .filt-select {
  border-color: var(--terracotta-dark);
}

.filt-input,
.filt-textarea,
.filt-select {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-step);
  background: var(--ground-raised);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}

.filt-input {
  height: var(--h-button);
  padding: 0 14px;
}

.filt-textarea {
  padding: 10px 14px;
  line-height: var(--leading-body);
  resize: vertical;
}

.filt-input::placeholder,
.filt-textarea::placeholder {
  color: var(--ink-quaternary);
}

.filt-input:focus-visible,
.filt-textarea:focus-visible,
.filt-select:focus-within {
  outline: none;
  border-color: var(--ink-secondary);
}

.filt-input:disabled,
.filt-textarea:disabled,
.filt-select__control:disabled {
  opacity: 0.4;
}

/* An input inside a unit wrapper: the wrapper draws the box. */
.filt-unit {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  height: var(--h-button);
  padding-right: 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-step);
  background: var(--ground-raised);
}

.filt-unit:focus-within {
  border-color: var(--ink-secondary);
}

.filt-input--bare {
  height: 100%;
  border: none;
  background: transparent;
}

.filt-input--bare:focus-visible {
  border: none;
}

.filt-unit__suffix {
  font-size: 13px;
  color: var(--ink-tertiary);
}

/* The select wraps its control so the chevron can be drawn: the box is
   the wrapper's, the control is bare. */
.filt-select {
  position: relative;
  height: var(--h-button);
}

.filt-select__control {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 0 36px 0 14px;
  border: none;
  background: transparent;
  color: inherit;
  font: inherit;
  appearance: none;
  cursor: pointer;
}

.filt-select__control:focus-visible {
  outline: none;
}

.filt-select::after {
  content: "▾";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--ink-quaternary);
  pointer-events: none;
}

/* A switch is a checkbox drawn as a track and a knob. */
.filt-toggle {
  position: relative;
  box-sizing: border-box;
  width: 40px;
  height: 24px;
  margin: 0;
  border: 0;
  border-radius: 12px;
  background: var(--fill-subtle);
  appearance: none;
  cursor: pointer;
  flex: none;
}

.filt-toggle::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--ground-raised);
}

.filt-toggle:checked {
  background: var(--lime-bright);
}

.filt-toggle:checked::before {
  left: 19px;
  background: #12181F;
}

.filt-toggle:focus-visible {
  outline: 1px solid var(--ink-secondary);
  outline-offset: 2px;
}

.filt-toggle:disabled {
  opacity: 0.4;
}

.filt-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  cursor: pointer;
}

.filt-checkbox__input {
  position: relative;
  box-sizing: border-box;
  width: 18px;
  height: 18px;
  margin: 0;
  border: 1px solid var(--hairline);
  border-radius: 5px;
  background: var(--ground-raised);
  appearance: none;
  cursor: pointer;
  flex: none;
}

.filt-checkbox__input:checked {
  border-color: transparent;
  background: var(--lime-bright);
}

.filt-checkbox__input:checked::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #12181F;
}

.filt-checkbox__input:focus-visible {
  outline: none;
  border-color: var(--ink-secondary);
}

/* One of a few, as radio buttons in labels: the selected one is the one
   live thing on the page. */
.filt-segment {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
}

.filt-segment__item {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 12px;
  border-radius: 15px;
  color: var(--ink-secondary);
  font-size: var(--text-button);
  font-weight: var(--weight-medium);
  cursor: pointer;
}

.filt-segment__item:hover {
  color: var(--ink);
}

.filt-segment__input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.filt-segment__item--selected,
.filt-segment__input:checked + .filt-segment__item {
  background: var(--lime-bright);
  color: #12181F;
}

/* ---- Tabs, pills, notices ----------------------------------------- */

/* Tabs are links: each one is the same page filtered. */
.filt-tabs {
  display: flex;
  gap: 22px;
  border-bottom: 1px solid var(--hairline-soft);
}

.filt-tabs__tab {
  margin-bottom: -1px;
  padding: 0 0 12px;
  border-bottom: 2px solid transparent;
  color: var(--ink-secondary);
  font-size: 14.5px;
  text-decoration: none;
}

.filt-tabs__tab:hover {
  color: var(--ink);
}

.filt-tabs__tab--active {
  border-bottom-color: var(--ink);
  color: var(--ink);
  font-weight: var(--weight-medium);
}

.filt-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  height: 22px;
  padding: 0 9px;
  border-radius: 11px;
  font-size: 12px;
  font-weight: var(--weight-medium);
  white-space: nowrap;
}

.filt-pill--neutral {
  background: var(--fill-faint);
  color: var(--ink-secondary);
}

/* Another hand: a coach, on the reader's side. */
.filt-pill--other {
  background: var(--violet-tint);
  color: var(--violet-dark);
}

.filt-pill--waiting {
  background: var(--amber-tint);
  color: var(--amber-dark);
}

.filt-pill--failed {
  border: 1px solid var(--terracotta-dark);
  color: var(--terracotta-dark);
}

/* Live: no fill, the dot and the word. */
.filt-pill--live {
  padding: 0;
  font-size: 13px;
  color: var(--lime-dark);
}

/* The breathing dot, the one animation there is. */
.filt-dot {
  display: inline-block;
  width: var(--size-dot);
  height: var(--size-dot);
  border-radius: 50%;
  background: var(--lime-dot);
  animation: filt-breathe var(--dur-breathe) var(--ease) infinite;
  flex: none;
}

/* A notice: a sentence set apart, with a mark saying what kind and
   the kind's tint behind it. The mark is a masked file painted in the
   text colour, so one file serves both appearances, the way the Apple
   logo is drawn in app.css; it sits on the first line of the text,
   which is why the top margin below matches the line's half-leading.
   A notice and a code block stand 18 off the text around them, one and
   a half times the paragraph gap (the set is at the docs), since each is
   a different thing to read. The margins collapse with a heading's
   larger one. */
.filt-notice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0;
  padding: 13px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-step);
  font-size: 14.5px;
  line-height: var(--leading-body);
}

.filt-notice__icon {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 3px;
  background-color: currentColor;
  -webkit-mask: center / contain no-repeat;
  mask: center / contain no-repeat;
}

.filt-notice__text {
  margin: 0;
  min-width: 0;
}

/* Something to know. */
.filt-notice--neutral {
  background: var(--fill-faint);
  color: var(--ink-secondary);
}

.filt-notice--neutral .filt-notice__icon {
  -webkit-mask-image: url("/static/notice-info.svg");
  mask-image: url("/static/notice-info.svg");
}

/* Something to take care over, or that is not there yet. */
.filt-notice--waiting {
  border-color: var(--amber-hairline);
  background: var(--amber-tint);
  color: var(--amber-dark);
}

.filt-notice--waiting .filt-notice__icon {
  -webkit-mask-image: url("/static/notice-waiting.svg");
  mask-image: url("/static/notice-waiting.svg");
}

/* Something wrong. */
.filt-notice--wrong {
  border-color: var(--terracotta-dark);
  background: var(--terracotta-tint);
  color: var(--terracotta-dark);
}

.filt-notice--wrong .filt-notice__icon {
  -webkit-mask-image: url("/static/notice-wrong.svg");
  mask-image: url("/static/notice-wrong.svg");
}

/* ---- People --------------------------------------------------------- */

/* An avatar is the initial on the subtle fill, round; violet for a
   coach, the other hand; a dot when the person is training now. */
.filt-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--size-avatar);
  height: var(--size-avatar);
  border-radius: 50%;
  background: var(--fill-subtle);
  color: var(--ink);
  font-size: 11px;
  font-weight: var(--weight-semibold);
  flex: none;
}

.filt-avatar--other {
  background: var(--violet-tint);
  color: var(--violet-dark);
}

.filt-avatar__dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  box-shadow: 0 0 0 2px var(--ground);
}

.filt-person {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

/* ---- Tables --------------------------------------------------------- */

/* No zebra, no card, no hover row: hairlines between rows and band
   type over the columns. Names, dates and pills never wrap, so a
   confirm or a long value cannot reflow the columns. */
.filt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.filt-table__head {
  padding: 0 12px 10px 0;
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: var(--text-band);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-band);
  text-transform: uppercase;
  text-align: left;
  color: var(--ink-tertiary);
}

.filt-table__head--num,
.filt-table__head--action {
  text-align: right;
}

.filt-table__head--action {
  padding-right: 0;
}

.filt-table__cell {
  padding: 14px 12px 14px 0;
  border-bottom: 1px solid var(--hairline-soft);
  vertical-align: middle;
}

.filt-table__cell--nowrap {
  white-space: nowrap;
}

.filt-table__cell--secondary {
  font-size: 14px;
  color: var(--ink-secondary);
}

.filt-table__cell--quaternary {
  font-size: 14px;
  color: var(--ink-quaternary);
}

.filt-table__cell--num {
  font-family: var(--font-mono);
  font-variant-numeric: var(--numeric);
  font-size: 13.5px;
  text-align: right;
  white-space: nowrap;
}

.filt-table__cell--mono {
  font-family: var(--font-mono);
  font-variant-numeric: var(--numeric);
  font-size: 13.5px;
  white-space: nowrap;
}

.filt-table__cell--meta {
  font-family: var(--font-mono);
  font-variant-numeric: var(--numeric);
  font-size: var(--text-meta-size);
  color: var(--ink-secondary);
  white-space: nowrap;
}

.filt-table__cell--action {
  padding-right: 0;
  text-align: right;
  white-space: nowrap;
}

.filt-table__cell--sensed {
  color: var(--blue-dark);
}

.filt-table__cell--live {
  color: var(--lime-dark);
}

/* A second line under a cell's value: the app version under a device. */
.filt-table__sub {
  margin: 2px 0 0;
  font-size: var(--text-meta-size);
  color: var(--ink-tertiary);
}

.filt-table__footer {
  margin: 12px 0 0;
  font-size: var(--text-meta-size);
  color: var(--ink-tertiary);
}

/* ---- Values to take away ------------------------------------------- */

/* A value made to be copied out of the page: one run of selectable
   text in an input's box. */
.filt-copy {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  height: var(--h-button);
  padding: 0 14px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-step);
  background: var(--ground-raised);
}

.filt-copy__value {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-variant-numeric: var(--numeric);
  font-size: 13.5px;
  user-select: all;
}

/* With the script, a block gains its Copy button at the trailing edge
   and makes room for it. */
.filt-copy--copyable {
  padding-right: 4px;
}

/* The button is taller than a line of code, so the two meet on their
   baselines: the code's first line sits level with the button's label,
   not with the button's top edge. */
.filt-code.filt-copy--copyable {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-right: 6px;
}

.filt-code.filt-copy--copyable > code {
  flex: 1;
  min-width: 0;
}

.filt-copy__button {
  flex: none;
  margin-left: 8px;
  font-family: var(--font-sans);
}

.filt-code {
  margin: 18px 0;
  padding: 12px 16px;
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-step);
  background: var(--ground-recessed);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ---- Confirming ----------------------------------------------------- */

/* A question in the trigger's place, which filt.js puts there: the
   message and two small buttons, in a terracotta pill. In a table row it
   stacks, right-aligned. */
.filt-confirm {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 8px 14px;
  border: 1px solid var(--terracotta-dark);
  border-radius: var(--radius-pill);
  color: var(--terracotta-dark);
  font-size: 14px;
}

.filt-confirm--row {
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  max-width: 220px;
  padding: 0;
  border: none;
  font-size: 13.5px;
  line-height: 1.4;
  text-align: right;
}

.filt-confirm__actions {
  display: flex;
  gap: 8px;
}

/* ---- Rows and empty states ------------------------------------------ */

/* A labelled thing with a control at its trailing edge. */
.filt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.filt-row__label {
  font-size: 15px;
}

.filt-row__detail {
  margin: 2px 0 0;
  font-size: 13.5px;
  color: var(--ink-secondary);
}

.filt-empty {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 44px 24px;
  border: 1px dashed var(--hairline);
  border-radius: var(--radius-card);
  text-align: center;
}

.filt-empty__title {
  margin: 0;
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
}

.filt-empty__text {
  margin: 0;
  max-width: 340px;
  font-size: 14.5px;
  line-height: var(--leading-body);
  color: var(--ink-secondary);
}

.filt-empty__action {
  margin-top: 10px;
}

/* ---- Docs ----------------------------------------------------------- */

.filt-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.filt-docs__toc {
  position: sticky;
  top: 44px;
  align-self: flex-start;
  width: 172px;
  flex: none;
}

.filt-docs__group {
  padding: 0 8px 8px;
}

.filt-docs__group--later {
  padding-top: 22px;
}

.filt-docs__link {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--ink-secondary);
  font-size: 14px;
  text-decoration: none;
}

.filt-docs__link:hover {
  color: var(--ink);
}

.filt-docs__link--active {
  background: var(--fill-faint);
  color: var(--ink);
  font-weight: var(--weight-medium);
}

/* The article's vertical rhythm is one set of ratios on a 12px gap, half
   a line of body text: 1 between paragraphs and from a heading to its
   first line, 1.5 around a notice or a code block, 2 above a heading
   and above the footer's rule. Text sets a top margin only, a notice
   or a code block both, and adjacent margins collapse to the larger,
   so no gap ever sums. */
.filt-docs__article {
  flex: 1;
  min-width: 280px;
  max-width: 620px;
}

.filt-docs__title {
  margin: 10px 0 0;
  font-size: 26px;
  line-height: var(--leading-tight);
  font-weight: var(--weight-semibold);
  letter-spacing: -0.4px;
}

.filt-docs__lede {
  margin: 12px 0 0;
  font-size: var(--text-body);
  line-height: 1.6;
  color: var(--ink-secondary);
}

.filt-docs__heading {
  margin: 24px 0 0;
  font-size: 17px;
  font-weight: var(--weight-semibold);
}

.filt-docs__text {
  margin: 12px 0 0;
  font-size: var(--text-body);
  line-height: 1.6;
}

.filt-docs__list {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding-left: 22px;
  font-size: var(--text-body);
  line-height: 1.6;
}

.filt-docs__footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--hairline-soft);
  font-size: 14px;
}

.filt-docs__step {
  color: var(--ink-secondary);
  text-decoration: none;
}

.filt-docs__step:hover {
  color: var(--ink);
}
