/* Existing account controls, moved out of HTML so route CSP can require same-origin styles. */
    body { margin: 0; background: #15120f; color: #f8f3ec; font: 16px/1.5 system-ui, sans-serif; }
    main { max-width: 580px; margin: 8vh auto; padding: 24px; }
    .card { border: 1px solid #514032; border-radius: 16px; background: #211b16; padding: 28px; }
    h1 { margin: 0 0 10px; font-size: 2rem; }
    p { margin: 10px 0 20px; }
    button { cursor: pointer; border: 0; border-radius: 9px; padding: 13px 20px; background: #d54b0d; color: white; font: inherit; font-weight: 700; }
    button:focus-visible { outline: 3px solid white; outline-offset: 3px; }
    button:disabled { cursor: wait; }
    #continue-checkout { max-width: 100%; }
    #continue-checkout.is-loading::before { content: ''; display: inline-block; width: .9em; height: .9em; margin-right: .55em; vertical-align: -.12em; border: 2px solid #ffffff60; border-top-color: white; border-radius: 50%; animation: checkout-spin .8s linear infinite; }
    #checkout-help { margin: 10px 0 16px; }
    @keyframes checkout-spin { to { transform: rotate(360deg); } }
    @media (prefers-reduced-motion: reduce) { #continue-checkout.is-loading::before { animation: none; border-color: white; border-right-color: transparent; } }
    @media (max-width: 440px) { main { margin: 4vh auto; padding: 16px; } .card { padding: 20px; } #continue-checkout { width: 100%; margin-left: 0; } }
    button + button { margin: 8px 0 0 8px; }
    .secondary { background: transparent; border: 1px solid #a78c77; }
    a { color: #ff985f; }
    a:focus-visible { outline: 3px solid white; outline-offset: 3px; }
    .back-home { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 8px; font-weight: 600; text-decoration: none; }
    .back-home:hover { text-decoration: underline; }
    .muted { color: #c8b8a9; font-size: .9rem; }
    .card { overflow-wrap: anywhere; }
    .appsumo-points { padding-left: 1.3rem; margin: 10px 0 20px; }
    .appsumo-points li + li { margin-top: 8px; }
    .appsumo-downloads { margin: 16px 0 20px; }
    .appsumo-downloads p { margin: 0 0 6px; }
    .appsumo-downloads a { display: inline-block; min-height: 24px; }
    #appsumo-link:not([hidden]) ~ #account-download,
    #appsumo-next:not([hidden]) ~ #account-download { display: none; }
    fieldset { border: 1px solid #514032; border-radius: 9px; margin: 0 0 16px; padding: 12px; }
    html.us-mobile-device #account-download { display: none; }

@font-face { font-family: Inter; src: url('/assets/useshorts/fonts/inter-latin.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url('/assets/useshorts/fonts/inter-tight-latin.woff2') format('woff2'); font-display: swap; }

:root { color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

body[data-auth-page] {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(ellipse 80% 55% at 50% -20%, #392014 0%, #15100d 50%, #0c0b0a 100%);
  color: #f7f3ee;
  font: 16px/1.55 Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.account-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 32px 0;
}
.account-brand a { display: inline-flex; align-items: center; min-height: 44px; }
.account-brand img { display: block; width: min(180px, 48vw); height: auto; }
.account-brand > span { color: #9f8c7e; font-size: 11px; font-weight: 700; letter-spacing: .18em; }

body[data-auth-page="account"] main { width: min(100%, 860px); max-width: none; margin: clamp(36px, 8vh, 92px) auto 64px; padding: 0 24px; }
body[data-auth-page="account"] .card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid #433328;
  border-radius: 20px;
  background: #1b1714;
  box-shadow: 0 24px 70px #0004;
}
body[data-auth-page="account"] .card::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #f15a1b;
  content: '';
}
.account-eyebrow { margin: 24px 0 9px !important; color: #ff854b; font-size: 11px; font-weight: 800; letter-spacing: .17em; }
body[data-auth-page="account"] .back-home { margin: 0; color: #d9b6a0; font-size: 14px; }
body[data-auth-page="account"] h1,
body[data-auth-page="callback"] h1 { margin: 0; font: 700 clamp(30px, 4vw, 44px)/1.08 'Inter Tight', Inter, sans-serif; letter-spacing: -.04em; }
body[data-auth-page="account"] #status {
  margin: 25px 0 20px;
  padding: 17px 20px;
  border: 1px solid #4b392d;
  border-radius: 12px;
  background: #261e19;
  color: #f3e9df;
  overflow-wrap: anywhere;
}
body[data-auth-page="account"] #account-email { margin: 0 0 16px; color: #dfc9b9; font-size: 14px; overflow-wrap: anywhere; }
body[data-auth-page="account"] #plan { margin: 20px 0; padding: 20px 22px; border-left: 3px solid #f15a1b; border-radius: 0 10px 10px 0; background: #2a211b; color: #f5e9dd; font-size: 15px; }
body[data-auth-page="account"] #app-guidance { max-width: 58ch; color: #bdaea2; }
body[data-auth-page="account"] button {
  min-height: 46px;
  border-radius: 10px;
  padding: 12px 21px;
  background: #e95013;
  color: #fff;
  font: 700 15px/1.3 Inter, sans-serif;
  transition: background-color .18s ease, transform .18s ease;
}
body[data-auth-page="account"] button:hover:not(:disabled) { background: #fa6527; transform: translateY(-1px); }
body[data-auth-page="account"] button.secondary { background: transparent; border: 1px solid #92725b; }
body[data-auth-page="account"] button.secondary:hover:not(:disabled) { background: #2b211b; }
body[data-auth-page="account"] button:disabled { opacity: .66; transform: none; }
body[data-auth-page="account"] a { color: #ff965b; text-underline-offset: 3px; }
body[data-auth-page="account"] a:hover { color: #ffb286; }
body[data-auth-page="account"] :is(button, a, input):focus-visible,
body[data-auth-page="callback"] a:focus-visible { outline: 3px solid #ffb17d; outline-offset: 4px; }
body[data-auth-page="account"] #account-download,
body[data-auth-page="account"] .appsumo-downloads { margin: 24px 0; padding: 19px 22px; border: 1px solid #44362c; border-radius: 12px; background: #201a16; }
body[data-auth-page="account"] #account-download a,
body[data-auth-page="account"] .appsumo-downloads a { display: inline-block; padding: 4px 0; font-weight: 650; }
body[data-auth-page="account"] #sign-out { margin-top: 9px; background: transparent; border: 1px solid #765d4d; color: #f7eae0; }
body[data-auth-page="account"] #sign-out:hover { background: #30231b; }
body[data-auth-page="account"] #availability { color: #aa9888; font-size: 13px; }
body[data-auth-page="account"] :is(#appsumo-next, #appsumo-link, #trial-guidance) { margin-top: 24px; padding-top: 20px; border-top: 1px solid #3c3028; }
body[data-auth-page="account"] h2 { margin: 0 0 12px; font: 700 25px/1.2 'Inter Tight', Inter, sans-serif; }

.callback-main { display: grid; place-items: center; width: 100%; min-height: calc(100vh - 115px); padding: 40px 20px 80px; }
.callback-card { width: min(100%, 530px); padding: clamp(32px, 6vw, 60px); border: 1px solid #493629; border-radius: 20px; background: #1b1714; box-shadow: 0 24px 70px #0004; text-align: center; }
.callback-mark { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 8px; border: 1px solid #713d25; border-radius: 17px; background: #291b14; }
.callback-spinner { display: block; width: 28px; height: 28px; border: 3px solid #80523b; border-top-color: #ff7132; border-radius: 50%; animation: account-spin .85s linear infinite; }
.callback-card .account-eyebrow { margin: 16px 0 12px !important; }
.callback-card #status { margin: 24px 0 8px; color: #f7e4d6; overflow-wrap: anywhere; }
.callback-note { margin: 0; color: #aa998d; font-size: 14px; }
.callback-return { display: inline-flex; align-items: center; min-height: 44px; margin-top: 30px; color: #ff985f; font-size: 14px; font-weight: 700; text-underline-offset: 4px; }
@keyframes account-spin { to { transform: rotate(360deg); } }

@media (max-width: 600px) {
  .account-brand { padding: 19px 20px 0; }
  .account-brand > span { font-size: 10px; letter-spacing: .1em; }
  body[data-auth-page="account"] main { margin: 26px auto 40px; padding: 0 16px; }
  body[data-auth-page="account"] .card { padding: 27px 22px 30px; border-radius: 16px; }
  body[data-auth-page="account"] #sign-in,
  body[data-auth-page="account"] #continue-checkout,
  body[data-auth-page="account"] #appsumo-confirm { width: 100%; }
  body[data-auth-page="account"] button + button { margin-left: 0; }
  .callback-main { min-height: calc(100vh - 84px); padding: 28px 16px 48px; }
  .callback-card { padding: 34px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .callback-spinner { animation: none; border-right-color: #ff7132; }
  body[data-auth-page="account"] button { transition: none; }
}

/* V2 — editorial account surfaces and clearer action hierarchy. */
body[data-auth-page] { background: #100e0c; }
.account-brand { max-width: 1030px; padding-top: 28px; }
.account-brand > span { color: #bfaa9b; }
body[data-auth-page="account"] main { width: min(100%, 920px); margin: 52px auto 70px; }
body[data-auth-page="account"] .card {
  overflow: visible;
  padding: clamp(32px, 5vw, 58px);
  border-color: #4e3e32;
  border-radius: 9px;
  background: #1a1613;
  box-shadow: none;
  min-width: 0;
}
body[data-auth-page="account"] .card::before { height: 2px; }
body[data-auth-page="account"] .account-eyebrow { margin-top: 26px !important; }
body[data-auth-page="account"] h1 { font-size: clamp(36px, 4.4vw, 52px); }
body[data-auth-page="account"] #status {
  margin: 27px 0 18px;
  padding: 0 0 19px;
  border: 0;
  border-bottom: 1px solid #5c4a3d;
  border-radius: 0;
  background: transparent;
  color: #f6ece4;
  font-size: 17px;
}
body[data-auth-page="account"] #account-email { margin: -3px 0 18px; color: #cbb9ab; }
body[data-auth-page="account"] #app-guidance { margin: 12px 0 24px; color: #bdaea3; }
body[data-auth-page="account"] #plan {
  margin: 26px 0;
  padding: 19px 22px 20px;
  border-left-width: 2px;
  background: #2b211b;
  color: #fff2e7;
  font-size: 17px;
  line-height: 1.45;
}
body[data-auth-page="account"] #plan::before {
  display: block;
  margin-bottom: 8px;
  color: #e9a37d;
  content: 'PLAN STATUS';
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}
body[data-auth-page="account"] #account-download {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 8px;
  padding: 22px 0 0;
  border: 0;
  border-top: 1px solid #49392e;
  border-radius: 0;
  background: transparent;
}
body[data-auth-page="account"] #account-download::before {
  flex-basis: 100%;
  color: #c8a48e;
  content: 'INSTALL USESHORTS';
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
}
body[data-auth-page="account"] #account-download br { display: none; }
body[data-auth-page="account"] #account-download a {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  flex: 1 1 220px;
  min-width: 0;
  min-height: 56px;
  padding: 13px 17px;
  border: 1px solid #614634;
  border-radius: 7px;
  background: #291d16;
  color: #ffb284;
  text-decoration: none;
}
body[data-auth-page="account"] #account-download a::after { margin-left: 14px; content: '↓'; font-size: 19px; line-height: 1; }
body[data-auth-page="account"] #account-download a:hover { border-color: #dd7641; background: #352218; }
html.us-mobile-device body[data-auth-page="account"] #account-download { display: none; }
body[data-auth-page="account"] #sign-out { margin-top: 24px; }
body[data-auth-page="account"] #sign-in { min-width: 250px; }
body[data-auth-page="account"] #trial-guidance {
  margin-top: 24px;
  padding: 2px 0 0;
  color: #e4d3c6;
}
body[data-auth-page="account"] #trial-guidance p { max-width: 62ch; }
body[data-auth-page="account"] :is(#appsumo-next, #appsumo-link) { margin-top: 28px; border-top-color: #5a4537; }
body[data-auth-page="account"] .appsumo-downloads { background: #211a15; }
body[data-auth-page="account"] #purchase-purpose { border-color: #634938; }
body[data-auth-page="account"] .purchase-purpose-note { margin: 8px 0 0; }

body[data-auth-page="callback"] .callback-main { min-height: calc(100svh - 100px); padding: 36px 16px 60px; }
body[data-auth-page="callback"] .callback-card {
  position: relative;
  width: min(100%, 560px);
  padding: clamp(32px, 5vw, 56px);
  border-color: #534034;
  border-radius: 10px;
  background: #1a1613;
  box-shadow: none;
  overflow-wrap: anywhere;
}
body[data-auth-page="callback"] .callback-card::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #f15a1b;
  content: '';
}
body[data-auth-page="callback"] .callback-mark { border-radius: 50%; background: #261a14; }
body[data-auth-page="callback"] h1 { font-size: clamp(32px, 4vw, 44px); }
body[data-auth-page="callback"] #status { max-width: 38ch; margin: 24px auto 8px; line-height: 1.5; }
body[data-auth-page="callback"] #callback-delay { max-width: 40ch; margin: 12px auto 0; color: #f1b993; font-size: 14px; line-height: 1.5; }
body[data-auth-page="callback"] #callback-delay[hidden] { display: none; }
body[data-auth-page="callback"] .callback-return { margin-top: 25px; }
body[data-auth-page="callback"].auth-error .callback-mark { border-color: #be6653; background: #341d1b; }
body[data-auth-page="callback"].auth-error .callback-spinner { display: none; }
body[data-auth-page="callback"].auth-error .callback-mark::after { color: #ffb0a0; content: '!'; font: 800 27px/1 Inter, sans-serif; }
body[data-auth-page="callback"].auth-error .callback-note { display: none; }
body[data-auth-page="callback"].auth-error #status { color: #ffd4cb; }

@media (max-width: 600px) {
  .account-brand { padding: 19px 20px 0; }
  body[data-auth-page="account"] main { margin: 25px auto 42px; padding: 0 16px; }
  body[data-auth-page="account"] .card { padding: 29px 22px 33px; }
  body[data-auth-page="account"] h1 { font-size: clamp(32px, 9vw, 39px); }
  body[data-auth-page="account"] #status { font-size: 16px; }
  body[data-auth-page="account"] #account-download a { flex-basis: 100%; }
  body[data-auth-page="callback"] .callback-main { min-height: calc(100svh - 82px); padding: 24px 16px 42px; }
  body[data-auth-page="callback"] .callback-card { padding: 35px 24px; }
  body[data-auth-page="callback"] #status { font-size: 15px; }
}
