/* Materiały: two tabs. Marka is the client profile as a settings page (sections on the left, one open on the
   right, one save bar); Baza wiedzy has three shelves whose items open across the whole width.
   Surfaces follow studio.css: the open section is a grey tile (.materials-card), what sits on it is white.
   Layout follows the width of the screen's own column (a container query), not the window. */
.materials-root { container: materials / inline-size; display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }

/* The two tabs: the segmented look from studio-shell.css. */
.materials-tabs { align-self: flex-start; display: inline-flex; gap: 2px; max-width: 100%; padding: 3px; border-radius: var(--radius-control); background: var(--color-fill); }
.materials-tab { display: inline-flex; align-items: center; gap: var(--space-2); min-height: calc(var(--control-height) - 6px); padding: 0 18px; border-radius: var(--radius-md);
  color: var(--color-text); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; transition: background-color var(--duration-fast), box-shadow var(--duration-fast); }
.materials-tab:hover { background: rgba(0, 0, 0, .05); text-decoration: none; }
.materials-tab.is-on { background: var(--color-surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); font-weight: 600; }
.brand-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--color-warning-fill); }

/* Marka: what can be done with the whole profile. */
.brand-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-2) var(--space-4); }
.brand-toolbar-text { flex: 1 1 320px; color: var(--color-text-3); font-size: var(--text-footnote); }
.brand-toolbar .inline-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; }

/* Sections (Marka) and shelves (Baza wiedzy): a grey list beside the open one; the chosen row is white. */
.brand-page { display: grid; grid-template-columns: 256px minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.side-nav { position: sticky; top: var(--space-4); display: flex; flex-direction: column; gap: 2px; padding: 10px; border-radius: var(--radius-xl); background: var(--color-tile); }
.side-nav-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 60px; padding: 9px 12px; border-radius: var(--radius-row);
  color: var(--color-text); text-decoration: none; transition: background-color var(--duration-fast), box-shadow var(--duration-fast); }
.side-nav-item:hover { background: var(--color-fill); text-decoration: none; }
.side-nav-item.is-on { background: var(--color-surface); box-shadow: var(--shadow-card); }
.side-nav-text { display: flex; flex-direction: column; min-width: 0; }
.side-nav-text strong { font-size: var(--text-body); font-weight: 600; }
.side-nav-summary { overflow: hidden; color: var(--color-text-3); font-size: var(--text-footnote); line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.brand-pane { gap: 18px; container: pane / inline-size; }
.brand-stack { display: flex; flex-direction: column; gap: var(--space-5); min-width: 0; }
.brand-group { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding-top: var(--space-2); }
.brand-group > .small-note { margin: -6px 0 0; color: var(--color-text-3); }
.material-field > .small-note { margin: 0; }
.materials-card .inbox-empty { padding: var(--space-8) var(--space-5); border-radius: var(--radius-row); background: var(--color-surface); box-shadow: var(--shadow-card); font-size: var(--text-body); }

/* Text boxes that are as tall as their text, so nothing is cut off. */
textarea.is-auto { field-sizing: content; min-height: 44px; resize: none; overflow: hidden; }

/* Filter chips (facts, document kinds). */
.brand-list-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.brand-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.brand-filter-item { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 36px; padding: 0 14px; border: 0; border-radius: var(--radius-control);
  background: var(--color-fill); color: var(--color-text); font-size: var(--text-footnote); font-weight: 500; text-decoration: none; transition: background-color var(--duration-fast), color var(--duration-fast); }
.brand-filter-item:hover:not(:disabled) { background: var(--color-fill-hover); text-decoration: none; }
.brand-filter-item.is-on, .brand-filter-item.is-on:hover:not(:disabled) { background: var(--color-accent-soft); color: var(--color-accent-text); box-shadow: inset 0 0 0 1.5px var(--color-accent); font-weight: 600; }
.brand-filter-count { font-weight: 500; opacity: .7; }

/* Fakty: one white row each with a status; a click opens the row. */
.brand-list { display: flex; flex-direction: column; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.brand-row { display: flex; align-items: center; min-width: 0; border-radius: var(--radius-row); background: var(--color-surface); box-shadow: var(--shadow-card); transition: box-shadow var(--duration-fast); }
.brand-row:not(.is-open):hover { box-shadow: var(--shadow-card), 0 6px 16px rgba(0, 0, 0, .07); }
.brand-row-main { flex: 1; display: flex; align-items: center; justify-content: flex-start; gap: 10px; min-width: 0; min-height: 52px; padding: 8px 14px 8px 16px; border: 0; border-radius: var(--radius-row);
  background: transparent; color: var(--color-text); font-size: var(--text-body); font-weight: 400; line-height: 1.4; text-align: left; }
.brand-row-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.brand-row-text.is-empty { color: var(--color-text-3); font-style: italic; }
.brand-row-topic { flex: none; color: var(--color-text-3); font-size: var(--text-footnote); }
.brand-chip-status, .brand-tag { flex: none; padding: 3px 10px; border-radius: var(--radius-badge); background: var(--color-fill); color: var(--color-text-2); font-size: var(--text-caption); font-weight: 600; line-height: 1.5; white-space: nowrap; }
.brand-chip-status.is-confirmed { background: var(--color-success-soft); color: var(--color-success); }
.brand-chip-status.is-to_confirm, .brand-tag.is-pending { background: var(--color-warning-soft); color: var(--color-warning); }
.brand-row-confirm { flex: none; min-height: 36px; margin-right: var(--space-2); }
.brand-row.is-open { flex-direction: column; align-items: stretch; gap: 14px; padding: var(--space-4); box-shadow: var(--shadow-card), 0 6px 18px rgba(0, 0, 0, .08); }
.brand-fact-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--space-3); }
.brand-row-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-2); }

