/* Account screens share the public site's typography and color tokens. */
.account-entry { position:relative; display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:8px 18px; border-radius:10px; background:var(--blue); color:#fff!important; font-weight:650; }
.account-entry[hidden] { display:none; }
.nav-right .account-entry { font-size:13px; }
.account-entry.signed-in { background:var(--pale); color:var(--blue)!important; }
.account-entry:has(.account-entry-badge) { margin-top:8px; }
.account-entry-badge { position:absolute; top:-9px; right:-6px; padding:2px 6px; border:1px solid var(--border); border-radius:999px; background:var(--pale); color:var(--blue); font-size:12px; font-weight:500; line-height:1.3; white-space:nowrap; }
.account-wordmark { display:inline-block; width:83px; height:32px; object-fit:contain; vertical-align:middle; }
.account-signin-dialog { padding:0; border:1px solid var(--border); border-radius:22px; width:460px; max-width:calc(100vw - 24px); max-height:calc(100dvh - 24px); color:var(--ink); background:#fff; box-shadow:0 24px 90px #14234230; overflow:auto; }
.account-signin-dialog::backdrop { background:#10234270; backdrop-filter:blur(3px); }
.account-signin-head { display:flex; justify-content:space-between; gap:16px; padding:24px 28px 12px; }
.account-signin-head h2 { font-size:25px; margin:14px 0 8px; }
.account-signin-head p,.account-signin-footer { color:var(--muted); font-size:13px; line-height:1.6; }
.account-signin-close { display:grid; place-items:center; flex-shrink:0; width:40px; height:40px; border:0; border-radius:50%; background:var(--paper); color:var(--muted); cursor:pointer; }
.account-signin-frame { display:block; border:0; width:100%; height:430px; background:#fff; }
.account-signin-frame[hidden] { display:none; }
.account-signin-dialog.is-preparing { display:block; position:fixed; inset:0 auto auto -10000px; visibility:hidden; pointer-events:none; }
.account-signin-placeholder { display:flex; flex-direction:column; align-items:center; gap:12px; padding:12px 28px; min-height:350px; }
.account-signin-placeholder strong { font-size:16px; }
.account-signin-placeholder p,.account-signin-placeholder span { color:var(--muted); font-size:13px; text-align:center; }
.account-signin-skeleton { width:210px; height:210px; border-radius:12px; background:#f4f7f8; border:1px solid #e9edef; }
.account-signin-skeleton.is-form { width:100%; height:170px; }
.account-signin-status { padding:12px 28px; font-size:14px; }
.account-signin-footer { margin:0; padding:10px 24px 22px; text-align:center; }
.account-signin-fallback { margin:0 28px 16px; }
.account-signin-dialog :focus-visible,.account-center :focus-visible { outline:3px solid #86aaff; outline-offset:3px; }
/* Account workspace: balance first, recent files next, secondary tools in navigation. */
body:has(.account-center) { background:var(--paper); }
.account-center { --muted:#5b6980; padding-top:32px; padding-bottom:64px; }
.account-layout { display:grid; grid-template-columns:196px minmax(0,1fr); gap:36px; align-items:start; }
.account-sidebar { position:sticky; top:88px; }
.account-profile { display:flex; align-items:center; gap:10px; padding:4px 8px 24px; }
.account-avatar { display:grid; place-items:center; flex:0 0 38px; height:38px; border:1px solid var(--border); border-radius:50%; background:#fff; color:var(--blue); }
.account-profile strong { display:block; max-width:132px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:13px; }
.account-profile div>span { display:block; color:var(--muted); font-size:12px; margin-top:5px; }
.account-icon { display:inline-block; flex:0 0 auto; width:20px; height:20px; vertical-align:middle; background-color:currentColor; -webkit-mask:var(--account-icon) center / contain no-repeat; mask:var(--account-icon) center / contain no-repeat; }
.account-center .btn>.account-icon { width:16px; height:16px; }
.account-result-link .account-icon,.account-wallet-label .account-icon { width:16px; height:16px; margin-right:4px; }
.account-result-link .account-icon { margin-left:4px; margin-right:0; }
.account-wallet-label { display:flex; align-items:center; gap:4px; }
.account-title-icon { display:flex; align-items:center; gap:10px; }
.account-title-icon>.account-icon { color:var(--blue); }
.account-menu { display:flex; flex-direction:column; gap:4px; }
.account-menu a { display:flex; align-items:center; gap:12px; min-height:46px; padding:10px 14px; border-radius:9px; color:var(--muted); font-size:14px; transition:background .15s,color .15s; }
.account-menu a:hover { background:#eaf0fa; color:var(--ink); }
.account-menu a[aria-current] { background:#e6edff; color:#204fc2; font-weight:650; }
.account-menu a:nth-child(3),.account-menu a:nth-child(6) { margin-top:16px; }
.account-local { border-top:1px solid var(--border); margin-top:24px; padding-top:16px; }
.account-local a { display:flex; align-items:center; gap:12px; min-height:44px; padding:8px 14px; font-size:13px; color:var(--muted); }
.account-local a>span:last-child { margin-left:auto; }
.account-local p { margin:0 14px 0 46px; font-size:12px; line-height:1.6; color:var(--muted); }
.account-content { min-width:0; }
.account-content-head { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:4px 0 28px; }
.account-content-head h1 { margin:0; font-size:26px; line-height:1.3; letter-spacing:-.5px; }
.account-content-head p { margin:10px 0 0; font-size:13px; color:var(--muted); line-height:1.7; }
.account-head-actions { display:flex; gap:8px; align-items:center; flex-shrink:0; }
.account-head-actions .btn { min-height:44px; }
.account-overview-top { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; margin-bottom:24px; }
.account-overview-top .account-quick-links { grid-column:1/-1; }
.account-product-tabs { margin-bottom:24px; width:100%; max-width:360px; }
.account-product-tabs a { flex:1; min-height:44px; display:flex; align-items:center; justify-content:center; padding:10px 16px; border-radius:8px; font-weight:600; white-space:nowrap; }
.account-product-tabs a.active { background:var(--blue); color:#fff; }
.account-product-tabs a:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
.account-wallet { border:1px solid #cfdbf4; border-radius:16px; background:#fff; padding:26px 28px 0; }
.account-wallet-main { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.account-wallet-label { margin:0 0 10px; color:var(--muted); font-size:13px; }
.account-balance-value { display:block; font-size:38px; font-weight:650; line-height:1.2; letter-spacing:-1px; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.account-wallet-main .btn { min-width:84px; flex-shrink:0; }
.account-wallet-breakdown { display:flex; flex-wrap:wrap; gap:10px 22px; margin:22px 0; color:var(--muted); font-size:12px; line-height:1.7; }
.account-wallet-breakdown b { color:var(--ink); font-weight:500; margin-left:6px; font-variant-numeric:tabular-nums; }
.account-wallet-footer { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; border-top:1px solid var(--border); padding:13px 0; font-size:12px; color:var(--muted); }
.account-wallet-footer a { color:var(--blue); padding:8px 0; }
.account-quick-links { display:grid; gap:12px; }
.account-quick-links a { display:flex; align-items:center; gap:14px; padding:20px; border:1px solid var(--border); border-radius:14px; background:#fff; color:var(--ink); }
.account-quick-links a:hover { border-color:#9ab7f5; }
.account-quick-links .account-icon { color:var(--blue); }
.account-quick-links a>span:last-child { margin-left:auto; color:var(--muted); }
.account-quick-links strong { font-size:14px; font-weight:650; }
.account-quick-links p { margin:8px 0 0; font-size:12px; line-height:1.6; color:var(--muted); }
.account-panel { padding:26px 28px; border:1px solid var(--border); border-radius:16px; background:#fff; }
.account-panel>.section { margin:0; padding:0; border:0; }
.account-panel h2 { margin:0; font-size:17px; font-weight:650; }
.account-panel-head { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.account-panel-head>a { font-size:13px; min-height:44px; display:inline-flex; align-items:center; }
.account-panel .section+.section { margin-top:30px; padding-top:26px; border-top:1px solid var(--border); }
.account-panel .section>p,.account-panel details { font-size:13px; color:var(--muted); line-height:1.8; }
.account-panel details summary { cursor:pointer; color:var(--ink); padding:8px 0; }
.account-panel details p { margin-top:8px; }
.account-empty { padding:36px 12px; margin:0; text-align:center; color:var(--muted); font-size:13px; line-height:1.7; }
.account-empty h3 { font-size:15px; font-weight:600; color:var(--ink); margin:16px 0 8px; }
.account-empty p { margin:0 0 20px; }
.account-empty .btn { margin-top:12px; }
.account-empty-icon { display:inline-grid; place-items:center; width:44px; height:44px; border-radius:12px; background:var(--paper); color:var(--muted); }
.account-conversions { margin-top:16px; }
.account-conversion { display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:20px; align-items:center; padding:18px 0; color:var(--ink); border-bottom:1px solid var(--border); }
.account-conversion:last-child { border-bottom:0; }
a.account-conversion:hover strong { color:var(--blue); }
.account-file { display:flex; align-items:center; gap:12px; min-width:0; }
.account-file-icon { display:grid; place-items:center; flex:0 0 36px; height:42px; background:var(--pale); color:var(--blue); border-radius:6px; }
.account-file>div { min-width:0; }
.account-file strong { display:block; font-size:13px; font-weight:550; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.account-file p { color:var(--muted); font-size:12px; margin:7px 0 0; }
.account-task-status { font-size:12px; color:var(--muted); }
.account-result-link { font-size:12px; color:var(--blue); }
.account-device-note { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-top:22px; padding:8px 2px; }
.account-device-note strong { font-size:13px; font-weight:500; }
.account-device-note p { color:var(--muted); font-size:12px; line-height:1.8; margin:6px 0 0; }
.account-device-note a { font-size:13px; flex-shrink:0; padding:10px 0; }
.account-history-note { font-size:13px; color:var(--muted); line-height:1.8; margin:-4px 0 22px; }
.account-history-note a { margin-left:8px; }
.account-recharge-summary { display:flex; align-items:center; flex-wrap:wrap; gap:12px 20px; padding:20px 26px; margin-bottom:22px; background:#fff; border:1px solid #cfdbf4; border-radius:14px; font-size:13px; }
.account-recharge-summary strong { font-size:24px; font-variant-numeric:tabular-nums; }
.account-recharge-summary>span:last-child { margin-left:auto; color:var(--muted); font-size:12px; }
.account-panel .inline-form { flex-wrap:wrap; align-items:flex-end; margin-top:22px; }
.account-panel .inline-form .field { min-width:140px; }
.account-panel .inline-form [data-form-status] { flex-basis:100%; }
.account-panel .inline-form [data-form-status]:empty { display:none; }
.account-panel .account-records { gap:0; }
.account-panel .account-record { box-shadow:none; padding:18px 0; border:0; border-bottom:1px solid var(--border); border-radius:0; background:none; font-size:14px; }
.account-panel .account-record:last-child { border-bottom:0; }
.account-panel .account-record p { color:var(--muted); line-height:1.7; font-size:12px; }
.account-settings p { color:var(--muted); font-size:14px; margin:12px 0 24px; }
.account-id { display:grid; gap:10px; font-size:12px; color:var(--muted); margin:28px 0; overflow-wrap:anywhere; }
.account-settings-logout { padding-top:20px; border-top:1px solid var(--border); }
.account-guest { max-width:580px; margin:40px auto 80px; padding:44px; text-align:center; background:#fff; border:1px solid var(--border); border-radius:22px; }
.account-guest h1 { font-size:28px; margin:24px 0 16px; }
.account-guest p { color:var(--muted); line-height:1.8; font-size:14px; }
.account-guest>.btn { display:flex; margin:28px auto 20px; min-width:160px; width:max-content; }
.account-guest>a { display:block; font-size:13px; margin-bottom:26px; }
@media(max-width:1100px) {
  .account-layout { grid-template-columns:174px minmax(0,1fr); gap:24px; }
  .account-profile strong { max-width:110px; }
  .account-overview-top { grid-template-columns:1fr; }
  .account-quick-links { grid-template-columns:1fr 1fr; }
  .account-wallet { padding:24px 26px 0; }
}
@media(max-width:740px) {
  .topbar:not(.partner-topbar) .nav-right>a:first-child { display:none; }
  .account-center { padding-top:16px; }
  .account-layout { display:block; }
  .account-sidebar { position:static; margin-bottom:24px; }
  .account-profile { padding:0 0 16px; }
  .account-profile strong { max-width:260px; }
  .account-menu { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:6px; }
  .account-menu a { justify-content:center; flex-direction:column; gap:6px; padding:10px 4px; font-size:12px; min-height:44px; background:#fff; }
  .account-menu a:nth-child(n) { margin:0; }
  .account-menu .account-icon { width:16px; height:16px; }
  .account-local { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0; margin-top:10px; border:0; }
  .account-local a { padding:0; gap:8px; }
  .account-local p { margin:0; font-size:12px; }
  .account-local .account-icon { width:16px; height:16px; }
  .account-content-head { align-items:flex-start; gap:12px; margin-bottom:20px; }
  .account-content-head h1 { font-size:23px; }
  .account-content-head p { font-size:12px; }
  .account-head-actions { gap:4px; }
  .account-head-actions .btn { font-size:12px; padding:10px; }
  .account-wallet { padding:22px 20px 0; }
  .account-balance-value { font-size:34px; }
  .account-wallet-breakdown { margin:20px 0; }
  .account-quick-links { gap:10px; }
  .account-quick-links a { padding:16px 12px; gap:8px; align-items:flex-start; }
  .account-quick-links a>span:last-child { display:none; }
  .account-quick-links .account-icon { width:18px; height:18px; }
  .account-quick-links strong { font-size:13px; }
  .account-panel { padding:20px 16px; }
  .account-conversion { grid-template-columns:minmax(0,1fr) auto; gap:10px; }
  .account-file { grid-column:1/-1; }
  .account-result-link { text-align:right; }
  .account-task-status { padding-left:48px; }
  .account-device-note { align-items:flex-start; flex-direction:column; gap:0; }
  .account-recharge-summary { padding:18px; gap:12px; }
  .account-recharge-summary>span:last-child { flex-basis:100%; margin:0; }
  .account-guest { padding:30px 20px; margin:20px auto 50px; }
  .account-signin-head { padding:20px 22px 8px; }
}
@media(prefers-reduced-motion:reduce) { .account-menu a { transition:none; } }

.account-list-title { margin:28px 0 0; padding-top:24px; border-top:1px solid var(--border); font-size:15px; font-weight:600; }
.account-invoice-row { padding:18px 0; border-bottom:1px solid var(--border); overflow-wrap:anywhere; }
.account-invoice-head { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; }
.account-invoice-head p { margin:6px 0 0; }
.account-invoice-form { display:grid; gap:16px; max-width:480px; padding:18px 0 4px; }
.account-invoice-form [hidden],.account-invoice-form [data-form-status]:empty { display:none; }
.account-invoice-form input,.account-invoice-form select,.account-invoice-row .btn { min-height:44px; }
 .account-recharge .account-tiers { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px 12px; }
.account-recharge .pack { position:relative; display:flex; flex-direction:column; padding:24px 16px 16px; min-width:0; gap:20px; border-radius:14px; }
.account-recharge .pack h3 { font-size:26px; letter-spacing:-1px; white-space:nowrap; margin:7px 0 12px; }
.account-offer-heading>span:first-child { font-size:12px; color:var(--muted); }
.account-recharge .account-bonus { display:inline-block; padding:4px 8px; font-size:12px; font-weight:600; color:var(--blue); background:var(--pale); border-radius:6px; }
.account-recharge .package-recommendation { position:absolute; top:-11px; right:14px; padding:3px 10px; border-radius:20px; background:var(--blue); color:#fff; font-size:11px; }
.account-offer-total { display:flex; flex-direction:column; gap:5px; padding-bottom:16px; border-bottom:1px solid var(--border); }
.account-offer-total>span,.account-offer-total small { font-size:12px; color:var(--muted); }
.account-offer-total strong { font-size:22px; font-weight:650; }
.account-offer-pages { display:grid; gap:14px; font-size:12px; }
.account-offer-pages>div { display:grid; gap:4px; }
.account-offer-pages strong { font-size:15px; font-weight:600; }
.account-offer-pages small { font-size:11px; color:var(--muted); }
.account-offer-action { margin-top:auto; text-align:center; }
.account-offer-action>small { display:block; margin-top:9px; font-size:11px; color:var(--muted); }
.account-recharge-intro,.account-price-note { line-height:1.8; }
.account-price-note { margin-top:20px; }
.account-expiry-detail { display:inline; margin-left:6px; font-size:11px; }
.account-expiry-detail summary { display:inline-block; vertical-align:middle; cursor:help; list-style:none; padding:3px; border-radius:4px; }
.account-expiry-detail summary::-webkit-details-marker { display:none; }
.account-expiry-detail .account-icon { width:14px; height:14px; opacity:.7; }
.account-expiry-text { display:none; padding:5px 0; color:var(--muted); white-space:normal; }
.account-expiry-detail[open] .account-expiry-text,.account-expiry-detail:hover .account-expiry-text,.account-expiry-detail:focus-within .account-expiry-text { display:block; }
.account-expiry-detail summary:focus-visible { outline:2px solid var(--blue); }
.account-binding-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; margin:24px 0; }
.account-binding-row { display:grid; grid-template-columns:44px minmax(0,1fr); align-items:center; gap:16px; padding:22px; border:1px solid var(--border); border-radius:12px; }
.account-binding-row>.btn,.account-binding-row>.account-bound { grid-column:1/-1; justify-self:start; min-height:44px; }
.account-binding-row .grow { min-width:0; overflow-wrap:anywhere; }
.account-binding-row p { margin:8px 0 0; font-size:12px; }
.account-binding-row { min-height:158px; box-sizing:border-box; align-content:start; }
.account-binding-placeholder { grid-template-columns:1fr; align-content:center; color:var(--muted); }
.account-binding-placeholder strong { color:var(--ink); }
.account-settings [data-binding-status]:not(:empty) { margin:12px 0; font-size:13px; color:var(--muted); }
.account-table td small { display:block; margin-top:6px; color:var(--muted); }
.account-binding-mark { display:grid; place-items:center; width:44px; height:44px; flex:0 0 44px; border:1px solid var(--border); border-radius:12px; color:var(--blue); background:#fff; }
.account-binding-mark.google { font-size:24px; color:#4285f4; }
.account-bound { display:flex; align-items:center; gap:6px; font-size:13px; color:#16744a; }
.account-binding-form,.account-binding-qr { padding:24px; margin:0 0 24px; border-radius:12px; background:var(--pale); }
.account-binding-form { max-width:480px; }
.account-binding-form h3 { margin:0 0 20px; font-size:16px; }
.account-wallet-pages { margin:0; padding:0 0 16px; font-size:14px; }
.account-binding-form input { background:#fff; }
.account-binding-qr { text-align:center; }
.account-binding-qr img { display:block; margin:0 auto; padding:8px; background:#fff; border-radius:6px; }
.workspace-packages.account-recharge .account-tiers { grid-template-columns:repeat(2,minmax(0,1fr)); }
@media(max-width:1200px) { .account-recharge .account-tiers { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:700px) { .account-recharge .account-tiers { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px 12px; } }
@media(max-width:440px) { .account-recharge .account-tiers { grid-template-columns:1fr; }
.workspace-packages.account-recharge .account-tiers { grid-template-columns:1fr; }
.account-recharge .pack { display:grid; grid-template-columns:1fr 1fr; grid-template-areas:"heading total" "pages pages" "action action"; gap:16px; }
.account-offer-heading { grid-area:heading; }
.account-offer-total { grid-area:total; border:0; padding:0; align-items:flex-end; justify-content:center; }
.account-offer-pages { grid-area:pages; grid-template-columns:1fr; padding-top:14px; border-top:1px solid var(--border); }
.account-offer-action { grid-area:action; }
}
@media(max-width:440px) {
 .account-recharge .pack { padding:22px 12px 14px; }
 .account-recharge .pack h3 { font-size:26px; }
 .account-recharge .account-bonus { font-size:12px; }
 .account-binding-form { padding:16px; }
 .account-binding-grid { gap:10px; }
 .account-binding-row { grid-template-columns:1fr; gap:12px; padding:16px 12px; }
 .account-binding-row strong { font-size:14px; }
 .account-binding-row .account-bound { font-size:12px; }
}
