/* kernel: rules only kernel's pages use, linked-set safe (no rule here can tie with a rule that loads before it); original order. */
/* Boot splash — shown until the session check resolves so a deep link never
   flashes the sign-in page before hydrating. Above every other layer. */
.boot-splash {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
  background: var(--hm-ink);
}
.boot-splash[hidden] { display: none; }
.boot-splash .boot-logo {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-weight: 600;
  font-size: var(--hm-fs-kpi);
  letter-spacing: -0.03em;
  line-height: 1;
}
.boot-splash .boot-logo .has { color: var(--hm-brand-cyan); }
.boot-splash .boot-logo .mord { color: var(--hm-brand-mord-on-dark); }
.hasmord-logo .has {
  color: var(--hm-brand-cyan);
  position: relative;
  padding-bottom: 6px;
}
.hasmord-logo .has::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--hm-brand-cyan) 0%, transparent 100%);
  border-radius: var(--hm-radius-control);
}

.auth-actions .oauth-button {
  min-height: 48px;
  justify-content: flex-start;
}
.nav3-account-text { display: grid; gap: 4px; min-width: 0; }
.nav3-account-text h3 { margin: 0; font-size: var(--hm-fs-body); font-weight: 600; }
.nav3-account-text p { margin: 0; }
.nav3-account-slot .account-profile { gap: 4px; padding-top: 0; }
.nav3-account-slot .avatar-large { width: 48px; font-size: var(--hm-fs-body); box-shadow: none; }
.nav3-account-slot .account-status:empty { display: none; }
.nav3-account-slot .avatar-help { cursor: pointer; } /* W6a-b: the caption opens the chooser too */
.auth-card-email-sent > .eyebrow, .auth-card-email-sent > h2, .auth-card-email-sent > .muted, .auth-card-email-sent > .auth-actions,
.auth-card-email-step > .eyebrow, .auth-card-email-step > h2, .auth-card-email-step > .muted, .auth-card-email-step > .auth-actions { display: none; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--hm-muted); font-size: var(--hm-fs-meta); }
.auth-or::before, .auth-or::after { content: ""; flex: 1; border-top: 1px solid var(--hm-line); }
.email-login-form, .email-login-sent, .email-login-step { display: grid; gap: 10px; }
.email-login-label { font-weight: 600; font-size: var(--hm-fs-meta); }
.email-login-input {
  min-height: 44px; width: 100%; box-sizing: border-box; padding: 0 12px;
  border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); background: var(--hm-surface); color: var(--hm-ink);
  font: inherit;
}
.email-login-input:focus { outline: 2px solid var(--hm-primary); outline-offset: 1px; }
.email-login-challenge:empty { display: none; }
.email-login-submit, .email-login-continue {
  min-height: 48px; width: 100%; border: 1px solid var(--hm-primary); border-radius: var(--hm-radius-control);
  background: var(--hm-primary); color: var(--hm-on-dark); font: inherit; font-weight: 600; cursor: pointer;
}
.email-login-link {
  /* Inline in a sentence and still a real 44px target. Let the inline box grow
     the line: long German/Korean labels can wrap at 320px without the button
     painting over the following text. */
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; margin: 0; line-height: 20px; border: 0; background: none;
  color: var(--hm-primary); font: inherit; text-decoration: underline; cursor: pointer;
}
.email-login-message { margin: 0; padding: 10px 12px; border-radius: var(--hm-radius-control); background: var(--hm-sand); color: var(--hm-pending); }
.email-login-help, .email-login-again { margin: 0; font-size: var(--hm-fs-meta); line-height: 1.6; }
/* The step titles are the card's h2 (same face, size and weight as the sign-in page's "Continue to Hasmord"). */
.email-login-sent p, .email-login-step p { margin: 0; overflow-wrap: anywhere; }

.auth-notice {
  margin: 0;
  padding: 10px 12px;
  border-radius: var(--hm-radius-control);
  background: var(--hm-sand);
  color: var(--hm-pending);
  font-size: var(--hm-fs-body);
  line-height: 1.45;
}

.brand-logo .has {
  color: var(--hm-brand-cyan);
  position: relative;
  padding-bottom: 4px;
}

.brand-logo .has::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.5px;
  border-radius: var(--hm-radius-control);
  background: linear-gradient(90deg, var(--hm-brand-cyan) 0%, transparent 100%);
}

.brand-logo .mord {
  color: var(--hm-brand-mord-on-dark);
}
.mobile-menu-toggle .mobile-menu-icon {
  display: block;
}

.tab-dot {
  width: 8px;
  aspect-ratio: 1;
  border-radius: var(--hm-radius-pill);
  background: var(--hm-primary);
  box-shadow: 0 0 8px var(--hm-focus-ring);
}

.tab-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.global-search .search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.global-search .search-icon {
  position: absolute;
  left: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.55;
  pointer-events: none;
  color: var(--hm-on-dark);
}

