/* ================= THE RICH-TEXT TOOLBAR =================
   Styles JS/features/rich-text-toolbar.js (Notes, team-task editor, future adopters). Nothing
   hangs off `.alt-app` or a page class: a future host may lack both and the `--a-*` scale.
   Placement is the host's job (`.a-fmt-host`, alt-notes.css). Not `.a-rte`: that is alt-tasks.css's task-drawer textarea. */

/* The box the bar mounts into — richTextToolbarMount() appends it to whatever element the host
   hands it, so this host element may not impose a width of its own. */
/* The bar pins to the top of whatever scrolls its body (Notes: .a-editor-split; a dragged body scrolls
   itself, the bar sits outside it). Sticky is a no-op in a short box. Opaque, and under popovers. */
.a-fmt-host{
  min-width:0; position:sticky; top:0; z-index:var(--z-sticky, 20);
  background:var(--a-bg, var(--bg));
}
/* A comment composer's bar is part of its box, never pinned. */
.rt-composer .a-fmt-host,
.a-comment-b .a-fmt-host{ position:static; }

/* ================= Every token carries a fallback =================
   Each colour is `var(--a-raised, var(--panel-2))`: the Suite role, then the classic alias
   with the same meaning (pairs declared in CSS/alt/alt-tokens.css), so the fallback matches in
   both themes. Current hosts all load `--a-*`; it is kept for future adopters. */

/* ---------- the row ----------
   One row, enforced not hoped for — `flex-wrap:wrap` let this bar reach 146px (three rows) on a
   330px editor. rtFit() folds the least-used groups into "More formatting" until the row fits,
   so nothing is hidden behind a scrollbar nobody looks for. */
.a-fmt{
  display:flex; align-items:center; gap:var(--a-2, 8px); flex-wrap:nowrap; overflow:hidden;
  /* No margin — where the bar sits is the host's answer (rule 2, above). */
  padding:var(--a-2, 8px); border-radius:var(--a-r, 9px);
  background:var(--a-raised, var(--panel-2)); border:1px solid var(--a-line-soft, var(--border-soft));
}
/* ---------- When one row is not enough ----------
   `.nofold`: no menu to fold into (page without JS/alt/alt-layers.js, e.g. team_board.html).
   `.wrapped`: folding is exhausted and it still doesn't fit (the More button itself clipped at
   320px). Both wrap instead of clipping a control invisibly. */
.a-fmt.nofold,
.a-fmt.wrapped{ flex-wrap:wrap; overflow:visible; row-gap:var(--a-1, 4px); }
.a-fmt-g{ display:flex; align-items:center; gap:2px; }
.a-fmt-g + .a-fmt-g{
  padding-left:var(--a-2, 8px); border-left:1px solid var(--a-line, var(--border));
}
.a-fmt-b{
  display:inline-flex; align-items:center; justify-content:center; gap:var(--a-sp-6, 6px);
  min-width:var(--a-ctl-sm, 26px); height:var(--a-ctl-sm, 26px); padding:0 4px; border-radius:var(--a-r-sm, 6px);
  border:1px solid transparent; background:transparent; color:var(--a-dim, var(--text-dim));
  font-family:var(--app-font); font-size:var(--a-fs-ctl-sm); font-weight:var(--a-fw-ctl); line-height:var(--a-lh-ctl); cursor:pointer;
}
.a-fmt-b{ white-space:nowrap; }
.a-fmt-b.wide{ padding:0 9px; flex:none; }
.a-fmt-b:hover{ background:var(--a-panel, var(--panel)); color:var(--a-text, var(--text)); border-color:var(--a-line, var(--border)); }
/* The bar clips its own overflow, so the ring sits inside the box (DS-36: inset only where an ancestor clips). */
.a-fmt-b:focus-visible{ outline:var(--a-focus, 2px solid var(--focus-ring)); outline-offset:var(--a-focus-inset, -2px); }
.a-fmt-b.on{ background:var(--a-blue-soft, var(--accent-soft)); border-color:var(--a-blue, var(--accent)); color:var(--a-blue-text, var(--accent-text)); }
.a-fmt-b svg{ width:15px; height:15px; }
.a-fmt-b .cv{ font-size:var(--a-fs-11); opacity:.7; }
.a-fmt-b sub{ font-size:var(--a-fs-11); }
/* The swatch says what the caret is sitting in — the only part of colour that fits on a button.
   Borrows the shared rt-* tokens, so it is the same colour the text will be, in both themes. */