/* Branża: this client's rules and the image prompt for people who know what it is. */
.profile-rules li .brand-tag { margin-left: 4px; }
.profile-rules li .button-text { min-height: 32px; margin-left: 4px; padding: 0 10px; font-size: var(--text-footnote); vertical-align: middle; }
.brand-advanced summary, .material-more summary { display: flex; align-items: center; gap: var(--space-2); width: fit-content; min-height: var(--control-height); color: var(--color-accent-text); font-weight: 600; }
.brand-advanced summary::-webkit-details-marker, .material-more summary::-webkit-details-marker { display: none; }
.brand-advanced summary::after, .material-more summary::after { content: ""; width: 7px; height: 7px; margin-top: -3px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform var(--duration-fast); }
.brand-advanced[open] summary::after, .material-more[open] summary::after { margin-top: 3px; transform: rotate(-135deg); }
.brand-advanced-body { padding-top: var(--space-2); }
.brand-prompt { font-family: var(--font-mono); font-size: var(--text-footnote); line-height: 1.6; }
.brand-look .profile-look { margin: 0; }

/* One save bar for the whole profile; it floats over the page and appears with the first change. */
.brand-savebar, .profile-savebar { position: sticky; bottom: var(--space-3); z-index: 5; padding: 10px 10px 10px 20px; border-radius: var(--radius-xl); background: var(--color-surface); box-shadow: var(--shadow-raised); }
.brand-savebar { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-2) var(--space-4); }
.brand-savebar-note { color: var(--color-warning); font-size: var(--text-footnote); font-weight: 600; }
.brand-savebar .inline-actions { display: flex; gap: var(--space-2); margin: 0 0 0 auto; }

/* Headings and leads of a card (the card, its form and fields are in studio.css). */
.materials-lead { max-width: 70ch; margin: -8px 0 0; color: var(--color-text-3); font-size: var(--text-body); }
.materials-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.materials-head .inline-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; }
.material-field-wide { grid-column: 1 / -1; }
/* A short choice in a full-width row: the list stays narrow, its example reads on one line. */
.material-field-wide > select { max-width: 320px; }

