/* Readability layer: preserve compact composition while making the portal comfortable on phones. */
body { font-size: 16px; }

.brand { font-size: 12px; }
.brand small, .account-name { font-size: 11px; }
.hero > p:first-child, .section-heading p, .page-title > p, .form-heading p { font-size: 11px; }
.hero > p:last-child, .page-title > span, .success > span { font-size: 16px; line-height: 1.55; }
.action-card strong { font-size: 18px; }
.action-card small { font-size: 14px; line-height: 1.45; }
.section-heading h2 { font-size: 22px; }
.live { font-size: 12px; }

.flow-section-toggle h2 { font-size: 16px; }
.flow-section-toggle .flow-section-count { font-size: 11px; }
.flow-type { font-size: 11px; }
.flow-title { font-size: 18px; }
.status-chip, .presentation-badge { font-size: 10px; }
.flow-route { font-size: 12px; }
.flow-route b { font-size: 13px; }
.flow-context small { font-size: 9px; }
.flow-context q { font-size: 13px; }
.flow-card-foot { font-size: 10px; }

label, legend { font-size: 13px; }
.field input, .field textarea, .field select,
.archive-search input, .archive-search select,
.assignment-response-grid input, .assignment-response-grid select { font-size: 16px; }
.choice span, .optional-fields summary, .decision-button,
.notification-decisions button, .secondary-save { font-size: 13px; }
.bottom-nav button, .bottom-nav a { font-size: 11px; }

/* Keep the authenticated identity clear of the absolutely positioned avatar. */
.profile .account-name {
  display: block;
  padding: 0 38px 0 8px;
  color: #c1c8d1;
  line-height: 32px;
  white-space: nowrap;
  text-decoration: none;
}

#greetingName {
  border: 0;
  background: none;
  box-shadow: none;
  padding: 0;
  text-decoration: none;
}

#greetingTime { color: var(--text); }

.notification-item strong { font-size: 13px; }
.notification-item p, .notification-item small { font-size: 12px; }
.detail-description { font-size: 16px; }
.detail-meta, .history p, .item-note { font-size: 13px; }
.history strong { font-size: 14px; }
.history small { font-size: 11px; }

.memory-suggestions > span, .memory-suggestions button,
.memory-tools-row button, .memory-tools-row > span { font-size: 11px; }
.archive-search label { font-size: 11px; }
.memory-result-type { font-size: 10px; }
.memory-result-title { font-size: 17px; }
.memory-result-meta, .memory-result-footer, .memory-result-footer strong { font-size: 11px; }
.memory-result q { font-size: 13px; }

