/* obs-capture.css — the shared observation capture strip (shared/obs-capture.js).
   Loaded by the desktop app and the phone app. App tokens only. */

/* The strip: a Student line with the type chips, the note box and one
   row of controls. */
.obsc {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg, 10px);
  min-width: 0;
}

.obsc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.obsc-row .obs-row-sep {
  margin: 0 4px;
}
.obsc-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
}
.obsc-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 2px;
}
.obsc-spacer {
  flex: 1 1 auto;
}
.obsc-hint {
  font-size: var(--text-xs, 12px);
  color: var(--text-3);
  white-space: nowrap;
}

/* ── Chips: square-cornered, none are pills ──────────────── */
.obsc-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 26px;
  max-width: 100%;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs, 4px);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: var(--text-sm, 13px);
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
}
button.obsc-chip:hover,
.obsc-chip-label:hover {
  background: var(--overlay-hover);
}
.obsc-chip:focus-visible,
.obsc-chip-label:focus-visible,
.obsc-x:focus-visible,
.obsc-add:focus-visible,
.obsc-flag-btn:focus-visible,
.obsc-flag-dismiss:focus-visible,
.obsc-item:focus-visible {
  outline: 2px solid var(--active);
  outline-offset: 1px;
}
.obsc-chip.obs-add {
  border-style: dashed;
  border-color: var(--border-2);
  background: none;
  color: var(--link);
}
.obsc-chip.obs-add:hover {
  background: var(--overlay-hover);
}
.obsc-chip.obs-add[aria-expanded='true'] {
  border-style: solid;
  color: var(--text);
}

.obsc-chip-picked {
  padding: 0 2px 0 9px;
  cursor: default;
}
.obsc-chip-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 3px 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}
span.obsc-chip-label {
  cursor: default;
}
.obsc-x {
  border: 0;
  background: none;
  color: var(--text-3);
  font-size: 15px;
  line-height: 1;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-xs, 4px);
  cursor: pointer;
  padding: 0;
}
.obsc-x:hover {
  background: var(--overlay-pressed);
  color: var(--text);
}

/* The type: dashed until chosen, then tinted in its colour. */
.obsc-chip-type:not(.is-on) {
  border-style: dashed;
  color: var(--text-2);
}
.obsc-chip-type[data-sentiment='strength'].is-on {
  border-color: transparent;
  color: var(--score-3);
  background: color-mix(in srgb, var(--score-3) 14%, transparent);
  font-weight: 600;
}
.obsc-chip-type[data-sentiment='growth'].is-on {
  border-color: transparent;
  color: var(--link);
  background: color-mix(in srgb, var(--active) 14%, transparent);
  font-weight: 600;
}
.obsc-chip-type[data-sentiment='concern'].is-on {
  border-color: transparent;
  color: var(--score-2);
  background: color-mix(in srgb, var(--score-2) 16%, transparent);
  font-weight: 600;
}
.obsc-chip-type[data-sentiment='note'].is-on {
  border-color: transparent;
  color: var(--obs-note-text);
  background: color-mix(in srgb, var(--obs-note) 24%, transparent);
  font-weight: 600;
}

/* A student: initial avatar, name, ×. */
.obsc-chip-student {
  padding-left: 4px;
}
.obsc-av {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  font-style: normal;
}
/* A tag: its dot on a light chip. */
.obsc-chip-tag {
  border-color: transparent;
  background: var(--overlay-hover);
  color: var(--text-2);
}
.obsc-chip-competency,
.obsc-chip-assessment,
.obsc-chip-level.is-on {
  border-color: transparent;
  background: var(--active-light);
  color: var(--link);
}
.obsc-chip-competency .obsc-x,
.obsc-chip-assessment .obsc-x {
  color: var(--link);
}
.obsc-link-btn[aria-expanded='true'] {
  border-style: solid;
  color: var(--text);
}

.obsc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
}

/* ── Text box (.obs-note-box) ────────────────────────────── */
.obsc-input-wrap {
  display: flex;
  min-width: 0;
}
.obsc-input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 64px;
  resize: vertical;
}
.obsc-input.obsc-input-empty {
  border-color: var(--score-1);
}

/* ── Add ─────────────────────────────────────────────────── */
.obsc-add {
  height: var(--control-h);
  padding: 5px 16px;
  border: 0;
  border-radius: var(--radius-sm, 8px);
  background: var(--active-fill);
  color: #fff;
  font: inherit;
  font-size: var(--text-sm, 13px);
  font-weight: 600;
  cursor: pointer;
}
.obsc-add:hover {
  background: var(--btn-hover-blue);
}
.obsc-add:disabled {
  opacity: 0.45;
  cursor: default;
}