.a-fmt-sw{
  width:11px; height:11px; border-radius:50%; border:1px solid var(--a-line-strong, var(--border-strong));
  background:currentColor; display:inline-block;
}
.a-fmt-sw.hi{ background:transparent; }
.a-fmt-folded{ font-size:var(--a-fs-12); font-weight:400; line-height:var(--a-lh-ui); color:var(--a-faint, var(--text-faint)); padding-left:4px; }
/* The three selects (paragraph style, font, size) sit on the same row at the same ladder height as the
   buttons (--a-ctl-sm), so a 32px control never sits beside a 26px one. Native selects, not menus: the reader
   sees what's in force without opening anything. */

/* ================= One select (DS-38): ladder height, 12/400 at sm, the drawn caret, field ground and edge =================
   No `!important` and no height from a host. The two host rules that used to be outranked this way (the
   `#taskModal .a-select{height:auto}` reset in alt-team.css and the select padding on `#adminModal`) are theirs to
   remove, not this file's to beat. Background is longhands so a host shorthand can't reset the caret; the caret is
   drawn here, so the platform arrow is switched off. `.a-fmt select.a-fmt-s` (0,2,1) outranks `.a-select` and
   `.te-core select` without an id. */
.a-fmt select.a-fmt-s{
  flex:0 0 auto; min-width:0; cursor:pointer;
  height:var(--a-ctl-sm, 26px);
  padding:0 24px 0 10px;                        /* 24px on the right is the caret's room */
  font:400 var(--a-fs-ctl-sm)/var(--a-lh-ctl) var(--a-body, var(--app-font, system-ui, -apple-system, sans-serif));
  border-radius:var(--a-r-sm, 6px);
  border:1px solid var(--a-ctl-edge, var(--a-line-strong, var(--border-strong)));
  color:var(--a-text, var(--text));
  -webkit-appearance:none; appearance:none;
  background-color:var(--a-field-bg, var(--a-bg, var(--bg)));
  background-image:linear-gradient(45deg, transparent 50%, currentColor 50%),
                   linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:calc(100% - 11px) 50%, calc(100% - 7px) 50%;
  background-size:4px 4px, 4px 4px;
  background-repeat:no-repeat;
}
.a-fmt select.a-fmt-s:focus-visible{ outline:var(--a-focus, 2px solid var(--focus-ring)); outline-offset:var(--a-focus-inset, -2px); }
.a-fmt-s.style{ width:102px; }
.a-fmt-s.family{ width:88px; }
.a-fmt-s.size{ width:82px; }
/* A native option list is drawn by the platform and does not inherit the panel's colours —
   named here to keep the popup legible in dark mode, where the UA default is white on white. */
.a-fmt-s option{ background:var(--a-panel, var(--panel)); color:var(--a-text, var(--text)); }

/* ================= The comment composer =================
   The editable box under the bar, in the same stylesheet so adopters load one file. Tokens
   carry the same fallbacks as above. */

/* ---------- the column ----------
   Bar and box read as one control (squared edges, shared border). Descendant, not child:
   richTextToolbarMount() lets a host nest the bar at any depth, so `>` would round the join
   on some pages. */
.rt-composer{ display:flex; flex-direction:column; min-width:0; }
.rt-composer .a-fmt.composer{ border-bottom-left-radius:0; border-bottom-right-radius:0; }
/* Keyed on `:has(.a-fmt)`: a read-only note composer omits the bar, and a rule on
   `.rt-composer .rt-input` alone left the box open on its top side. `.rt-input` closes its
   own box whenever no bar sits above it. */
.rt-composer:has(.a-fmt) .rt-input{ border-top-left-radius:0; border-top-right-radius:0; border-top:0; }

/* ---------- the bar over a comment box ----------
   Tighter than the document bar it is the same bar as — a reply box is one of many in a
   scrolling thread, and the preset has already taken five groups off. */
.a-fmt.composer{ padding:4px var(--a-2, 8px); gap:var(--a-1, 4px); }
.a-fmt.composer .a-fmt-g + .a-fmt-g{ padding-left:var(--a-1, 4px); }

