/* RentariIQ access and support layout, aligned with Rentari.AI CLAUDE.md.
 * Source: cf764a2183cf6e9121714d33615f27b3456aa1a7.
 * Product controls and typography live in product-system.css. Public marketing,
 * provider controls, email and print retain their separate visual systems.
 */
@media screen {
  .iq-product {
    min-height: 100dvh;
    background: var(--surface-canvas-app);
  }
  .iq-product .auth {
    min-height: 100dvh;
    background: var(--surface-canvas-app);
    padding: 32px 24px;
  }
  .iq-product .auth > div { min-width: 0; max-width: 100%; }
  .iq-product .auth .card-pad { padding: 24px; }
  .iq-product .auth .card > h1 { margin-bottom: 12px; }
  .iq-product .auth .card > p { margin-block: 0 16px; }
  .iq-product .portfolio-chooser { place-items: start center; }
  .iq-product .portfolio-picker .card-head,
  .iq-product .portfolio-picker .card-body { padding: 16px; }
  .iq-product .portfolio-picker .card-head { align-items: center; gap: 12px; }
  .iq-product .portfolio-picker .card-head h1 { margin: 0; }
  .iq-product .portfolio-picker .card-body p { margin-block: 0 12px; }
  .iq-product .portfolio-picker .card-body p:last-child { margin-bottom: 0; }
  .iq-product .portfolio-account-actions { margin-top: 16px; gap: 16px; flex-wrap: wrap; }

  .iq-product.iq-access .iq-auth-shell {
    min-height: calc(100dvh - 100px);
    padding-block: 32px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }
  .iq-product.iq-access .iq-auth-story { padding-top: 12px; }
  .iq-product.iq-access .iq-auth-card {
    min-width: 0;
    max-width: 520px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--surface);
    box-shadow: none;
  }
  .iq-product .iq-auth-card > p { margin-bottom: 16px; }
  .iq-product .iq-auth-card .form { margin-top: 16px; gap: 12px; }
  .iq-product .iq-auth-card .form-row { gap: 12px; }
  .iq-product .iq-auth-card .form-actions { margin-top: 4px; gap: 8px; flex-wrap: wrap; }
  .iq-product .iq-auth-card .form-actions > .btn-primary { flex-grow: 0; width: auto; }
  .iq-product .iq-auth-card .alert { margin-bottom: 12px; }
  .iq-product .iq-auth-card .iq-auth-provider-help { margin-top: 16px; }
  .iq-product .iq-auth-below { margin-top: 16px; }
  .iq-product .iq-auth-below p { margin-block: 0 12px !important; }

  .iq-product.help-site { --canvas: var(--surface-canvas-app); }
  .iq-product.help-site .help-header {
    width: 100%;
    padding-block: 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
  }
  .iq-product.help-site .help-main { padding-top: 24px; padding-bottom: 32px; }
  .iq-product.help-site .help-hero {
    padding: 24px;
    margin-bottom: 16px;
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
  }
  .iq-product.help-site .help-hero .help-eyebrow { color: var(--brand-red-ink); }
  .iq-product.help-site .help-hero > p:not(.help-eyebrow) { color: var(--text-muted); }
  .iq-product.help-site .help-hero .help-search {
    margin-top: 16px;
    padding: 0;
    border-radius: 0;
    background: transparent;
  }
  .iq-product.help-site .help-featured {
    padding: 12px;
    margin-bottom: 16px;
    gap: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
  }
  .iq-product.help-site .help-cards { gap: 12px; }
  .iq-product.help-site .help-card {
    padding: 12px;
    gap: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
  }
  .iq-product.help-site .help-card:is(:hover, :focus-visible) {
    border-color: var(--brand-red-ink);
    transform: none;
  }
  .iq-product.help-site .help-card:is(:hover, :focus-visible) h3 { color: var(--brand-red-ink); }
  .iq-product.help-site .help-topics { margin-bottom: 16px; gap: 8px 16px; }
  .iq-product.help-site .help-group { margin-top: 16px; }
  .iq-product.help-site .help-group > h2 { margin-bottom: 12px; }
  .iq-product.help-site .help-section-head { margin-bottom: 12px; }
  .iq-product.help-site .help-support { margin-top: 24px; padding-top: 16px; gap: 16px; }
  .iq-product.help-site .help-article-layout { margin-top: 16px; gap: 24px; }
  .iq-product.help-site .help-article-nav {
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
  }
  .iq-product.help-site .help-contact .field { margin-bottom: 12px; }
  .iq-product.help-site .help-contact form { margin-top: 16px; }
  .iq-product.help-site .help-footer { gap: 16px; padding-block: 16px; }

  @media (max-width: 980px) {
    .iq-product.iq-access .iq-auth-shell { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .iq-product.iq-access .iq-auth-card { margin-inline: auto; }
  }
  @media (max-width: 640px) {
    .iq-product .auth { padding: 20px 16px; }
    .iq-product .auth .card-pad,
    .iq-product.iq-access .iq-auth-card { padding: 16px; }
    .iq-product.iq-access .iq-auth-shell { padding: 20px 16px; }
    .iq-product.help-site :is(.help-header, .help-main, .help-footer) { padding-inline: 16px; }
    .iq-product.help-site .help-hero { padding: 16px; }
    .iq-product.help-site .help-header { gap: 12px; }
    .iq-product.help-site .help-header nav { gap: 8px 16px; }
    .iq-product.help-site .help-article-layout { gap: 16px; }
    .iq-product .portfolio-picker .card-head { align-items: flex-start; }
    .iq-product .portfolio-picker .card-head .btn { max-width: 100%; }
  }
}
