@layer tokens, base, ui, shell, surface;
/* Highlights (docs/signal.md): the section (shells/highlights: section.js, list.js, detail.js, composer.js)
   and a highlight's small parts (ui/highlight.js: its row, mood chip, part, tags, faces, @ pills), which
   Activity's "Everything marked" reuses. The shells place the section: the desktop column or slide-over
   (desktop.css .gx-hl), the phone's sheet (phone.css .hl-sheet). Here it is transparent: it sits on their
   pane. Cards are glass with a mood dot; moods are tints, never fills. */
@layer shell {
  /* ---- moods: every highlight part reads its colour from --m ---------------------------------- */
  .m-like { --m: var(--mood-like); }
  .m-critique { --m: var(--mood-critique); }
  .m-question { --m: var(--mood-question); }
  .m-info { --m: var(--mood-info); }

  /* ---- the section's frame ---------------------------------------------------------------------- */
  .hl-sec { position: relative; display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; color: var(--color-ink); }
  .hl-sec__head { display: flex; flex: none; align-items: center; gap: 4px; min-height: 42px; padding: 0 7px 0 14px; }
  .hl-sec__head h2 { flex: 1; min-width: 0; font: var(--w-title) var(--t-14) / var(--lh-tight) var(--font-display); letter-spacing: var(--track-display); }
  .hl-sec__switches { display: flex; align-items: center; gap: 2px; }
  .hl-sec__switches:empty { display: none; }

  /* The phone's two switches: the eye (highlights shown on the page) and the highlighter. */
  .hl-eye {
    display: inline-grid; place-items: center; flex: none; width: var(--h-md); height: var(--h-md); border-radius: var(--r-md);
    color: var(--color-ink); transition: background var(--d) var(--ease), color var(--d) var(--ease);
  }
  .hl-eye:hover { background: var(--s-spot), var(--s-tint-2); }
  .hl-eye.is-off { color: var(--color-ink-faint); }
  .hl-eye svg { width: 16px; height: 16px; }
  .hl-pen {
    display: inline-flex; align-items: center; gap: 6px; flex: none; height: var(--h-md); padding: 0 10px 0 8px; border-radius: var(--r-md);
    background: var(--s-tint-2); color: var(--color-ink-secondary); font-size: 12.5px; font-weight: 500; white-space: nowrap;
    transition: background var(--d) var(--ease), color var(--d) var(--ease), box-shadow var(--d) var(--ease), transform var(--d-fast) var(--ease);
  }
  .hl-pen svg { width: 15px; height: 15px; }
  .hl-pen:hover { background: var(--s-spot), var(--s-tint-3); color: var(--color-ink); }
  .hl-pen:active { transform: scale(var(--press)); }
  /* On: live, the act fill. On but nothing to draw on here: an act ring, waiting. */
  .hl-pen.is-on { background: var(--color-accent-fill); color: var(--color-on-accent); box-shadow: var(--s-act-rim); }
  .hl-pen.is-on:hover { background: var(--s-spot-lit), var(--color-accent-fill); }
  .hl-pen.is-waiting { background: var(--s-glass); color: var(--color-ink); box-shadow: var(--s-hi), 0 0 0 1px color-mix(in srgb, var(--color-accent-fill) 45%, transparent); }
  .hl-pen[aria-disabled="true"] { opacity: 0.45; cursor: default; }
  .hl-pen[aria-disabled="true"]:hover { background: var(--s-tint-2); color: var(--color-ink-secondary); }
  .hl-pen[aria-disabled="true"]:active { transform: none; }

  /* A draft holds the section on its thing: one line says what it's on, and how to let go. */
  .hl-sec__follow {
    display: flex; flex: none; align-items: center; gap: 6px; min-width: 0; overflow: hidden;
    margin: 0 10px 4px; padding: 6px 9px; border-radius: var(--r-lg); background: var(--s-tint-1);
    font-size: var(--t-12); color: var(--color-ink-secondary); white-space: nowrap;
  }
  .hl-sec__follow.is-held { flex-wrap: wrap; white-space: normal; }
  .hl-sec__follow-k { flex: none; font-size: 11.5px; font-weight: 500; color: var(--color-ink-faint); }
  .hl-sec__follow-v { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 500; color: var(--color-ink); }
  .hl-sec__held { flex-basis: 100%; font-size: 11.5px; line-height: var(--lh); color: var(--color-ink-faint); }

  .hl-sec__body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 4px 10px 20px; }

  /* A thing's icon: a tint square. */
  .hl-fav { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: var(--r-md); background: var(--s-tint-2); color: var(--color-ink-secondary); }
  .hl-fav--xs { width: 16px; height: 16px; border-radius: var(--r-xs); }

  /* ---- the list --------------------------------------------------------------------------------- */
  .hl-list { display: flex; flex-direction: column; gap: 10px; }
  .hl-head { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 2px 0 2px 2px; }
  .hl-head__words { display: flex; flex: 1; flex-direction: column; min-width: 0; }
  .hl-head b, .hl-head small { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hl-head b { font-size: var(--t-13); font-weight: 600; line-height: 1.3; }
  .hl-head small { font-size: var(--t-11); color: var(--color-ink-faint); }
  .hl-new { flex: none; }

  /* The sides (your tank · Community; Visitors · your tank): a segmented track the width of the column. */
  .hl-sides { display: flex; gap: 2px; padding: 2px; border-radius: var(--r-lg); background: var(--s-tint-2); }
  .hl-sides > button {
    display: inline-flex; flex: 1 1 0; align-items: center; justify-content: center; gap: 5px; min-width: 0;
    height: 24px; padding: 0 8px; border-radius: var(--r-sm);
    font-size: var(--t-12); font-weight: 500; color: var(--color-ink-faint); white-space: nowrap; overflow: hidden;
    transition: background var(--d) var(--ease), color var(--d) var(--ease), box-shadow var(--d) var(--ease);
  }
  .hl-sides > button:hover { color: var(--color-ink); }
  .hl-sides > button.is-on { background: var(--color-surface-raised); color: var(--color-ink); box-shadow: var(--e-raise); }
  .hl-sides > button svg { width: 13px; height: 13px; flex: none; }
  .hl-sides em { font: 500 var(--t-10) var(--font-mono); font-style: normal; font-variant-numeric: tabular-nums; color: var(--color-ink-faint); }
  /* Visitor highlights waiting for you: needs you, in the measure. */
  .hl-dot-new {
    display: inline-grid; place-items: center; height: 16px; padding: 0 5px; border-radius: var(--r-xs);
    background: var(--color-measure-wash); color: var(--color-measure-text); font-size: var(--t-10); font-weight: 600; font-style: normal;
  }

  /* Visitor highlights on a link: a glass card with its switch. */
  .hl-vis {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 8px 8px 8px 11px; border-radius: var(--r-lg); background: var(--s-glass); box-shadow: var(--e-flat); font-size: var(--t-12);
  }
  .hl-vis > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .hl-vis b { font-weight: 500; }
  .hl-vis small { font-size: var(--t-11); line-height: 1.4; color: var(--color-ink-faint); }

  .hl-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
  .hl-hidden { display: flex; align-items: center; gap: 6px; font-size: var(--t-12); color: var(--color-ink-faint); }
  .hl-hidden svg { flex: none; }
  .hl-hidden .hl-lnk { margin-left: 2px; }

  /* ---- moods: a chip, and the toggles that filter or pick one ---------------------------------- */
  .hl-moods { display: flex; flex-wrap: wrap; gap: 4px; }
  .hl-mood {
    display: inline-flex; align-items: center; gap: 5px; flex: none; height: var(--h-sm); padding: 0 8px 0 7px; border-radius: var(--r-sm);
    background: color-mix(in srgb, var(--m, var(--color-ink-faint)) 12%, transparent);
    font-size: 11.5px; font-weight: 500; color: var(--color-ink); white-space: nowrap;
  }
  .hl-mood svg { width: 12px; height: 12px; color: var(--m, var(--color-ink-faint)); }
  button.hl-mood { background: var(--s-tint-2); color: var(--color-ink-secondary); transition: background var(--d) var(--ease), color var(--d) var(--ease), box-shadow var(--d) var(--ease); }
  button.hl-mood:hover { background: var(--s-spot), var(--s-tint-3); color: var(--color-ink); }
  button.hl-mood.is-on { background: color-mix(in srgb, var(--m) 14%, transparent); color: var(--color-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--m) 50%, transparent); }

  /* ---- Geist's temporary highlights: a quiet well, numbered like the marks on the page ---------- */
  .hl-tmp { display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: var(--r-lg); background: var(--s-tint-1); box-shadow: inset 0 0 0 1px var(--s-edge); }
  .hl-tmp > small { display: flex; align-items: flex-start; gap: 6px; padding: 0 2px 4px; font-size: var(--t-11); line-height: 1.4; color: var(--color-ink-faint); }
  .hl-tmp > small svg { flex: none; margin-top: 2px; }
  .hl-tmp__row { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto auto; gap: 8px; align-items: center; min-height: var(--h-md); padding: 3px 2px; }
  .hl-tmp__n {
    display: grid; place-items: center; width: 18px; height: 18px; border-radius: var(--r-round);
    background: var(--color-ink); color: var(--color-bg); font: 600 var(--t-10) / 1 var(--font-mono); font-variant-numeric: tabular-nums;
    transition: transform var(--d-fast) var(--ease);
  }
  .hl-tmp__n:active { transform: scale(var(--press)); }
  .hl-tmp__words { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
  .hl-tmp__words b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-13); font-weight: 600; }

  /* ---- a highlight's card (hlRow) --------------------------------------------------------------- */
  .hl-rows { display: flex; flex-direction: column; gap: 6px; }
  .hl-row {
    display: grid; grid-template-columns: 6px minmax(0, 1fr) auto; gap: 10px; align-items: start; width: 100%;
    padding: 10px 10px 10px 12px; border-radius: var(--r-lg);
    background: var(--s-glass); box-shadow: var(--e-flat); color: var(--color-ink); text-align: left;
    transition: background var(--d) var(--ease), box-shadow var(--d) var(--ease);
  }
  .hl-row:hover { background: var(--s-spot), var(--s-glass-strong); }
  /* The one open on the page: ringed in its mood. */
  .hl-row.is-focus { box-shadow: var(--s-hi), 0 0 0 1px color-mix(in srgb, var(--m) 55%, transparent), 0 0 18px color-mix(in srgb, var(--m) 14%, transparent); }
  /* The mood: a 6 px dot with a soft glow of its colour, on the quote's first line. */
  .hl-row__mood { width: 6px; height: 6px; margin-top: 6px; border-radius: var(--r-round); background: var(--m); box-shadow: 0 0 8px color-mix(in srgb, var(--m) 70%, transparent); }
  .hl-row__mood svg { display: none; }
  .hl-row__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .hl-row__main b { font-size: var(--t-13); font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
  .hl-row__body { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: var(--t-12); line-height: var(--lh); color: var(--color-ink-secondary); }
  .hl-row__main small { font-size: var(--t-11); color: var(--color-ink-faint); }
  .hl-row__meta { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
  .hl-row__meta:empty { display: none; }
  .hl-row__count { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; padding-top: 1px; }
  .hl-row__count > span:not(.hl-row__ask) {
    display: inline-flex; align-items: center; gap: 3px;
    font: 500 var(--t-11) var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: 0; color: var(--color-ink-faint);
  }
  /* Add to Assistant: shown on hover or focus (always on touch screens). */
  .hl-row__ask {
    display: grid; place-items: center; width: 24px; height: 24px; margin: -4px -4px 0 0; border-radius: var(--r-md);
    color: var(--color-ink-secondary); opacity: 0; transition: opacity var(--d) var(--ease), background var(--d) var(--ease), color var(--d) var(--ease);
  }
  .hl-row:is(:hover, :focus-within) .hl-row__ask, .hl-row__ask:focus-visible { opacity: 1; }
  .hl-row__ask:hover { background: var(--s-spot), var(--s-tint-3); color: var(--color-ink); }
  @media (hover: none) { .hl-row__ask { opacity: 1; } }
  .hl-from { font-weight: 400; color: var(--color-ink-faint); }

  /* The part it points at. */
  .hl-tgt {
    display: inline-flex; align-items: center; gap: 4px; min-width: 0; max-width: 100%; height: 20px; padding: 0 6px; border-radius: var(--r-sm);
    background: var(--s-tint-2); font-size: var(--t-11); font-weight: 500; font-variant-numeric: tabular-nums; color: var(--color-ink-secondary); white-space: nowrap;
  }
  .hl-tgt > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .hl-tgt > svg { flex: none; color: var(--color-ink-faint); }
  .hl-tgt--big { height: var(--h-sm); padding: 0 8px 0 7px; font-size: var(--t-12); }

  /* Tags under a card's title. Done is act; waiting on you and a changed part are the measure. */
  .hl-tag {
    display: inline-flex; align-items: center; gap: 3px; flex: none; height: 18px; padding: 0 6px; border-radius: var(--r-xs);
    background: var(--s-tint-2); font-size: var(--t-11); font-weight: 500; color: var(--color-ink-secondary); white-space: nowrap;
  }
  .hl-tag--ok { background: var(--color-wash); color: var(--color-accent-text); }
  .hl-tag--new, .hl-tag--warn { background: var(--color-measure-wash); color: var(--color-measure-text); }
  .hl-tag--where { max-width: 220px; overflow: hidden; color: var(--color-accent-text); cursor: pointer; transition: background var(--d) var(--ease); }
  .hl-tag--where > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .hl-tag--where > svg { flex: none; }
  .hl-tag--where:hover { background: var(--s-tint-4); }

  /* Empty: a faint line, no pictures. */
  .hl-empty { display: grid; justify-items: start; gap: 8px; padding: 12px 2px; font-size: var(--t-13); line-height: var(--lh); color: var(--color-ink-faint); }
  .hl-empty > svg { display: none; }
  .hl-empty p { max-width: 300px; }
  .hl-empty b { font-weight: 500; color: var(--color-ink-secondary); }
  .hl-none { padding: 2px 0 4px; font-size: var(--t-12); color: var(--color-ink-faint); }

  /* ---- people and @ pills ----------------------------------------------------------------------- */
  /* A face: initials tinted in the person's own hue (a hue tints, never fills). */
  .hl-av {
    display: inline-grid; place-items: center; flex: none; width: var(--s, 22px); height: var(--s, 22px); overflow: hidden; border-radius: var(--r-round);
    background: color-mix(in srgb, var(--av, var(--color-ink-faint)) 18%, var(--color-surface-raised));
    color: color-mix(in srgb, var(--av, var(--color-ink-faint)) 82%, var(--color-ink));
    font: 600 calc(var(--s, 22px) * 0.42) / 1 var(--font-sans); letter-spacing: 0; text-transform: uppercase;
  }
  .hl-av--geist { background: var(--s-glass); box-shadow: var(--e-flat); color: var(--color-ink); }
  .hl-at {
    display: inline-flex; align-items: center; gap: 4px; max-width: 100%; height: 19px; padding: 0 6px 0 2px; margin: 0 1px; border-radius: var(--r-sm);
    background: var(--s-tint-2); color: var(--color-ink); font-size: var(--t-12); font-weight: 500; line-height: 1; white-space: nowrap; vertical-align: 1px;
    transition: background var(--d) var(--ease);
  }
  .hl-at:hover { background: var(--s-tint-4); }
  .hl-at--place { padding-left: 5px; color: var(--color-accent-text); }

  /* ---- links in the section --------------------------------------------------------------------- */
  .hl-lnk {
    display: inline-flex; align-items: center; gap: 4px; font-size: var(--t-12); font-weight: 500; line-height: 1.3; color: var(--color-accent-text);
    text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color var(--d) var(--ease);
  }
  .hl-lnk:hover { text-decoration-color: currentColor; }
  /* Back to the list: a quiet small button. */
  .hl-back {
    display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; height: 24px; padding: 0 8px 0 4px; margin: 0 0 6px -4px; border-radius: var(--r-sm);
    font-size: var(--t-12); font-weight: 500; color: var(--color-ink-secondary); transition: background var(--d) var(--ease), color var(--d) var(--ease);
  }
  .hl-back:hover { background: var(--s-spot), var(--s-tint-2); color: var(--color-ink); }
  .hl-back svg { width: 14px; height: 14px; }

  /* ---- one highlight ---------------------------------------------------------------------------- */
  .hl-detail { display: flex; flex-direction: column; }
  .hl-d-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .hl-aud { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 500; color: var(--color-ink-faint); }
  .hl-aud--c { color: var(--color-accent-text); }
  .hl-d-title { margin: 10px 0 6px; font: var(--w-title) var(--t-16) / 1.3 var(--font-display); letter-spacing: var(--track-display); overflow-wrap: anywhere; }
  .hl-d-by { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; font-size: var(--t-12); color: var(--color-ink-secondary); }
  .hl-d-by .hl-by__name { font-weight: 500; color: var(--color-ink); }
  .hl-via { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: -4px 0 10px; font-size: var(--t-12); color: var(--color-ink-secondary); }
  .hl-gone {
    display: flex; gap: 8px; padding: 9px 11px; border-radius: var(--r-lg); background: var(--color-measure-wash);
    font-size: var(--t-12); line-height: var(--lh); color: var(--color-ink-secondary);
  }
  .hl-gone > svg { flex: none; margin-top: 2px; color: var(--color-measure-text); }
  .hl-gone b { font-weight: 500; color: var(--color-ink); }
  .hl-gone q { display: block; margin-top: 6px; font: 15px / 1.4 var(--font-serif); color: var(--color-ink); }
  /* Jump to the part: it reads like the marked words on the page, a mood tint and a 1 px mood underline. */
  .hl-d-jump {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: var(--h-lg); padding: 5px 9px 5px 5px;
    border-radius: var(--r-sm);
    background: color-mix(in srgb, var(--m) 10%, transparent); box-shadow: inset 0 -1px 0 var(--m);
    font-size: var(--t-12); font-weight: 500; color: var(--color-ink-secondary); transition: background var(--d) var(--ease), color var(--d) var(--ease);
  }
  .hl-d-jump:hover { background: var(--s-spot), color-mix(in srgb, var(--m) 16%, transparent); color: var(--color-ink); }
  .hl-d-jump > .hl-tgt { min-width: 0; background: var(--s-glass); box-shadow: var(--e-flat); }
  .hl-d-jump > span:last-child { flex: none; white-space: nowrap; }
  .hl-d-desc { margin: 12px 0 2px; font-size: 13.5px; line-height: var(--lh-read); overflow-wrap: anywhere; }
  .hl-task {
    display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 8px 8px 8px 11px;
    border-radius: var(--r-lg); background: var(--s-glass); box-shadow: var(--e-flat);
  }
  .hl-task > svg { flex: none; color: var(--color-ink-faint); }
  .hl-task.is-done > svg { color: var(--color-accent-text); }
  .hl-task > span { display: flex; flex: 1; flex-direction: column; gap: 1px; min-width: 0; }
  .hl-task b { font-size: var(--t-13); font-weight: 500; }
  .hl-task small { font-size: var(--t-11); line-height: 1.4; color: var(--color-ink-faint); }
  .hl-d-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
  .hl-d-actions .btn.is-on svg { color: var(--mood-star); }
  .hl-trust { display: flex; align-items: flex-start; gap: 5px; margin: -4px 0 14px; font-size: var(--t-11); line-height: 1.4; color: var(--color-ink-faint); }
  .hl-trust svg { flex: none; margin-top: 2px; }
  .hl-d-replies { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 6px; font: 500 var(--t-12) var(--font-sans); letter-spacing: 0; color: var(--color-ink-faint); }
  .hl-d-replies em { font: 500 var(--t-11) var(--font-mono); font-style: normal; font-variant-numeric: tabular-nums; }

  /* Replies: indented under a 1 px edge; the answer's edge is act. */
  .hl-rp { display: flex; gap: 8px; margin-left: 10px; padding: 6px 0 6px 12px; box-shadow: inset 1px 0 0 var(--s-edge-2); }
  .hl-rp__main { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
  .hl-rp small { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: var(--t-11); color: var(--color-ink-faint); }
  .hl-rp small b { font-weight: 500; color: var(--color-ink-secondary); }
  .hl-rp p { font-size: var(--t-13); line-height: 1.5; overflow-wrap: anywhere; }
  .hl-rp.is-answer { border-radius: 0 var(--r-md) var(--r-md) 0; background: color-mix(in srgb, var(--color-accent-text) 6%, transparent); box-shadow: inset 1px 0 0 var(--color-accent-text); }
  .hl-rp.is-answer + .hl-rp { margin-top: 2px; }

  /* ---- the chat box as a field (ui/composer.js): a well like .input; no tray; its @ menu opens below --- */
  .hl-field.assistant-composer {
    margin-top: 8px; padding: 7px 5px 6px 10px; border-radius: var(--r-lg);
    background: var(--s-tint-2); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
    transition: background var(--d) var(--ease), box-shadow var(--d) var(--ease);
  }
  .hl-field.assistant-composer:hover { background: var(--s-tint-3); }
  .hl-field.assistant-composer:focus-within { background: var(--s-glass-strong); box-shadow: var(--e-focus); }
  .hl-field > .chat__tray { display: none; }
  .hl-field .chat__input { font-size: var(--t-13); }
  .hl-desc .chat__send { display: none; }
  .hl-desc .chat__input { min-height: calc(1.45em * 2); }
  .hl-field .mention-menu { top: calc(100% + 4px); bottom: auto; max-height: 220px; overflow: auto; }

  /* ---- the form (a new highlight, pinning one, editing yours): a glass card ------------------------ */
  .hl-compose {
    display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px;
    border-radius: var(--r-xl); background: var(--s-glass); box-shadow: var(--e-float);
  }
  .hl-compose > .hl-d-title { margin: 2px 0 8px; }
  .hl-part { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 4px; }
  .hl-part__note { font-size: var(--t-11); line-height: 1.4; color: var(--color-ink-faint); }
  .hl-fld { display: flex; flex-direction: column; gap: 5px; margin: 7px 0; }
  .hl-fld > span { font-size: var(--t-12); font-weight: 500; color: var(--color-ink-secondary); }
  .hl-fld > .seg { align-self: flex-start; }
  .hl-fld .hl-field.assistant-composer { margin-top: 0; }
  .hl-input {
    width: 100%; min-width: 0; height: var(--h-lg); padding: 0 10px; border: 0; border-radius: var(--r-lg);
    background: var(--s-tint-2); color: var(--color-ink); font-size: var(--t-13); font-weight: 500; outline: none;
    transition: background var(--d) var(--ease), box-shadow var(--d) var(--ease);
  }
  .hl-input:hover { background: var(--s-tint-3); }
  .hl-input:focus, .hl-input:focus-visible { background: var(--s-glass-strong); box-shadow: var(--e-focus); outline: none; }
  .hl-fld-note { font-size: var(--t-11); line-height: 1.4; color: var(--color-ink-faint); }
  .hl-error { margin: 4px 0; font-size: var(--t-12); color: var(--color-danger); }
  /* Actions on the right, quiet then primary. */
  .hl-go { display: flex; flex-direction: row-reverse; justify-content: flex-start; gap: 6px; margin-top: 8px; }
}