/* Starter rows: the type block, the text, and what it sets. */
.obsc-starter {
  align-items: center;
  gap: 10px;
}
.obsc-starter .obs-type {
  color: #fff;
  width: 70px;
  height: 20px;
  margin: 0;
  flex: none;
  padding: 0;
}
.obsc-starter-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.obsc-starter-text .obsc-item-label {
  white-space: normal;
}
.obsc-starter-sets {
  font-size: var(--text-xs, 12px);
  color: var(--text-3);
}

/* ── Flag offer and errors ───────────────────────────────── */
.obsc-flag:empty {
  display: none;
}
.obsc-flag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: var(--text-sm, 13px);
  color: var(--text-2);
}
.obsc-flag-btn,
.obsc-flag-dismiss {
  min-height: 28px;
  padding: 3px 12px;
  border-radius: var(--radius-md, 8px);
  font: inherit;
  font-size: var(--text-sm, 13px);
  cursor: pointer;
}
.obsc-flag-btn {
  border: 1px solid var(--score-2);
  background: color-mix(in srgb, var(--score-2) 12%, transparent);
  color: var(--score-2-dark, var(--score-2));
  font-weight: 600;
}
.obsc-flag-dismiss {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
}
.obsc-error {
  color: var(--danger);
}

/* ── Menus ───────────────────────────────────────────────── */
.obsc-slot {
  position: relative;
  height: 0;
}
.obsc-slot:empty {
  display: none;
}
/* A floating menu's slot takes no room, so cancel the flex gap it adds. */
.obsc:not(.obsc--sheet) > .obsc-slot {
  margin-top: -8px;
}
.obsc-menu {
  position: absolute;
  top: 2px;
  left: 0;
  z-index: 60;
  width: 280px;
  max-width: 100%;
  max-height: 340px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md, 8px);
  box-shadow: 0 8px 24px var(--divider-strong);
  overflow: hidden;
}
.obsc-menu-search,
.obsc-menu-add-input {
  margin: 8px 8px 4px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: var(--text-sm, 13px);
  min-width: 0;
}
.obsc-menu-search:focus,
.obsc-menu-add-input:focus {
  outline: none;
  border-color: var(--active);
}
.obsc-menu-list {
  overflow-y: auto;
  padding: 4px 0;
  flex: 1 1 auto;
}
.obsc-menu-section {
  padding: 8px 12px 2px;
  font-size: var(--text-xs, 12px);
  font-weight: 600;
  color: var(--text-3);
}
.obsc-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: var(--text-sm, 13px);
  color: var(--text);
  cursor: pointer;
}
.obsc-item:hover,
.obsc-item.is-active {
  background: var(--overlay-hover);
}
.obsc-item.selected {
  color: var(--link);
  font-weight: 600;
}
.obsc-check {
  width: 12px;
  flex: none;
  color: var(--link);
}
.obsc-item-label {
  overflow: hidden;
  text-overflow: ellipsis;
}
.obsc-menu-empty,
.obsc-menu-note {
  padding: 8px 12px;
  font-size: var(--text-sm, 13px);
  color: var(--text-2);
}
.obsc-menu-note {
  border-bottom: 1px solid var(--divider-subtle);
}
.obsc-menu-add {
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid var(--divider-subtle);
  padding-right: 8px;
}
.obsc-menu-add-input {
  flex: 1 1 auto;
  margin: 8px 0 8px 8px;
}
.obsc-menu-add-btn {
  border: 0;
  background: none;
  color: var(--link);
  font: inherit;
  font-size: var(--text-sm, 13px);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.obsc-suggest {
  width: 260px;
}
.obsc-suggest-starters,
.obsc-menu[data-menu='starters'] {
  width: 420px;
  max-width: 100%;
}
.obsc-item-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.obsc-item-desc {
  font-size: var(--text-xs, 12px);
  line-height: 1.3;
  color: var(--text-2);
}
.obsc-item.has-desc {
  align-items: flex-start;
}
/* The level menu with its descriptors shows whole, "No level" included. */
.obsc-menu[data-menu='level'] {
  max-height: 440px;
}
.obsc--sheet .obsc-menu[data-menu='level'] {
  max-height: none;
}
.obsc-item-hint {
  margin-left: auto;
  padding-left: 8px;
  flex: none;
  font-size: var(--text-xs, 12px);
  color: var(--text-3);
}
.obsc-item-edit {
  border-top: 1px solid var(--divider-subtle);
  color: var(--link);
  font-weight: 600;
}

/* ── Pills on cards ──────────────────────────────────────── */
.obsc-pill-competency {
  border-color: transparent;
  background: var(--active-light);
  color: var(--link);
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.obsc-pill-level {
  color: var(--text-2);
}

/* ── Sheet layout (phone, dialogs): menus in the flow ────── */
.obsc--sheet {
  border: 0;
  padding: 0;
  background: transparent;
}
.obsc--sheet .obsc-slot {
  height: auto;
}
.obsc--sheet .obsc-menu {
  position: static;
  width: 100%;
  max-height: 260px;
  box-shadow: none;
}
.obsc--sheet .obsc-chip,
.obsc--sheet .obsc-add,
.obsc--sheet .obsc-flag-btn,
.obsc--sheet .obsc-flag-dismiss {
  min-height: 36px;
}
.obsc--sheet .obsc-item {
  min-height: 40px;
}
.obsc--sheet .obsc-input {
  min-height: 84px;
  font-size: 16px;
}
.obsc--sheet .obsc-add {
  flex: 1 1 100%;
  min-height: 44px;
}

@media (max-width: 600px) {
  .obsc-sep {
    display: none;
  }
  .obsc-menu {
    width: 100%;
  }
}

/* ── Dialog (gradebook cell menu) ────────────────────────── */
.obsc-dialog-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 16px 16px;
  background: rgba(0, 0, 0, 0.32);
}
.obsc-dialog {
  width: 560px;
  max-width: 100%;
  background: var(--surface);
  border-radius: var(--radius-lg, 12px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.24);
  padding: 14px 16px 16px;
}
.obsc-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.obsc-dialog-title {
  font-weight: 700;
  color: var(--text);
}
.obsc-dialog-sub {
  font-size: var(--text-sm, 13px);
  color: var(--text-2);
}
.obsc-dialog-close {
  border: 0;
  background: none;
  color: var(--text-2);
  font-size: 16px;
  cursor: pointer;
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.obsc-dialog-close:hover {
  background: var(--overlay-hover);
}
.obsc-dialog .obsc {
  border: 0;
  padding: 0;
}

/* ── Editor pieces: the edit window and the strip share these ── */
/* The type as a solid word block, in the proficiency colours. */
.obs-type {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 22px;
  border-radius: var(--radius-xs);
  font-size: var(--text-xs);
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  margin-top: 1px;
}
.obs-type[data-sentiment='strength'] {
  background: var(--score-3);
}
.obs-type[data-sentiment='growth'] {
  background: var(--score-4);
}
.obs-type[data-sentiment='concern'] {
  background: var(--score-2);
}
.obs-type[data-sentiment='note'] {
  background: var(--obs-note);
  color: var(--obs-note-on);
}
.obs-type-none {
  border: 1px dashed var(--border-2);
}

/* The folder band: the three types as tabs on a --bg band, the chosen
   one filled in its proficiency colour. */
.obs-band {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 10px 14px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.obs-band-tab {
  font-family: var(--font-base);
  font-size: var(--text-sm, 13px);
  font-weight: 600;
  padding: 6px 14px;
  margin-bottom: -1px;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 6px 6px 0 0;
  background: var(--surface);
  color: var(--text-2);
  cursor: pointer;
}
.obs-band-tab:hover:not(.on) {
  color: var(--text);
}
.obs-band-tab:focus-visible {
  outline: 2px solid var(--active);
  outline-offset: 1px;
}
.obs-band-tab.on {
  color: #fff;
}
.obs-band-tab.on[data-sentiment='strength'] {
  background: var(--score-3);
  border-color: var(--score-3);
}
.obs-band-tab.on[data-sentiment='growth'] {
  background: var(--score-4);
  border-color: var(--score-4);
}
.obs-band-tab.on[data-sentiment='concern'] {
  background: var(--score-2);
  border-color: var(--score-2);
}
.obs-band-tab.on[data-sentiment='note'] {
  background: var(--obs-note);
  border-color: var(--obs-note);
  color: var(--obs-note-on);
}
.obs-band-right {
  margin-left: auto;
  align-self: center;
  padding-bottom: 8px;
  font-size: var(--text-xs, 12px);
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* The note box: plain and bordered, blue while typing. */
.obs-note-box {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  font-family: var(--font-base);
  font-size: var(--text-md, 15px);
  line-height: 1.5;
  color: var(--text);
  background: var(--surface);
  resize: none;
  outline: none;
}
.obs-note-box:focus {
  border-color: var(--active);
}
.obs-note-box::placeholder {
  color: var(--text-3);
}

/* One row of labelled controls under the note box. */
.obs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}
.obs-row-label {
  font-size: var(--text-sm, 13px);
  font-weight: 600;
  color: var(--text);
  margin-right: 2px;
}
.obs-row-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  margin: 0 6px;
}
.obs-notice {
  margin: 0 0 10px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--bg);
  font-size: var(--text-sm, 13px);
  color: var(--text-2);
}
.obs-notice b {
  color: var(--text);
  font-weight: 600;
}

/* Square chips: a tag with its dot and ×, and the dashed "+ Add" button. */
.obs-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 4px 3px 9px;
  border-radius: var(--radius-xs);
  font-size: var(--text-sm, 13px);
  background: var(--overlay-hover);
  color: var(--text-2);
}
.obs-tag-chip .dim-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.obs-tag-chip-x {
  background: none;
  border: none;
  padding: 0 4px;
  font-size: var(--text-sm, 13px);
  line-height: 1;
  color: var(--text-3);
  cursor: pointer;
}
.obs-tag-chip-x:hover {
  color: var(--text);
}
.obs-add {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border: 1px dashed var(--border-2);
  border-radius: var(--radius-xs);
  background: none;
  font-family: var(--font-base);
  font-size: var(--text-sm, 13px);
  color: var(--link);
  cursor: pointer;
}
.obs-add:hover {
  background: var(--overlay-hover);
}