/* ---------- the editable box ----------
   A contenteditable styled like the <textarea> it replaces: `min-height` (no `rows`), growing
   with content. The placeholder needs two selectors because an emptied contenteditable holds
   `<br>` (or `<p><br></p>`), so `:empty` alone loses the hint once the box is cleared. */
.rt-input{
  min-height:64px; max-height:40vh; overflow:auto; min-width:0;
  padding:var(--a-sp-8, 8px) 10px;
  border:1px solid var(--a-ctl-edge, var(--a-line-strong, var(--border-strong))); border-radius:var(--a-r-sm, 6px);
  background:var(--a-field-bg, var(--a-bg, var(--bg))); color:var(--a-text, var(--text));
  font:400 var(--a-fs-13)/var(--a-lh-body) var(--a-body, var(--app-font, system-ui, -apple-system, sans-serif));
  cursor:text; word-break:break-word; overflow-wrap:anywhere;
}
/* An open comment edit grows to fit its content instead of scrolling at 40vh.
   `.a-comment-b` reaches only an open edit, never a new comment box
   (`.comment-add-row .rt-input` keeps its ceiling). The container (`.comments-list` or
   `.a-comments`) decides the scroll. */
.a-comment-b .rt-input{ max-height:none; }
/* A locked input looks locked everywhere: an assigner who can read a comment thread but not
   post must never see an enabled composer. Unscoped on purpose, since all four composer
   surfaces share `.rt-input`. Values match alt-team.css's `.rich-text-field` rule. */
.rt-input[contenteditable="false"]{ opacity:.65; cursor:default; }

/* Read-only notice beside a locked composer; values match `.a-hint` (alt-shell.css).
   No `display` here, on purpose: it is toggled with `hidden`, and an author `display` would
   win on load order (see CSS/base.css). */
.comment-readonly-notice{ font-size:var(--a-fs-12); font-weight:400; color:var(--a-faint, var(--text-faint)); line-height:var(--a-lh-ui); }

/* The AI row sits under the bar, not inside `.a-fmt`, because the toolbar folds by measurement
   (rtFit) and this control must not fold away. Wraps rather than scrolls. Shared by the note
   editor (alt-notes.js) and the task drawer (alt-drawer.js `#dDescTools`), so it lives here
   rather than in alt-notes.css. */
.a-fmt-ai{
  display:flex; flex-flow:row wrap; align-items:center; gap:var(--a-2, 8px); margin-top:var(--a-2, 8px);
}

/* The one ring (DS-36): the box shows it, not a border-colour change. */
.rt-input:focus-visible{ outline:var(--a-focus, 2px solid var(--focus-ring)); outline-offset:var(--a-focus-offset, 2px); }
.rt-input:empty::before,
.rt-input:has(> br:only-child)::before,
.rt-input:has(> p:only-child > br:only-child)::before{
  content:attr(data-placeholder);
  color:var(--a-placeholder, var(--a-faint, var(--text-faint)));
  pointer-events:none;               /* the hint must never eat the click that focuses the box */
}
/* A browser without :has() shows the placeholder only while the box is genuinely empty — one
   state is plainer, nothing is broken. */

/* ---------- what a formatted comment looks like once it is posted ----------
   `.rt-body` is the marker commentBodyIsRich() reads. No opening margin its neighbours lack;
   a pasted table or long code line scrolls in its own box. The formatting classes (`rt-lg`,
   `rt-c-blue`, ...) live in CSS/components.css, which every renderer loads. */
/* White space is the host's answer for plain text and the wrong one for markup — a legacy body
   needs `white-space:pre-wrap` for its own newlines; a rich body's source newlines between tags
   are not paragraphs. Declared on the marker so it lands wherever the host's body element is. */
.rt-body{ white-space:normal; }
.rt-body > :first-child{ margin-top:0; }
.rt-body > :last-child{ margin-bottom:0; }
.rt-body p{ margin:0 0 .5em; }
.rt-body ul, .rt-body ol{ margin:0 0 .5em; padding-left:22px; }
.rt-body blockquote{
  margin:0 0 .5em; padding:2px 0 2px var(--a-3, 12px);
  border-left:2px solid var(--a-line-strong, var(--border-strong));
  color:var(--a-dim, var(--text-dim));
}
.rt-body pre{
  font-family:"JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  margin:0 0 .5em; padding:var(--a-2, 8px); overflow-x:auto;
  background:var(--a-raised, var(--panel-2)); border-radius:var(--a-r-sm, 6px);
}
.rt-body table{ display:block; max-width:100%; overflow-x:auto; border-collapse:collapse; }
.rt-body td, .rt-body th{ border:1px solid var(--a-line, var(--border)); padding:2px 6px; }
/* Headings in a comment are a size cue, not a document outline — a browser default h1 in a
   thread is three times the size of the sentence next to it. */
