/* Account pages extend the site's Stellar typography, gradient and quiet borders. */
[hidden] { display: none !important; }
#header { padding: 3.5em 2em 2em; }
#header h1 { font-size: 2.2em; }
#header-user { overflow-wrap: anywhere; }
#nav { position: static; width: 100%; max-width: none; }
#nav + #main { padding-top: 0; }
#nav ul { margin: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 0.15em; }
#nav ul li { margin: 0; }
#nav a:focus-visible, #main button:focus-visible, summary:focus-visible { outline: 2px solid #8cc9f0; outline-offset: 3px; }
#main .major { text-align: center; }
#main .major h2:after { margin-left: auto; margin-right: auto; }
.loading { padding: 2em; text-align: center; color: #636363; }
.dashboard-notice { margin: 0; padding: 1.25em 2em; border-bottom: 1px solid #dddddd; background: #fafafa; }
.error { color: #a43e48; }
.account-grid { display: grid; grid-template-columns: 1.25fr 0.8fr 1fr; gap: 1.3em; }
.account-card { min-width: 0; padding: 1.4em; border: 1px solid #dddddd; border-radius: 0.25em; }
.account-card h3 { font-size: 1.05em; margin: 0 0 1em; }
.api-key-display { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6em; margin-bottom: 1em; }
.api-key-display code { display: block; width: 100%; margin: 0; padding: 0.6em; overflow-wrap: anywhere; font-size: 0.85em; background: #f7f7f7; }
#main .button { border-radius: 8px; color: #636363 !important; box-shadow: inset 0 0 0 1px #dddddd; }
#main .button.special { background: #8cc9f0; color: #314c5d !important; box-shadow: none; }
#main .button:disabled { opacity: 0.6; }
.plan-badge { display: inline-block; padding: 0.25em 0.8em; color: #636363; background: #f7f7f7; border-radius: 0.25em; margin-bottom: 0.7em; }
#subscription-period, .secondary { font-size: 0.85em; color: #636363; line-height: 1.7; }
#usage-reset { margin: 0.8em 0 0; }
.pending-banner { margin: 0 0 1.25em; padding: 0.85em 1em; background: #fff8eb; border: 1px solid #e8d7ad; border-radius: 8px; }
#pending-plan-banner, #key-status { margin: 0.8em 0 0; font-size: 0.85em; }
#payment-notice .button { margin: 0.3em 0 0.3em 0.7em; }
.progress-bar-container { height: 10px; border-radius: 0; overflow: hidden; margin: 1.5em 0 1em; background: #eeeeee; }
.progress-bar { height: 100%; background: #9bb2e1; }
.progress-bar.warning { background: #ba9148; }
.progress-bar.danger { background: #b76473; }
#plan-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.8em; }
.pricing-card.current { border-color: #9bb2e1; }
#main .pricing-card .button { margin-top: auto; }
.usage-controls { display: flex; flex-wrap: wrap; gap: 1em; align-items: flex-end; margin: 0 0 1.2em; }
.usage-controls label { display: flex; flex-direction: column; gap: 0.35em; margin: 0; font-size: 0.9em; }
.usage-controls input[type="date"] { font: inherit; padding: 0.6em; color: #555; background: #fff; border: 1px solid #dddddd; border-radius: 8px; }
#usage-load-btn { height: auto; padding: 0.55em 1.5em; line-height: 1.9; }
#usage-status { margin-bottom: 0.5em; }
#period-total { margin-bottom: 0.8em; }
#usage-chart-container { width: 100%; min-width: 0; margin: 1.5em 0; }
#usage-chart { display: block; max-width: 100%; }
#usage-table { font-size: 0.9em; margin-top: 1em; }
#usage-table th:last-child, #usage-table td:last-child { text-align: right; }
#usage-table-container summary { cursor: pointer; color: #636363; }
#dash-contact-status { margin: 1em 0 0; }
#not-logged-in { text-align: center; }
@media (max-width: 1100px) {
    .account-grid { grid-template-columns: 1fr 1fr; }
    .account-card:first-child { grid-column: 1 / -1; }
}
@media (max-width: 736px) {
    #header { padding: 2.5em 1em 1.5em; }
    #header h1 { font-size: 1.8em; }
    #nav { display: block; position: static; padding: 0.8em; }
    #nav ul { padding: 0; }
    #nav ul li { display: inline-block; }
    #nav ul li a { min-width: 0; padding: 0 0.7em; font-size: 0.9em; }
    #main > .main { padding: 2.5em 1.25em; }
    .account-grid { grid-template-columns: 1fr; }
    .account-card:first-child { grid-column: auto; }
    .usage-controls { gap: 0.7em; }
    .usage-controls label { flex: 1; min-width: 120px; }
    .usage-controls input { min-width: 0; width: 100%; }
    .dashboard-notice { padding: 1em 1.25em; }
    #plan-actions .button { min-width: 0; white-space: normal; height: auto; line-height: 1.8; padding: 0.6em 1em; }
}