.global-search .search-icon svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  color: inherit;
}

.oauth-button:hover {
  background: var(--hm-neutral);
  transform: translateY(-1px);
}

.oauth-button.google {
  border-color: var(--hm-danger-line);
}
.oauth-button.google:hover {
  border-color: var(--hm-danger);
  box-shadow: 0 0 12px -3px var(--hm-danger-ring);
}

.oauth-button.microsoft {
  border-color: var(--hm-primary-line);
}
.oauth-button.microsoft:hover {
  border-color: var(--hm-primary);
  box-shadow: 0 0 12px -3px var(--hm-focus-ring);
}

.oauth-button.apple {
  border-color: var(--hm-line);
}
.oauth-button.apple:hover {
  border-color: var(--hm-ink);
  box-shadow: 0 0 12px -3px var(--hm-shadow-color-strong);
}

.account-menu-button:hover,
.account-menu-button[aria-expanded="true"] {
  box-shadow: 0 0 0 3px var(--hm-surface-glass);
}

.account-profile {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding-top: 4px;
}

.avatar-upload-button {
  border: 0;
  border-radius: var(--hm-radius-pill);
  padding: 0;
  background: transparent;
}

.avatar-upload-button:hover {
  box-shadow: 0 0 0 4px var(--hm-focus-ring);
}

.avatar-large {
  width: 84px;
  font-size: var(--hm-fs-section);
  box-shadow: 0 8px 24px var(--hm-focus-ring);
}

.avatar-help,
.account-status {
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
  font-weight: 600;
}

.account-status {
  min-height: 1.1em;
  margin: 0;
}

.account-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
  justify-items: center;
  text-align: center;
}

.account-copy strong {
  color: var(--hm-ink);
  font-size: var(--hm-fs-meta);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.account-copy span {
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tenant-switcher span {
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.status-pill span {
  width: 8px;
  height: 8px;
  border-radius: var(--hm-radius-pill);
  background: var(--hm-primary);
  box-shadow: 0 0 8px var(--hm-primary);
  animation: pulsePulse 2s infinite;
}

.quick-stats article > span,
.quick-stat-filter > span {
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: calc(var(--hm-fs-label) * 1.3 * 2);
}

.list-toolbar label {
  width: min(360px, 100%);
  min-width: 220px;
}

.list-toolbar .ghost-button {
  min-height: var(--hm-control-height);
}

.pagination-bar label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--hm-muted);
  font-weight: 600;
}

.pagination-bar select {
  min-width: 72px;
  min-height: var(--hm-control-height);
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-control);
  padding: 0 10px;
  background: var(--hm-surface);
  color: var(--hm-ink);
  font: inherit;
  font-size: var(--hm-fs-label);
}

.pagination-actions span {
  min-width: 88px;
  color: var(--hm-muted);
  font-size: var(--hm-fs-meta);
  text-align: center;
}

.evidence-page-header {
  display: grid;
  gap: 14px;
}

.evidence-back-link {
  width: fit-content;
}

.evidence-page-heading {
  margin-bottom: 0;
}

.evidence-page-loading {
  padding: 32px;
  border: 1px dashed var(--hm-line-strong);
  border-radius: var(--hm-radius-control);
  color: var(--hm-muted);
  text-align: center;
}

.batch-downloads { display: flex; flex-wrap: wrap; gap: var(--hm-space-2) var(--hm-space-3); } /* the two downloads never touch when they stack */
.template-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--hm-control-height);
  padding: 0 14px;
  border-radius: var(--hm-radius-control);
  font-size: var(--hm-fs-label);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.batch-form output {
  margin-top: 4px;
}

.upload-icon {
  font-size: var(--hm-fs-kpi);
  margin-bottom: 4px;
}

.batch-form.is-busy::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--hm-mint);
}

.batch-form.is-busy::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32%;
  height: 3px;
  background: var(--hm-primary);
  animation: progressSweep 1.15s ease-in-out infinite;
}

.batch-list {
  display: grid;
  gap: 12px;
}

.help-article {
  min-width: 0;
}

.help-section:last-child {
  border-bottom: 0;
  padding-bottom: 12px;
}

.help-section-heading {
  min-width: 0;
  max-width: 860px;
}

.help-section-heading > p:last-child {
  margin: 0;
  color: var(--hm-ink);
  font-size: var(--hm-fs-meta);
  line-height: 1.65;
}

.workflow-list li::before {
  content: counter(workflow);
  width: 30px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  grid-row: 1 / span 2;
  align-self: start;
  border-radius: var(--hm-radius-pill);
  background: var(--hm-mint);
  color: var(--hm-primary);
  font-size: var(--hm-fs-label);
  font-weight: 600;
}

.help-path-grid a {
  min-width: 0;
  display: grid;
  gap: 5px;
  border-top: 2px solid var(--hm-primary);
  background: var(--hm-mint);
  padding: 14px;
  color: inherit;
  text-decoration: none;
}

