/*
 * Stage look, parity pass: Brand, Insights, Settings, Help, the notifications panel, the avatar menu,
 * search, not found, empty states and skeletons. Matches ui-b-stage proof 42-59, 60, 62, 63, 65, 67.
 * Scoped to html[data-look="stage"].
 */

/* Brand tabs: a Soft pill segmented control (grey track, white thumb), so the tab's own action stays the one charcoal button. */
html[data-look="stage"] .brand-tabs { display: inline-flex; gap: 2px; padding: 3px; margin: 2px 0 14px; border-radius: 999px; background: var(--dk-b-1f1f21a6, rgba(31, 31, 33, .06)); max-width: 100%; }
html[data-look="stage"] .brand-tabs .brand-tab { height: 30px; padding: 0 14px; border-radius: 999px; background: none; color: var(--s-ink-2); font: 500 13px/1 var(--v-font); box-shadow: none; flex: none; }
html[data-look="stage"] .brand-tabs .brand-tab:hover { background: var(--dk-b-ffffffa55, rgba(255, 255, 255, .55)); color: var(--s-ink); }
html[data-look="stage"] .brand-tabs .brand-tab.is-active { background: var(--dk-paper, #fff); color: var(--s-ink); box-shadow: 0 1px 2px rgba(31, 31, 33, .10); }
html[data-look="stage"] .brand-tabhead-title { font: 500 15px/1.3 var(--v-font); }
html[data-look="stage"] .brand-tabhead-sub { font: 400 13px/1.45 var(--v-font); }
html[data-look="stage"] .brand-tabhead-act .btn { height: 36px; padding: 0 16px; font: 500 13px/1 var(--v-font); }

/* Settings: the rail is a quiet list with a white tile for the open tab. */
html[data-look="stage"] .card.set-nav { background: none; box-shadow: none; padding: 0; }
html[data-look="stage"] .set-nav-item { height: 36px; padding: 0 12px; gap: 10px; font: 500 13px/1 var(--v-font); color: var(--s-ink-2); border-radius: 10px; }
html[data-look="stage"] .set-nav-item .i { width: 16px; height: 16px; }
html[data-look="stage"] .set-nav-item:hover { background: var(--dk-b-1f1f21a4_5, rgba(31, 31, 33, .045)); color: var(--s-ink); }
html[data-look="stage"] .set-nav-item.is-active { background: var(--dk-paper, #fff); color: var(--s-ink); font: 500 13px/1 var(--v-font); box-shadow: 0 1px 2px rgba(31, 31, 33, .06), 0 2px 8px rgba(31, 31, 33, .04); }
html[data-look="stage"] .set-head { padding: 18px 20px 8px; }
html[data-look="stage"] .set-body { padding: 12px 20px 20px; }
html[data-look="stage"] .set-head-text p { font: 400 12.5px/1.45 var(--v-font); }
html[data-look="stage"] .card.set-card { border-radius: 18px; }

/* The notifications panel: rows on hairlines, an unread dot, the action as a quiet link. */
html[data-look="stage"] .popover--bell { width: 380px; padding: 0; overflow: hidden; }
html[data-look="stage"] .popover--bell .pop-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px 10px; border-bottom: 1px solid var(--s-hair); }
html[data-look="stage"] .popover--bell .pop-head strong { font: 500 14px/1.3 var(--v-font); }
html[data-look="stage"] .popover--bell .pop-head .link { font: 500 12.5px/1 var(--v-font); color: var(--s-ink-2); }
html[data-look="stage"] .pop-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 12px 10px 24px; margin: 0 6px; border-radius: 10px; position: relative; }
html[data-look="stage"] .pop-row::before { content: ""; position: absolute; left: 10px; top: 15px; width: 7px; height: 7px; border-radius: 50%; background: var(--s-peri); }
html[data-look="stage"] .pop-row.is-read::before { background: transparent; }
html[data-look="stage"] .pop-row:first-of-type { margin-top: 6px; }
html[data-look="stage"] .pop-type { grid-column: 1; font: 500 12px/1.3 var(--v-font); letter-spacing: 0; text-transform: none; color: var(--s-ink-2); }
html[data-look="stage"] .pop-when { grid-column: 2; grid-row: 1; font: 400 12px/1.3 var(--v-font); color: var(--s-muted-3); text-align: right; }
html[data-look="stage"] .pop-title { grid-column: 1 / -1; font: 500 13.5px/1.4 var(--v-font); color: var(--s-ink); }
html[data-look="stage"] .pop-row.is-read .pop-title { font-weight: 400; }
html[data-look="stage"] .pop-text { grid-column: 1 / -1; font: 400 12.5px/1.4 var(--v-font); color: var(--s-ink-2); }
html[data-look="stage"] .pop-act { grid-column: 1 / -1; justify-self: start; margin-top: 2px; font: 500 12.5px/1 var(--v-font); color: var(--s-ink); }

/* The avatar menu. */
html[data-look="stage"] .popover--menu { width: 250px; padding: 6px; }
html[data-look="stage"] .menu-row { min-height: 36px; padding: 0 10px; gap: 10px; }
html[data-look="stage"] .menu-row .i { width: 16px; height: 16px; color: var(--s-ink-2); }

/* Help: Ask Volare in a card, the topic pills as a pillbar. */
html[data-look="stage"] .ask-widget .ask-list { background: none; border-radius: 0; padding: 12px 16px; }
html[data-look="stage"] .ask-inline .ask-widget { background: var(--dk-paper, #fff); border: 0; border-radius: 18px; box-shadow: 0 1px 2px rgba(31, 31, 33, .04), 0 4px 12px rgba(31, 31, 33, .05); }
html[data-look="stage"] .ask-inline-title { font: 500 15px/1.3 var(--v-font); margin-bottom: 10px; }
html[data-look="stage"] .ask-form { border-top-color: var(--s-hair); align-items: center; }
html[data-look="stage"] .ask-form textarea { min-height: 36px; height: 36px; padding: 8px 12px; border: 0; border-radius: 10px; background: var(--dk-paper, #fff); box-shadow: inset 0 0 0 1px var(--s-line); font: 400 13px/1.4 var(--v-font); }
html[data-look="stage"] .ask-form textarea:focus { outline: none; box-shadow: inset 0 0 0 1px var(--s-peri), 0 0 0 3px rgba(135, 153, 195, .25); }
html[data-look="stage"] .ask-foot { font-size: 12px; }
html[data-look="stage"] .help-toc .fpill { height: 30px; }

/* Insights at the Stage density. */
html[data-look="stage"] .stat { border-radius: 18px; padding: 16px 18px; }
html[data-look="stage"] .stat small { font: 400 12px/1.3 var(--v-font); color: var(--s-ink-2); }
html[data-look="stage"] .itable-row,
html[data-look="stage"] .itable-head { font: 400 13px/1.4 var(--v-font); }

/* Not found and every page-size empty state: one calm white card, centred. */
html[data-look="stage"] .estate--page { max-width: 560px; margin: 24px auto 0; padding: 36px 32px; border-radius: 18px; background: var(--dk-paper, #fff);
  box-shadow: 0 1px 2px rgba(31, 31, 33, .04), 0 4px 12px rgba(31, 31, 33, .05); }
html[data-look="stage"] .vlist > .estate--page,
html[data-look="stage"] .ws-solo > .estate--page { max-width: none; margin: 0; box-shadow: none; }
html[data-look="stage"] .ws-solo > .estate--page { box-shadow: 0 1px 2px rgba(31, 31, 33, .04), 0 4px 12px rgba(31, 31, 33, .05); }

/* Skeletons: Soft shapes. */
html[data-look="stage"] .skel-card { border-radius: 18px; }
html[data-look="stage"] .skel { border-radius: 8px; }
html[data-look="stage"] .brand-tabs { width: max-content; }

/* Phones: the Brand tabs and the Settings list wrap onto whole rows (no label cut at an edge). The Brand track keeps the
   inset pill look: rounded corners instead of a full pill, and the tabs share each row evenly. */
@media (max-width: 680px) {
  html[data-look="stage"] .brand-tabs { display: flex; flex-wrap: wrap; width: auto; border-radius: 18px; gap: 2px; overflow: visible; margin-inline: 0; padding: 3px; }
  html[data-look="stage"] .brand-tabs .brand-tab { flex: 1 1 auto; text-align: center; }
  html[data-look="stage"] .card.set-nav { display: flex; flex-wrap: wrap; gap: 4px; }
  html[data-look="stage"] .set-nav-item { flex: 1 1 auto; justify-content: center; }
}

/* ================================================================ *
 * SETTINGS — one card rule (q2-polish)
 * The pane is one white card: 1px hairline, 16px radius, no heavy shadow. Anything inside it is a plain row or a
 * 1px hairline block on the same surface, never a grey well or a second shadowed card.
 * ================================================================ */
html[data-look="stage"] .card.set-surface,
html[data-look="stage"] .set-surface > .card.set-card {
  border-radius: 16px; box-shadow: inset 0 0 0 1px var(--s-hair);
}
html[data-look="stage"] .set-surface > .card.set-card { box-shadow: none; border-radius: 0; }
html[data-look="stage"] .set-surface .card:not(.set-card),
html[data-look="stage"] .set-surface .set-card .card {
  border-radius: 12px; box-shadow: inset 0 0 0 1px var(--s-hair); background: transparent;
}
/* The shell (grey well + white tiles) is for full-page lists; inside the settings card the lists are on the card itself. */
html[data-look="stage"] .set-surface :is(.int-list, .mn-list, .pref-list, .mem-list, .itable, .fol-list) {
  background: none; padding: 0; border-radius: 0; overflow: visible; gap: 10px;
}

/* Integrations: 1px hairline rows, content centred against the icon and the pill. */
html[data-look="stage"] .set-surface .int-list { display: grid; }
html[data-look="stage"] .set-surface .int-list > .int,
html[data-look="stage"] .set-surface .int-list > :first-child,
html[data-look="stage"] .set-surface .int-list > :last-child {
  display: flex; align-items: center; gap: 14px; min-height: 0; overflow: visible;
  padding: 14px 16px; background: transparent; border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--s-hair);
}
html[data-look="stage"] .set-surface .int-list > .int + .int { border-top: 0; }
html[data-look="stage"] .set-surface .int-text { align-self: center; gap: 2px; }
html[data-look="stage"] .set-surface .int .pill { align-self: center; margin-left: auto; flex: none; }
html[data-look="stage"] .set-surface .int-icon--brand { background: var(--dk-paper, #fff); box-shadow: inset 0 0 0 1px var(--s-hair); border: 0; }

/* Account > Members: a 1px hairline with 16px inside, the role as plain text, the blocked action a normal secondary button. */
html[data-look="stage"] .set-surface .mn-list { display: grid; gap: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--s-hair); overflow: hidden; }
html[data-look="stage"] .set-surface .mn-row,
html[data-look="stage"] .set-surface .mn-row:first-child {
  background: transparent; border-radius: 0; box-shadow: none; padding: 16px; gap: 10px 14px;
}
html[data-look="stage"] .set-surface .mn-row + .mn-row { border-top: 1px solid var(--s-hair); }
html[data-look="stage"] .set-surface .mn-actions { gap: 10px 12px; }
html[data-look="stage"] .set-surface .mn-role:has(select:disabled) { width: auto; background: none; box-shadow: none; border: 0; }
html[data-look="stage"] .set-surface .mn-role:has(select:disabled) > :not(select) { display: none; }
html[data-look="stage"] .set-surface .mn-role select:disabled {
  appearance: none; -webkit-appearance: none; width: auto; height: auto; min-height: 0; padding: 0; background: none; border: 0; box-shadow: none;
  font: 500 13px/1.3 var(--v-font); color: var(--s-ink); -webkit-text-fill-color: var(--s-ink); opacity: 1;
}
html[data-look="stage"] .set-surface .mn-actions .btn:disabled {
  background: var(--dk-paper, #fff); color: var(--s-ink); border: 0; box-shadow: inset 0 0 0 1px rgba(31, 31, 33, .12); opacity: 1; cursor: not-allowed;
}
html[data-look="stage"] .set-surface .mn-reason { color: var(--s-ink-2); }

/* ================================================================ *
 * INSIGHTS — the empty state is one centred block; the status is a caption
 * ================================================================ */
html[data-look="stage"] body[data-route="insights"] .estate--page { width: 100%; margin: 24px auto 0; }
html[data-look="stage"] .estate--page .estate-actions { flex-direction: column; gap: 10px; }
html[data-look="stage"] .estate--page .estate-actions .pill {
  height: auto; padding: 0; gap: 0; border: 0; border-radius: 0; background: none; color: var(--s-ink-2);
  font: 400 12px/1.4 var(--v-font);
}
html[data-look="stage"] .estate--page .estate-actions .pill > i { display: none; }
/* the "coming soon" caption under the empty-state button stays inside the column on phones */
html[data-look="stage"] .estate--page .estate-actions { max-width: 100%; align-items: center; }
html[data-look="stage"] .estate--page .estate-actions .estate-caption { flex: 0 1 auto; width: 100%; max-width: 100%; white-space: normal; overflow-wrap: anywhere; text-align: center; }
