/* Account history and creator application share the existing Dingda tokens. */
.af-view { color: var(--text-primary); }
.af-view [hidden], .af-dialog [hidden] { display: none !important; }
.af-header { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; min-height: 58px; padding: 4px 10px; flex-shrink: 0; border-bottom: 1px solid var(--border); background: var(--page-background); }
.af-header h2 { margin: 0; font-size: 1.0625rem; font-weight: 700; text-align: center; }
.af-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; border: 0; border-radius: 50%; background: transparent; color: var(--text-primary); cursor: pointer; }
.af-text-button { padding: 10px 6px; border: 0; background: transparent; color: var(--primary-blue); font: inherit; font-size: .875rem; font-weight: 600; cursor: pointer; }
.af-text-button:disabled { color: var(--text-muted); cursor: default; }
.af-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 16px max(28px, env(safe-area-inset-bottom)); -webkit-overflow-scrolling: touch; }
.af-page-heading { margin-bottom: 20px; }
.af-page-heading h3 { font-size: 1.375rem; font-weight: 750; letter-spacing: -.4px; }
.af-page-heading h3 span { margin-left: 7px; color: var(--text-secondary); font-size: 1rem; font-weight: 500; }
.af-page-heading p { margin-top: 7px; color: var(--text-secondary); font-size: .8125rem; line-height: 1.65; }
.af-search { display: flex; align-items: center; gap: 9px; height: 44px; padding: 0 13px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 13px; color: var(--text-muted); }
.af-search .material-icons-round { font-size: 20px; }
.af-search input { width: 100%; min-width: 0; background: transparent; border: 0; color: var(--text-primary); font: inherit; font-size: .875rem; outline: none; }
.af-search:focus-within { border-color: var(--primary-blue); }
.af-filter { display: flex; gap: 8px; margin-top: 14px; }
.af-filter button { padding: 8px 14px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--text-secondary); font: inherit; font-size: .8125rem; cursor: pointer; }
.af-filter button[aria-pressed="true"] { background: rgba(91,124,250,.12); border-color: rgba(91,124,250,.16); color: var(--primary-blue); font-weight: 650; }
.af-history-group { margin: 25px 2px 10px; font-size: .8125rem; font-weight: 600; color: var(--text-secondary); }
.af-history-row { display: flex; align-items: center; margin-bottom: 10px; padding-right: 6px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 16px; overflow: hidden; }
.af-history-open { display: flex; align-items: center; gap: 12px; padding: 14px; flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text-primary); text-align: left; font: inherit; cursor: pointer; }
.af-history-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--bg-hover); }
.af-history-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 8px; }
.af-history-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9375rem; font-weight: 650; }
.af-history-copy > span { display: flex; align-items: center; gap: 9px; font-size: .75rem; color: var(--text-secondary); }
.af-history-copy em { font-style: normal; }
.af-history-copy .is-private { color: #a28cdd; }
[data-theme="light"] .af-history-copy .is-private { color: #8262bd; }
.af-history-copy time { font-variant-numeric: tabular-nums; }
.af-history-arrow { color: var(--text-muted); font-size: 20px; }
.af-history-delete { color: var(--accent-red); }
.af-history-row:has(.af-history-delete) .af-history-arrow { display: none; }
.af-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 60px 16px 34px; }
.af-empty-icon.material-icons-round { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin-bottom: 20px; border-radius: 21px; background: rgba(91,124,250,.09); color: var(--primary-blue); font-size: 30px; }
.af-empty h3 { font-size: 1rem; margin-bottom: 10px; }
.af-empty p { max-width: 270px; color: var(--text-secondary); font-size: .8125rem; line-height: 1.8; }
.af-empty .af-primary { margin-top: 25px; padding: 0 26px; min-height: 42px; }
.af-clear-button { display: flex; align-items: center; justify-content: center; gap: 7px; width: 100%; min-height: 46px; margin: 22px 0 0; border: 1px solid rgba(240,109,109,.16); border-radius: 13px; background: rgba(240,109,109,.04); color: var(--accent-red); font: inherit; font-size: .875rem; cursor: pointer; }
.af-clear-button .material-icons-round { font-size: 19px; }
.af-footnote { margin: 20px auto 0; max-width: 350px; font-size: .75rem; line-height: 1.8; color: var(--text-secondary); text-align: center; }
.af-creator-hero { position: relative; padding: 24px 20px 21px; border: 1px solid rgba(117,104,220,.18); border-radius: 22px; background: linear-gradient(130deg,rgba(91,124,250,.12),rgba(139,107,211,.07)); }
.af-hero-logo { display: block; width: 44px; height: 44px; margin-bottom: 17px; object-fit: contain; }
.af-eyebrow { font-size: .75rem; font-weight: 650; color: var(--primary-blue); letter-spacing: 1px; }
.af-creator-hero h1 { margin: 7px 0 9px; font-size: 1.375rem; line-height: 1.5; letter-spacing: -.5px; font-weight: 750; }
.af-creator-hero > p { color: var(--text-secondary); font-size: .8125rem; line-height: 1.7; }
.af-benefits { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); }
.af-benefits > span { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; color: var(--text-secondary); }
.af-benefits i { font-size: 17px; color: var(--primary-blue); }
.af-steps { display: flex; align-items: center; justify-content: space-between; margin: 23px 0; padding: 0 3px; list-style: none; }
.af-steps li { display: flex; align-items: center; gap: 6px; font-size: .75rem; color: var(--text-secondary); }
.af-steps b { display: inline-flex; justify-content: center; align-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--card-bg); font-size: .6875rem; border: 1px solid var(--card-border); }
.af-steps .is-current { color: var(--primary-blue); font-weight: 650; }
.af-steps .is-current b { background: var(--primary-blue); color: #fff; border-color: transparent; }
.af-card { padding: 19px 17px; margin-bottom: 16px; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: 18px; }
.af-card h3 { font-size: .9375rem; font-weight: 700; margin: 0 0 20px; }
.af-card h3 small { display: block; margin-top: 5px; color: var(--text-secondary); font-size: .75rem; font-weight: 400; }
.af-field { display: block; margin-bottom: 19px; font-size: .8125rem; font-weight: 500; line-height: 1.5; }
.af-field:last-child { margin-bottom: 0; }
.af-required { margin-left: 3px; color: var(--primary-blue); }
.af-optional { margin-left: 4px; color: var(--text-muted); font-size: .6875rem; font-weight: 400; }
.af-field input, .af-field textarea, .af-field select { display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: 8px; padding: 11px 12px; border: 1px solid var(--border-strong); border-radius: 11px; background: var(--input-background); color: var(--text-primary); font: inherit; font-size: .875rem; font-weight: 400; outline: none; }
.af-field textarea { resize: vertical; min-height: 114px; line-height: 1.7; }
.af-field select { padding-right: 6px; color-scheme: light; }
[data-theme="dark"] .af-field select { color-scheme: dark; }
.af-field input:focus, .af-field textarea:focus, .af-field select:focus { border-color: var(--primary-blue); box-shadow: 0 0 0 3px rgba(91,124,250,.1); }
.af-field input::placeholder, .af-field textarea::placeholder, .af-search input::placeholder { color: var(--text-muted); opacity: 1; }
.af-field-counter { display: block; margin-top: 5px; text-align: right; color: var(--text-muted); font-size: .6875rem; font-weight: 400; }
.af-field-hint { display: block; margin-top: 7px; color: var(--text-secondary); font-size: .75rem; font-weight: 400; }
.af-contact-row { display: grid; grid-template-columns: 92px minmax(0,1fr); gap: 11px; margin-bottom: 19px; }
.af-contact-row .af-field { margin: 0; }
.af-consent { display: flex; align-items: flex-start; gap: 9px; margin: 21px 3px; color: var(--text-secondary); font-size: .75rem; line-height: 1.8; cursor: pointer; }
.af-consent input { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; accent-color: var(--primary-blue); }
.af-form-actions { display: grid; grid-template-columns: 1fr 1.6fr; gap: 12px; }
.af-primary, .af-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 16px; border: 1px solid transparent; border-radius: 14px; font: inherit; font-size: .875rem; font-weight: 650; cursor: pointer; }
.af-primary { background: var(--brand-blue); color: #fff; }
.af-secondary { background: var(--card-bg); border-color: var(--card-border); color: var(--text-primary); }
.af-primary .material-icons-round { font-size: 18px; }
.af-primary:active, .af-secondary:active { opacity: .82; }
.af-view button:focus-visible, .af-dialog button:focus-visible { outline: 2px solid var(--primary-blue); outline-offset: 3px; }
.af-message { padding: 10px 12px; margin: 12px 0; border: 1px solid rgba(240,109,109,.18); border-radius: 10px; background: rgba(240,109,109,.05); color: var(--accent-red); font-size: .8125rem; line-height: 1.6; }
.af-message.is-success { color: var(--primary-blue); border-color: rgba(91,124,250,.2); background: rgba(91,124,250,.06); }
.af-review-hero { display: flex; flex-direction: column; align-items: center; padding: 15px 0 29px; text-align: center; }
.af-review-icon.material-icons-round { display: inline-flex; align-items: center; justify-content: center; width: 70px; height: 70px; border-radius: 24px; color: var(--primary-blue); background: rgba(91,124,250,.1); font-size: 35px; margin-bottom: 19px; }
.af-state-pill { padding: 5px 10px; border-radius: 999px; background: rgba(139,107,211,.12); color: #a28cdd; font-size: .6875rem; font-weight: 600; }
[data-theme="light"] .af-state-pill { color: #795acf; }
.af-review-hero h1 { margin-top: 12px; font-size: 1.375rem; line-height: 1.5; }
.af-review-hero p { margin-top: 8px; color: var(--text-secondary); font-size: .8125rem; line-height: 1.7; }
.af-timeline { margin: 0; list-style: none; }
.af-timeline li { position: relative; display: flex; gap: 12px; padding-bottom: 23px; color: var(--text-secondary); }
.af-timeline li:last-child { padding-bottom: 0; }
.af-timeline li:not(:last-child)::after { content: ''; position: absolute; left: 12px; top: 29px; bottom: 6px; width: 1px; background: var(--border-strong); }
.af-timeline li > span { width: 25px; height: 25px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--border-strong); font-size: 16px; flex-shrink: 0; }
.af-timeline .is-done > span { background: rgba(91,124,250,.12); color: var(--primary-blue); border-color: transparent; }
.af-timeline h4 { font-size: .8125rem; line-height: 25px; font-weight: 600; }
.af-timeline .is-done h4 { color: var(--text-primary); }
.af-timeline p { margin-top: 4px; font-size: .75rem; line-height: 1.6; }
.af-summary > div { display: grid; grid-template-columns: 70px minmax(0,1fr); gap: 12px; margin-top: 14px; font-size: .8125rem; line-height: 1.7; }
.af-summary dt { color: var(--text-secondary); }
.af-summary dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.af-note { display: flex; gap: 8px; margin: 20px 4px; color: var(--text-secondary); font-size: .75rem; line-height: 1.8; }
.af-note > span { font-size: 17px; margin-top: 2px; }
.af-full { display: flex; width: 100%; margin-top: 12px; }
.af-dialog { width: min(340px,calc(100% - 40px)); margin: auto; padding: 0; border: 1px solid var(--card-border); border-radius: 22px; background: var(--card-bg); color: var(--text-primary); box-shadow: var(--shadow-card); }
.af-dialog::backdrop { background: rgba(4,7,13,.68); backdrop-filter: blur(4px); }
.af-dialog-body { padding: 25px 20px 20px; text-align: center; }
.af-dialog h3 { margin-bottom: 10px; font-size: 1.0625rem; }
.af-dialog p { color: var(--text-secondary); font-size: .8125rem; line-height: 1.8; margin-bottom: 23px; }
.af-dialog .af-form-actions { grid-template-columns: 1fr 1fr; }
.af-danger { background: #cb4b57; }
@media (max-width: 360px) {
  .af-scroll { padding-left: 12px; padding-right: 12px; }
  .af-creator-hero { padding: 20px 16px; }
  .af-creator-hero h1 { font-size: 1.1875rem; }
  .af-benefits { gap: 11px; }
  .af-card { padding: 17px 14px; }
}
@media (min-width: 1024px) {
  .af-header { position: sticky; top: 0; z-index: 2; width: 100%; max-width: 720px; margin: 0 auto; }
  .af-scroll { width: 100%; max-width: 720px; margin: 0 auto; overflow: visible; flex: none; padding-bottom: 44px; }
}