.help-path-grid a:hover,
.help-path-grid a:focus-visible {
  background: var(--hm-mint);
}

.help-path-grid span {
  color: var(--hm-ink);
  font-size: var(--hm-fs-meta);
  line-height: 1.45;
}

.help-feature-list b {
  display: block;
  margin-bottom: 7px;
  color: var(--hm-ink);
  font-size: var(--hm-fs-meta);
}

.help-feature-list p,
.help-recovery-grid p {
  margin: 0;
  color: var(--hm-ink);
  font-size: var(--hm-fs-meta);
  line-height: 1.58;
}

.help-feature-list code {
  color: var(--hm-primary);
  font: var(--hm-fs-label)/1.4 var(--hm-font-mono);
}

.help-note strong,
.help-warning strong,
.help-footer-note strong {
  color: var(--hm-ink);
}

.help-metric-grid > div,
.help-status-grid > div {
  min-width: 0;
  display: grid;
  gap: 5px;
  background: var(--hm-surface);
  padding: 15px;
}

.help-metric-grid b,
.help-status-grid b {
  color: var(--hm-primary);
  font-size: var(--hm-fs-meta);
}

.help-metric-grid span,
.help-status-grid span {
  color: var(--hm-ink);
  font-size: var(--hm-fs-meta);
  line-height: 1.48;
}

.help-figure {
  min-width: 0;
  margin: 2px 0 0;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-control);
  overflow: hidden;
  background: var(--hm-neutral);
}

.help-figure figcaption {
  border-top: 1px solid var(--hm-line);
  background: var(--hm-surface);
  padding: 11px 15px;
  color: var(--hm-ink);
  font-size: var(--hm-fs-meta);
  line-height: 1.45;
}

.help-figure figcaption strong {
  color: var(--hm-ink);
}

/* UX-E completion S10: the navigation figure is the console's own top bar and a product's five pages (SHELL_NAV and
   WORKSPACE_SUBPAGES — a test keeps the figure equal to them). */
.help-mock-shell.help-mock-shell-nav {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
}

.help-mock-nav-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.help-mock-nav-group > span.active,
.help-mock-nav-row > span.active {
  background: var(--hm-mint);
  color: var(--hm-primary);
  font-weight: 600;
}

.help-mock-nav-row > .help-mock-search {
  flex: 1 1 140px;
  background: var(--hm-neutral);
}

.help-mock-page {
  display: grid;
  gap: 6px;
  border: 1px solid var(--hm-line);
  background: var(--hm-surface);
  padding: 12px;
  color: var(--hm-ink);
  font-size: var(--hm-fs-label);
}

.help-mock-page small {
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
}

.help-purpose {
  max-width: 72ch;
  margin: 0 0 var(--hm-space-3);
  border-radius: var(--hm-radius-control);
  background: var(--hm-mint);
  padding: 10px 14px;
  color: var(--hm-ink);
  line-height: 1.55;
}

.help-mock-actions span,
.help-mock-window button,
.help-evidence-form button,
.help-evidence-row button,
.help-team-actions button,
.help-mock-agent button {
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-control);
  background: var(--hm-surface);
  padding: 6px 8px;
  color: var(--hm-primary);
  font: inherit;
  font-size: var(--hm-fs-label);
  font-weight: 600;
}

.help-mock-titlebar span {
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
}

.help-mock-drop {
  min-height: 92px;
  display: grid;
  place-content: center;
  gap: 5px;
  border: 1px dashed var(--hm-primary-line);
  background: var(--hm-surface);
  text-align: center;
}

.help-mock-drop b {
  color: var(--hm-ink);
  font-size: var(--hm-fs-label);
}

.help-mock-drop span {
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
}

.help-mock-batch-summary .warn,
.help-mock-batch-row.failed b {
  color: var(--hm-pending);
}

.help-mock-batch-row.failed {
  border-left-color: var(--hm-pending);
}

.help-mock-batch-row i {
  color: var(--hm-muted);
  font-style: normal;
}

.help-mock-batch-row b {
  color: var(--hm-primary);
}

.help-score-ring b {
  color: var(--hm-ink);
  font-size: var(--hm-fs-body);
}

.help-score-ring span {
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
  font-weight: 600;
}

.help-report-copy > b {
  color: var(--hm-ink);
  font-size: var(--hm-fs-body);
}

.help-report-copy span {
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
}

.help-report-fix > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.help-report-fix b {
  color: var(--hm-ink);
  font-size: var(--hm-fs-label);
}

.help-report-fix span,
.help-report-fix em {
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
  font-style: normal;
}

.help-report-fix em {
  border-radius: var(--hm-radius-pill);
  background: var(--hm-mint);
  padding: 5px 7px;
  color: var(--hm-primary);
  font-weight: 600;
}

