/* ============================================================================
   F01  SETTINGS, SWITCHES AND THE SEND LOG
   The Settings screen's lines, the Automations screen's cards, and the note
   added to Integrations. Tokens only, from app.css, so both themes work.
   ============================================================================ */

/* ------------------------------------------------------------- Settings */
/* One column of closed sections (Adam, 29 Oct 2026). A grid of folded cards
   of uneven heights looked ragged. The whole header is the tap target: the
   summary takes the card's own padding, so a closed card is just its header. */
.f01-groups{display:flex;flex-direction:column;gap:10px;margin-bottom:8px}
.f01-grp > summary{display:flex;align-items:center;gap:10px;cursor:pointer;list-style:none;
  margin:-17px -19px;padding:15px 19px;border-radius:var(--r)}
.f01-grp > summary::-webkit-details-marker{display:none}
.f01-grp > summary h3{margin:0;flex:1;min-width:0}
.f01-grp-n{font-size:11.5px;color:var(--ink-3);white-space:nowrap}
/* A chevron at the end of the header: points right closed, down open. */
.f01-grp > summary::after,.f01-recent > summary::after{content:"";flex:none;width:7px;height:7px;margin:0 2px 2px 4px;
  border-right:2px solid var(--ink-3);border-bottom:2px solid var(--ink-3);transform:rotate(-45deg);transition:transform .15s}
.f01-grp[open] > summary::after,.f01-recent[open] > summary::after{transform:rotate(45deg)}
.f01-grp[open] > summary{margin-bottom:4px;border-bottom:1px solid var(--line-soft, var(--line));
  border-radius:var(--r) var(--r) 0 0}
.f01-grp > summary:focus-visible,.f01-recent > summary:focus-visible{outline:2px solid var(--lime-dim, var(--line));outline-offset:-2px}
/* Recent changes: the console's section heading, as a fold. */
.f01-recent > summary{cursor:pointer;list-style:none;align-items:center}
.f01-recent > summary::-webkit-details-marker{display:none}
.f01-recent > summary .hint{flex:1}
/* One line per setting: what it is (and where the number came from), its
   value and who changed it, then the button. Three columns on a desk. */
.f01-set{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr) auto;gap:6px 14px;align-items:start;
  padding:11px 0;border-top:1px solid var(--line-soft, var(--line))}
.f01-set:first-of-type{border-top:0}
.f01-set-l,.f01-set-v{display:flex;flex-direction:column;gap:3px;min-width:0}
.f01-set-t{font-size:13px;font-weight:600;color:var(--ink)}
.f01-set-h{font-size:11.5px;line-height:1.45;color:var(--ink-3)}
.f01-val{font-size:13px;font-weight:700;color:var(--ink);overflow-wrap:anywhere}
.f01-val.f01-unset{font-weight:500;color:var(--ink-3);font-style:italic}
.f01-who{font-size:11px;color:var(--ink-3)}
.f01-set-a{display:flex;justify-content:flex-end}
/* Admin-only for this person: readable, plainly not theirs to change. */
.f01-set.locked .f01-set-t,.f01-set.locked .f01-val{color:var(--ink-2)}
.f01-ask{font-size:11px;font-weight:700;letter-spacing:.02em;color:var(--ink-3);border:1px dashed var(--line);
  border-radius:4px;padding:3px 7px;white-space:nowrap}
.f01-now{font-size:12.5px;color:var(--ink-2);margin:0 0 12px}
/* What uses the number. "Not used yet" lines are quieter, so the eye lands on
   the ones that really drive something, and the line says why in words. */
.f01-used{font-size:11.5px;line-height:1.45;color:var(--ink-2)}
.f01-set.f01-idle .f01-used{color:var(--ink-3);font-style:italic}
.f01-set.f01-idle .f01-val{color:var(--ink-2)}
.f01-set-t .pill{margin-left:6px;vertical-align:1px}

/* ---------------------------------------------------------- Automations */
.f01-auto{background:var(--panel);border:1px solid var(--line);border-radius:var(--r);padding:15px 17px;
  display:flex;flex-direction:column;gap:7px}
.f01-auto.on{border-left:3px solid var(--lime)}
.f01-auto.err{border-left:3px solid var(--crit)}
.f01-a-h{display:flex;align-items:center;gap:10px}
.f01-a-t{font-size:14px;font-weight:700;letter-spacing:-.01em;flex:1;min-width:0}
.f01-a-d{font-size:12.5px;color:var(--ink);line-height:1.5}
.f01-a-row,.f01-a-last{font-size:12px;color:var(--ink-2);line-height:1.5;overflow-wrap:anywhere}
.f01-a-row b{color:var(--ink);font-weight:600}
.f01-a-last.none{color:var(--ink-3);font-style:italic}
.f01-a-k{display:inline-block;min-width:68px;font-size:10.5px;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;color:var(--ink-3)}
.f01-a-err{font-size:11.5px;color:var(--crit);line-height:1.45;font-weight:600;overflow-wrap:anywhere}
.f01-a-f{display:flex;align-items:center;gap:10px;flex-wrap:wrap;border-top:1px solid var(--line-soft, var(--line));
  padding-top:10px;margin-top:2px}
.f01-a-by{font-size:11px;color:var(--ink-3);flex:1;min-width:140px}
.f01-a-btns{display:flex;gap:7px;flex-wrap:wrap}
/* No switch to offer: its script does not read one yet. A plain label in the
   switch's place, not a greyed button that looks like it might work. */
.f01-nosw{font-size:11px;font-weight:600;color:var(--ink-3);border:1px dashed var(--line);border-radius:4px;
  padding:4px 8px;white-space:nowrap}
.f01-auto.nosw{border-left:3px dashed var(--line)}
.f01-warn{color:var(--warn);font-weight:600}
.f01-to{font-family:var(--mono);font-size:11.5px;overflow-wrap:anywhere}
.f01-seg{margin-left:auto}

/* --------------------------------------------------------- Integrations */
.f01-intg-note{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:14px 0 0}

@media(max-width:700px){
  /* On a phone the line stacks: what it is, then the value, then the button
     full width where a thumb finds it. */
  .f01-set{grid-template-columns:1fr;gap:6px}
  .f01-set-a{justify-content:stretch}
  .f01-set-a .btn{width:100%}
  .f01-ask{display:block;text-align:center}
  .f01-a-k{display:block;min-width:0;margin-bottom:1px}
  .f01-a-btns{width:100%}
  .f01-a-btns .btn{flex:1}
  .f01-seg{margin-left:0}
}
