  /* Page-specific only. Everything reusable lives in theme-v2.css.

     login.js hides individual inputs by id -- setup-token is shown only when
     remote first-run setup needs one. These two rules make the surrounding
     label and row disappear with the input, so a hidden field never leaves an
     orphaned label behind. :has() is already relied on by index.html, so this
     adds no new browser requirement. */
  .fgroup:has(> input[hidden]),
  .fgroup:has(> .pw-wrap > input[hidden]){display:none;}
  .lg-links:has(#forgot[hidden]) .linkbtn{display:none;}
  /* The first-run note on the setup view. Deliberately NOT .err: it reports a
     change, not a failure, so it carries the body colour rather than the
     danger one and only the accent rule marks it out. */
  .lg-note{font-size:var(--fs-cap);color:var(--text-2);line-height:1.55;
    border-left:2px solid var(--accent);padding:2px 0 2px 13px;margin:0 0 22px;}
  .err{font-size:var(--fs-cap);color:var(--danger);min-height:16px;margin-top:10px;}
  .ok{font-size:var(--fs-cap);color:var(--success);min-height:16px;margin-top:8px;}
  #loading-view{display:flex;align-items:center;gap:10px;font-size:var(--fs-cap);color:var(--text-3);}
  #loading-view .sp{width:14px;height:14px;border-radius:50%;border:2px solid var(--border-strong);
    border-top-color:var(--accent);animation:cairn-spin .8s linear infinite;flex:none;}
  @keyframes cairn-spin{to{transform:rotate(360deg)}}
  @media (prefers-reduced-motion:reduce){#loading-view .sp{animation:none;}}
  /* The small print under the setup password field and under the
     acknowledgements: the same note treatment, twice on the same view. Only
     the one inside a field group carries the gap to the control above it. */
  .setup-note{font-size:var(--fs-micro);color:var(--text-3);line-height:1.5;}
  .fgroup .setup-note{margin-top:6px;}
  /* The installation acknowledgements on the first-run setup view. Each row is
     a checkbox beside text that wraps to several lines, so the box aligns to
     the first line rather than to the middle of the block. */
  .ack-set{border:1px solid var(--border);border-radius:var(--r2);padding:12px;display:grid;gap:10px;}
  .ack-set legend{padding:0 6px;font-size:var(--fs-small);font-weight:600;}
  .ack-set label{display:flex;gap:8px;align-items:flex-start;}
  .ack-list{display:grid;gap:10px;}