.help-evidence-tabs {
  display: flex;
  gap: 18px;
  border-bottom: 1px solid var(--hm-line);
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
}

.help-evidence-tabs b {
  border-bottom: 2px solid var(--hm-primary);
  padding: 8px 2px;
  color: var(--hm-primary);
}

.help-evidence-tabs span {
  padding: 8px 2px;
}

.help-evidence-row > div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.help-evidence-row b {
  color: var(--hm-ink);
}

.help-fact-summary span,
.help-simulator-kpis span {
  display: grid;
  gap: 3px;
  border: 1px solid var(--hm-line);
  background: var(--hm-surface);
  padding: 9px;
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
}

.help-fact-summary b,
.help-simulator-kpis b {
  color: var(--hm-ink);
  font-size: var(--hm-fs-meta);
}

.help-fact-summary .ok {
  border-top: 2px solid var(--hm-success);
}

.help-fact-summary .danger {
  border-top: 2px solid var(--hm-danger);
}

.help-mock-aio > div:first-child,
.help-mock-team > div:first-child {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  align-items: center;
}

.help-mock-aio small,
.help-mock-team small,
.help-mock-agent small,
.help-mock-citations small {
  color: var(--hm-primary);
  font-size: var(--hm-fs-label);
  font-weight: 600;
  letter-spacing: 0.08em;
}

.help-mock-aio > div:first-child > b,
.help-mock-team > div:first-child > b {
  color: var(--hm-ink);
  font-size: var(--hm-fs-meta);
}

.help-aio-stats span {
  display: grid;
  gap: 4px;
  border: 1px solid var(--hm-line);
  background: var(--hm-surface);
  padding: 10px;
}

.help-aio-stats small {
  color: var(--hm-muted);
}

.help-aio-stats b {
  color: var(--hm-ink);
  font-size: var(--hm-fs-label);
}

.help-aio-url {
  overflow-wrap: anywhere;
  border: 1px solid var(--hm-line);
  background: var(--hm-surface);
  padding: 9px;
  color: var(--hm-muted);
  font: var(--hm-fs-label)/1.4 var(--hm-font-mono);
}

.help-crawler-row,
.help-provider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--hm-line);
  padding: 8px 2px;
  color: var(--hm-ink);
  font-size: var(--hm-fs-label);
}

.help-crawler-row b,
.help-provider-row b {
  color: var(--hm-ink);
}

.help-mock-agent > b,
.help-mock-citations > b {
  color: var(--hm-ink);
  font-size: var(--hm-fs-meta);
}

.help-mock-agent > span,
.help-mock-citations > div:not(:first-child) {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--hm-line);
  background: var(--hm-surface);
  padding: 9px;
  color: var(--hm-ink);
  font-size: var(--hm-fs-label);
}

.help-mock-agent > div,
.help-team-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.help-mock-citations strong {
  color: var(--hm-ink);
}

.help-mock-team > div:first-child > span {
  grid-column: 1 / -1;
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
}

.help-team-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--hm-line);
  background: var(--hm-surface);
  padding: 10px;
}

.help-team-row > i {
  width: 28px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: var(--hm-radius-pill);
  background: var(--hm-primary);
  color: var(--hm-on-dark);
  font-size: var(--hm-fs-label);
  font-style: normal;
  font-weight: 600;
}

.help-team-row > span {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.help-team-row b {
  color: var(--hm-ink);
  font-size: var(--hm-fs-label);
  overflow-wrap: anywhere;
}

.help-team-row small {
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
  letter-spacing: 0;
}

.help-team-row em {
  border-radius: var(--hm-radius-pill);
  background: var(--hm-mint);
  padding: 5px 8px;
  color: var(--hm-primary);
  font-size: var(--hm-fs-label);
  font-style: normal;
}

.help-scenario-list details {
  min-width: 0;
  border-bottom: 1px solid var(--hm-line);
  background: var(--hm-surface);
}

.help-scenario-list summary::-webkit-details-marker {
  display: none;
}

.help-scenario-list summary::after {
  content: "+";
  grid-column: 3;
  color: var(--hm-muted);
  font-size: var(--hm-fs-body);
  font-weight: 400;
}

.help-scenario-list details[open] summary::after {
  content: "−";
}

.help-scenario-list summary span {
  width: 32px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: var(--hm-radius-pill);
  background: var(--hm-mint);
  color: var(--hm-primary);
  font-size: var(--hm-fs-label);
  font-weight: 600;
}

.help-scenario-list summary b {
  min-width: 0;
  font-size: var(--hm-fs-meta);
}

.help-scenario-list ol {
  margin: 0 0 10px;
  padding-left: 20px;
  color: var(--hm-ink);
  font-size: var(--hm-fs-meta);
  line-height: 1.62;
}

.help-scenario-list p {
  margin: 0;
  border-left: 2px solid var(--hm-primary);
  padding-left: 12px;
  color: var(--hm-ink);
  font-size: var(--hm-fs-meta);
  line-height: 1.5;
}

.help-scenario-list p strong {
  color: var(--hm-ink);
}

.help-recovery-grid > div {
  min-width: 0;
  border-right: 1px solid var(--hm-line);
  border-bottom: 1px solid var(--hm-line);
  padding: 16px;
}

.help-recovery-grid b {
  display: block;
  margin-bottom: 7px;
  color: var(--hm-ink);
  font-size: var(--hm-fs-meta);
}

.help-table td:first-child {
  width: 120px;
}

.identity-card {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--hm-line);
  border-radius: var(--hm-radius-control);
  background: var(--hm-mint);
}