/* Products and documents: white rows; a draft is a dashed outline until the Agent may use it. */
.materials-items { display: flex; flex-direction: column; gap: var(--space-2); }
.materials-items:empty { display: none; }
.material-item { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); min-height: 64px; padding: 10px 16px; border: 1.5px solid transparent; border-radius: var(--radius-row);
  background: var(--color-surface); box-shadow: var(--shadow-card); color: var(--color-text); text-decoration: none; transition: background-color var(--duration-fast), box-shadow var(--duration-fast); }
.material-item:hover { box-shadow: var(--shadow-card), 0 6px 16px rgba(0, 0, 0, .07); color: var(--color-text); text-decoration: none; }
.material-item.is-draft { border: 1.5px dashed var(--color-border); background: transparent; box-shadow: none; }
.material-item.is-draft:hover { background: var(--color-surface); box-shadow: none; }
.material-item-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.material-item-body strong { font-size: var(--text-body); font-weight: 600; line-height: 1.3; }
.material-item-tags { flex: none; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.material-meta { color: var(--color-text-3); font-size: var(--text-footnote); }
.material-label { margin: 0; color: var(--color-text-2); font-size: var(--text-footnote); font-weight: 600; }
.material-status { flex-shrink: 0; padding: 3px 10px; border-radius: var(--radius-badge); font-size: var(--text-caption); font-weight: 600; line-height: 1.5; white-space: nowrap; }
.material-status.is-ready { background: var(--color-success-soft); color: var(--color-success); }
.material-status.is-draft { background: var(--color-warning-soft); color: var(--color-warning); }

/* One product or document, across the whole width. */
.material-editor-page { gap: var(--space-4); }
.material-back { align-self: flex-start; margin-left: -12px; }
.material-agent-switch { display: flex; align-items: center; gap: 10px; min-height: 52px; margin: 0; padding: 0 var(--space-4); border-radius: var(--radius-row); background: var(--color-surface); box-shadow: var(--shadow-card);
  font-size: var(--text-body); font-weight: 500; cursor: pointer; }
.material-agent-switch input { width: 20px; height: 20px; min-height: 0; margin: 0; }
.material-dirty { margin-right: auto; color: var(--color-warning); font-weight: 600; }
.material-more-body { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.material-more-body .inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--space-2); margin: 0 0 0 -12px; }
.material-versions { display: flex; flex-direction: column; margin: 0; padding: 2px 6px 2px var(--space-4); list-style: none; border-radius: var(--radius-row); background: var(--color-surface); box-shadow: var(--shadow-card); }
.material-versions li { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); min-height: 48px; }
.material-versions li + li { border-top: 1px solid var(--color-separator); }

/* Wskazówki dla Agenta: white rows; the Agent's own proposals wait in a tinted block. */
.materials-notes { display: flex; flex-direction: column; gap: var(--space-2); }
.materials-notes.is-proposed { padding: var(--space-4); border-radius: var(--radius-lg); background: var(--color-warning-soft); }
.materials-notes.is-proposed h3 { margin: 0 2px 4px; }
.materials-note { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); min-height: 56px; padding: 8px 8px 8px var(--space-4); border-radius: var(--radius-row); background: var(--color-surface); box-shadow: var(--shadow-card); }
.materials-note p { margin: 0; color: var(--color-text); overflow-wrap: anywhere; }
.materials-note .inline-actions { flex: none; gap: 4px; margin: 0; }
.materials-note-add { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; align-items: end; }
.materials-note-add label { grid-column: 1 / -1; margin: 0; }
.materials-note-add button { min-height: 44px; }