.rt-body h1{ font-size:1.35em; margin:0 0 .4em; }
.rt-body h2{ font-size:1.2em;  margin:0 0 .4em; }
.rt-body h3{ font-size:1.08em; margin:0 0 .4em; }

/* ---------- the inline editor's own actions row ----------
   `.rt-edit-actions` is unscoped on purpose: commentEditStart() (JS/components/comment-list.js)
   is the one editor for every comment surface (drawer, task panel, board). Buttons are `.a-btn`
   (CSS/alt/alt-components.css) per sys_design-system §3; `.btn` is declared per page. */
.rt-edit-actions{
  display:flex; flex-direction:row; align-items:center; gap:8px; margin-top:8px;
}
/* The edit's save slot (comment-list.js), at the row's inline end — §20f's position rule. */
.rt-edit-actions > .save-slot{ margin-left:auto; }

/* `.a-comment-b` (alt-conversation.css) sets `white-space:pre-wrap`/`overflow-wrap:anywhere` for
   comment prose, and the formatting bar inherits it when the editor replaces that element.
   Reset so labels never wrap mid-word. */
.a-comment-b .a-fmt-host,
.a-comment-b .a-fmt-host *{ white-space:nowrap; overflow-wrap:normal; word-break:normal; }

/* ---------- Link dialog chrome, for pages without alt-tasks.css ----------
   rtLink() (JS/features/rich-text-toolbar.js) builds its dialog from `.a-drawer-h/-b/-f`, whose
   rules live in CSS/alt/alt-tasks.css and CSS/alt/alt-notes.css; okrs.html and admin.html load
   neither. Scoped to `.a-link-modal`; values are `.a-drawer-h/-b/-f`'s, tokens only. */
.a-link-modal .a-drawer-h{
  display:flex; align-items:center; gap:8px; padding:var(--a-sp-12, 12px) var(--a-pad-body, 16px);
  border-bottom:1px solid var(--a-line-soft, var(--border-soft)); background:var(--a-float, var(--panel-2)); flex:0 0 auto;
}
.a-link-modal .a-drawer-b{
  flex:1 1 auto; min-height:0; overflow:auto; padding:var(--a-pad-body, 16px);
  display:flex; flex-direction:column; gap:var(--a-2, 8px);
}
.a-link-modal .a-drawer-f{
  flex:0 0 auto; padding:var(--a-sp-12, 12px) var(--a-pad-body, 16px); border-top:1px solid var(--a-line-soft, var(--border-soft));
  display:flex; flex-flow:row wrap; align-items:center; gap:8px; font-size:var(--a-fs-12); font-weight:400; line-height:var(--a-lh-ui);
  color:var(--a-faint, var(--text-faint));
}

/* ================= The emoji picker and ':' suggestions (JS/features/rich-text-emoji.js) =================
   Fixed on <body> and placed from the opener's rect, z from layerNextZ(); every colour keeps its
   classic fallback like the bar above. At phone width the picker is a bottom sheet. */