.identity-card span {
  color: var(--hm-muted);
  font-size: var(--hm-fs-label);
  font-weight: 600;
  text-transform: uppercase;
}

.capability-list,
.role-list,
.invitation-list,
.member-list,
.audit-list {
  display: grid;
  gap: 10px;
}

.settings-form button,
.invite-form button {
  justify-self: start;
}
.toast-icon {
  flex: 0 0 auto; width: 20px; height: 20px; border-radius: var(--hm-radius-pill); color: var(--hm-on-dark);
  display: inline-flex; align-items: center; justify-content: center; font-size: var(--hm-fs-label); font-weight: 600; margin-top: 1px;
}
.toast-info .toast-icon { background: var(--hm-primary); }
.toast-success .toast-icon { background: var(--hm-success); }
.toast-error .toast-icon { background: var(--hm-danger); }
.toast-close:hover { color: var(--hm-ink); }

/* Refer & earn panel */
.referral-panel { grid-column: 1 / -1; }
.referral-linkrow { align-items: flex-end; }
.referral-linkrow > .hm-form-row:first-child { flex: 1 1 320px; }
.referral-linkrow input { width: 100%; min-width: 0; padding: 0 12px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); font-size: var(--hm-fs-meta); font-family: inherit; background: var(--hm-neutral); }
.referral-linkrow input:focus { outline: none; } /* nothing is focused on load; a click shows the one focus ring (the form rows' own) */

/* ---- Overview (home dashboard) ---------------------------------------- */
/* Topic 3 · Market Seed claim banner (T3-3). */
.claimable-card { background: var(--hm-surface); border: 1px solid var(--hm-line); border-radius: var(--hm-radius-card); padding: 16px 20px; margin: 4px 0 18px; }
.claim-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.claim-name { font-weight: 600; color: var(--hm-ink); }
.claim-src { font-size: var(--hm-fs-label); color: var(--hm-ink); text-decoration: none; word-break: break-all; }
.claim-src:hover { text-decoration: underline; }

/* ---- Toast action link (e.g. Upgrade on quota errors) ---- */
.toast-action { flex: none; font-weight: 600; font-size: var(--hm-fs-label); text-decoration: none; padding: 6px 13px; border-radius: var(--hm-radius-control); background: var(--hm-ink); color: var(--hm-on-dark); white-space: nowrap; }
.toast-action:hover { filter: brightness(1.12); text-decoration: none; }
.funnel-control label { font-size: var(--hm-fs-label); text-transform: none; letter-spacing: 0; color: var(--hm-muted); font-weight: 600; } /* a field's label is a sentence-case word, like every other form's */
.funnel-control label .funnel-muted { text-transform: none; letter-spacing: 0; font-weight: 400; }
.funnel-control select, .funnel-control input { padding: 8px 10px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); font: inherit; font-size: var(--hm-fs-meta); background: var(--hm-surface); color: var(--hm-ink); min-width: 200px; }
.funnel-drill { margin-top: 8px; }
.help-news p { margin: 0; }
.settings-grid > .settings-panel { scroll-margin-top: 96px; }
#settings-view .settings-grid { align-items: start; } /* UX-54: a short panel is never stretched by its neighbour */
#account-view .workspace { display: grid; gap: var(--hm-space-4); max-width: 880px; }
.team-main { min-width: 0; display: grid; gap: 12px; }
.team-main .hm-table td:not(:first-child) { white-space: nowrap; }
.team-main .hm-table td:first-child { overflow-wrap: anywhere; }

.ux-shell .hm-filter-bar input[type="search"]:not(.nav3-find-field) { background: var(--hm-surface); } /* inputs in a filter row all look the same: the search is white like the selects (coordinate 10-28) */
.team-roles > summary { cursor: pointer; font-size: var(--hm-fs-meta); font-weight: 600; color: var(--hm-ink); padding: 4px 0; }
.team-roles[open] > summary { margin-bottom: 10px; }
.team-side .invite-form { grid-template-columns: 1fr; align-items: stretch; }
.team-side .invite-form button { justify-self: start; }
.invite-role-help { margin: -4px 0 0; font-size: var(--hm-fs-meta); line-height: 20px; }
.invite-locked-note { margin: 0; }
.settings-form .hm-form-row { min-width: 0; }