/* Executive recap: compact history should still be effortless to scan. */
.flow-section[data-flow-section="recent-decisions"]::after {
  top: -18px;
  color: #98a3b1;
  font-size: 11px;
  letter-spacing: 1.35px;
}
.flow-section.is-recap .flow-section-toggle { min-height: 52px; }
.flow-section.is-recap .flow-section-toggle h2 { color: #eef1f5; font-size: 17px; font-weight: 720; }
.flow-section.is-recap .flow-section-count { min-width: 29px; padding: 4px 8px !important; font-size: 12px; }
.flow-section.is-recap .flow-section-toggle > b { display: grid; width: 32px; height: 32px; margin-left: 7px; place-items: center; font-size: 19px; }
.completed-recap-row { min-height: 52px; padding: 8px 12px; }
.completed-recap-row small { color: #929ca9; font-size: 10px; }
.completed-recap-row strong { color: #f0f2f5; font-size: 14px; font-weight: 720; }
.completed-recap-row .status-chip { font-size: 10px; }
.completed-recap-row time { color: #8993a0; font-size: 10px; }
.completed-recap-row > i { font-size: 19px; }

@media (max-width: 599px) {
  body { font-size: 17px; }
  .app-shell { padding-left: 20px; padding-right: 20px; }
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    grid-template-rows: 48px 44px;
    column-gap: 8px;
    row-gap: 10px;
    height: auto;
    min-height: 126px;
    padding: 12px 0;
  }
  .topbar > .brand { grid-column: 1 / 4; grid-row: 1; min-width: 0; }
  .header-actions { display: contents; }
  .header-actions .notification-button { grid-column: 4; grid-row: 1; }
  .header-actions .profile { grid-column: 1 / 3; grid-row: 2; min-width: 0; max-width: 100%; justify-self: start; }
  .header-actions #accountSettings { grid-column: 3; grid-row: 2; }
  .header-actions #signOut { grid-column: 4; grid-row: 2; }
  .header-actions .sign-out { min-height: 40px; padding: 0 10px; font-size: 11px; white-space: nowrap; }
  .brand { overflow: hidden; font-size: 13px; letter-spacing: 1px; white-space: nowrap; }
  .brand > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .brand small { font-size: 12px; }
  .brand-mark.header-logo { width: 42px; height: 42px; border-radius: 13px; }
  .profile .account-name { overflow: hidden; max-width: 100%; font-size: 13px; line-height: 36px; padding-right: 42px; text-overflow: ellipsis; }
  .profile i { width: 36px; height: 36px; font-size: 14px; }
  .profile select { overflow: hidden; max-width: 100%; font-size: 14px; text-overflow: ellipsis; }
  .hero > p:first-child { font-size: 12px; color: #949eac; }
  .hero h1 { font-size: clamp(36px, 10.5vw, 44px); line-height: 1.07; }
  .hero > p:last-child { font-size: 18px; color: #a8b0bc; }
  .action-card { min-height: 116px; grid-template-columns: 62px 1fr auto; gap: 16px; padding: 19px; }
  .action-icon { width: 62px; height: 62px; border-radius: 19px; font-size: 29px; box-shadow: inset 0 1px rgba(255,255,255,.08), 0 10px 24px color-mix(in srgb,var(--glow) 10%,transparent); }
  .action-card strong { font-size: 20px; font-weight: 720; }
  .action-card small { font-size: 15px; color: #9da6b3; }
  .action-card > b { font-size: 30px; color: #828b98; }
  .section-heading h2 { font-size: 24px; }
  .page-title { padding-top: 44px; padding-bottom: 38px; }
  .page-title h1, .form-heading h1 { font-size: 34px; line-height: 1.12; }
  .page-title > span, .form-heading > div > span { font-size: 17px; line-height: 1.55; }
  .back { min-height: 44px; font-size: 15px; }
  form { padding: 20px; }
  label, legend, .field label { font-size: 14px; line-height: 1.35; }
  .field input, .field textarea, .field select,
  .archive-search input, .archive-search select,
  .assignment-response-grid input, .assignment-response-grid select,
  .lead-personal-workflow select, .lead-personal-workflow textarea,
  .blocker-secondary select, .blocker-secondary input { min-height: 52px; font-size: 17px; }
  .choice span, .optional-fields summary, .decision-button,
  .notification-decisions button, .secondary-save { font-size: 15px; }
  .decision-button, .secondary-save, .assignment-action-grid button,
  .blocker-actions button, .confirm-approval { min-height: 50px; font-size: 15px; }
  .detail-description { font-size: 18px; line-height: 1.6; }
  .detail-meta, .history p, .item-note { font-size: 15px; line-height: 1.5; }
  .history strong { font-size: 16px; }
  .history small, .blocker-history summary { font-size: 13px; }
  .assignment-summary small, .blocker-review-summary small,
  .blocker-history dt, .blocker-latest small { font-size: 11px; }
  .assignment-summary strong, .blocker-review-summary b,
  .blocker-history dd, .blocker-latest p { font-size: 14px; line-height: 1.45; }
  .assignment-summary .assignment-next strong { font-size: 16px; }
  .assignment-actions h2, .blocker-secondary h3 { font-size: 18px; }
  .completion-callout small { font-size: 11px; }
  .completion-callout strong { font-size: 16px; line-height: 1.4; }
  .workspace-pills button { min-height: 42px; font-size: 13px; }
  .compact-work-main small, .compact-next small { font-size: 10px; }
  .compact-work-main strong { font-size: 17px; }
  .compact-next b, .compact-work-card > time { font-size: 12px; }
  .lead-card-main strong { font-size: 17px; }
  .lead-card-main small, .lead-card-main em,
  .lead-card-main time, .lead-card-main .lead-type { font-size: 13px; line-height: 1.4; }
  .lead-personal-workflow label, .leads-toolbar label { font-size: 13px; }
  .lead-personal-workflow > button, .lead-workflow-actions > button { min-height: 48px; font-size: 14px; }
  .memory-suggestions > span, .memory-suggestions button,
  .memory-tools-row button, .memory-tools-row > span,
  .archive-search label { font-size: 13px; }
  .memory-result-type { font-size: 12px; }
  .memory-result-title { font-size: 19px; }
  .memory-result-meta, .memory-result-footer,
  .memory-result-footer strong { font-size: 13px; }
  .memory-result q { font-size: 15px; }
  .account-card > p { font-size: 11px; }
  .account-card h2 { font-size: 28px; }
  .account-card > span, .account-card label { font-size: 14px; line-height: 1.45; }
  .account-card input { min-height: 54px; font-size: 17px; }
  .flow-card { padding: 14px; }
  .flow-section-toggle h2 { font-size: 18px; }
  .flow-title { font-size: 20px; }
  .flow-route, .flow-route b { font-size: 14px; }
  .flow-context q { font-size: 14px; }
  .status-chip, .presentation-badge { padding: 6px 9px; font-size: 11px; }
  body .header-actions .notification-button { width: 48px; height: 48px; border-radius: 15px; }
  body .header-actions .notification-button > span { font-size: 23px; }
  .bottom-nav { height: 78px; }
  .bottom-nav button, .bottom-nav a { font-size: 12px; gap: 4px; }
  .bottom-nav span { font-size: 24px; }
  .flow-section[data-flow-section="recent-decisions"]::after { top: -20px; font-size: 12px; font-weight: 850; letter-spacing: 1.45px; }
  .flow-section.is-recap { margin-top: 28px !important; }
  .flow-section.is-recap .flow-section-toggle { min-height: 62px; }
  .flow-section.is-recap .flow-section-toggle h2 { font-size: 20px; }
  .flow-section.is-recap .flow-section-count { min-width: 32px; font-size: 13px; }
  .completed-recap-row { min-height: 68px; padding: 11px 10px; }
  .completed-recap-row small { font-size: 11px; }
  .completed-recap-row strong { font-size: 17px; }
  .completed-recap-row .status-chip, .completed-recap-row time { font-size: 12px; }
  .completed-recap-row > i { font-size: 22px; }
  .login-identity > p, .login-card-heading p { font-size: 14px; }
  .login-card label { font-size: 12px; }
  .forgot-link, .auth-message { font-size: 12px; }
  .login-footnote { font-size: 11px; }
}

@media (max-width: 360px) {
  .app-shell { padding-left: 16px; padding-right: 16px; }
  .topbar { column-gap: 6px; }
  .brand small { font-size: 10px; }
  .header-actions .sign-out { padding: 0 8px; font-size: 10px; }
  .profile .account-name { font-size: 12px; }
}