/* The small context menu. */
.obs-menu-wrap {
  position: relative;
  display: inline-flex;
}
.obs-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--surface);
  font-family: var(--font-base);
  font-size: var(--text-sm, 13px);
  color: var(--text);
  cursor: pointer;
}
.obs-menu-btn.empty {
  border-style: dashed;
  border-color: var(--border-2);
  background: none;
  color: var(--link);
}
.obs-menu-car {
  font-size: var(--text-xs, 12px);
  color: var(--text-3);
}
.obs-menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 4px);
  z-index: 210;
  min-width: 160px;
  padding: 4px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
}
/* In the strip, which sits at the top of its host, the menu opens down. */
.obsc .obs-menu {
  top: calc(100% + 4px);
  bottom: auto;
}
.obs-menu-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 6px 10px;
  border: none;
  border-radius: 5px;
  background: none;
  font-family: var(--font-base);
  font-size: var(--text-base, 14px);
  color: var(--text);
  cursor: pointer;
}
.obs-menu-item:hover,
.obs-menu-item:focus-visible {
  background: var(--overlay-hover);
  outline: none;
}
.obs-menu-item.on {
  background: var(--active-fill);
  color: #fff;
}
.obs-menu-none {
  margin-top: 2px;
  border-top: 1px solid var(--divider-medium);
  border-radius: 0 0 5px 5px;
  color: var(--text-2);
}