/* ── S1f · Workspace: When your website and Hasmord disagree ── */
.source-of-truth-form > .truth-help,
.source-of-truth-form > .truth-choices { grid-column: 1 / -1; }
.permission-details > summary { cursor: pointer; font-size: var(--hm-fs-meta); font-weight: 600; color: var(--hm-ink); padding: 4px 0; }
.permission-details[open] > summary { margin-bottom: 10px; }
.import-panel[hidden] { display: none; }
.import-submit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.import-submit-row button { white-space: nowrap; }
.batch-current { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.batch-current:empty { display: none; }
.batch-current h3 { margin: 0; }
.import-panel .category-field { max-width: 720px; }
.import-panel output { font-family: inherit; overflow-wrap: anywhere; } /* a long file name breaks instead of running past the card */
.obs-compare-wrap { display: flex; align-items: flex-start; gap: var(--hm-info-gap); }
 .obs-compare-wrap > .obs-compare { flex: 1 1 auto; min-width: 0; }
[data-obs-whatif] .funnel-control select, [data-obs-whatif] .funnel-control input { max-width: 100%; min-width: 0; }
.quick-stat-filter:hover { background: none; }
.quick-stat-filter:focus-visible { outline: 2px solid var(--hm-primary); outline-offset: 4px; border-radius: var(--hm-radius-control); }
.quick-stat-filter[aria-pressed="true"] strong { color: var(--hm-primary); }
.quick-stats-scope .text-button { margin-left: 4px; }
body.ux-shell #settings-view .hm-section-nav a:hover:not([aria-current="page"]), body.ux-shell #observability-view .hm-section-nav a:hover:not([aria-current="page"]) { background: var(--hm-surface); }
html.has-nav-drawer body.ux-shell.ux-nav-short.nav-open .nav-drawer-backdrop { display: block; position: fixed; inset: 0; z-index: 490; margin: 0; padding: 0; border: 0; background: var(--hm-overlay); cursor: pointer; }
.ux-shell .ux-products-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--hm-space-3) var(--hm-space-4); margin: 0 0 var(--hm-space-3); padding: 0; border: 0; background: transparent; box-shadow: none; }
.ux-shell .ux-products-search { flex: 1 1 280px; max-width: 420px; margin: 0; }
.ux-shell .ux-products-search input { width: 100%; box-sizing: border-box; min-height: var(--hm-touch-target); padding: 0 var(--hm-space-4); border: 1px solid var(--hm-line-strong); border-radius: var(--hm-radius-control); font: inherit; color: var(--hm-ink); background: var(--hm-surface); }
.ux-shell .ux-products-toolbar > label:not(.ux-products-search) { display: flex; align-items: center; gap: var(--hm-space-2); font-size: var(--hm-fs-label); font-weight: 600; }
.ux-shell .ux-products-toolbar .products-sort-note { flex: 1 1 200px; font-size: var(--hm-fs-meta); }
.ux-shell #funnel-view #funnel-page-header { margin-bottom: var(--hm-space-5); } /* Engine diagnostics: the Settings grid's gap spaces its header (OWNRES fix1) */
.ux-shell .ux-crumb .ux-crumb-dots { display: none; }
.ux-shell .ux-crumb .ux-crumb-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#auth-view .auth-card .eyebrow { font-size: var(--hm-fs-label); }
#auth-view p.muted { font-size: var(--hm-fs-meta); }
#auth-view .oauth-button { font-size: var(--hm-fs-body); }
.language-login { display: grid; gap: var(--hm-space-2); margin-bottom: var(--hm-space-3); }
.language-login[hidden] { display: none; }
.language-login-label { color: var(--hm-muted); font-size: var(--hm-fs-label); font-weight: 600; }
.language-login select, .language-settings-form select { width: 100%; min-width: 0; min-height: var(--hm-control-height); }
.language-settings-panel { max-width: 720px; }
.language-settings-form { grid-template-columns: minmax(0, 1fr); align-items: start; }
.language-settings-form > label { font-weight: 600; }
.language-settings-form > .muted { margin: 0; overflow-wrap: anywhere; }
.language-settings-form > .form-actions { display: flex; align-items: center; gap: var(--hm-space-3); flex-wrap: wrap; }
.language-billing-hint { padding: var(--hm-space-3); border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); background: var(--hm-neutral); }
.ux-shell :is(.help-report-copy, .help-score-ring) b { font-size: var(--hm-fs-body); font-weight: 600; }
.ux-shell .help-page-title { font-size: var(--hm-fs-body); font-weight: 600; }
.workspace-unavailable[hidden] { display: none; }
.workspace-unavailable-card { width: 100%; max-width: 440px; padding: 32px 28px; text-align: center; background: var(--hm-surface); border: 1px solid var(--hm-line); border-radius: var(--hm-radius-card); }
.workspace-unavailable-card h1 { margin: 16px 0 8px; font-size: var(--hm-fs-section); }
.help-table-wrap:focus-visible { outline: 3px solid var(--hm-primary); outline-offset: 2px; }
.avatar-actions[hidden] { display: none; }
.ux-shell.nav3 #products-view .ux-products-summary, .ux-shell.nav3 #products-view #products-stats-scope { display: none; }

