/* ────────────────────────────────────────────────────────────────────────
 * ASCENT — Phase 10 CSS split (2026-08-20, PARALLEL_DEV_PLAN.md).
 *
 * WARNING -- READ BEFORE TOUCHING <link> TAGS IN Ascent_Dashboard.html --
 * This file is one of twelve pieces of what used to be a single 2,142-line
 * <style> block inside Ascent_Dashboard.html. The split is a byte-exact,
 * order-preserving cut -- verified by concatenating all twelve files back
 * together and diffing against the original block (identical, zero bytes
 * different). That means the CSS cascade today is unchanged from before
 * the split, PROVIDED the <link rel="stylesheet"> tags for these files
 * stay in the exact order listed in ARCHITECTURE.md's "File split in
 * Phase 10" section.
 *
 * Several rules across these files reuse the same class name with a
 * different definition in a different file (this was already true inside
 * the single original block -- see this repo's shell-duplicate-and-
 * agent-cards.css for the clearest example). Same-specificity CSS
 * resolves by *source order*: whichever rule loads last wins. Reordering
 * these <link> tags -- alphabetizing them, "cleaning up" the <head>,
 * inserting a new file in the middle -- can silently flip which rule
 * wins, with no error and no obvious symptom beyond something looking
 * subtly wrong on one tab. If you add new CSS, prefer appending a new
 * file at the END of the <link> list over inserting into this sequence.
 * ──────────────────────────────────────────────────────────────────────── */