/* Save as Starter: the button beside Add, and its dialog */
.obsc-save-starter {
  height: var(--control-h);
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 8px);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: var(--text-sm, 13px);
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.obsc-save-starter:hover:not(:disabled) {
  background: var(--overlay-hover);
}
.obsc-save-starter:disabled {
  opacity: 0.45;
  cursor: default;
}
.obsc-save-card {
  width: min(420px, calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}
.obsc-save-label {
  font-size: var(--text-sm, 13px);
  font-weight: 600;
  color: var(--text-2);
}
.obsc-save-text {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm, 8px);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: var(--text-base, 14px);
  resize: vertical;
}
.obsc-save-hint,
.obsc-save-note {
  font-size: var(--text-sm, 13px);
  line-height: 1.45;
  color: var(--text-2);
}
.obsc-save-sets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.obsc-save-sets-label {
  font-size: var(--text-sm, 13px);
  font-weight: 600;
  color: var(--text);
}

/* "Private" on a Concern or Note observation (obsPrivateLabelHtml in
   shared/constants.js): an outlined pill in the muted text colour. Concern
   and Note observations never print or go home. */
.obs-private {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 7px;
  border: 1px solid var(--border);
  border-radius: 99px;
  font-size: var(--text-xs, 11px);
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--text-3);
  background: transparent;
  text-transform: none;
  letter-spacing: normal;
}
.obs-private svg {
  width: 10px;
  height: 10px;
  flex: none;
}