.ux-shell .help-table td { vertical-align: middle; }
.ux-shell .team-main .hm-table td:first-child { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; overflow-wrap: normal; }
.ux-shell .team-main .hm-table td:not(:first-child) { text-overflow: ellipsis; overflow: hidden; max-width: 200px; }

/* Help: each "What this page does for you" callout names its page (2.7.3.9: seven of them in a row said nothing about which page). */
.help-purpose[data-help-page]::before { content: attr(data-help-page); display: block; margin-bottom: var(--hm-space-1); color: var(--hm-muted); font-size: var(--hm-fs-label); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }

/* A Settings section is as tall as its own content (2.7.3.9: Account & session's card stretched to the sub-menu's height and left 190px blank under its inner card). */
#settings-view .workspace > .settings-section { align-self: start; }
.hm-reviewer-banner-text { flex: 1 1 auto; min-width: 0; font-weight: 600; }
.hm-reviewer-banner-notice { flex: 1 1 100%; color: var(--hm-pending); font-weight: 600; }
.hm-reviewer-banner-notice[hidden] { display: none; }
.nav3-find-box { position: relative; display: flex; align-items: center; }
.nav3-find-icon { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--hm-muted); pointer-events: none; }
.nav3-find-field::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.nav3-find-clear {
  position: absolute; right: 0; top: 0; display: flex; align-items: center; justify-content: center; width: var(--hm-touch-target); height: var(--hm-touch-target);
  padding: 0; border: 0; border-radius: var(--hm-radius-control); background: transparent; color: var(--hm-muted); cursor: pointer;
}
.nav3-find-clear:hover { color: var(--hm-ink); }
.nav3-find-clear:focus-visible, .nav3-find-row:focus-visible, .nav3-find-more:focus-visible, .nav3-find-retry:focus-visible { outline: 3px solid var(--hm-primary); outline-offset: 2px; }
.nav3-find-hint { margin: 6px 0 0; font-size: var(--hm-fs-label); color: var(--hm-muted); }
.nav3-find-results { margin: 10px 0 0; padding: 4px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); background: var(--hm-surface); }
.nav3-find-results[hidden] { display: none; }
.nav3-find-row {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; box-sizing: border-box; min-height: var(--hm-touch-target); padding: 7px 10px;
  border-radius: var(--hm-radius-control); color: var(--hm-ink); text-decoration: none; cursor: pointer;
}
.nav3-find-row:hover, .nav3-find-row.is-highlighted { background: var(--hm-mint); }
.nav3-find-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: var(--hm-fs-meta); font-weight: 600; overflow-wrap: anywhere; }
.nav3-find-name.is-missing { font-weight: 400; font-style: italic; color: var(--hm-muted); }
.nav3-find-meta { font-size: var(--hm-fs-label); color: var(--hm-muted); overflow-wrap: anywhere; }
.nav3-find-note { margin: 0; padding: 8px 10px; font-size: var(--hm-fs-label); color: var(--hm-muted); overflow-wrap: anywhere; }
.nav3-find-more { display: flex; align-items: center; min-height: var(--hm-touch-target); padding: 0 10px; font-size: var(--hm-fs-label); color: var(--hm-primary); text-decoration: none; }
.nav3-find-retry {
  min-height: var(--hm-touch-target); margin: 0 10px 6px; padding: 0 14px; border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control);
  background: var(--hm-surface); color: var(--hm-primary); font: inherit; font-size: var(--hm-fs-label); font-weight: 600; cursor: pointer;
}
/* W3b-2: Ask your agent's list — a heading, product cards (the chosen one in mint, as the mock), the note under it */
.nav3-find-head { margin: 12px 0 8px; font-size: var(--hm-fs-label); color: var(--hm-muted); }
.nav3-find[data-nav3-find="agent"] .nav3-find-results { padding: 0; border: 0; background: transparent; }
.nav3-agent-row {
  width: 100%; margin: 0 0 8px; border: 1px solid var(--hm-line); background: var(--hm-surface); font: inherit; text-align: left;
}
.nav3-agent-row.is-chosen { border-color: var(--hm-primary); background: var(--hm-mint); }
.nav3-agent-row.is-off { cursor: default; opacity: 0.7; }
.nav3-agent-row.is-off:hover { background: var(--hm-surface); }
.nav3-prod:hover { background: var(--hm-hover); }
.nav3-prod.is-open { background: var(--hm-selected); font-weight: 600; }
.nav3-prod:focus-visible { outline: 3px solid var(--hm-primary); outline-offset: 2px; }
.nav3-prod-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav3-prod-badge { flex: none; padding: 1px 7px; border-radius: var(--hm-radius-pill); background: var(--hm-neutral); color: var(--hm-muted); font-size: var(--hm-fs-label); font-weight: 600; }
.nav3-prod-pages { margin: 2px 0 6px 18px; padding-left: 12px; border-left: 1px solid var(--hm-line-strong); }
.nav3-prod-pages .nav3-item { min-height: 34px; padding-left: 8px; }
.help-mock-col2 > b { padding: 0 8px var(--hm-space-2); color: var(--hm-ink); }
.help-mock-col2 > span { padding: 4px 8px; border-radius: var(--hm-radius-control); color: var(--hm-muted); }
.help-mock-col2 > span.sub { padding-left: var(--hm-space-5); }
.help-mock-col2 > span.active { background: var(--hm-hover-strong); color: var(--hm-ink); }
.help-mock-3col .help-mock-page { padding: var(--hm-space-4); align-content: start; }
.help-mock-3col .help-mock-nav-row { flex-wrap: wrap; gap: 2px; }
.help-mock-3col .help-mock-nav-row > span { padding: 6px 7px; }