/* The text box with formatting buttons and a preview: one white card. */
.material-editor { display: flex; flex-direction: column; min-width: 0; border-radius: var(--radius-row); background: var(--color-surface); box-shadow: var(--shadow-card); }
.material-editor-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-2); padding: 8px 10px; border-bottom: 1px solid var(--color-separator); }
.material-tools { display: flex; flex-wrap: wrap; gap: 2px; }
.material-tool { min-width: 36px; min-height: 36px; padding: 0 10px; border: 0; background: transparent; color: var(--color-text); font-size: 14px; font-weight: 700; }
.material-tool:hover:not(:disabled) { background: var(--color-fill); }
.material-tool[aria-label="Kursywa"] { font-style: italic; }
.material-tool[aria-label="Link"] { text-decoration: underline; font-weight: 600; }
.material-modes { display: flex; gap: 2px; padding: 3px; border-radius: var(--radius-control); background: var(--color-fill); }
.material-mode { min-height: 30px; padding: 0 14px; border: 0; background: transparent; color: var(--color-text); font-size: var(--text-footnote); font-weight: 500; }
.material-mode:hover { background: rgba(0, 0, 0, .05); }
.material-mode.is-on { background: var(--color-surface); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); font-weight: 600; }
.material-text { min-height: 420px; padding: 16px 18px; border: 0; border-radius: 0 0 16px 16px; resize: vertical; font-family: var(--font-mono); font-size: 14px; line-height: 1.7; }
.material-text:focus { outline: 2px solid var(--color-accent); outline-offset: -2px; box-shadow: none; }
.material-preview { min-height: 420px; padding: 8px 22px 18px; overflow-wrap: anywhere; font-size: var(--text-body); }
.material-preview p { margin: 8px 0; color: var(--color-text); }
.material-preview h2 { font-size: var(--text-title-2); margin: 18px 0 6px; }
.material-preview h3 { font-size: 18px; margin: 16px 0 6px; }
.material-preview h4, .material-preview h5 { font-size: 16px; margin: 14px 0 4px; }
.material-preview ul, .material-preview ol { padding-left: 22px; }
.material-preview blockquote { margin: 10px 0; padding: 6px 14px; border-left: 3px solid var(--color-border); color: var(--color-text-2); }
.material-preview code { padding: 1px 6px; border-radius: 6px; background: var(--color-fill-soft); font-family: var(--font-mono); font-size: var(--text-footnote); }
.material-preview hr { border: 0; border-top: 1px solid var(--color-separator); margin: var(--space-4) 0; }

/* "Wklej brandbook" (studio-brandbook.js): paste, wait, review. */
.brandbook { gap: var(--space-4); }
.brandbook-notice { display: flex; flex-direction: column; gap: 4px; padding: 14px var(--space-4); border-radius: var(--radius-row); background: var(--color-warning-soft); color: var(--color-warning); font-size: var(--text-footnote); }
.brandbook-notice p { margin: 0; color: inherit; }
.brandbook-form { display: flex; flex-direction: column; gap: var(--space-3); }
.brandbook-text { min-height: 260px; }
.brandbook-count { margin: -6px 0 0; }
.brandbook-count.is-over { color: var(--color-danger); font-weight: 600; }
.brandbook-file { display: flex; align-items: center; gap: var(--space-3); }
.brandbook-file .button-secondary { flex: none; }
.brandbook-file .small-note, .brandbook-file-note { margin: 0; }
.brandbook-wait { margin: 0; padding: var(--space-8) var(--space-5); border-radius: var(--radius-row); background: var(--color-surface); box-shadow: var(--shadow-card); color: var(--color-text-2); text-align: center; }
/* The review: a heading per group, one white row per proposal (before → after, with a checkbox). */
.brandbook-all { margin: -4px 0 -4px -12px; }
.brandbook-group { display: flex; flex-direction: column; gap: var(--space-2); }
.brandbook-group h3 { display: flex; align-items: center; gap: var(--space-2); margin: 4px 4px 0; font-size: var(--text-body); }
.brandbook-row { display: flex; align-items: flex-start; gap: var(--space-3); margin: 0; padding: 14px var(--space-4); border-radius: var(--radius-row); background: var(--color-surface); box-shadow: var(--shadow-card);
  font-size: var(--text-body); font-weight: 400; cursor: pointer; }
