/* BAB-0061: the account page on a phone. One screen like the rest (shared/ui/PHONE.md): every rule is under html.phone, so a desktop and a tablet are untouched.
   Signed out: the faces fill the screen and the sign-in card (Google button, Turnstile when it asks) sits at the bottom. Signed in: who you are on top, your saved bots as a strip of
   cards you swipe, a thumb bar (Save, Account, Editor, Data, More). Usage data and the account actions are sheets. */
html.phone body.acct { display: block; background: #0a0a0a; }
html.phone .acct-main { position: fixed; z-index: 1; left: 0; right: var(--ph-rail); top: var(--ph-top); bottom: calc(var(--ph-bar) + var(--bots-cc-h, 0px)); max-width: none; margin: 0; display: flex; flex-direction: column; gap: 0; overflow: hidden; }
html.phone .status { display: none; }

/* signed out */
html.phone .signin { position: relative; flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; border-radius: 0; box-shadow: none; background: #0a0a0a; overflow: hidden; }
html.phone .signin[hidden] { display: none; }
html.phone .signin-art { flex: 1 1 0; min-height: 0; padding: 12px 12px 0; display: grid; place-items: center; overflow: hidden; }
html.phone .signin-art video { width: 100%; height: 100%; max-height: none; object-fit: contain; border-radius: 16px; }
html.phone .signin-card { flex: none; position: relative; padding: 16px 16px 8px; gap: 8px; margin: 8px 0 0; border-radius: 22px 22px 0 0; overflow: hidden; }
html.phone .signin-card::before { content: ""; position: absolute; left: 22px; top: -1px; width: 56px; height: 3px; border-radius: 0 0 3px 3px; background: var(--hue); box-shadow: 0 0 12px rgba(var(--hue-rgb), .7); }
html.phone .signin-logo { display: none; }
html.phone .signin h1 { font-size: 26px; }
html.phone .signin .lead { font-size: 15px; line-height: 1.4; }
html.phone .gbtn { min-height: 44px; display: flex; justify-content: center; }
html.phone .fine { font-size: 14px; line-height: 1.35; }
html.phone .fine a { display: inline-block; padding: 8px 0; }
html.phone .skipit { align-self: stretch; justify-content: center; min-height: 44px; box-shadow: none; border: 1px solid var(--hair); border-radius: 12px; font-size: 15px; }
html.phone .help { font-size: 14px; }

/* signed in */
html.phone .me { flex: none; margin: 8px 8px 0; padding: 10px 14px; border-radius: 18px; flex-wrap: nowrap; gap: 10px; }
html.phone .me .who { gap: 12px; min-width: 0; }
html.phone .me .who > div { min-width: 0; }
html.phone .me h1 { font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.phone .me .help { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
html.phone .who img { width: 48px; height: 48px; }
html.phone #designs { flex: 1 1 0; min-height: 0; display: flex; flex-direction: column; justify-content: center; margin: 0; padding: 12px 0 14px; border: 0; border-radius: 0; background: transparent; box-shadow: none; overflow: hidden; }
html.phone #designs[hidden] { display: none; }
html.phone #designs::before { display: none; }
html.phone #designs h2 { margin: 0 16px 8px; font-size: 18px; color: #fff; }
html.phone #designs > .help, html.phone #designs > .row { display: none; }                  /* the Save button is in the thumb bar (it presses #b-save) */
html.phone .dlist { display: flex; gap: 12px; margin: 0; padding: 4px 16px 10px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding: 0 16px; overscroll-behavior-x: contain; scrollbar-width: none; align-items: stretch; }
html.phone .dlist::-webkit-scrollbar { display: none; }
html.phone .dlist li { position: relative; flex: 0 0 min(78%, 300px); scroll-snap-align: start; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 8px; padding: 16px 14px 14px; border: 0; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px rgba(var(--hue-rgb), .5), 0 18px 36px -22px rgba(var(--hue-rgb), .8); }
html.phone .dlist li::before { content: ""; position: absolute; left: 18px; top: -1px; width: 46px; height: 3px; border-radius: 0 0 3px 3px; background: var(--hue); box-shadow: 0 0 12px rgba(var(--hue-rgb), .7); }
html.phone .dlist b { flex: none; font-size: 20px; line-height: 1.25; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html.phone .dlist small { flex: none; font-size: 14px; }
html.phone .dlist li .btn { min-height: 48px; width: 100%; justify-content: center; }
html.phone .dlist li .help { flex: 1; font-size: 16px; display: grid; align-content: center; text-align: center; }
html.phone .dlist li:only-child { flex-basis: 100%; }

/* the sheets */
html.phone .ph-sheet .perks { margin: 0; gap: 14px; }
html.phone .ph-sheet .perks span { font-size: 15px; }
html.phone #sh-data #p-data .row { margin-top: 10px; }
html.phone #sh-data #p-data .btn { width: 100%; justify-content: center; min-height: 52px; white-space: normal; text-align: center; }
html.phone #sh-data #p-data .row[role="group"] { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
html.phone #sh-data #h-data { display: none; }
html.phone #sh-data #del-sure .btn { margin-top: 8px; }
html.phone #sh-account .row { display: grid; gap: 8px; margin: 0; }
html.phone #sh-account .row .btn { width: 100%; min-height: 56px; justify-content: center; font-size: 16px; }
html.phone #sh-account .me, html.phone #sh-account .row { background: transparent; }
html.phone #sh-confirm .row { display: grid; gap: 8px; margin: 12px 0 0; }
html.phone #sh-confirm .row .btn { width: 100%; min-height: 56px; justify-content: center; font-size: 16px; }
html.phone #sh-confirm p { margin: 4px 0 0; font-size: 16px; overflow-wrap: anywhere; }

/* sideways: the faces on the left, the card on the right; the strip fills the rest */
html.phone-land .signin { flex-direction: row; }
html.phone-land .signin-art { flex: 1 1 0; padding: 8px 0 8px 12px; }
html.phone-land .signin-card { flex: 0 0 min(50%, 420px); margin: 0; border-radius: 22px 0 0 22px; justify-content: center; overflow-y: auto; }
html.phone-land .signin-card::before { left: -1px; top: 22px; width: 3px; height: 56px; border-radius: 0 3px 3px 0; }
html.phone-land .signin h1 { font-size: 22px; }
html.phone-land .me { margin-top: 6px; padding: 6px 12px; }
html.phone-land .dlist li { flex-basis: min(46%, 300px); padding: 12px; }
html.phone-land .dlist b { font-size: 18px; -webkit-line-clamp: 1; }
html.phone-land #designs h2 { margin-bottom: 4px; }
html.phone-land #designs { padding: 6px 0 8px; }

/* left-handed: the strip starts from the thumb's side no differently; only the bar mirrors (phone.css) */
@media (prefers-reduced-motion: reduce) { html.phone .dlist { scroll-behavior: auto; } }
