/* Account surfaces share the live application palette and native dialog behaviour. */
.app-account-actions { display: flex; align-items: center; gap: 8px; }
.account-launch { white-space: nowrap; }
.launch-status { margin-block: 16px 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 13px; line-height: 1.6; }
.ai-disclosure { font-size: 12px; line-height: 1.5; color: var(--muted); padding: 9px 28px 0; }
.account-gate { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 12px 28px 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); }
.account-gate p { font-size: 13px; line-height: 1.6; max-width: 64ch; }
.account-gate button { flex-shrink: 0; font-size: 12px; }
#account-dialog { width: min(500px, calc(100% - 32px)); }
#account-dialog p { line-height: 1.65; }
#account-dialog label:not(.check-row) { display: block; font-size: 13px; font-weight: 500; margin: 18px 0 8px; }
#account-dialog .check-row { font-size: 13px; line-height: 1.6; margin-top: 6px; }
#account-dialog .check-row a { text-decoration: underline; text-underline-offset: 3px; }
#account-dialog .account-small { font-size: 12px; color: var(--muted); margin-top: 12px; }
.account-links, .account-summary-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: 20px 12px; }
.account-links { justify-content: space-between; border-top: 1px solid var(--line); padding-top: 12px; }
.account-links button, .account-summary-actions button { font-size: 13px; }
.account-feedback { border: 1px solid var(--line); background: var(--surface); padding: 12px 14px; border-radius: 6px; font-size: 13px; margin: 12px 0; overflow-wrap: anywhere; }
.account-feedback.is-error { background: #2e2a34; color: #f4e7d4; border-color: #736275; }
.account-email { font-weight: 600; overflow-wrap: anywhere; }
.account-limits { margin-block: 22px; border-block: 1px solid var(--line); padding-block: 16px; }
.account-limits h3 { font-size: 23px; margin-bottom: 9px; }
#account-quota { font-variant-numeric: tabular-nums; font-size: 14px; }
#account-remaining, #account-verification { color: var(--muted); font-size: 13px; margin-top: 8px; }
@media (max-width: 760px) {
  #app .app-header { flex-wrap: wrap; height: auto; min-height: 72px; padding-block: 8px; gap: 4px 9px; }
  #app .app-header .wordmark { font-size: 25px; }
  .app-account-actions { gap: 2px; }
  .app-account-actions button { font-size: 12px; padding-inline: 8px; }
  .account-gate { margin: 10px 14px 0; padding: 10px 12px; align-items: start; }
  .account-gate p { font-size: 12px; }
  .ai-disclosure { padding-inline: 20px; }
  #account-dialog { padding: 22px; }
}
@media (max-width: 420px) {
  #app .app-header .wordmark { font-size: 22px; }
  #app .mode-switch button { min-width: 50px; padding-inline: 6px; }
  .app-account-actions button { padding-inline: 5px; }
  .account-gate { flex-wrap: wrap; gap: 6px; }
}
@media (max-width: 370px) {
  #app .app-header { display: grid; grid-template-columns: auto 1fr; height: 116px; }
  #app .app-header .wordmark { grid-column: 1; grid-row: 1; }
  #app .app-header .mode-switch { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  #app .app-account-actions { grid-column: 2; grid-row: 1; justify-content: end; }
  #app .companions, #app .memory-panel, .drawer-backdrop { top: 116px; }
}