.brandbook-row input { flex: none; width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; }
.brandbook-row.is-same { cursor: default; opacity: .6; }
.brandbook-row-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.brandbook-row-label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--color-text-3); font-size: var(--text-footnote); font-weight: 600; }
.brandbook-change { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: start; }
.brandbook-before, .brandbook-after { display: flex; align-items: flex-start; gap: var(--space-2); min-width: 0; }
.brandbook-before { color: var(--color-text-3); }
.brandbook-arrow { color: var(--color-text-3); }
.brandbook-when { display: none; flex: none; color: var(--color-text-3); font-size: var(--text-footnote); font-weight: 600; }
.brandbook-swatch { flex: none; display: inline-block; width: 18px; height: 18px; margin-top: 2px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); vertical-align: middle; }
.brandbook-document .brandbook-row-label { color: var(--color-text); font-size: var(--text-body); }
.brandbook-codes { display: flex; flex-wrap: wrap; align-items: center; gap: 6px var(--space-3); margin: 0; }
.brandbook-code { display: inline-flex; align-items: center; gap: 6px; }
.brandbook-code .brandbook-swatch { margin: 0; }
.brandbook-actions { justify-content: space-between; }
/* One line on the Marka page while an import waits. */
.brandbook-banner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px var(--space-4); padding: 14px var(--space-5);
  border-radius: var(--radius-lg); background: var(--color-tile); font-size: var(--text-body); }
.brandbook-banner a { font-weight: 600; }
.brandbook-banner.is-ready { background: var(--color-accent-soft); }
.brandbook-banner.is-failed { background: var(--color-danger-soft); color: var(--color-danger); }

/* A narrow open section (beside the Agent panel): a fact shows two lines of text beside its status;
   on a phone the status goes under the text. A call to action stacks. */