/* ── Follow-ups under an observation (shared/obs-follow-ups.js) ──────────
   The strip at a card's foot ("2 follow-ups · last Nov 15", + Follow Up),
   the timeline it opens in place, the edit window's panel and the small
   Follow Up window. The phone's sheet uses the same pieces. */
.obs-fu {
  margin-top: 8px;
}
.obs-fu-bar,
.obs-fu-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.obs-fu-head {
  margin-bottom: 6px;
}
.obs-fu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 0;
  border: none;
  background: none;
  font-family: var(--font-base);
  font-size: var(--text-sm, 13px);
  color: var(--text-2);
  cursor: pointer;
}
.obs-fu-toggle:hover {
  color: var(--text);
}
.obs-fu-toggle:focus-visible,
.obs-fu-entry:focus-visible,
.obs-fu-chip:focus-visible {
  outline: 2px solid var(--active);
  outline-offset: 1px;
}
.obs-fu-chev {
  flex: none;
  transition: transform 0.2s;
}
.obs-fu-toggle[aria-expanded='true'] .obs-fu-chev {
  transform: rotate(90deg);
}
.obs-fu-add {
  padding: 1px 8px;
  font-size: var(--text-xs, 12px);
}
.obs-fu-closed {
  display: inline-flex;
  align-items: center;
  padding: 0 7px;
  border: 1px solid var(--score-3);
  border-radius: 99px;
  font-size: var(--text-xs, 11px);
  font-weight: 600;
  line-height: 1.5;
  color: var(--score-3);
}
.obs-fu-tl {
  margin-top: 6px;
}
.obs-fu-list {
  list-style: none;
  margin: 0;
  padding: 0 0 0 12px;
  border-left: 2px solid var(--border);
}
.obs-fu-item {
  position: relative;
}
.obs-fu-item::before {
  content: '';
  position: absolute;
  left: -17px;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-2);
}
.obs-fu-item[data-kind='resolved']::before {
  background: var(--score-3);
}
.obs-fu-entry {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
  width: 100%;
  padding: 4px 6px;
  border: none;
  border-radius: var(--radius-xs);
  background: none;
  font-family: var(--font-base);
  font-size: var(--text-sm, 13px);
  line-height: 1.45;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.obs-fu-entry:hover {
  background: var(--overlay-hover);
}
.obs-fu-date {
  min-width: 46px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.obs-fu-kind {
  font-weight: 600;
}
.obs-fu-text {
  white-space: pre-wrap;
  word-wrap: break-word;
}
.obs-fu-panel {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.obs-fu-none {
  font-size: var(--text-sm, 13px);
  color: var(--text-3);
}
.obs-card.obs-fu-revealed {
  border-color: var(--active);
}

/* The Follow Up window, over the page or the edit window. */
.obs-fu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.3);
}
.obs-fu-dialog {
  width: 520px;
  max-width: calc(100% - 48px);
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.16);
}
.obs-fu-dialog-title {
  margin-bottom: 10px;
  font-size: var(--text-lg, 17px);
  font-weight: 650;
  color: var(--text);
}
.obs-fu-of {
  margin-bottom: 12px;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--bg);
  font-size: var(--text-sm, 13px);
  color: var(--text-2);
}
.obs-fu-of b {
  color: var(--text);
  font-weight: 600;
}
.obs-fu-of-text {
  margin-top: 2px;
  color: var(--text);
  white-space: pre-wrap;
}
.obs-fu-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.obs-fu-chip {
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--surface);
  font-family: var(--font-base);
  font-size: var(--text-sm, 13px);
  color: var(--text);
  cursor: pointer;
}
.obs-fu-chip:hover:not(.on) {
  background: var(--overlay-hover);
}
.obs-fu-chip.on {
  border-color: var(--active-fill);
  background: var(--active-fill);
  color: #fff;
}
.obs-fu-chip.on[data-fu-kind='resolved'] {
  border-color: var(--score-3);
  background: var(--score-3);
}
.obs-fu-textarea {
  min-height: 84px;
}
.obs-fu-dialog .btn-primary:disabled {
  opacity: 0.45;
  cursor: default;
}
.obs-fu-form {
  padding: 12px 16px;
}
.obs-fu-form .obs-fu-chip {
  min-height: 36px;
  font-size: var(--text-base, 15px);
}
