/* Name Lab — optional decision workflow. Uses Nameryn's existing palette and square geometry. */
.name-lab { border-top:1px solid var(--border); border-bottom:1px solid var(--border); padding:12px 0; text-align:left; }
.name-lab > summary { cursor:pointer; color:var(--text); font-weight:700; font-size:.88rem; list-style:none; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.name-lab > summary::-webkit-details-marker { display:none; }
.name-lab > summary::after { content:'+'; color:var(--acc); font-size:1.15rem; font-weight:400; }
.name-lab[open] > summary::after { content:'−'; }
.nl-summary-copy { color:var(--text-dim); font-weight:400; font-size:.74rem; }
.nl-form { margin-top:14px; display:grid; grid-template-columns:1fr; gap:14px; }
.nl-field { display:flex; flex-direction:column; gap:5px; min-width:0; }
.nl-field-wide { grid-column:1 / -1; }
.nl-field label,.nl-field-label { color:var(--text-dim); font-size:.72rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; }
.nl-field input,.nl-field select,.nl-field textarea { width:100%; border:1px solid var(--border); border-radius:2px; background:var(--surface2); color:var(--text); font:inherit; font-size:.84rem; padding:9px 10px; }
.nl-field textarea { resize:vertical; min-height:62px; line-height:1.45; }
.nl-field input:focus,.nl-field select:focus,.nl-field textarea:focus { outline:2px solid rgba(52,227,166,.22); border-color:var(--acc); }
.nl-form-actions { grid-column:1 / -1; display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.nl-form-actions button { border:1px solid var(--border); border-radius:2px; background:var(--surface2); color:var(--text-dim); font:inherit; font-size:.74rem; padding:8px 10px; cursor:pointer; }
.nl-form-actions [data-nl-apply] { background:var(--acc); border-color:var(--acc); color:#07140f; font-weight:800; }
.nl-form-actions button:hover,.nl-form-actions button:focus-visible { border-color:var(--acc); color:var(--text); }
/* Enforced/Preference category tags, legend and per-control helper. Neutral only:
   1px var(--border), no colored left border, no tinted background. Mint is reserved
   for actions/active/focus, never for these static labels. */
.nl-legend { margin:0; color:var(--text-dim); font-size:.72rem; line-height:1.45; }
.nl-helper { margin:0; color:var(--text-dim); font-size:.7rem; line-height:1.4; }
.nl-tag { display:inline-block; margin-left:6px; padding:1px 6px; border:1px solid var(--border); border-radius:2px; font-size:.6rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; vertical-align:middle; }
.nl-tag--enforced { color:var(--text); }
.nl-tag--pref { color:var(--text-dim); }

/* Advanced progressive-disclosure group (tone + sounds). Quiet hairline + neutral
   marker; no mint on this secondary disclosure. */
.nl-advanced { border-top:1px solid var(--border); padding-top:12px; }
.nl-advanced > summary { cursor:pointer; list-style:none; color:var(--text-dim); font-size:.72rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.nl-advanced > summary::-webkit-details-marker { display:none; }
.nl-advanced > summary::after { content:'+'; color:var(--text-dim); font-size:1rem; font-weight:400; }
.nl-advanced[open] > summary::after { content:'−'; }
.nl-advanced-body { display:flex; flex-direction:column; gap:14px; margin-top:12px; }

/* "This is not AI" honesty label — plain text, hairline top rule for separation only. */
.nl-honesty { margin:0; padding-top:12px; border-top:1px solid var(--border); color:var(--text-dim); font-size:.72rem; line-height:1.5; }

/* Applied-state chips (one per applied value). Neutral surface2 box + 1px border;
   the × focus ring is the only mint here, which is an allowed active-state accent. */
.nl-applied { margin:0; }
.nl-applied[hidden] { display:none; }
.nl-applied-head { margin:0 0 8px; color:var(--text); font-size:.68rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.nl-applied-hint { margin-left:8px; color:var(--text-dim); font-weight:400; letter-spacing:normal; text-transform:none; }
.nl-chips { display:flex; flex-wrap:wrap; gap:6px; }
.nl-chip { display:inline-flex; align-items:center; gap:6px; padding:4px 4px 4px 9px; border:1px solid var(--border); border-radius:2px; background:var(--surface2); color:var(--text); font-size:.72rem; line-height:1; }
.nl-chip-label { white-space:nowrap; }
.nl-chip-x { display:inline-flex; align-items:center; justify-content:center; min-width:18px; height:18px; padding:0; border:none; border-radius:2px; background:transparent; color:var(--text-dim); font-size:.95rem; line-height:1; cursor:pointer; }
.nl-chip-x:hover { color:var(--text); background:rgba(255,255,255,.06); }
.nl-chip-x:focus-visible { outline:2px solid rgba(52,227,166,.5); outline-offset:1px; }

/* ln-nameryn-constraint-contract (S4): a soft preference (sounds/Industry) that matched
   none of the last-drawn batch -- dashed border + dimmed label, same honest-but-quiet
   treatment as the rest of this panel's copy, never a hidden/silent state. */
.nl-chip--no-match { border-style:dashed; }
.nl-chip--no-match .nl-chip-label { color:var(--text-dim); }

/* Must-use chip's inline First/Last/Any position control (roadmap §9). The active
   segment uses solid mint + dark text -- the same treatment as the primary Apply
   action -- because it IS an active-state control, not a card tint. */
.nl-chip--mustuse { flex-wrap:nowrap; }
.nl-chip-seg { display:inline-flex; border:1px solid var(--border); border-radius:2px; overflow:hidden; }
.nl-chip-seg-btn { border:none; border-right:1px solid var(--border); border-radius:0; background:transparent; color:var(--text-dim); font:inherit; font-size:.64rem; font-weight:700; letter-spacing:.03em; text-transform:uppercase; padding:3px 6px; line-height:1; cursor:pointer; }
.nl-chip-seg-btn:last-child { border-right:none; }
.nl-chip-seg-btn:hover { color:var(--text); background:rgba(255,255,255,.06); }
.nl-chip-seg-btn:focus-visible { outline:2px solid rgba(52,227,166,.5); outline-offset:-2px; }
.nl-chip-seg-btn.is-active { background:var(--acc); border-color:var(--acc); color:#07140f; }
.nl-chip-seg-btn:disabled { color:var(--text-dim); opacity:.4; cursor:not-allowed; }
.nl-chip-seg-btn:disabled:hover { background:transparent; color:var(--text-dim); }

/* Screen-reader status region: the visible chips carry the state; this announces the
   applied brief verbally without duplicating it on screen. */
.nl-sr-only { position:absolute!important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* Review action (S3, roadmap §9 item 3): one button per result reveals construction,
   matched preferences, enforced-rule satisfaction, and the existing availability row
   (moved inside the same panel rather than toggled independently). Icon-only sizing
   (30x30) comes free from the shared .seo-result .seo-btn rule in styles.css; only the
   glyph and the panel/facts layout are new, business-only rules. */
.seo-result-actions .seo-review::before { content:'\2139'; font-size:15px; color:var(--text-dim); }
.seo-result-review { flex-basis:100%; display:block; margin-top:8px; padding-top:8px; border-top:1px solid var(--border); }
.seo-result-review[hidden] { display:none; }
.seo-review-facts { margin:0; display:grid; grid-template-columns:auto 1fr; gap:4px 10px; font-size:.76rem; }
.seo-review-facts dt { margin:0; color:var(--text-dim); font-weight:700; white-space:nowrap; }
.seo-review-facts dd { margin:0; color:var(--text); }

/* Checks are not links (S2, ln-name-lab-v2-business-clarity): the real in-page RDAP
   verdict and the outbound search links are visually and verbally distinct groups, not
   peers under one "Availability:" label. .seo-review-answered keeps the existing cockpit
   box treatment (it holds the one actionable, real check); .seo-review-elsewhere is
   deliberately plain -- a label and underlined links, no box -- so it never reads as
   equally authoritative as the real check. */
.seo-review-group { flex-basis:100%; margin-top:8px; display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; }
.seo-review-group-label { flex-basis:100%; color:var(--text-dim); font-size:.68rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.seo-review-elsewhere { font-size:.76rem; }
.seo-review-elsewhere a { color:var(--text-dim); text-decoration:underline; }
.seo-review-elsewhere a:hover { color:var(--text); }

/* Provider-visibility settings (S3): a page-level control, separate from any one
   result, for which availability providers Review reveals. Neutral surface2 box, no
   colored left border; accent-color is the one allowed native-control use of mint
   (the checked state is an active-state accent, not a background tint). Hosts the
   RDAP disclosure paragraph moved out from under the results list per this gate's
   explicit instruction — one honest surface for "what gets checked and what it means"
   instead of a floating footnote.
   ln-name-lab-v2-business-fold: collapsed by default behind a <details> disclosure —
   a settings panel nobody changes twice shouldn't cost ~200px on arrival. Same quiet
   +/− marker idiom as .nl-advanced; the checkboxes inside are untouched by open/closed
   state, so reopening always shows their current checked values. */
.seo-provider-settings { margin-bottom:4px; padding:6px 10px; border:1px solid var(--border); background:var(--surface2); }
.seo-provider-settings > summary.seo-provider-settings-head { cursor:pointer; list-style:none; display:flex; align-items:center; justify-content:space-between; gap:10px; margin:0; }
.seo-provider-settings > summary.seo-provider-settings-head::-webkit-details-marker { display:none; }
.seo-provider-settings > summary.seo-provider-settings-head::after { content:'+'; color:var(--text-dim); font-size:1rem; font-weight:400; }
.seo-provider-settings[open] > summary.seo-provider-settings-head::after { content:'−'; }
.seo-provider-settings-body { margin-top:8px; }
.seo-provider-settings-head { color:var(--text); font-size:.68rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
/* Checks are not links: the same Answered-here / Look-up-elsewhere split as the
   per-result Review panel, so the settings control and what it governs agree. */
.seo-provider-group { margin:0 0 8px; }
.seo-provider-group:last-of-type { margin-bottom:0; }
.seo-provider-group-label { display:block; margin-bottom:4px; color:var(--text-dim); font-size:.64rem; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.seo-provider-group-hint { font-weight:400; letter-spacing:normal; text-transform:none; }
.seo-provider-toggle { display:inline-flex; align-items:center; gap:5px; margin:0 12px 0 0; color:var(--text-dim); font-size:.76rem; cursor:pointer; }
.seo-provider-toggle input { accent-color:var(--acc); }
.seo-provider-settings-note { margin:8px 0 0; padding-top:6px; border-top:1px solid var(--border); color:var(--text-dim); font-size:.7rem; line-height:1.4; }

/* Hiding a provider only affects what a Review panel reveals -- the check itself still
   only ever fires on the inline button's own click, never automatically. Concrete
   3-provider list (not a generic system) because business is the only Name Lab page
   and these are its only 3 configured providers today. */
#seo-results[data-hidden-providers~="google"] [data-provider="google"] { display:none; }
#seo-results[data-hidden-providers~="icann-lookup"] [data-provider="icann-lookup"] { display:none; }
#seo-results[data-hidden-providers~="rdap-com"] [data-provider="rdap-com"] { display:none; }

/* Availability cockpit — first Business/Name Lab rollout. The shared RDAP handler
   remains usable without this presentation; the cockpit treatment is declarative. */
.seo-availability-cockpit {
  align-items:center;
  gap:7px 10px;
  margin-top:2px;
  padding:9px 10px;
  border:1px solid var(--border);
  background:var(--surface2);
}
.seo-availability-cockpit .seo-check-links-label {
  color:var(--text);
  font-size:.68rem;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.seo-availability-cockpit button.seo-inline-check {
  min-height:30px;
  padding:5px 9px;
  border:1px solid rgba(52,227,166,.45);
  background:rgba(52,227,166,.06);
  color:var(--acc);
  text-decoration:none;
}
.seo-availability-cockpit button.seo-inline-check:hover,
.seo-availability-cockpit button.seo-inline-check:focus-visible {
  border-color:var(--acc);
  background:rgba(52,227,166,.11);
  color:var(--text);
  outline:none;
}
.seo-availability-cockpit button.seo-inline-check:disabled {
  border-color:var(--border);
  background:transparent;
}
.seo-availability-cockpit .seo-inline-badge {
  flex:1 1 260px;
  min-width:0;
  line-height:1.45;
}
.seo-availability-cockpit .seo-inline-badge.no-record {
  color:var(--text);
}
.seo-inline-badge.is-checking { color:var(--text-dim); }
.seo-inline-checked-at { color:var(--text-dim); white-space:nowrap; }

/* Workbench shell (S1) — two-column desktop: compact results left, sticky Name Lab
   right. Scoped with :has() so every other generator page (no .name-lab in its
   markup) is provably unaffected — no new breakpoint or width change leaks out. */
@media (min-width:900px) {
  .seo-page:has(.name-lab) { max-width:1040px; }
  .seo-tool:has(.name-lab) {
    display:grid;
    grid-template-columns:minmax(0,1fr) 320px;
    grid-template-rows:auto 1fr;
    align-items:start;
    row-gap:14px;
    column-gap:20px;
    /* ln-name-lab-v2-business-fold: shave the shared 20px .seo-tool padding down to
       14px on this page's top edge only (name-lab.css, :has(.name-lab)-scoped — no
       other generator's .seo-tool padding changes) as part of the ~23px still needed
       after collapsing the provider panel and relocating the intro paragraph. */
    padding-top:14px;
  }
  .seo-tool:has(.name-lab) > .seo-tool-controls { grid-column:1; grid-row:1; }
  .seo-tool:has(.name-lab) > .seo-results-column { grid-column:1; grid-row:2; min-width:0; }
  .seo-tool:has(.name-lab) > .name-lab {
    grid-column:2;
    grid-row:1 / span 2;
    border:none;
    padding:0;
    position:sticky;
    top:20px;
    align-self:start;
    max-height:calc(100vh - 40px);
    overflow-y:auto;
  }
}
@media (max-width:600px) {
  .seo-availability-cockpit .seo-inline-badge { flex-basis:100%; }
}
/* S3 polish: the shared .seo-library-hint rule (styles.css) sets a negative
   margin-top to sit flush under a plain results list -- on the Name Lab workbench,
   the results column ends with a bordered result card, so that same negative margin
   reads as cramped. This file loads on the business page only, so this selector
   never reaches any other page's .seo-library-hint even though it isn't itself
   scoped with :has(.name-lab). */
.seo-results-column .seo-library-hint { margin-top:10px; }
@media (prefers-reduced-motion:reduce) { .name-lab * { scroll-behavior:auto!important; transition:none!important; } }