@container pane (max-width: 620px) {
  .brand-row-main { align-items: flex-start; padding: 12px 14px 12px 16px; }
  .brand-row-text { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-height: 1.45; }
  .brand-row-topic { display: none; }
  .brand-row-confirm { align-self: center; }
  .profile-row-cta { grid-template-columns: minmax(0, 1fr) auto; }
  .profile-row-cta > :first-child { grid-column: 1 / -1; }
  .brand-fact-form { grid-template-columns: minmax(0, 1fr); }
}
@container pane (max-width: 420px) {
  .brand-row-main { flex-wrap: wrap; gap: 4px 8px; }
  .brand-row-text { flex-basis: 100%; }
  .brand-row-topic { display: inline; }
}
/* Narrow column: sections become pills that all stay in view. */
@container materials (max-width: 720px) {
  .brand-page { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .side-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; padding: 0; border-radius: 0; background: transparent; }
  .side-nav-item { min-height: var(--control-height); padding: 0 16px; border-radius: var(--radius-control); background: var(--color-fill); font-size: 14px; font-weight: 500; }
  .side-nav-item:hover { background: var(--color-fill-hover); }
  .side-nav-item.is-on, .side-nav-item.is-on:hover { background: var(--color-accent-soft); color: var(--color-accent-text); box-shadow: inset 0 0 0 1.5px var(--color-accent); font-weight: 600; }
  .side-nav-text strong { font-size: inherit; font-weight: inherit; }
  .side-nav-summary { display: none; }
  .brand-fact-form { grid-template-columns: minmax(0, 1fr); }
}
@container materials (max-width: 560px) {
  .materials-tabs { align-self: stretch; }
  .brand-toolbar-text { display: none; }  /* The import's own screen explains it; the buttons are enough here. */
  .materials-tab { flex: 1; justify-content: center; }
  .materials-card { padding: var(--space-4); border-radius: var(--radius-lg); }
  .materials-form { grid-template-columns: minmax(0, 1fr); }
  .material-item { flex-direction: column; align-items: flex-start; justify-content: center; gap: var(--space-2); padding-block: 12px; }
  .material-item-tags { justify-content: flex-start; }
  .material-text, .material-preview { min-height: 300px; }
  .brandbook-change { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .brandbook-arrow { display: none; }
  .brandbook-when { display: inline; }
  .brandbook-file { flex-direction: column; align-items: flex-start; }
  .brand-savebar { padding: 10px 12px 10px var(--space-4); border-radius: var(--radius-lg); }
  .brand-savebar .inline-actions { width: 100%; justify-content: flex-end; }
}

/* Phone: the Marka save bar floats above the tab bar (studio-shell.css lifts .profile-savebar the same way). */
@media (max-width: 760px) {
  .brand-savebar { bottom: calc(92px + env(safe-area-inset-bottom)); }
}
/* Fingers: the small chips and editor buttons grow on touch screens. */
@media (pointer: coarse), (max-width: 760px) {
  .brand-filter-item, .brand-row-confirm, .material-tool { min-height: 44px; }
  .material-tool { min-width: 44px; }
  .material-mode { min-height: 38px; }
}

/* Rows and the look of the profile (studio-profile.js); the row itself is in studio.css. */
.profile-sections { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.profile-rows { display: flex; flex-direction: column; gap: var(--space-2); }
.profile-row-cta { grid-template-columns: minmax(0, 1fr) minmax(0, 220px) auto; }
.profile-row-never { grid-template-columns: minmax(0, 1fr) auto; }
.profile-add { align-self: flex-start; }
/* Logo and example-post slots: a white card each. */
.profile-look { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.profile-look > .profile-asset:nth-child(3) { grid-column: 1 / -1; }
.profile-asset { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; padding: var(--space-4); border-radius: var(--radius-row); background: var(--color-surface); box-shadow: var(--shadow-card); }
.profile-asset .small-note { margin: 0; }
.profile-asset > .button-secondary { align-self: flex-start; }
.profile-thumbs { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.profile-thumb { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 0; }
.profile-thumb img { display: block; width: 96px; height: 96px; object-fit: contain; border-radius: var(--radius-md); background: var(--color-tile); }
.profile-thumb .button-text { min-height: 32px; font-size: var(--text-footnote); }
/* Colours: a white capsule with a round swatch. */
.profile-colors { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.profile-color { display: flex; align-items: center; gap: 10px; min-height: 48px; margin: 0; padding: 6px 18px 6px 6px; border-radius: var(--radius-pill); background: var(--color-surface); box-shadow: var(--shadow-card);
  font-size: var(--text-body); font-weight: 500; cursor: pointer; }
.profile-color input { flex: none; width: 36px; height: 36px; min-height: 36px; padding: 0; border: 1px solid var(--color-border); border-radius: 50%; background: none; overflow: hidden; cursor: pointer; }
.profile-color input::-webkit-color-swatch-wrapper { padding: 0; }
.profile-color input::-webkit-color-swatch { border: 0; border-radius: 50%; }
.profile-color input::-moz-color-swatch { border: 0; border-radius: 50%; }
/* This client's content-check rules: one white card with a line per rule. */
.profile-rules { display: flex; flex-direction: column; margin: 0; padding: 2px var(--space-4); list-style: none; border-radius: var(--radius-row); background: var(--color-surface); box-shadow: var(--shadow-card); font-size: var(--text-body); }
.profile-rules li { padding: 12px 0; }
.profile-rules li + li { border-top: 1px solid var(--color-separator); }
@media (max-width: 900px) {
  .profile-row-cta { grid-template-columns: minmax(0, 1fr); }
  .profile-look { grid-template-columns: minmax(0, 1fr); }
}

.profile-wizard { margin: 0; }
.page-lead { max-width: 70ch; margin: 6px 0 0; color: var(--color-text-3); font-size: var(--text-body); }