/* 2.7.3 (coordinate 10-26): a Coming soon item carries the shared tag under its name — said once, on the item (no module has a foot note any more) */
.nav3-item.nav3-item-soon { display: grid; grid-template-columns: var(--hm-icon-m) minmax(0, 1fr); column-gap: 10px; row-gap: 2px; align-items: center; }
.nav3-item-soon .nav3-icon { grid-row: 1; align-self: center; } /* the icon sits with the name's row, the tag under the name (measure iconLabelOffCentre) */
.nav3-item-soon .nav3-item-label { grid-column: 2; }
.nav3-item-soon .tag { grid-column: 2; justify-self: start; } /* under its name, never beside it: a name like "Quotes & contracts" keeps its whole width */
.settings-page-save:empty { display: none; }
.ux-shell .team-main .hm-table td.hm-row-actions { white-space: normal; overflow: visible; } /* over `td:not(:first-child) { nowrap }` and the cell's own clip */

/* 2.8.1.4E · onboarding (kernel/guide.js): an inline card at the top of the page — the first-run guide, a menu's tour, a Help entry — and the "?" in the top line. Never a popup. */
#guide-slot:empty { display: none; }
#guide-slot { display: grid; gap: 12px; padding: 12px 0 0; }
.guide-card, .guide-tour, .guide-help, .guide-strip {
  border: 1px solid var(--hm-line);
  border-left: 4px solid var(--hm-primary);
  border-radius: var(--hm-radius-card);
  background: var(--hm-surface);
  padding: 14px 16px;
  min-width: 0;
}
.guide-card { display: grid; gap: 10px; }
.guide-head, .guide-tour-head, .guide-tour-foot { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; }
.guide-dots { display: inline-flex; gap: 6px; align-items: center; }
.guide-dots i { display: block; width: 26px; height: 6px; border-radius: var(--hm-radius-pill); background: var(--hm-line-strong); }
.guide-dots i.is-done { background: var(--hm-success); }
.guide-dots i.is-now { background: var(--hm-primary); }
.guide-done-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; color: var(--hm-success); font-size: var(--hm-fs-body); }
.guide-auto { margin: 0; font-size: var(--hm-fs-label); }
.guide-tour { display: grid; gap: 12px; }
.guide-tour-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.guide-tour-steps li { border: 1px solid var(--hm-line); border-radius: var(--hm-radius-control); padding: 10px 12px; background: var(--hm-bg); }
.guide-tour-steps li p { margin: 5px 0 0; }
.guide-no { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: var(--hm-radius-pill); background: var(--hm-neutral); color: var(--hm-primary); font-size: var(--hm-fs-label); font-weight: 600; margin-right: 6px; }
.guide-help { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.guide-strip { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; justify-content: space-between; padding: 8px 12px; }
.guide-q { /* the plan icon's own look (.ux-subscribe): the same round size, no ring but the keyboard focus ring; last in the row wherever the plan icon comes */
  order: 99; flex: none; display: inline-grid; place-items: center; width: var(--hm-control-height); height: var(--hm-control-height); padding: 0; box-shadow: none; border-radius: var(--hm-radius-pill);
  border: 1px solid var(--hm-primary-line); background: var(--hm-mint); color: var(--hm-primary); font-weight: 600; cursor: pointer;
}
.guide-q:hover { background: var(--hm-surface); }
.guide-q:focus-visible { outline: 3px solid var(--hm-primary); outline-offset: 2px; }
.guide-q[aria-pressed="true"] { background: var(--hm-primary); color: var(--hm-surface); }
