.account-session-pending .account-shell{visibility:hidden;pointer-events:none}
/* Account-only layout; checkout keeps its own stepped layout. */
html{scrollbar-gutter:stable}
body:has(.account-shell) .site-header .header-row{max-width:1020px}
.account-shell #account-identity{display:none!important}
.account-shell.is-signed-in .account-signin .step-title{grid-row:1}
.account-shell:not(.is-signed-in) .account-signin { max-width:460px; width:100%; padding:28px 24px; border-radius:14px; }
.signin-brand { display:block; margin:0 auto 20px; width:240px; max-width:100%; }
.signin-brand img { display:block; width:100%; height:auto; filter:brightness(.15); }
html[data-theme-mode=dark] .signin-brand img { filter:brightness(0) invert(1); }
.account-shell #email-signin input:not([type=checkbox]) { height:40px; padding:8px 12px; font-size:14px; }
.account-shell:not(.is-signed-in) .account-signin h1 { font-size:20px; letter-spacing:0; }
.account-shell:not(.is-signed-in) .step-title { justify-content:flex-start; margin-bottom:20px; }
.account-shell:not(.is-signed-in):not(.is-registering) .signin-brand { display:none; }
.account-shell .is-signed-in .signin-brand, .is-signed-in .signin-brand { display:none; }
.account-shell #account-status:empty, .account-shell #email-status:empty { display:none; }
.account-shell.is-signed-in #account-identity { position:relative; grid-column:1 / -1; grid-row:1; text-align:left; margin-bottom:20px; }
.account-shell.is-signed-in .account-signin .step-title { grid-row:2; }
.identity-trigger { display:inline-flex; gap:12px; align-items:center; border:0; background:transparent; color:var(--site-ink); font:inherit; cursor:pointer; padding:4px 0; }
.identity-avatar { display:grid; place-items:center; width:36px; height:36px; border-radius:50%; background:var(--site-paper); border:1px solid var(--site-line); overflow:hidden; flex-shrink:0; }
.identity-avatar img { width:100%; height:100%; object-fit:cover; }
.identity-menu { position:absolute; top:100%; left:0; min-width:200px; z-index:20; padding:8px; border:1px solid var(--site-line); border-radius:8px; background:var(--site-white); box-shadow:0 8px 24px color-mix(in srgb,var(--site-ink) 12%,transparent); }
.identity-menu a, .identity-menu button { display:block; width:100%; text-align:left; padding:10px 12px; border:0; border-radius:4px; background:transparent; color:var(--site-ink); font:inherit; text-decoration:none; box-sizing:border-box; cursor:pointer; }
.identity-menu a:hover, .identity-menu button:hover { background:var(--site-paper); }
@media(max-width:480px) { .account-shell:not(.is-signed-in) .account-signin { padding:28px 24px; } }
body { min-height: 100vh; display: flex; flex-direction: column; }
.account-shell { flex: 1; padding-top: 72px; padding-bottom: 72px; }
.account-shell .account-signin {
  max-width: 460px; margin: 0 auto; padding: 40px 32px;
  border: 1px solid var(--site-line); border-radius: 14px;
  background: var(--site-white); text-align: center;
}
.account-signin .step-title { justify-content: center; margin-bottom: 28px; }
.account-signin h1 { font-size: 32px; letter-spacing: -1px; margin: 0; }
.account-signin #google-login { display: flex; justify-content: center; min-height: 44px; }
/* Google's markup can arrive before its stylesheet. Bound the logo immediately. */
.account-shell #google-login svg, .account-shell #rebind-google svg,
.account-shell #google-login img, .account-shell #rebind-google img {
  width: 20px; height: 20px; max-width: 20px; max-height: 20px; flex-shrink: 0;
}
.account-shell #google-login [role=button], .account-shell #google-login button { box-sizing:border-box; height:40px; min-height:40px; max-height:40px; overflow:hidden; }
.account-signin .status { margin: 20px 0 0; }
.signin-divider { display: flex; align-items: center; gap: 16px; margin: 26px 0; font-size: 14px; color: var(--site-muted); }
.signin-divider::before, .signin-divider::after { content: ''; flex: 1; height: 1px; background: var(--site-line); }
#email-signin form { text-align: left; }
#email-signin input { box-sizing: border-box; width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--site-line); border-radius: var(--checkout-radius); background: var(--site-white); color: var(--site-ink); font: inherit; }
#email-signin .btn { width: 100%; justify-content: center; margin-top: 16px; }
#email-signin button:disabled { opacity: .55; cursor: not-allowed; }
#email-signin .email-actions { display: flex; justify-content: space-between; gap: 16px; margin-top: 16px; }
#email-signin .text-button { margin-left: 0; }
#email-destination { overflow-wrap: anywhere; }
#signin-code { letter-spacing: .3em; }
.auth-link { display: block; text-align: center; margin-top: 16px; font-size: 14px; text-underline-offset: 3px; }
.secondary-link { color: var(--site-muted); font-size: 13px; }
#registration-form > label:not(.show-password), #password-form > label { margin-top: 16px; }
#registration-form > label:first-child, #password-form > label:first-child { margin-top: 0; }
.password-label-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-top: 16px; }
.password-label-row > label { margin-bottom: 8px; }
#email-signin #register-submit { margin-top: 40px; }
#registration-form > .auth-link { margin-top: 28px; }
#signin-choices { max-width: 100%; margin: 0 auto; --signin-button-height:40px; }
#signin-entry > label { display:block; margin:0 0 8px; }
#signin-entry > label:not(:first-child) { margin-top:18px; }
#email-signin #signin-choices .btn { height:var(--signin-button-height); min-height:var(--signin-button-height); padding:8px 10px; margin-top:0; font-size:14px; line-height:22px; border-radius:var(--checkout-radius); }
#email-signin #signin-entry .btn { margin-top:18px; }
#signin-choices .signin-divider { margin:18px 0; font-size:12px; }
.signin-alternatives { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:12px; align-items:center; }
.signin-alternatives > *, .signin-alternatives #google-login { min-width:0; }
.account-signin .signin-alternatives #google-login { min-height:var(--signin-button-height); height:var(--signin-button-height); justify-content:center; }
.signin-help { display:flex; justify-content:space-between; gap:16px; margin-top:20px; }
.signin-help .auth-link { font-size:12px; margin:0; }
@media(max-width:420px) { .account-shell:not(.is-signed-in) .account-signin { padding:24px 16px; } .signin-alternatives { grid-template-columns:minmax(178px,1.35fr) minmax(0,1fr); gap:8px; } #email-signin #signin-choices .btn { font-size:12px; padding-inline:4px; white-space:nowrap; } }
@media(max-width:360px) { .account-shell:not(.is-signed-in) .account-signin { padding:24px 8px; } #email-signin #signin-choices #use-email-code { font-size:11px; } }
#email-signin #signin-choices > .btn { min-height: 44px; font-size: 14px; padding: 12px; border-radius: 4px; }
#email-signin #signin-choices > .auth-link { margin-top: 24px; }
#email-signin .show-password { display: flex; align-items: center; gap: 8px; font-weight: 400; font-size: 13px; }
#email-signin .show-password input { width: auto; }
#password-guidance { margin: 10px 0; }
#email-link-form .btn { width: 100%; justify-content: center; }
.account-shell.is-registering { padding-top: 32px; }
.account-shell.is-signed-in { padding-top: 40px; }
.is-signed-in .account-signin { max-width: none; padding: 0 0 24px; border: 0; border-bottom: 1px solid var(--site-line); border-radius: 0; background: transparent; text-align: left; }
.is-signed-in .account-signin .step-title { justify-content: space-between; margin-bottom: 12px; }
.is-signed-in #user-name { margin-bottom: 0; }
.site-footer { margin-top: 0; }
/* Signed-in workspace: quiet typography, generous fields, one aligned rhythm. */
.account-shell.is-signed-in { max-width: 1020px; }
#account-identity { margin-bottom: 30px; }
#account-identity #user-name { font-size: 16px; font-weight: 650; margin: 0 0 3px; }
#account-identity #signout { margin: 0; font-size: 13px; color: var(--site-muted); }
.is-signed-in .account-signin h1 { font-size: clamp(32px,4vw,42px); letter-spacing: -1.4px; }
.is-signed-in .account-signin { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0 20px; border-bottom: 0; margin-bottom: 0; align-items: center; }
.is-signed-in .account-signin .step-title { grid-column: 1; grid-row: 1; margin: 0; }
.is-signed-in #account-identity { grid-column: 2; grid-row: 1; margin: 0; text-align: right; overflow-wrap: anywhere; }
.is-signed-in .account-signin > :not(.step-title):not(#account-identity) { grid-column: 1 / -1; }
.is-signed-in #account-status { margin-top: 8px; }
#profile-panel { padding: 32px 36px; border: 1px solid var(--site-line); border-radius: 16px; background: var(--site-white); }
#profile-panel h2 { font-size: 23px; padding-bottom: 26px; }
.profile-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,5fr); gap: 20px; align-items: center; margin-bottom: 20px; }
.profile-row > label, .field-label { font-size: 14px; font-weight: 500; margin: 0; color: var(--site-muted); }
.profile-locality-fields{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(80px,.5fr);align-items:center;gap:16px;min-width:0}
.profile-locality-fields>label{margin:0;font-size:14px;font-weight:500;color:var(--site-muted)}
#profile-form .profile-locality-fields>input,#profile-form .profile-locality-fields>select{margin:0;height:48px}
@media(max-width:600px){.profile-locality-fields{gap:8px;grid-template-columns:minmax(0,1fr) auto 80px}.profile-locality-fields>label{font-size:12px}}
#profile-form input:not([type=file]), #profile-form textarea, #profile-form select, .account-dialog input:not([type=checkbox]) {
  width: 100%; box-sizing: border-box; min-width: 0; max-width: none; padding: 12px 14px; border: 1px solid var(--site-line);
  border-radius: 8px; background: var(--site-white); color: var(--site-ink); font: inherit; font-size: 15px;
}
#profile-form input:focus, #profile-form textarea:focus, #profile-form select:focus, .account-dialog input:focus { outline: 2px solid var(--site-gold); outline-offset: 2px; }
#profile-form select option { background: var(--site-white); color: var(--site-ink); }
#profile-form select:disabled { background: var(--site-paper); color: var(--site-muted); }
#profile-form input[readonly] { background: var(--site-paper); color: var(--site-muted); }
.picture-row { align-items: start; margin-bottom: 30px; }
.picture-row > label { padding-top: 12px; }
.picture-controls { display: flex; align-items: center; gap: 22px; }
.picture-controls .text-button { margin: 0; color: var(--site-muted); }
.avatar-frame { width: 96px; height: 96px; border-radius: 24px; position: relative; background: var(--site-paper); border: 1px solid var(--site-line); flex-shrink: 0; }
.avatar-frame .profile-photo { width: 100%; height: 100%; border-radius: inherit; margin: 0; position: absolute; inset: 0; }
#profile-initials { display: grid; place-items: center; width: 100%; height: 100%; font-size: 28px; font-weight: 600; color: var(--site-muted); }
.avatar-edit { position: absolute; right: -9px; bottom: -5px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 3px solid var(--site-white); background: var(--site-ink); color: var(--site-white); cursor: pointer; }
.avatar-edit:hover { background: var(--site-gold); color: var(--site-ink); }
.profile-subsection { margin: 32px 0 24px; padding-top: 26px; border-top: 1px solid var(--site-line); }
.profile-subsection h3 { font-size: 18px; font-weight: 600; margin: 0 0 16px; }
#profile-about { resize: vertical; min-height: 115px; }
.profile-save-row { display: flex; justify-content: flex-end; padding-top: 2px; }
.security-settings { border-top: 1px solid var(--site-line); margin-top: 28px; padding-top: 28px; }
.security-settings .profile-row:last-child { margin-bottom: 0; }
.inline-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.inline-actions .text-button { margin: 0; }
.connection-state { font-size: 13px; color: var(--site-muted); }
.connection-state.linked::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--checkout-success); margin-right: 7px; }
.account-dialog { box-sizing: border-box; width: min(490px,calc(100% - 32px)); max-height: calc(100dvh - 40px); overflow-y: auto; padding: 32px; border: 1px solid var(--site-line); border-radius: 16px; background: var(--site-white); color: var(--site-ink); font: 15px/1.5 "Segoe UI",Arial,sans-serif; box-shadow: 0 20px 80px color-mix(in srgb,var(--site-ink) 25%,transparent); }
.account-dialog::backdrop { background: color-mix(in srgb,var(--site-ink) 55%,transparent); }
.account-dialog h2 { font-size: 26px; letter-spacing: -.6px; margin: 0 0 12px; }
.account-dialog label { display: block; font-size: 14px; margin: 18px 0 7px; }
.account-dialog .show-password { display: flex; align-items: center; gap: 8px; margin: 12px 0; font-weight: 400; }
.account-dialog .show-password input { width: auto; }
.account-dialog .dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 26px; }
.account-dialog .fine { margin-top: 10px; }
.account-dialog .status:empty { display: none; }
.account-dialog #change-resend { margin: 8px 0 0; }
#change-google-slot { margin-top: 18px; }
#change-google-slot svg, #change-google-slot img { width: 20px; height: 20px; }
.account-shell [hidden], .account-dialog [hidden] { display: none !important; }
.account-shell button:disabled, .account-dialog button:disabled { opacity: .5; cursor: not-allowed; }
.account-tabs{display:flex;gap:6px;padding:6px;margin:0 0 24px;border:1px solid var(--site-line);border-radius:12px;background:var(--site-paper)}
.account-tabs button{flex:1 1 auto;border:0;border-radius:8px;background:transparent;color:var(--site-muted);padding:13px 16px;font:600 14px/1.4 "Segoe UI",Arial,sans-serif;cursor:pointer}
.account-tabs button:hover{background:var(--site-hover);color:var(--site-ink)}
.account-tabs button[aria-selected=true]{background:var(--site-ink);color:var(--site-white)}
.account-tabs button:focus-visible{outline:3px solid var(--site-gold);outline-offset:2px}
.account-tab-panel>.checkout-step{padding:32px 36px;border:1px solid var(--site-line);border-radius:16px;background:var(--site-white);margin:0 0 24px}
.account-tab-panel h2{font-size:23px;margin:0 0 22px}.account-tab-panel .security-settings{border:0;margin:0;padding:0}
.account-tabs button{width:100%;min-width:0!important;height:44px;padding:8px;font-size:13px;white-space:nowrap}
.security-settings .btn{width:auto;max-width:100%;padding:8px 18px;font-size:14px}
.theme-choices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.theme-choices button{height:44px;border:1px solid var(--site-line);border-radius:8px;background:var(--site-paper);color:var(--site-ink);font:inherit;cursor:pointer}
.theme-choices button[aria-pressed=true]{outline:2px solid var(--site-gold);outline-offset:2px}
.account-products{display:grid;gap:14px}.account-product{display:flex;align-items:center;gap:16px;flex-wrap:wrap;padding:16px 0;border-bottom:1px solid var(--site-line)}.account-product strong{flex:1;min-width:150px}.account-product .btn{min-width:130px}
.subscription-table-wrap{overflow-x:auto;max-width:100%;margin-bottom:24px}.subscription-table{width:100%;border-collapse:collapse;text-align:left}.subscription-table th,.subscription-table td{padding:12px 14px;border-bottom:1px solid var(--site-line);vertical-align:middle}.subscription-table th{background:var(--site-paper);font-weight:600}.subscription-actions{display:flex;gap:8px;flex-wrap:wrap}.subscription-actions .btn{min-width:100px;padding:8px 14px}.subscription-table .error:empty{display:none}
.payment-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin:20px 0}.payment-card{display:grid;gap:12px;padding:22px;background:var(--site-paper);border:1px solid var(--site-line);border-radius:12px}#products-panel{border:0;padding:0;margin-top:24px}#invoice-history h3{margin-top:24px}#payment-methods select{margin-left:16px;max-width:300px}
@media(max-width:999px){.account-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.account-tabs,.theme-choices{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.account-tabs{gap:4px}.account-tabs button{padding:11px 12px}.account-tab-panel>.checkout-step{padding:24px 20px}}
@media (max-width: 600px) {
  .account-shell { padding-top: 40px; padding-bottom: 48px; }
  .account-shell .account-signin { padding: 32px 20px; }
  .is-signed-in .account-signin { padding: 0 0 24px; }
  #profile-panel { padding: 24px 20px; }
  .profile-row { grid-template-columns: 1fr; gap: 7px; }
  .picture-row { gap: 14px; }
  .picture-row > label { padding-top: 0; }
  .profile-save-row .btn { width: 100%; justify-content: center; }
  .account-dialog { padding: 24px; }
}
#signin-choices #account-status{height:22px;min-height:22px;margin:10px 0 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
#google-entry{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;height:44px}
.communication-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}
.communication-actions .btn{width:110px;min-width:110px;justify-content:center}
.preferences-actions,.profile-save-row,#account-cookies .account-save-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px;padding-top:0}
.preferences-actions .btn,.profile-save-row .btn,#account-cookies .account-save-actions>.btn{box-sizing:border-box;width:110px;min-width:110px;flex:0 0 110px;justify-content:center}
#account-cookies [data-cookie-controls]{max-width:none}
#preferences-panel h3{font-size:17px;line-height:1.4;font-weight:600;margin:0 0 12px}
#preference-theme{box-sizing:border-box;width:min(100%,420px);min-height:44px;border:1px solid var(--site-line);border-radius:8px;background:var(--site-white);color:var(--site-ink);padding:10px 12px;font:inherit;font-size:15px}
#account-tab-payment{--payment-heading-size:23px;--payment-body-size:15px;font-size:var(--payment-body-size);line-height:1.5}
#account-tab-payment>.checkout-step>h2{font-size:var(--payment-heading-size);font-weight:600;line-height:1.3;margin:0 0 22px;padding:0;letter-spacing:-.5px}
#account-tab-payment :is(p,span,strong,label,select,th,td,h3,.btn){font-size:var(--payment-body-size);line-height:1.5}
#account-tab-payment h3{font-weight:600}
#account-tab-payment p:empty{display:none}
#account-tab-payment .transaction-row{display:grid;grid-template-columns:minmax(160px,2fr) minmax(180px,2fr) minmax(100px,1fr)}
#account-tab-payment .transaction-row>span:last-child{text-align:right}
.subscription-download-row{display:grid;grid-template-columns:40px minmax(0,1fr) auto;align-items:center;gap:16px;padding:16px 0;border-bottom:1px solid var(--site-line)}
.subscription-download-row img{width:40px;height:40px;object-fit:contain}
.subscription-download-row strong{overflow-wrap:anywhere}
.subscription-download-row .btn{min-width:120px;padding:8px 14px}
@media(max-width:600px){.subscription-download-row{gap:10px}.subscription-download-row .btn{min-width:100px}#account-tab-payment .transaction-row>time{grid-row:2;font-size:12px}#account-tab-payment .transaction-row>span:last-child{grid-column:2;grid-row:1}}
#account-tab-payment .transaction-row strong{min-width:0;overflow-wrap:anywhere}
@media(max-width:600px){#account-tab-payment .transaction-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
.account-table-wrap{width:100%;max-width:100%;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--site-muted) var(--site-paper)}
.account-table-wrap::-webkit-scrollbar{height:6px;width:6px}.account-table-wrap::-webkit-scrollbar-track{background:var(--site-paper)}.account-table-wrap::-webkit-scrollbar-thumb{background:var(--site-muted);border-radius:0}
.account-table{width:100%;border-collapse:collapse;text-align:left;font:14px/1.5 PolywinkleAccount,Montserrat,Arial,sans-serif}
.account-table th,.account-table td{padding:12px 10px;border-bottom:1px solid var(--site-line);vertical-align:middle}.account-table th{background:var(--site-paper);font-weight:600;white-space:nowrap}.account-table td small{display:block;font-size:11px;color:var(--site-muted);margin-top:3px}.account-table small:empty{display:none}
.account-table .subscription-cell-identity{display:flex;align-items:center;gap:14px}.account-table .subscription-cell-identity>:is(img,.well-logo){width:40px!important;height:40px!important;object-fit:contain;flex:0 0 40px}.account-table .subscription-cell-identity strong{min-width:0;overflow-wrap:anywhere}.account-table .btn{min-width:120px;text-align:center;white-space:nowrap;min-height:var(--site-control-height,44px)}
.account-table :is(.subscription-catalog-row,.subscription-download-row,.transaction-row),#account-tab-payment .account-table .transaction-row{display:table-row;padding:0;border:0}.account-table .subscribed{padding:5px 9px;font-size:12px;white-space:nowrap}.account-table tr>td:last-child,.account-table tr>th:last-child{text-align:right}.account-table .subscription-catalog-row .btn{position:static;width:120px}
.account-subscriptions{min-width:650px}.account-subscriptions td:first-child{width:42%}.account-subscriptions td:nth-child(2){min-width:150px}.account-downloads td:first-child{width:100%}.account-transactions{min-width:940px}.account-transactions td:first-child{min-width:170px}.account-transactions td:nth-child(2){min-width:190px}.account-transactions td:nth-child(3){white-space:nowrap}.account-transactions td:nth-child(4){min-width:115px}.account-transactions td:nth-child(5){text-align:right;white-space:nowrap}
#account-tab-payment .account-table :is(th,td,span,strong,.btn){font-size:14px;line-height:1.5}#account-tab-payment .account-table small{font-size:11px}
.account-transactions :is(th,td):nth-child(5){text-align:right;white-space:nowrap}.account-table.account-transactions :is(th,td):nth-child(6){text-align:center}
@media(max-width:600px){.account-table th,.account-table td{padding:10px 8px}.account-downloads .subscription-cell-identity{gap:10px}.account-downloads .subscription-cell-identity>:is(img,.well-logo){width:30px!important;height:30px!important;flex-basis:30px}.account-downloads .btn{min-width:95px;padding-left:10px;padding-right:10px}.account-downloads strong{font-size:13px}}

/* Mobile subscription tables match the compact Developer Menu scale. */
@media(max-width:650px){
 .account-table.account-subscriptions,.account-table.account-downloads{min-width:0;width:100%;max-width:100%;table-layout:fixed;font-size:8px;line-height:1.4}
 .account-subscriptions th,.account-subscriptions td,.account-downloads th,.account-downloads td{padding:7px 3px;min-width:0;font-size:8px;line-height:1.4;overflow-wrap:anywhere}
 .account-subscriptions th,.account-downloads th{font-size:10px;white-space:normal}
 .account-subscriptions :is(th,td):first-child{width:34%}
 .account-subscriptions :is(th,td):nth-child(2){width:24%;min-width:0}
 .account-subscriptions :is(th,td):nth-child(3){width:24%}
 .account-subscriptions :is(th,td):last-child{width:18%}
 .account-subscriptions .subscription-cell-identity,.account-downloads .subscription-cell-identity{gap:5px;min-width:0}
 .account-subscriptions .subscription-cell-identity>:is(img,.well-logo),.account-downloads .subscription-cell-identity>:is(img,.well-logo){width:14px!important;height:14px!important;flex:0 0 14px}
 .account-subscriptions .subscription-catalog-identity{min-width:0;overflow:hidden}
 .account-subscriptions .subscription-cell-identity strong,.account-downloads .subscription-cell-identity strong{font-size:8px;line-height:1.4;overflow-wrap:anywhere}
 .account-subscriptions td small,.account-downloads td small{font-size:8px;line-height:1.4;margin-top:2px}
 .account-subscriptions td:nth-child(2) small{display:none}
 .account-subscriptions .subscribed{padding:1px 2px;font-size:8px;white-space:normal;display:inline-block;max-width:100%;box-sizing:border-box}
 .account-subscriptions .btn,.account-subscriptions .subscription-catalog-row .btn,.account-downloads .btn{width:100%;min-width:0;max-width:100%;min-height:30px;padding:3px 2px;font-size:8px;line-height:1.25;white-space:normal;box-sizing:border-box}
 .account-downloads :is(th,td):first-child{width:auto}
 .account-downloads :is(th,td):last-child{width:60px}
}

@media(max-width:650px){.account-table.account-subscriptions .subscription-catalog-row .btn,.account-table.account-downloads .btn{max-width:56px}}

@media(max-width:650px){
 .account-table.account-subscriptions :is(th,td):last-child,.account-table.account-downloads :is(th,td):last-child{width:54px}
 .account-table.account-subscriptions .subscription-catalog-row .btn,.account-table.account-downloads .btn{display:inline-flex;align-items:center;justify-content:center;width:48px;min-width:48px;max-width:48px;height:30px;min-height:30px;padding:3px 2px}
}

/* Compact mobile account pages; desktop and Developer Menu retain their layouts. */
@media(max-width:650px){
 .account-tabs{gap:4px;padding:4px;margin-bottom:12px;grid-template-columns:repeat(2,minmax(0,1fr))}
 .account-tabs button{height:30px;padding:4px;font-size:10px}
 .account-tab-panel:not(#account-tab-master)>.checkout-step,#profile-panel{padding:14px 12px;margin-bottom:12px;border-radius:10px;font-size:10px;line-height:1.5}
 .account-tab-panel:not(#account-tab-master) h2,#profile-panel h2,#account-tab-payment>.checkout-step>h2{font-size:16px;margin:0 0 12px;padding:0;line-height:1.3}
 .account-tab-panel:not(#account-tab-master) h3,#preferences-panel h3{font-size:12px;margin:0 0 8px}
 .account-tab-panel:not(#account-tab-master) :is(p,.fine,.field-label,.connection-state,.text-button),.profile-row>label,.profile-locality-fields>label{font-size:10px;line-height:1.5}
 .account-tab-panel:not(#account-tab-master) p{margin:6px 0}
 .account-tab-panel:not(#account-tab-master) .status:empty{display:none}
 .profile-row{grid-template-columns:1fr;gap:4px;margin-bottom:10px}
 .picture-row{margin-bottom:12px}.picture-row>label{padding-top:0}.picture-controls{gap:12px}
 .avatar-frame{width:56px;height:56px;border-radius:14px}#profile-initials{font-size:20px}
 .avatar-edit{width:26px;height:26px;border-width:2px;right:-5px;bottom:-3px}.avatar-edit svg{width:14px;height:14px}
 #profile-form input:not([type=file]),#profile-form select,#preference-theme{height:32px;min-height:32px;padding:5px 8px;font-size:12px}
 #profile-form textarea{padding:6px 8px;font-size:12px}#profile-about{min-height:72px}
 .profile-locality-fields{gap:6px;grid-template-columns:minmax(0,1fr) auto 70px}
 .profile-subsection{margin:14px 0 10px;padding-top:12px}
 .inline-actions{gap:6px 10px}
 .account-tab-panel:not(#account-tab-master):not(#account-tab-subscriptions) .btn{box-sizing:border-box;min-height:30px;height:30px;padding:4px 8px;font-size:10px;line-height:1.4;min-width:0}
 .preferences-actions,.profile-save-row,.communication-actions,#account-cookies .account-save-actions{gap:6px;margin-top:12px}
 .preferences-actions .btn,.profile-save-row .btn,.communication-actions .btn,#account-cookies .account-save-actions>.btn{width:64px;min-width:64px;flex:0 0 64px}
 .account-tab-panel .cookie-option{gap:8px;margin:8px 0!important}
 .account-tab-panel .cookie-option strong{font-size:10px}.account-tab-panel .cookie-option small{font-size:9px;line-height:1.4}
 .account-tab-panel .cookie-option input{margin:0;flex-shrink:0}
 .payment-cards{grid-template-columns:minmax(0,1fr);gap:8px;margin:10px 0}.payment-card{padding:10px;gap:6px}
 #account-tab-payment{--payment-body-size:10px;--payment-heading-size:16px}
 #account-tab-payment :is(p,span,strong,label,select,h3,.btn){font-size:10px}
 #account-tab-payment .account-table :is(th,td,span,strong,.btn){font-size:8px}
 #account-tab-payment .account-table small{font-size:8px}
 .account-transactions{min-width:0;table-layout:fixed}.account-transactions :is(th,td){min-width:0!important;padding:6px 3px;white-space:normal!important;overflow-wrap:anywhere}
 .account-transactions th{font-size:8px!important}.account-transactions .btn{width:100%;padding:2px!important;font-size:8px!important}
 #invoice-history h3{margin-top:12px}#payment-methods select{margin-left:6px;max-width:100%}
}

@media(max-width:650px){
 #account-cookies .account-save-actions>.btn,.communication-actions .btn{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:48px;min-width:48px;max-width:48px;flex:0 0 48px;height:30px;min-height:30px;padding:3px 2px;font-size:8px}
}

@media(max-width:650px){
 #preferences-panel .preferences-actions .btn{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;width:48px;min-width:48px;max-width:48px;flex:0 0 48px;height:30px;min-height:30px;padding:3px 2px;font-size:8px}
 #preferences-panel #preference-theme{height:30px;min-height:30px;padding:3px 6px;font-size:8px}
}

@media(max-width:650px){
 #preferences-panel .palette-trigger{box-sizing:border-box;height:30px;min-height:30px;padding:3px 6px;font-size:8px}
 #preferences-panel .palette-name,#preference-theme-options .palette-name{font-size:8px}
 #preference-theme-options .palette-option{min-height:30px;box-sizing:border-box;padding:5px 6px;font-size:8px}
 #preferences-panel .palette-swatches i,#preference-theme-options .palette-swatches i{width:10px;height:10px}
}




/* Mobile account section links live in the account dropdown. */
@media(max-width:800px){.account-shell .account-tabs{display:none!important}}

@media(max-width:650px){
 #account-cookies button.site-toggle,#communication-panel button.site-toggle{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex:0 0 48px;width:48px;min-width:48px;max-width:48px;height:30px;min-height:30px;padding:3px 2px;font-size:8px;line-height:1.4}
}