.rt-emoji{
  position:fixed; z-index:var(--z-float, 200); width:296px; max-width:calc(100vw - 16px);
  display:flex; flex-direction:column; gap:var(--a-2, 8px); padding:var(--a-sp-12, 12px);
  background:var(--a-float, var(--panel-2)); border:1px solid var(--a-line-strong, var(--border-strong));
  border-radius:var(--a-r, 9px); box-shadow:var(--a-shadow, 0 8px 24px rgba(0,0,0,.26));
  color:var(--a-text, var(--text)); font:400 var(--a-fs-13)/var(--a-lh-ui) var(--a-body, var(--app-font, system-ui, sans-serif));
}
.rt-emoji-search{
  width:100%; box-sizing:border-box; height:var(--a-ctl, 32px); padding:0 10px; border-radius:var(--a-r-sm, 6px);
  border:1px solid var(--a-ctl-edge, var(--a-line-strong, var(--border-strong))); background:var(--a-field-bg, var(--a-bg, var(--bg)));
  color:inherit; font:400 var(--a-fs-ctl)/var(--a-lh-ctl) var(--a-body, var(--app-font, system-ui, sans-serif));
}
.rt-emoji-search::placeholder{ color:var(--a-placeholder, var(--a-faint, var(--text-faint))); opacity:1; }
.rt-emoji-search:focus-visible{ outline:var(--a-focus, 2px solid var(--focus-ring)); outline-offset:var(--a-focus-offset, 2px); }
/* Tabs and cells sit in scrollers that clip, so their ring is inside the box. */
.rt-emoji-tab:focus-visible,.rt-emoji-cell:focus-visible{ outline:var(--a-focus, 2px solid var(--focus-ring)); outline-offset:var(--a-focus-inset, -2px); }
.rt-emoji-tabs{ display:flex; gap:2px; overflow-x:auto; scrollbar-width:none; }
.rt-emoji-tab{
  flex:0 0 auto; height:var(--a-ctl-sm, 26px); padding:0 9px; border:1px solid transparent; border-radius:var(--a-r-sm, 6px);
  background:transparent; color:var(--a-dim, var(--text-dim)); font-family:var(--app-font); font-size:var(--a-fs-ctl-sm); font-weight:var(--a-fw-ctl); line-height:var(--a-lh-ctl); cursor:pointer;
}
.rt-emoji-tab:hover{ background:var(--a-hover, var(--accent-soft)); color:var(--a-text, var(--text)); }
.rt-emoji-tab[aria-selected="true"]{ background:var(--a-blue-soft, var(--accent-soft)); color:var(--a-blue-text, var(--accent-text)); }
.rt-emoji-grid{
  display:grid; grid-template-columns:repeat(8, 1fr); gap:2px; height:208px; overflow-y:auto;
  align-content:start; padding:2px;
}
.rt-emoji-cell{
  height:var(--a-ctl, 32px); border:0; border-radius:var(--a-r-sm, 6px); background:transparent; cursor:pointer;
  font-size:var(--a-fs-21); line-height:var(--a-lh-ctl); padding:0;
}
.rt-emoji-cell:hover,.rt-emoji-cell.on{ background:var(--a-blue-soft, var(--accent-soft)); }
.rt-emoji-note{ grid-column:1 / -1; padding:10px 4px; color:var(--a-faint, var(--text-faint)); font-size:var(--a-fs-12); font-weight:400; line-height:var(--a-lh-ui); }
.rt-emoji-foot{ color:var(--a-faint, var(--text-faint)); font-size:var(--a-fs-12); font-weight:400; line-height:var(--a-lh-ui); }
@media (pointer:coarse){ .rt-emoji-cell{ height:var(--a-ctl-lg, 36px); } .rt-emoji-tab{ height:var(--a-ctl-lg, 36px); } }
@media (max-width:480px){
  .rt-emoji{ left:0 !important; right:0; top:auto !important; bottom:0; width:auto; max-width:none;
    border-radius:var(--a-r-lg, 14px) var(--a-r-lg, 14px) 0 0; padding-bottom:max(8px, env(safe-area-inset-bottom, 0px)); }
}

/* ':' suggestions: a listbox at the caret, same look as the @-mention list. */
.rt-emoji-ac{
  position:fixed; z-index:var(--z-float, 200); min-width:220px; max-width:min(320px, 92vw); padding:var(--a-sp-6, 6px);
  background:var(--a-float, var(--panel-2)); border:1px solid var(--a-line-strong, var(--border-strong));
  border-radius:var(--a-r, 9px); box-shadow:var(--a-shadow, 0 8px 24px rgba(0,0,0,.26));
}
.rt-emoji-opt{
  display:flex; align-items:center; gap:8px; min-height:34px; padding:9px 11px; border-radius:var(--a-r-sm, 6px); cursor:pointer;
  color:var(--a-text, var(--text)); font-size:var(--a-fs-14); font-weight:400; line-height:var(--a-lh-ui);
}
.rt-emoji-opt.on,.rt-emoji-opt:hover{ background:var(--a-blue-soft, var(--accent-soft)); color:var(--a-blue-text, var(--accent-text)); }
.rt-emoji-opt-ch{ font-size:var(--a-fs-18); line-height:var(--a-lh-ctl); }
.rt-emoji-opt-code{ margin-left:auto; color:var(--a-dim, var(--text-dim)); font-size:var(--a-fs-12); }
.rt-emoji-ac-foot{ padding:4px 8px 2px; color:var(--a-faint, var(--text-faint)); font-size:var(--a-fs-12); font-weight:400; line-height:var(--a-lh-ui); }