/* Source: original Ascent_Dashboard.html lines 2018-2077 (pre-split). */
/* Shared -- Settings page styling. */

  /* ── SETTINGS PAGE ──────────────────────────────────────────── */
  /* 2026-09-05: was a bordered box with a title + description to its left
     and the save action to its right (justify-content:space-between). The
     title/description ("Account Settings") was removed as redundant now
     that Settings has gray-header top tabs like every other workflow, and
     the .s-tab-bar/.s-tab-btn section-tab row below this (also removed --
     those 8 buttons now live in ASCENT_WORKFLOW_SUBTABS.settings) went with
     it. Right-aligned since there's nothing to its left now. */
  .settings-save-bar { display:flex; align-items:center; justify-content:flex-end; padding:10px 20px; background:#fff; border:1px solid var(--border); border-radius:10px; margin-bottom:20px; gap:14px; }
  /* 2026-09-08: nested variant applied by sRelocateSaveBar() (js/shared/settings.js) when the bar is moved inside the active panel's gray .s-section card, per Mark's request. Strips the bar's own white box so it reads as part of the card instead of a second box stacked inside it -- negative margins pull it to the card's own edges (matching .s-body's 18px 20px padding), a top border stands in for the separation the box border used to provide. */
  .settings-save-bar-nested { background:transparent; border:none; border-radius:0; margin:16px -20px -18px; padding:14px 20px; border-top:1px solid var(--border); }
  .settings-save-msg { font-size:14px; color:var(--teal-600); font-weight:600; }
  .settings-save-btn { padding:9px 22px; background:var(--coral); border:none; border-radius:8px; color:#fff; font-size:14px; font-weight:700; cursor:pointer; font-family:inherit; transition:background 0.15s; }
  .settings-save-btn:hover { background:var(--coral-300); }
  .settings-save-btn:disabled { background:var(--gray); cursor:default; }
  .s-panel { display:none; }
  .s-panel.active { display:block; }
  .s-section { background:#F5F5F7; border:1px solid var(--border); border-radius:12px; margin-bottom:0; overflow:hidden; }
  .s-section-head { padding:13px 18px 12px; border-bottom:1px solid var(--border); display:flex; align-items:center; gap:10px; }
  .s-section-icon { font-size:15px; color:var(--coral); width:20px; text-align:center; flex-shrink:0; }
  .s-section-title { font-size:14px; font-weight:700; color:var(--ink); }
  .s-section-sub { font-size:13.5px; color:var(--dim); margin-top:1px; }
  .s-body { padding:18px 20px; }
  .s-grid-2 { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
  .s-grid-3 { display:grid; grid-template-columns:1fr 1fr 1fr; gap:14px; }
  .s-field { margin-bottom:14px; }
  .s-field:last-child { margin-bottom:0; }
  .s-label { display:block; font-size:13.5px; font-weight:600; color:var(--slate); margin-bottom:5px; letter-spacing:0.02em; }
  .s-input { width:100%; padding:8px 10px; border:1px solid var(--border); border-radius:7px; font-size:14px; font-family:inherit; color:var(--text); background:#fff; outline:none; transition:border-color 0.15s; }
  .s-input:focus { border-color:var(--coral); }
  .s-textarea { width:100%; padding:9px 10px; border:1px solid var(--border); border-radius:7px; font-size:14px; font-family:inherit; color:var(--text); background:#fff; outline:none; resize:vertical; min-height:80px; transition:border-color 0.15s; line-height:1.5; }
  .s-textarea:focus { border-color:var(--coral); }
  .s-toggle-row { display:flex; border:1px solid var(--border); border-radius:7px; overflow:hidden; }
  .s-toggle-btn { flex:1; padding:8px 10px; text-align:center; font-size:14px; font-weight:600; color:var(--dim); cursor:pointer; transition:all 0.15s; background:var(--off-white); border:none; font-family:inherit; white-space:nowrap; }
  .s-toggle-btn.active { background:var(--coral); color:#fff; }
  .s-toggle-btn:not(.active):hover { background:var(--coral-50); color:var(--coral); }
  .s-check-grid { display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:4px; }
  .s-check-item { display:flex; align-items:center; gap:10px; background:var(--off-white); border:1px solid var(--border); border-radius:7px; padding:9px 12px; cursor:pointer; font-size:14px; color:var(--dim); transition:border-color 0.15s; }
  .s-check-item:hover { border-color:var(--coral-300); }
  .s-check-item input { accent-color:var(--coral); width:14px; height:14px; flex-shrink:0; margin:0; cursor:pointer; }
  .s-check-item.s-checked { border-color:var(--coral); color:var(--coral); }
  .s-slider-row { display:flex; align-items:center; gap:10px; margin-top:4px; }
  .s-slider-label { font-size:13.5px; color:var(--dim); white-space:nowrap; }
  .s-slider { flex:1; accent-color:var(--coral); cursor:pointer; }
  .s-brand-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(145px, 1fr)); gap:10px; }
  .s-color-field { padding:10px 12px; border:1px solid var(--border); border-radius:9px; background:var(--off-white); }
  .s-color-label { display:block; font-size:13px; font-weight:700; color:var(--slate); text-transform:uppercase; letter-spacing:.06em; margin-bottom:7px; }
  .s-color-field-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:7px; min-height:16px; }
  .s-color-name-input { flex:1; border:none; background:none; font-size:13px; font-weight:700; color:var(--slate); text-transform:uppercase; letter-spacing:.06em; font-family:inherit; cursor:text; padding:0; outline:none; min-width:0; width:100%; }
  .s-color-name-input:focus { color:var(--ink); }
  .s-color-remove { background:none; border:none; color:var(--gray); font-size:15px; line-height:1; cursor:pointer; padding:0 0 0 6px; flex-shrink:0; }
  .s-color-remove:hover { color:var(--coral); }
  .s-add-color-btn { margin-top:8px; background:none; border:1px dashed var(--border); border-radius:8px; color:var(--dim); font-size:14px; font-weight:600; padding:7px 16px; cursor:pointer; font-family:inherit; transition:border-color 0.15s,color 0.15s; }
  .s-add-color-btn:hover { border-color:var(--coral); color:var(--coral); }
  .s-color-controls { display:flex; align-items:center; gap:8px; }
  .s-color-controls input[type=color] { width:36px; height:36px; padding:2px; border:1px solid var(--border); border-radius:7px; background:#fff; cursor:pointer; flex-shrink:0; }
  .s-color-controls input[type=text] { min-width:0; width:100%; padding:7px 8px; border:1px solid var(--border); border-radius:7px; font:600 12px var(--mono); text-transform:uppercase; }
  .s-brand-ref { display:flex; align-items:center; gap:12px; padding:12px; border:1.5px dashed var(--border); border-radius:9px; background:var(--off-white); margin-top:12px; }
  .s-brand-ref-preview { width:52px; height:52px; flex:0 0 auto; display:grid; place-items:center; overflow:hidden; border-radius:7px; background:#fff; border:1px solid var(--border); color:var(--gray); font-size:20px; }
  .s-brand-ref-preview img { width:100%; height:100%; object-fit:cover; }
  .s-brand-ref-preview .ti { color:var(--coral-500); font-size:22px; }
  .s-pill-btn { flex-shrink:0; border:1px solid var(--border); border-radius:7px; padding:7px 12px; background:#fff; color:var(--dim); font-size:13.5px; font-weight:700; cursor:pointer; font-family:inherit; white-space:nowrap; }
  .s-pill-btn:hover { border-color:var(--coral-300); color:var(--coral); }
  .s-voice-import-row { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-top:8px; }
  .s-voice-import-note { color:var(--gray); font-size:13px; line-height:1.4; }

  /* Voice Selection tab (2026-09-08) -- "s-tv-" prefix (not "s-voice-") to
     stay clear of the writing-voice sample-import classes just above,
     which already claim ".s-voice-*" for an unrelated feature (how agents'
     posts are written, not how Taylor sounds out loud). One card per
     TAYLOR_VOICES entry (js/shared/settings.js), rendered by
     sRenderTaylorVoicePanel(). Two columns (2026-09-08, Mark: "Split the
     male and female into two groups, one column for female, and one
     column for male") -- .s-tv-columns is the two-column grid,
     .s-tv-column wraps each side's title + its own .s-tv-list. This app
     has no mobile breakpoint to design around (confirmed: no @media rule
     anywhere in this file), so no stacked-single-column fallback either. */
  .s-tv-columns { display:grid; grid-template-columns:1fr 1fr; gap:20px; align-items:start; }
  .s-tv-column-title { font-size:13.5px; font-weight:700; color:var(--dim); text-transform:uppercase; letter-spacing:0.02em; margin-bottom:8px; }
  .s-tv-list { display:flex; flex-direction:column; gap:10px; }
  .s-tv-card { display:flex; align-items:center; gap:12px; border:1px solid var(--border); border-radius:9px; padding:10px 14px; background:#fff; transition:border-color 0.15s, background 0.15s; }
  .s-tv-card.selected { border-color:var(--coral); background:var(--coral-50); }
  .s-tv-play-btn { flex-shrink:0; width:34px; height:34px; border-radius:50%; border:1px solid var(--border); background:var(--off-white); color:var(--coral); font-size:14px; display:grid; place-items:center; cursor:pointer; transition:border-color 0.15s, background 0.15s; }
  .s-tv-play-btn:hover { border-color:var(--coral-300); background:var(--coral-50); }
  .s-tv-play-btn:disabled { opacity:0.5; cursor:default; }
  .s-tv-info { flex:1; min-width:0; }
  .s-tv-name-row { display:flex; align-items:center; gap:8px; }
  .s-tv-name { font-size:14px; font-weight:700; color:var(--ink); }
  .s-tv-tags { font-size:13px; color:var(--dim); margin-top:1px; }
  /* Pill "Selected" button (2026-09-09, Mark: reference screenshot showed
     an outlined coral pill -- "✓ Selected" in coral text on white/coral-
     tinted background -- rather than the solid coral-fill rectangle this
     used to be). border-radius:999px makes it a true pill at any text
     length; the selected state now matches the card's own light-coral
     treatment instead of inverting to a solid fill. */
  .s-tv-select-btn { flex-shrink:0; border:1px solid var(--border); border-radius:999px; padding:6px 16px; background:#fff; color:var(--dim); font-size:13.5px; font-weight:700; cursor:pointer; font-family:inherit; white-space:nowrap; transition:all 0.15s; }
  .s-tv-select-btn:hover { border-color:var(--coral-300); color:var(--coral); }
  .s-tv-card.selected .s-tv-select-btn { background:#fff; border-color:var(--coral); color:var(--coral); }
  .s-tv-error { color:var(--coral); font-size:13.5px; margin-top:6px; }

  /* Waveform (2026-09-09) -- replaces the pause icon inside .s-tv-play-btn
     while a sample is actually playing; bar heights are driven in real
     time from a Web Audio analyser in js/shared/settings.js
     (sTaylorVoiceRunWaveform), not a canned CSS animation. transform-
     origin:bottom + scaleY keeps every bar anchored to the same baseline
     as it grows/shrinks. */
  /* Now sits next to '.s-tv-name' (was inside '.s-tv-play-btn') --
     invisible at rest, faded in only while its voice is the one playing
     (see sTaylorVoiceShowWave/HideWave in js/shared/settings.js), so
     silent cards don't show a row of static bars. */
  .s-tv-wave-bars { display:inline-flex; align-items:flex-end; justify-content:center; gap:2px; width:16px; height:12px; opacity:0; transition:opacity 0.15s ease; flex-shrink:0; }
  .s-tv-wave-bars.active { opacity:1; }
  .s-tv-wave-bars i { display:block; width:2.5px; height:100%; background:var(--coral); border-radius:1px; transform:scaleY(0.2); transform-origin:bottom; transition:transform 0.08s linear; }

  /* Category pill filter (2026-09-09, Mark: "add the pill category
     selector shown here") -- one row above the two voice columns; the
     active pill (default "All N") uses the same solid-dark treatment as
     the reference screenshot rather than coral, so it doesn't compete
     visually with the coral "selected voice" state below it. */
  .s-tv-categories { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:16px; }
  .s-tv-cat-pill { border:1px solid var(--border); border-radius:999px; padding:7px 16px; background:#fff; color:var(--dim); font-size:14px; font-weight:600; cursor:pointer; font-family:inherit; transition:all 0.15s; }
  .s-tv-cat-pill:hover { border-color:var(--coral-300); color:var(--coral); }
  .s-tv-cat-pill.active { background:var(--ink); border-color:var(--ink); color:#fff; }


/* 2026-09-05: match the Relationships reference template's top offset above
   its coral header card (.content's 24px base padding plus 20px here = 44px
   total, same as Relationships' own .jd-view{padding:20px 0}). Settings had
   no top padding of its own before this (24px total), so its coral account-
   overview card sat 20px higher than every other workflow page -- confirmed
   with Mark 2026-09-05 (workflow header formatting pass). */
#tab-profile { padding-top: 20px; }

/* ── Settings redesign, Option A (2026-10-12) ─────────────────────────────
   Mark picked Option A from claude.ai/artifact/8aPTECRP49GrXquXqqZQBY:
   5 grouped header tabs + section pills (Ascent_Dashboard.html,
   renderWorkflowAreaPills), a page title block, coral-header cards matching
   .lw-section-coral in css/listings-workspace.css (coral-200 band,
   coral-300 rule, black title AND subtitle per the 2026-10-01 rule), and
   one sticky save bar per panel (js/shared/settings.js sRelocateSaveBar). */
.s-page-head { max-width:980px; margin-bottom:16px; display:flex; align-items:flex-start; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.s-page-head-text { min-width:0; flex:1 1 320px; }
.s-page-head-actions { flex:0 0 auto; }
.s-page-head h2 { margin:0; font-size:20px; font-weight:850; letter-spacing:-.02em; line-height:1.2; color:var(--ink); }
.s-page-head p { margin:4px 0 0; font-size:14px; line-height:1.55; color:var(--dim); max-width:640px; }
.s-panel.active { display:flex; flex-direction:column; gap:14px; max-width:980px; }
.s-section { border-radius:10px; }
.s-section-head { gap:12px; min-height:56px; padding:13px 18px; background:var(--coral-200); border-bottom:1px solid var(--coral-300); }
.s-section-icon { font-size:18px; color:var(--coral-500); width:22px; }
.s-section-title { font-size:15px; font-weight:800; color:var(--ink); }
.s-section-sub { font-size:14px; color:var(--ink); margin-top:2px; }
.s-body { padding:18px; }
.settings-save-bar.settings-save-bar-inline { margin:0; padding:0; background:none; border:0; border-radius:0; gap:12px; }
.settings-save-bar.settings-save-bar-inline[hidden] { display:none; }

/* How You Work clarity pass (2026-10-12): posting-frequency choice cards
   and per-option description lines under toggle rows. */
.s-field-hint { font-size:13.5px; color:var(--dim); margin:-2px 0 8px; }
.s-choice-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:8px; }
.s-choice { display:flex; flex-direction:column; align-items:flex-start; gap:3px; text-align:left; padding:11px 12px; border:1px solid var(--border); border-radius:9px; background:#fff; font-family:inherit; cursor:pointer; transition:border-color .15s, background .15s; }
.s-choice strong { font-size:14px; font-weight:700; color:var(--ink); }
.s-choice span { font-size:13.5px; line-height:1.4; color:var(--dim); }
.s-choice:hover { border-color:var(--coral-300); }
.s-choice.active { border-color:var(--coral-500); background:var(--coral-50); box-shadow:inset 0 0 0 1px var(--coral-500); }
.s-choice.active strong { color:var(--coral-500); }
.s-choice-hint { font-size:13.5px; color:var(--dim); margin-top:6px; min-height:16px; }

/* Platform logos on "Social platforms you use" (2026-10-12). Full brand
   color, same as social logos elsewhere in the app (Marketing tab). Brand
   hex values are the platforms' own, not Ascent palette colors. */
.s-brand-ic { font-size:17px; line-height:1; flex-shrink:0; margin-left:-2px; }
.s-brand-fb { color:#1877F2; }
.s-brand-ig { color:#E4405F; }
.s-brand-li { color:#0A66C2; }
.s-brand-tt { color:var(--ink); }
.s-brand-yt { color:#FF0000; }
.s-brand-x  { color:var(--ink); }

/* Spacing between stacked field rows (2026-10-12, Mark: Preferred lenders
   sat right under "Request reviews on"). .s-field:last-child zeroes the
   bottom margin of the last field in each grid cell, so back-to-back
   .s-grid-2/.s-grid-3 rows touched. This gives every grid row that isn't
   the last thing in its container room before the next row. */
.s-grid-2:not(:last-child), .s-grid-3:not(:last-child) { margin-bottom:18px; }

/* Tone cards with examples (2026-10-12) */
.s-tone-grid { grid-template-columns:repeat(auto-fit, minmax(160px, 1fr)); }
.s-tone-choice { position:relative; }
.s-tone-choice:focus-visible { outline:2px solid var(--coral-500); outline-offset:2px; }
.s-tone-info { display:inline-flex; align-items:center; gap:4px; margin-top:6px; padding:3px 8px 3px 6px; border:1px solid var(--border); border-radius:999px; background:#fff; color:var(--dim); font-family: inherit; cursor:pointer; }
.s-tone-info i { font-size:14px; }
.s-tone-info:hover, .s-tone-info.active { color:var(--coral-500); border-color:var(--coral-300); background:var(--coral-50); }
.s-tone-preview { margin-top:10px; padding:12px 14px; border:1px solid var(--coral-300); border-radius:9px; background:var(--coral-50); }
.s-tone-preview[hidden] { display:none; }
.s-tone-preview-head { display:flex; align-items:center; gap:8px; margin-bottom:6px; }
.s-tone-preview-head i.ti-quote { color:var(--coral-500); font-size:16px; }
.s-tone-preview-head strong { font-size:14px; color:var(--ink); }
.s-tone-preview-head span { font-size:13.5px; color:var(--dim); }
.s-tone-preview-close { margin-left:auto; display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; border:0; border-radius:6px; background:transparent; color:var(--dim); cursor:pointer; }
.s-tone-preview-close:hover { background:#fff; color:var(--ink); }
.s-tone-preview p { margin:0 0 8px; font-size:14px; line-height:1.55; color:var(--ink); }
.s-tone-preview p:last-of-type { margin-bottom:0; }
.s-tone-preview-foot { margin-top:8px; font-size:13.5px; color:var(--dim); }

/* ── Settings Option B: list + detail (2026-10-21) ─────────────────────────
   Mark picked Option B from the "Settings Redesign Options" canvas (round
   2: "use space more efficiently, we don't need so many headers and large
   buttons ... intuitive and simple"). Left list of setting groups with a
   one-line summary each; right side shows one group as compact rows
   (label left, control right). Yes/no choices are switches, multi-option
   choices are dropdowns, multi-selects are small chips, and changes save
   automatically. Scoped to #tab-profile so nothing else moves. */
#tab-profile .s-b-wrap { display:flex; flex-wrap:wrap; gap:20px 24px; align-items:flex-start; max-width:1180px; }
#tab-profile .s-b-side { flex:1 1 250px; max-width:300px; min-width:0; }
#tab-profile .s-b-list { display:flex; flex-direction:column; background:#fff; border:1px solid var(--border); border-radius:10px; overflow:hidden; }
/* Section labels: medium coral band, black text (2026-10-21, Mark: the
   gray was too subtle). Same coral-200 / coral-300 pairing as the app's
   other coral headers. */
#tab-profile .s-b-sec { padding:8px 14px; font-size:13px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--ink); background:var(--coral-200); border-top:1px solid var(--coral-300); border-bottom:1px solid var(--coral-300); }
#tab-profile .s-b-sec:first-child { border-top:0; }
#tab-profile .s-b-item { display:flex; flex-direction:column; align-items:flex-start; gap:1px; width:100%; text-align:left; padding:9px 14px; min-height:48px; border:0; border-top:1px solid #eceef1; background:#fff; cursor:pointer; font-family:inherit; }
#tab-profile .s-b-sec + .s-b-item, #tab-profile .s-b-item:first-child { border-top:0; }
#tab-profile .s-b-item:hover { background:var(--off-white); }
#tab-profile .s-b-item.active { background:var(--coral-50); }
#tab-profile .s-b-item:focus-visible { outline:2px solid var(--coral-500); outline-offset:-2px; }
#tab-profile .s-b-item-t { font-size:14px; font-weight:600; color:var(--ink); }
#tab-profile .s-b-item.active .s-b-item-t { color:#B5461F; }
#tab-profile .s-b-item-s { font-size:13.5px; line-height:1.35; color:var(--slate); max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
#tab-profile .s-b-detail { flex:999 1 520px; min-width:0; max-width:820px; }
#tab-profile .s-b-head { display:flex; flex-wrap:wrap; align-items:baseline; justify-content:space-between; gap:4px 16px; margin:2px 2px 10px; }
#tab-profile .s-b-title { margin:0; font-size:16px; font-weight:700; color:var(--ink); letter-spacing:-.01em; }
#tab-profile .s-b-saved { font-size:14px; color:var(--slate); }
#tab-profile .s-b-saved.s-b-saved-err { color:#B5461F; font-weight:600; }

/* Panels hold groups; only the picked group shows. */
#tab-profile .s-b-detail .s-panel.active { display:block; max-width:none; gap:0; }
#tab-profile .s-blk[hidden] { display:none !important; }
#tab-profile .s-rows { background:#fff; border:1px solid var(--border); border-radius:10px; }

/* Rows: label (and a short hint) on the left, control on the right. */
#tab-profile .s-row { display:flex; flex-wrap:wrap; align-items:center; gap:6px 18px; padding:8px 16px; min-height:48px; border-top:1px solid #eceef1; }
#tab-profile .s-rows > .s-row:first-child, #tab-profile .s-rows > details:first-child { border-top:0; }
#tab-profile .s-row-top { align-items:flex-start; padding-top:11px; padding-bottom:11px; }
#tab-profile .s-row-l { flex:0 0 190px; min-width:0; margin:0; font-size:14px; font-weight:600; color:var(--ink); line-height:1.35; }
#tab-profile .s-row-l .s-row-hint { margin-top:2px; font-weight:400; }
#tab-profile .s-row-hint { display:block; font-size:13.5px; line-height:1.4; color:var(--slate); }
#tab-profile .s-inline .s-row-hint, #tab-profile summary .s-row-hint { display:inline; }
#tab-profile .s-strong { font-weight:600; color:var(--teal-700); }
#tab-profile .s-row-c { flex:1 1 260px; min-width:0; display:flex; align-items:center; }
#tab-profile .s-row-stackc { flex-direction:column; align-items:flex-start; gap:6px; }
/* GCI suggestion (2026-11-11): the Annual GCI goal row's .s-row-c uses
   .s-row-stackc above to stack the input and this line. */
#tab-profile .s-gci-suggest { margin:0; max-width:380px; font-size:13.5px; line-height:1.45; color:var(--slate); }
#tab-profile .s-gci-use { color:var(--coral); font-weight:700; text-decoration:none; }
#tab-profile .s-gci-use:hover { text-decoration:underline; }
#tab-profile .s-row-full .s-row-c { flex-basis:100%; }
#tab-profile .s-inline { display:flex; align-items:center; gap:8px 12px; min-width:0; }
#tab-profile .s-inline-wrap { flex-wrap:wrap; }

/* Compact controls */
#tab-profile .s-input { height:32px; padding:0 10px; font-size:14px; max-width:380px; }
#tab-profile .s-input-sm { max-width:150px; }
#tab-profile .s-input-locked { background:var(--off-white); color:var(--slate); cursor:not-allowed; }
#tab-profile .s-textarea { width:100%; min-height:90px; padding:8px 10px; border:1px solid var(--border); border-radius:7px; font-family: inherit; color:var(--text); resize:vertical; }
#tab-profile .s-textarea:focus, #tab-profile .s-input:focus, #tab-profile .s-select:focus { border-color:var(--coral); outline:none; box-shadow:0 0 0 3px var(--coral-50); }
#tab-profile .s-select { height:32px; max-width:100%; padding:0 30px 0 10px; border:1px solid var(--border); border-radius:7px; background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235B616B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; -webkit-appearance:none; appearance:none; font-family: inherit; color:var(--ink); cursor:pointer; }
#tab-profile .s-select-xs { height:26px; padding:0 24px 0 8px; font-size:14px; background-position:right 7px center; }
#tab-profile .s-choice-hint { font-size:13.5px; color:var(--slate); margin:0; min-height:0; }
#tab-profile .s-choice-hint:empty { display:none; }
#tab-profile .s-link { background:none; border:0; padding:4px 2px; font-family: inherit; color:#B5461F; cursor:pointer; text-decoration:none; white-space:nowrap; }
#tab-profile .s-link:hover { text-decoration:underline; }
#tab-profile .s-link-muted { color:var(--slate); }
#tab-profile .settings-save-btn.s-mini { padding:6px 12px; font-size:14px; border-radius:7px; white-space:nowrap; }

/* Switches (yes/no settings). The checkbox itself is the switch. */
#tab-profile .s-switch-l { display:inline-flex; align-items:center; gap:9px; font-size:14px; color:var(--text); cursor:pointer; }
#tab-profile .s-switch { -webkit-appearance:none; appearance:none; position:relative; flex:0 0 auto; width:34px; height:20px; margin:0; border-radius:999px; background:#c3c7cd; cursor:pointer; transition:background .15s; }
#tab-profile .s-switch::after { content:""; position:absolute; top:2px; left:2px; width:16px; height:16px; border-radius:50%; background:#fff; box-shadow:0 1px 2px rgba(0,0,0,.25); transition:left .15s; }
#tab-profile .s-switch:checked { background:var(--coral); }
#tab-profile .s-switch:checked::after { left:16px; }
#tab-profile .s-switch:focus-visible { outline:2px solid var(--coral-500); outline-offset:2px; }

/* Chips (multi-select). The checkbox stays for keyboard and screen readers. */
#tab-profile .s-chips { display:flex; flex-wrap:wrap; gap:6px; }
#tab-profile .s-chips .s-check-item { position:relative; display:inline-flex; align-items:center; gap:6px; height:28px; padding:0 11px; border:1px solid var(--border); border-radius:999px; background:#fff; font-size:14px; color:var(--dim); cursor:pointer; }
#tab-profile .s-chips .s-check-item input { position:absolute; opacity:0; width:1px; height:1px; margin:0; pointer-events:none; }
#tab-profile .s-chips .s-check-item:focus-within { outline:2px solid var(--coral-500); outline-offset:1px; }
#tab-profile .s-chips .s-check-item.s-checked, #tab-profile .s-chips .s-check-item:has(input:checked) { background:var(--coral-50); border-color:var(--coral-300); color:#B5461F; }
#tab-profile .s-chips .s-brand-ic { font-size:14px; margin:0; }

/* Brand colors as small chips */
#tab-profile .s-brand-grid { display:flex; flex-wrap:wrap; gap:6px; }
#tab-profile .s-color-field { display:inline-flex; align-items:center; gap:6px; padding:3px 6px 3px 3px; border:1px solid var(--border); border-radius:999px; background:#fff; }
#tab-profile .s-color-field .s-color-label { margin:0 0 0 2px; font-size:13px; letter-spacing:.04em; order:2; }
#tab-profile .s-color-field-head { order:2; margin:0; min-height:0; gap:4px; }
#tab-profile .s-color-controls { gap:4px; order:1; }
#tab-profile .s-color-controls input[type=color] { width:26px; height:26px; padding:0; border-radius:50%; border:1px solid rgba(0,0,0,.12); overflow:hidden; }
#tab-profile .s-color-controls input[type=color]::-webkit-color-swatch-wrapper { padding:0; }
#tab-profile .s-color-controls input[type=color]::-webkit-color-swatch { border:0; border-radius:50%; }
#tab-profile .s-color-controls input[type=text] { width:78px; height:26px; padding:0 6px; font-size:13.5px; border-radius:6px; }
#tab-profile .s-color-name-input { width:70px; height:22px; font-size:13px; }
#tab-profile .s-add-color-btn { margin:0; height:32px; padding:0 12px; border-radius:999px; }
#tab-profile .s-brand-ref { display:flex; align-items:center; gap:10px; margin:0; padding:0; border:0; background:none; }
#tab-profile .s-brand-ref-preview { width:36px; height:36px; font-size:16px; border-radius:7px; }

/* Signature bold/size */
#tab-profile .s-fmt { display:flex; flex-wrap:wrap; gap:8px 16px; }
#tab-profile .s-fmt-i { display:inline-flex; align-items:center; gap:5px; font-size:14px; color:var(--ink); }
#tab-profile .s-bold { position:relative; display:inline-grid; place-items:center; width:26px; height:26px; border:1px solid var(--border); border-radius:6px; background:#fff; font-weight:800; font-size:14px; color:var(--dim); cursor:pointer; }
#tab-profile .s-bold input { position:absolute; opacity:0; width:1px; height:1px; margin:0; }
#tab-profile .s-bold:has(input:checked) { background:var(--coral-50); border-color:var(--coral-300); color:#B5461F; }
#tab-profile .s-bold:focus-within { outline:2px solid var(--coral-500); outline-offset:1px; }
#tab-profile .s-sig-preview { max-width:420px; }

/* Social handles */
#tab-profile .s-handles { display:grid; grid-template-columns:repeat(auto-fill, minmax(250px, 1fr)); gap:6px 14px; width:100%; }
#tab-profile .s-handle { display:flex; align-items:center; gap:8px; margin:0; }
#tab-profile .s-handle > span { flex:0 0 92px; display:inline-flex; align-items:center; gap:6px; font-size:14px; color:var(--dim); }

/* Writing samples and credential forms open in place. */
#tab-profile .s-sample { border-top:1px solid #eceef1; }
#tab-profile .s-sample > summary { display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; padding:10px 16px; min-height:46px; cursor:pointer; list-style:none; }
#tab-profile .s-sample > summary::-webkit-details-marker { display:none; }
#tab-profile .s-sample-n { flex:0 0 190px; font-size:14px; font-weight:600; color:var(--ink); }
#tab-profile .s-sample > summary .s-row-hint { flex:1 1 auto; }
#tab-profile .s-sample[open] > summary .s-link { color:var(--slate); }
/* Writing-sample "Update" button (2026-11-01, Mark): light coral fill,
   coral border. It sits inside the <summary>, so the whole row still opens
   the sample. */
#tab-profile .s-sample-update { display:inline-flex; align-items:center; height:30px; padding:0 14px; border:1px solid var(--coral-500); border-radius:8px; background:var(--coral-50); color:var(--coral-500); font-size:14px; font-weight:700; white-space:nowrap; }
#tab-profile .s-sample > summary:hover .s-sample-update { background:var(--coral-100); }
#tab-profile .s-sample[open] > summary .s-sample-update { background:var(--card-white, #FFFFFF); }
#tab-profile .s-sample-body { display:flex; flex-direction:column; gap:6px; padding:0 16px 12px; }
#tab-profile .s-cred { border-top:1px solid #eceef1; }
#tab-profile .s-cred > summary { padding:11px 16px; font-size:14px; font-weight:600; color:#B5461F; cursor:pointer; }
#tab-profile .s-cred-body { border-top:1px solid #eceef1; }

/* Plan & billing values */
#tab-profile .s-val { font-size:14px; color:var(--ink); }
#tab-profile .s-mono { font-family:var(--mono); font-size:14px; font-weight:600; }
#tab-profile .s-muted { color:var(--slate); }
#tab-profile .s-ok-pill { display:inline-flex; align-items:center; gap:5px; font-size:13.5px; font-weight:700; padding:2px 9px; border-radius:999px; background:rgba(0,149,128,.1); color:#006F62; border:1px solid rgba(0,149,128,.25); white-space:nowrap; }
#tab-profile .s-code { font:600 12px var(--mono); color:var(--ink); background:var(--off-white); border:1px solid var(--border); border-radius:6px; padding:5px 9px; }

/* Social publishing bar sits flush inside its row. */
#tab-profile #s-panel-social .quinn-buffer-bar { width:100%; border:0; padding:0; background:none; box-shadow:none; }

/* Voice list, tighter */
#tab-profile .s-tv-speed-field { margin-bottom:12px !important; }
#tab-profile .s-tv-categories { margin-bottom:10px; gap:6px; }
#tab-profile .s-tv-cat-pill { padding:4px 12px; font-size:13.5px; }
#tab-profile .s-tv-list { gap:6px; }
#tab-profile .s-tv-card { padding:6px 10px; gap:10px; }
#tab-profile .s-tv-play-btn { width:28px; height:28px; }
#tab-profile .s-tv-select-btn { padding:4px 12px; }

@media (max-width: 760px) {
  #tab-profile .s-b-side { max-width:none; flex-basis:100%; }
  #tab-profile .s-row-l, #tab-profile .s-sample-n { flex-basis:100%; }
  #tab-profile .s-input { max-width:none; }
  #tab-profile .s-tv-columns { grid-template-columns:1fr; }
}
#tab-profile .s-select:disabled { background-color:var(--off-white); color:var(--gray); cursor:not-allowed; }

/* Platform connection status on the chips (2026-10-22). */
#tab-profile .s-conn { display:inline-flex; align-items:center; gap:4px; margin-left:2px; padding-left:8px; border-left:1px solid var(--border); font-size:13px; font-weight:600; color:var(--slate); }
#tab-profile .s-conn::before { content:""; width:6px; height:6px; border-radius:50%; background:#b9bec6; }
#tab-profile .s-conn.s-conn-on { color:#006F62; }
#tab-profile .s-conn.s-conn-on::before { background:var(--teal-500); }
#tab-profile .s-conn.s-conn-na::before { display:none; }
#tab-profile #s-social-conn-note { min-height:0; padding-top:4px; border-top:0; }

/* "i" info button + in-place explanation (2026-10-22). */
#tab-profile .s-info { display:inline-grid; place-items:center; width:18px; height:18px; margin-left:4px; vertical-align:1px; border:1px solid var(--coral-300); border-radius:50%; background:#fff; color:#B5461F; font:700 11px/1 Georgia, serif; font-style:italic; cursor:pointer; padding:0; }
#tab-profile .s-info:hover, #tab-profile .s-info.on { background:var(--coral-50); }
#tab-profile .s-info:focus-visible { outline:2px solid var(--coral-500); outline-offset:2px; }
#tab-profile .s-info-panel { width:100%; max-width:620px; padding:10px 14px; border:1px solid var(--coral-200); border-radius:8px; background:var(--coral-50); font-size:14px; line-height:1.5; color:var(--ink); }
#tab-profile .s-info-panel[hidden] { display:none; }
#tab-profile .s-info-panel strong { display:block; margin-bottom:4px; font-size:14px; }
#tab-profile .s-info-panel ol { margin:0; padding-left:18px; }
#tab-profile .s-info-panel li + li { margin-top:3px; }

/* Signature lines & order (2026-10-22). */
#tab-profile .s-lines { display:flex; flex-direction:column; gap:4px; }
#tab-profile .s-line { display:flex; align-items:center; gap:8px; min-height:34px; padding:3px 8px 3px 4px; border:1px solid var(--border); border-radius:7px; background:#fff; font-size:14px; color:var(--ink); }
#tab-profile .s-line-move { display:inline-flex; gap:2px; }
#tab-profile .s-mv { width:24px; height:24px; padding:0; border:1px solid transparent; border-radius:5px; background:none; color:var(--slate); font-size:14px; line-height:1; cursor:pointer; }
#tab-profile .s-mv:hover:not(:disabled) { border-color:var(--border); background:var(--off-white); color:var(--ink); }
#tab-profile .s-mv:disabled { opacity:.3; cursor:default; }
#tab-profile .s-mv:focus-visible { outline:2px solid var(--coral-500); outline-offset:1px; }
#tab-profile .s-line-n { flex:0 0 78px; font-weight:600; }
#tab-profile .s-line-note[hidden] { display:none; }

/* Lone Wolf connection request form (2026-10-23) */
#tab-profile .s-lo-form { display:flex; flex-direction:column; gap:10px; margin-top:4px; padding:12px 14px; border:1px solid var(--border); border-radius:8px; background:#fff; max-width:460px; }
#tab-profile .s-lo-form[hidden] { display:none; }
#tab-profile .s-lo-f { display:flex; flex-direction:column; gap:4px; }
#tab-profile .s-lo-f > label { font-size:14px; font-weight:600; color:var(--text); }
#tab-profile .s-lo-pair { display:flex; gap:8px; }
#tab-profile .s-lo-pair .s-input { flex:1; min-width:0; }
#tab-profile .s-lo-form .s-input, #tab-profile .s-lo-form .s-select { max-width:none; width:100%; }
#tab-profile .s-lo-consent { display:flex; gap:8px; align-items:flex-start; font-size:14px; line-height:1.4; color:var(--text); }
#tab-profile .s-lo-consent input { margin-top:2px; accent-color:var(--coral); }
#tab-profile .s-link-btn { background:none; border:0; padding:0 4px; font:inherit; font-size:14px; color:var(--text-muted, #6b7280); cursor:pointer; text-decoration:underline; }
#tab-profile .settings-save-btn.s-btn-quiet { background:#fff; color:var(--coral); border:1px solid var(--coral); }
#tab-profile .s-lo-citystate .s-select { flex:0 0 84px; width:84px; }

/* Secondary pill button (logo upload, Connect channels), matching the "+ Add color" pill (2026-10-25). */
#tab-profile .s-pill-btn { display:inline-flex; align-items:center; gap:6px; height:32px; padding:0 14px; border:1px solid var(--border); border-radius:999px; background:#fff; color:var(--ink); font:inherit; font-size:14px; font-weight:600; cursor:pointer; transition:border-color .15s,color .15s; }
#tab-profile .s-pill-btn .ti { font-size:15px; color:var(--coral-500); }
#tab-profile .s-pill-btn:hover { border-color:var(--coral-500); color:var(--coral-500); }
#tab-profile .s-pill-btn:focus-visible { outline:2px solid var(--coral-500); outline-offset:2px; }

/* Settings: social icons are coral outlines instead of brand colors (Mark, 2026-10-25). */
#tab-profile .s-brand-ic { color:var(--coral-500); }

/* Website check (2026-10-31): invalid address shows a coral border and the
   message replaces the hint under the label. */
#tab-profile .s-input.s-input-err { border-color: var(--coral-500); box-shadow: 0 0 0 3px rgba(216, 90, 48, .12); }
#tab-profile .s-row-hint.s-row-hint-err { color: #B5461F; font-weight: 600; }
#tab-profile .s-row-hint.s-row-hint-ok { color: var(--teal-700, #006F62); font-weight: 600; }
/* Neighborhood check in progress: small spinner before the hint text. */
#tab-profile .s-row-hint.s-row-hint-busy { display: flex; align-items: center; gap: 6px; color: var(--slate); font-weight: 600; }
#tab-profile .s-hint-spin { width: 11px; height: 11px; flex: 0 0 11px; border-radius: 50%; border: 2px solid var(--light-gray); border-top-color: var(--coral-500); animation: s-hint-spin .7s linear infinite; }
@keyframes s-hint-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #tab-profile .s-hint-spin { animation-duration: 2s; } }

/* Neighborhoods / cities chip editor (2026-11-12). The text box it replaces
   stays in the page, hidden, as the saved value. */
.s-nbhd-src{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none;overflow:hidden}
.s-nbhd{width:100%;display:flex;flex-direction:column;gap:8px;min-width:0}
.s-nbhd-box{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:7px 8px;border:1px solid var(--border,#E6E1DC);border-radius:10px;background:#fff;cursor:text}
.s-nbhd-box:focus-within{border-color:var(--coral-500,#D85A30);box-shadow:0 0 0 3px rgba(216,90,48,.14)}
.s-nbhd-chips{display:contents}
.s-nbhd-chip{display:inline-flex;align-items:center;gap:5px;padding:4px 6px 4px 10px;border-radius:999px;background:var(--mid,#F3F1EF);border:1px solid var(--border,#E6E1DC);font-size:14px;color:var(--ink,#1E1B19)}
.s-nbhd-chip .ti{font-size:14px}
.s-nbhd-ok .ti{color:#0A7A6A}
.s-nbhd-bad{background:var(--coral-50,#FDEEE8);border-color:var(--coral-300,#F3B7A3)}
.s-nbhd-bad .ti{color:var(--coral-500,#D85A30)}
.s-nbhd-x{border:0;background:none;color:var(--dim,#6B645E);font-size:16px;line-height:1;cursor:pointer;padding:0 4px;border-radius:50%}
.s-nbhd-x:hover{color:var(--coral-500,#D85A30)}
.s-nbhd-fix{border:0;background:none;padding:0;font:inherit;font-size:14px;font-weight:700;color:var(--coral-500,#D85A30);text-decoration:underline;cursor:pointer}
.s-nbhd-add{flex:1;min-width:150px;border:0;outline:0;background:transparent;font:inherit;font-size:14.5px;padding:4px 2px;color:var(--ink,#1E1B19)}
.s-nbhd-sugg{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.s-nbhd-sl{font-size:14px;color:var(--dim,#6B645E);margin-right:2px}
.s-nbhd-s{border:1px dashed var(--coral-300,#F3B7A3);background:#fff;color:var(--coral-500,#D85A30);border-radius:999px;padding:3px 10px;font:inherit;font-size:14px;font-weight:600;cursor:pointer}
.s-nbhd-s:hover{background:var(--coral-50,#FDEEE8)}

/* Alerts by kind (2026-11-18, Mark: option A, coral switches, no texts).
   One list: a row per kind, one switch each. */
#tab-profile .s-fu-row { display:block; }
#tab-profile .s-fu-wrap { display:flex; flex-direction:column; gap:10px; width:100%; }
#tab-profile .s-fu-grid { border:1px solid var(--border, #e4e4e7); border-radius:12px; overflow:hidden; }
#tab-profile .s-fu-gr { display:grid; grid-template-columns:1fr 80px; align-items:center; gap:8px; padding:12px 16px; border-top:1px solid #eeeef1; }
#tab-profile .s-fu-gr:first-child { border-top:0; }
#tab-profile .s-fu-gr > span:not(.s-fu-kind) { display:flex; justify-content:center; }
#tab-profile .s-fu-gh { background:#fafafb; padding:9px 16px; font-size:13.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:#5e6570; }
#tab-profile .s-fu-gh > span:first-child { justify-content:flex-start; }
#tab-profile .s-fu-kind { display:flex; flex-direction:column; gap:2px; font-size:14.5px; font-weight:600; color:var(--text); }
#tab-profile .s-fu-kind .s-row-hint { font-weight:400; }
#tab-profile .s-fu-grid .s-switch:checked { background:var(--coral, #D85A30); }
#tab-profile .s-fu-grid .s-switch:disabled { opacity:.45; cursor:not-allowed; }
#tab-profile .s-fu-grid .s-switch:focus-visible { outline:2px solid #F2B8A2; outline-offset:2px; }
#tab-profile .s-fu-intro { margin:0; font-size:14px; line-height:1.5; color:#5e6570; }
#tab-profile .s-fu-desk .s-switch:checked { background:var(--coral, #D85A30); }
#tab-profile .s-fu-desk .s-switch:disabled { opacity:.45; cursor:not-allowed; }
/* Wider label column so the hint fits on two lines (2026-11-18, Mark). */
#tab-profile .s-row-wide .s-row-l { flex-basis:340px; }
@media (max-width: 760px) { #tab-profile .s-row-wide .s-row-l { flex-basis:100%; } }

/* Showing hours (2026-11-20, Phase B). */
.s-sh-days { display:grid; gap:6px; }
.s-sh-day { display:grid; grid-template-columns:110px auto auto auto; align-items:center; gap:8px; }
.s-sh-day .s-switch-l { font-size:14px; }
.s-sh-day input[type=time] { width:118px; }
.s-sh-day.is-off input[type=time] { opacity:.45; }
.s-sh-day .s-sh-to { color:var(--slate); font-size:14px; }
.s-sh-inline { display:flex; flex-wrap:wrap; align-items:center; gap:8px 10px; }
.s-sh-inline .s-select { width:auto; }
.s-sh-sub { color:var(--slate); font-size:14px; margin-left:6px; }
.s-sh-num { width:70px !important; }
#tab-profile .s-sh-days .s-switch:checked { background:var(--coral, #D85A30); border-color:var(--coral, #D85A30); } /* coral like the reminder switches (Mark, 2026-11-20) */
