/* "Coming soon" windows (own-plan offer, account and credits) and the round account button.
   Shared by the try page (app.css colours) and the walkthrough page (--v-* colours). Logical properties only. */
.soon-dialog, .acct-btn, .credits-pill, .signin-btn, .ib-banner {
  --o-ink: var(--v-ink, var(--ink, #1d1f23));
  --o-soft: var(--v-ink-soft, var(--muted, #565c68));
  --o-line: var(--v-line, var(--line, rgb(29 31 35 / 0.14)));
  --o-ctl: var(--v-line, var(--control, #6b7280));
  --o-accent: var(--v-accent, var(--accent, #c62828));
  --o-on-accent: var(--v-accent-ink, var(--on-accent, #ffffff));
  --o-fill: var(--v-accent-fill, var(--accent-fill, #c62828));
  --o-fill-top: var(--v-accent-top, var(--accent-top, #d63636));
  --o-fill-deep: var(--v-accent-deep, var(--accent-deep, #a92020));
  --o-btn-top: var(--v-btn-top, var(--btn-top, #ffffff));
  --o-btn-bottom: var(--v-btn-bottom, var(--btn-bottom, #f3f4f6));
  --o-bg: var(--v-dialog, var(--v-paper, var(--raised, #ffffff)));
}

.acct-btn {
  flex: none; inline-size: 44px; block-size: 44px; padding: 0; display: inline-grid; place-items: center;
  border-radius: 50%; border: 1.5px solid var(--o-ctl); background: linear-gradient(var(--o-btn-top), var(--o-btn-bottom)); color: var(--o-ink); cursor: pointer;
}
.acct-btn:hover { background: var(--o-btn-bottom); }
.acct-btn svg { inline-size: 22px; block-size: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.acct-btn:focus-visible, .soon-x:focus-visible, .soon-back:focus-visible { outline: 3px solid var(--o-accent); outline-offset: 2px; }

/* the credits balance beside the account circle: a coin and the number, shown only while there is a wallet */
.credits-pill {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-block-size: 44px; padding-inline: 12px; box-sizing: border-box;
  border-radius: 999px; border: 1.5px solid var(--o-ctl); background: linear-gradient(var(--o-btn-top), var(--o-btn-bottom)); color: var(--o-ink); font: inherit; font-weight: 650; cursor: pointer;
}
.credits-pill[hidden] { display: none; }
.credits-pill:hover { background: var(--o-btn-bottom); }
.credits-pill:focus-visible, .soon-buy:focus-visible { outline: 3px solid var(--o-accent); outline-offset: 2px; }
.credits-pill svg { inline-size: 18px; block-size: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.acct-btn[hidden] { display: none; }

/* the text button that takes the circle's place while accounts are on and nobody is signed in (account.js watchHeader) */
.signin-btn {
  flex: none; min-block-size: 44px; padding-inline: 16px; box-sizing: border-box; white-space: nowrap;
  border-radius: 999px; border: 1.5px solid var(--o-ctl); background: linear-gradient(var(--o-btn-top), var(--o-btn-bottom)); color: var(--o-ink); font: inherit; font-weight: 650; cursor: pointer;
}
.signin-btn[hidden] { display: none; }
.signin-btn:hover { background: var(--o-btn-bottom); }
.signin-btn:focus-visible { outline: 3px solid var(--o-accent); outline-offset: 2px; }
.is-embed .acct-btn, .is-embed .credits-pill, .is-embed .signin-btn { display: none; }

.soon-dialog {
  inline-size: min(520px, calc(100% - 32px)); max-block-size: calc(100dvh - 32px); overflow: auto; padding: 0;
  border: 1px solid var(--o-line); border-radius: 16px; background: var(--o-bg); color: var(--o-ink);
  box-shadow: 0 10px 30px rgba(29, 31, 35, 0.22);
}
.soon-dialog::backdrop { background: rgba(14, 17, 22, 0.5); }
.soon-inner { display: grid; gap: 12px; padding: 20px; }
.soon-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.soon-title { margin: 0; font-size: 1.25rem; font-weight: 750; line-height: 1.25; letter-spacing: 0; }
.soon-sub { margin: 4px 0 0; font-size: 1rem; font-weight: 700; line-height: 1.3; }
.soon-x {
  flex: none; inline-size: 44px; block-size: 44px; margin-block: -6px; margin-inline-end: -8px; padding: 0;
  border-radius: 10px; border: 1px solid var(--o-line); background: transparent; color: inherit; font: inherit; cursor: pointer;
}
.soon-lead { margin: 0; line-height: 1.5; }
.soon-list { margin: 0; padding-inline-start: 1.25rem; display: grid; gap: 6px; line-height: 1.45; }
.soon-note { margin: 0; font-size: 0.88rem; line-height: 1.45; color: var(--o-soft); }
.soon-pay {
  inline-size: 100%; min-block-size: 48px; padding-inline: 16px; border-radius: 10px; border: 2px dashed var(--o-ctl);
  background: transparent; color: var(--o-soft); font: inherit; font-weight: 650; cursor: not-allowed;
}
.soon-back {
  justify-self: start; display: inline-flex; align-items: center; min-block-size: 44px;
  color: var(--o-ink); font-weight: 650; text-underline-offset: 0.2em;
}
.soon-back:hover { color: var(--o-accent); }
.soon-body { display: grid; gap: 12px; }
.soon-balance { margin: 0; font-size: 1.5rem; font-weight: 750; line-height: 1.2; }
.soon-packs { display: grid; gap: 8px; }
.soon-buy {
  inline-size: 100%; min-block-size: 48px; padding-inline: 16px; border-radius: 10px; border: 1px solid var(--o-fill-deep);
  background: linear-gradient(var(--o-fill-top), var(--o-fill)); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.28), 0 1px 2px rgb(120 16 16 / 0.35); color: var(--o-on-accent); font: inherit; font-weight: 650; cursor: pointer;
}
.soon-buy:disabled { opacity: 0.55; cursor: default; }
/* the consent box above the pack buttons: "I agree to the Terms and Conditions" (owner 2026-10-31); the buttons wait for the tick */
.soon-consent { --o-need: #c62828; --o-need-glow: rgb(198 40 40 / 0.45); display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-size: 0.9rem; line-height: 1.4; cursor: pointer; text-align: start; padding: 6px 8px; margin: -6px -8px; border-radius: 8px; }
@media (prefers-color-scheme: dark) { .soon-consent { --o-need: #ef5350; --o-need-glow: rgb(239 83 80 / 0.5); } }
.soon-consent-box { inline-size: 18px; block-size: 18px; margin: 0; flex: none; align-self: start; margin-block-start: 1px; accent-color: var(--o-accent, #c62828); cursor: pointer; }
.soon-consent-text { flex: 1 1 10rem; min-inline-size: 0; }
.soon-consent-link { color: inherit; font-weight: 650; text-underline-offset: 0.2em; }
.soon-consent-box:focus-visible { outline: 3px solid var(--o-accent); outline-offset: 2px; }
/* a pack was pressed without the tick (offer.js flashConsent): a soft red ring pulses three times, then a thin red edge stays until the box is ticked */
.soon-consent.is-needed { box-shadow: 0 0 0 2px var(--o-need), 0 0 0 2px transparent; animation: consent-pulse 0.45s ease-out 3; }
@keyframes consent-pulse {
  0% { box-shadow: 0 0 0 2px var(--o-need), 0 0 0 2px var(--o-need-glow); }
  70%, 100% { box-shadow: 0 0 0 2px var(--o-need), 0 0 0 9px transparent; }
}
@media (prefers-reduced-motion: reduce) { .soon-consent.is-needed { animation: none; } }

/* the account menu (signed in), board E5: who you are, the balance with "Buy credits", the rows (My designs, Billing, Pricing, Language, Help,
   settings, sign out), then the saved designs and a quiet "delete my designs". A sheet from the bottom on a phone, a dropdown under the circle
   on a computer. The icons and the arrows are masks (a data: address, img-src allows it), so the element with the words is the one pressed. */
.acct-nav .soon-inner { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 10px 16px 20px; }
.acct-nav [hidden] { display: none !important; }
.acct-nav-sr { position: absolute; inline-size: 1px; block-size: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.acct-nav-grab { justify-self: center; inline-size: 44px; block-size: 5px; border-radius: 999px; background: var(--o-line); }
.acct-nav-head { align-items: center; }
.acct-nav-who { position: relative; flex: 1; min-inline-size: 0; min-block-size: 44px; padding-inline-start: 56px; display: flex; align-items: center; }
.acct-nav-who::before { content: ""; position: absolute; inset-inline-start: 0; inset-block-start: 0; inline-size: 44px; block-size: 44px; box-sizing: border-box; border-radius: 50%; border: 1px solid var(--o-line); }
.acct-nav-who::after { content: ""; position: absolute; inset-inline-start: 11px; inset-block-start: 11px; inline-size: 22px; block-size: 22px; background: currentColor; -webkit-mask: var(--ic-person) center / contain no-repeat; mask: var(--ic-person) center / contain no-repeat; }
.acct-nav-ident { display: grid; min-inline-size: 0; }
.acct-nav-ident .acct-email { color: var(--o-ink); font-weight: 750; }
.acct-nav-plan { margin: 0; }
.acct-nav .soon-x { margin-block: 0; }
.acct-nav-credits { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 16px; background: color-mix(in srgb, var(--o-ink) 6%, transparent); }
.acct-nav-credits-n { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; }
.acct-nav-credits-n::before { content: ""; inline-size: 22px; block-size: 22px; background: currentColor; -webkit-mask: var(--ic-coin) center / contain no-repeat; mask: var(--ic-coin) center / contain no-repeat; }
.acct-nav-buy { display: inline-flex; align-items: center; min-block-size: 44px; color: var(--o-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.acct-nav-buy:hover { color: var(--o-accent); }
.acct-nav-list { list-style: none; margin: 0; padding: 0; }
.acct-nav-list > li + li { border-block-start: 1px solid var(--o-line); }
.acct-nav-item {
  display: flex; align-items: center; gap: 14px; inline-size: 100%; box-sizing: border-box; min-block-size: 52px; padding: 0 4px; border: 0; border-radius: 8px;
  background: none; color: var(--o-ink); font: inherit; font-weight: 650; text-align: start; text-decoration: none; cursor: pointer;
}
.acct-nav-item::before { content: ""; flex: none; inline-size: 22px; block-size: 22px; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.acct-nav-item::after { content: ""; flex: none; margin-inline-start: auto; inline-size: 18px; block-size: 18px; background: var(--o-soft); -webkit-mask: var(--ic-next) center / contain no-repeat; mask: var(--ic-next) center / contain no-repeat; }
[dir="rtl"] .acct-nav-item::after { transform: scaleX(-1); }
.acct-nav-item:hover { color: var(--o-accent); }
.acct-nav-item:focus-visible { outline: 3px solid var(--o-accent); outline-offset: 0; }
.acct-nav-item.is-lang::after { display: none; }
.acct-nav-lang-text { flex: none; }
.acct-nav-select { flex: 1; min-inline-size: 0; max-inline-size: 11rem; margin-inline-start: auto; padding: 6px 4px; border: 0; background: transparent; color: var(--o-soft); font: inherit; text-align: end; cursor: pointer; }
.acct-nav-select:focus-visible { outline: 3px solid var(--o-accent); outline-offset: 2px; border-radius: 6px; }
.acct-nav-item.is-designs { --ic: var(--ic-person); }
.acct-nav-item.is-billing { --ic: var(--ic-card); }
.acct-nav-item.is-pricing { --ic: var(--ic-coin); }
.acct-nav-item.is-lang { --ic: var(--ic-globe); }
.acct-nav-item.is-help { --ic: var(--ic-mail); }
.acct-nav-item.is-settings { --ic: var(--ic-gear); }
.acct-nav-item.is-out { --ic: var(--ic-x); }
.acct-nav {
  --ic-person: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8.5' r='3.8'/%3E%3Cpath d='M4.5 20.5c.9-4 4-6.2 7.5-6.2s6.6 2.2 7.5 6.2'/%3E%3C/svg%3E");
  --ic-card: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6' width='18' height='13' rx='2'/%3E%3Cpath d='M3 10h18'/%3E%3C/svg%3E");
  --ic-coin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Ccircle cx='12' cy='12' r='4.6'/%3E%3C/svg%3E");
  --ic-globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3.2 3.4 3.2 14.6 0 18M12 3c-3.2 3.4-3.2 14.6 0 18'/%3E%3C/svg%3E");
  --ic-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
  --ic-gear: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3Cpath d='M12 3v3M12 18v3M3 12h3M18 12h3M5.6 5.6l2.1 2.1M16.3 16.3l2.1 2.1M18.4 5.6l-2.1 2.1M7.7 16.3l-2.1 2.1'/%3E%3C/svg%3E");
  --ic-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
  --ic-next: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6 6 6-6 6'/%3E%3C/svg%3E");
  margin: 0; position: fixed; inset-block: auto 0; inset-inline: 0; inline-size: 100%; max-inline-size: 100%; max-block-size: 90dvh;
  border-radius: 24px 24px 0 0; border-block-end: 0; border-inline: 0;
}
.acct-nav .acct-designs { max-block-size: min(22dvh, 160px); }
.acct-nav .acct-quiet { color: var(--o-accent); }
@media (min-width: 40em) {
  .acct-nav { inset-block: 68px auto; inset-inline: auto 16px; inline-size: 22rem; max-inline-size: calc(100% - 32px); max-block-size: calc(100dvh - 84px); border-radius: 22px; border: 1px solid var(--o-line); }
  .acct-nav::backdrop { background: transparent; }
  .acct-nav-grab { display: none; }
}

.acct-email { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--o-soft); }
.acct-designs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-block-size: min(40dvh, 320px); overflow-y: auto; overscroll-behavior: contain; }
.acct-designs:empty { display: none; }
.acct-design {
  display: grid; gap: 2px; min-block-size: 44px; padding: 8px 12px; box-sizing: border-box;
  border: 1px solid var(--o-line); border-radius: 10px; color: inherit; text-decoration: none;
}
.acct-design:hover { border-color: var(--o-accent); }
.acct-design-name { font-weight: 650; overflow-wrap: anywhere; }
.acct-design-date { font-size: 0.85rem; color: var(--o-soft); }
.acct-row { display: flex; flex-wrap: wrap; gap: 8px; }
.acct-act {
  flex: 1 1 140px; min-block-size: 44px; padding-inline: 14px; border-radius: 10px; border: 1px solid var(--o-ctl);
  background: linear-gradient(var(--o-btn-top), var(--o-btn-bottom)); color: var(--o-ink); font: inherit; font-weight: 650; cursor: pointer;
}
.acct-act:disabled { opacity: 0.55; cursor: default; }
.acct-danger { border-color: var(--o-fill-deep); color: var(--o-accent); }
.acct-quiet {
  justify-self: start; min-block-size: 44px; padding: 0 4px; border: 0; background: none; cursor: pointer;
  color: var(--o-soft); font: inherit; font-size: 0.88rem; text-decoration: underline; text-underline-offset: 0.2em;
}
.acct-quiet:hover { color: var(--o-ink); }
.acct-confirm { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--o-line); border-radius: 10px; }
.acct-link { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; text-decoration: none; text-align: center; }
.acct-design:focus-visible, .acct-act:focus-visible, .acct-quiet:focus-visible, .acct-link:focus-visible { outline: 3px solid var(--o-accent); outline-offset: 2px; }

/* the sheet in front of the sign-in inside the Instagram / Facebook browser (in-app-sheet.js, loaded only there): the page in the real browser,
   or an e-mail sign-in here. One red button; pill buttons like the pay screens; 44 px and more to press. */
.ib-sheet .soon-inner { gap: 14px; padding: 18px 18px 14px; }
.ib-sheet .soon-title { text-wrap: balance; }
.ib-sheet .soon-buy { display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-block-size: 52px; border-radius: 999px; text-align: center; text-decoration: none; }
.ib-sheet .soon-buy:focus-visible, .ib-plain:focus-visible, .ib-quiet:focus-visible, .ib-field:focus-visible { outline: 3px solid var(--o-accent); outline-offset: 2px; }
.ib-plain {
  display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none;
  inline-size: 100%; min-block-size: 48px; padding-inline: 16px; box-sizing: border-box; border-radius: 999px; border: 1.5px solid var(--o-ctl);
  background: linear-gradient(var(--o-btn-top), var(--o-btn-bottom)); color: var(--o-ink); font: inherit; font-weight: 650; cursor: pointer;
}
.ib-plain:hover { background: var(--o-btn-bottom); }
.ib-quiet { justify-self: center; min-block-size: 44px; padding-inline: 12px; border: 0; background: none; color: var(--o-soft); font: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
.ib-quiet:hover { color: var(--o-accent); }
.ib-steps { font-size: 0.95rem; }
.ib-field { inline-size: 100%; min-block-size: 44px; box-sizing: border-box; padding-inline: 12px; border: 1px solid var(--o-ctl); border-radius: 12px; background: transparent; color: var(--o-ink); font: inherit; font-size: 0.9rem; }
.ib-sheet [hidden] { display: none !important; }
/* the banner on arrival at the upload page (in-app-sheet.js showInAppBanner): a card in the page before the drop zone, short, never over it */
.ib-banner { display: grid; gap: 8px; margin-block: 0 12px; padding: 12px; box-sizing: border-box; border: 1.5px solid var(--o-line); border-radius: 14px; background: var(--o-bg); color: var(--o-ink); text-align: start; }
.ib-banner-why { margin: 0; font-size: 0.92rem; line-height: 1.4; font-weight: 600; }
.ib-banner-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 8px; }
.ib-banner .soon-buy { flex: 1 1 180px; display: flex; align-items: center; justify-content: center; box-sizing: border-box; min-block-size: 48px; border-radius: 999px; text-align: center; text-decoration: none; }
.ib-banner a.soon-buy:hover, .ib-sheet a.soon-buy:hover { color: var(--o-on-accent); }   /* app.css `a:hover` would paint the link's red text red on the red button (it stays hovered after a tap) */
.ib-banner .ib-quiet { flex: none; }
.ib-banner .ib-steps { margin: 0; font-size: 0.82rem; }
.ib-banner :is(.soon-buy, .ib-quiet, .ib-field):focus-visible { outline: 3px solid var(--o-accent); outline-offset: 2px; }
.ib-banner [hidden] { display: none !important; }
/* the bot check of the free reading without signing in (turnstile.js): empty and invisible until Cloudflare needs the visitor, then its box is centred */
.turnstile-host { display: flex; justify-content: center; max-inline-size: 100%; }
.turnstile-host iframe { max-inline-size: 100%; }
.turnstile-box { display: grid; gap: 8px; }   /* the widget's place with its one line above it (new.js paintFree: kept across repaints, so the frame is never taken out) */