/* ================= The link card (JS/features/rich-text-link-card.js) =================
   Fixed on <body>, placed from the link's rect; the same surface as the emoji picker above. */
.rt-linkcard{
  position:fixed; z-index:var(--z-float, 200); width:320px; max-width:calc(100vw - 16px); box-sizing:border-box;
  display:flex; flex-direction:column; gap:var(--a-2, 8px); padding:var(--a-3, 12px);
  background:var(--a-float, var(--panel-2)); border:1px solid var(--a-line-strong, var(--border-strong));
  border-radius:var(--a-r, 9px); box-shadow:var(--a-shadow, 0 8px 24px rgba(0,0,0,.26));
  color:var(--a-text, var(--text)); font:400 var(--a-fs-13)/var(--a-lh-ui) var(--a-body, var(--app-font, system-ui, sans-serif));
}
.rt-linkcard-host{ font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rt-linkcard-url{ color:var(--a-dim, var(--text-dim)); font-size:var(--a-fs-12); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rt-linkcard-actions{ display:flex; flex-flow:row wrap; gap:var(--a-2, 8px); }
.rt-linkcard-btn{
  height:var(--a-ctl-sm, 26px); padding:0 9px; border-radius:var(--a-r-sm, 6px); cursor:pointer;
  border:1px solid var(--a-line-strong, var(--border-strong)); background:var(--a-raised, var(--panel-2));
  color:var(--a-text, var(--text)); font-family:var(--app-font); font-size:var(--a-fs-ctl-sm); font-weight:var(--a-fw-ctl); line-height:var(--a-lh-ctl);
}
.rt-linkcard-btn:hover{ background:var(--a-hover, var(--accent-soft)); }
.rt-linkcard-btn.primary{ background:var(--a-blue-soft, var(--accent-soft)); color:var(--a-blue-text, var(--accent-text)); border-color:transparent; }
.rt-linkcard-btn.danger{ background:var(--a-red-soft, var(--red-soft)); color:var(--a-red, var(--red-text)); border-color:var(--a-red, var(--red-text)); margin-left:auto; }
.rt-linkcard-btn:focus-visible,.rt-linkcard-input:focus-visible{ outline:var(--a-focus, 2px solid var(--focus-ring)); outline-offset:var(--a-focus-offset, 2px); }
/* The field's label is the eyebrow (DS-10); the input below states its own case and spacing. */
.rt-linkcard-field{ display:flex; flex-direction:column; gap:var(--a-gap-label, 6px); font-size:var(--a-fs-11); font-weight:700; line-height:var(--a-lh-tight); letter-spacing:.08em; text-transform:uppercase; color:var(--a-dim, var(--text-dim)); }
.rt-linkcard-input{
  width:100%; box-sizing:border-box; height:var(--a-ctl, 32px); padding:0 10px; border-radius:var(--a-r-sm, 6px);
  border:1px solid var(--a-ctl-edge, var(--a-line-strong, var(--border-strong))); background:var(--a-field-bg, var(--a-bg, var(--bg)));
  color:var(--a-text, var(--text)); font:400 var(--a-fs-ctl)/var(--a-lh-ctl) var(--a-body, var(--app-font, system-ui, sans-serif)); text-transform:none; letter-spacing:normal;
}
.rt-linkcard-input::placeholder{ color:var(--a-placeholder, var(--a-faint, var(--text-faint))); opacity:1; }
.rt-linkcard-hint{ color:var(--a-faint, var(--text-faint)); font-size:var(--a-fs-12); font-weight:400; line-height:var(--a-lh-ui); }
.rt-linkcard-err{
  padding:6px 8px; border-radius:var(--a-r-sm, 6px); font-size:var(--a-fs-12);
  color:var(--a-red, var(--red-text)); background:var(--a-red-soft, var(--panel-2));
  border:1px solid var(--a-red, var(--red-text));
}
@media (pointer:coarse){ .rt-linkcard-btn{ height:var(--a-ctl-lg, 36px); } .rt-linkcard-input{ height:var(--a-ctl-lg, 36px); } }
