/* The signed-in account page (/account, /login after sign-in): account.js puts .auth--home on .auth and builds .acc.
   Same tokens as dolly.css; light by default, [data-theme="dark"] from the site's toggle. */
.auth--home { grid-template-columns: minmax(0, 1fr); }
.auth--home .auth__scene { display: none; }
.auth--home .auth__panel { padding: 22px clamp(16px, 4vw, 48px) 28px; }
.auth--home .auth__body { display: block; padding-block: 24px 56px; }
.auth--home .auth__box { max-width: 1120px; margin: 0 auto; }
/* onboarding (on /login) keeps the split scene while it asks its questions */
.auth--home:has(.auth__body.is-onb) { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth--home:has(.auth__body.is-onb) .auth__scene { display: block; }
.auth--home:has(.auth__body.is-onb) .auth__body { display: grid; }
@media (max-width: 900px) { .auth--home:has(.auth__body.is-onb) { grid-template-columns: 1fr; } .auth--home:has(.auth__body.is-onb) .auth__scene { display: none; } }

.acc-top { display: flex; align-items: center; gap: 14px; min-width: 0; }
.acc-top__who { display: inline-flex; align-items: center; gap: 9px; min-width: 0; color: var(--ink-2); font-size: 14px; }
.acc-top__who b { font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }
.acc-av { flex: none; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font: 600 13px/1 var(--display); letter-spacing: -.02em; }
.acc-top button { border: 0; background: none; padding: 8px 2px; font: 500 14px var(--sans); color: var(--ink); cursor: pointer; }
.acc-top button:hover { color: var(--blue); }

.acc { display: grid; gap: 20px; }
.acc .acc-in { animation: acc-in .7s var(--out) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes acc-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .acc .acc-in { animation: none; } }

/* hero */
.acc-hero { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 28px 0 18px; }
.acc-hero h1 { font-family: var(--display); font-size: clamp(46px, 7.4vw, 84px); font-weight: 600; letter-spacing: -.052em; line-height: .95; text-wrap: balance; }
.acc-hero__meta { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--ink-2); font-size: 15px; }
.acc-hero__stk { flex: none; margin: 0 12px -8px 0; }
.acc-hero__stk .stk { width: 200px; }
.acc-badge { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600; letter-spacing: -.005em; background: var(--soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.acc-badge svg { width: 14px; height: 14px; }
.acc-badge--pro { background: var(--ink); color: var(--on-ink); box-shadow: none; }
.acc-badge--gift { background: var(--blue-tint); color: var(--blue); box-shadow: none; }

/* cards */
.acc-row { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; }
.acc-row--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.acc-card { position: relative; border-radius: 24px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, .03), 0 12px 32px -18px rgba(0, 0, 0, .12); padding: 28px; min-width: 0; }
.acc-card--warm { background: var(--warm); box-shadow: none; }
.acc-label { font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.acc-h { margin-top: 6px; font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -.04em; line-height: 1.05; }
.acc-p { margin-top: 8px; color: var(--ink-2); font-size: 15px; line-height: 1.5; max-width: 52ch; }
.acc-actions { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; }
.acc-actions .pill { height: 44px; }
.acc-fine { margin-top: 14px; font-size: 13px; color: var(--ink-3); line-height: 1.5; }
.acc-fine a, .acc-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.acc-fine a:hover, .acc-link:hover { text-decoration-color: currentColor; }
.acc-note { margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: var(--blue-tint); color: #0b4f9c; font-size: 14px; }
.acc-note--err { background: #fdecea; color: #8a1c12; }

/* plan card */
.acc-plan__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.acc-seg { margin-top: 24px; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 3px; border-radius: 999px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); }
.acc-seg button { height: 36px; padding: 0 16px; border: 0; border-radius: 999px; background: none; font: 500 14px var(--sans); color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.acc-seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 2px 8px -2px rgba(0, 0, 0, .1); }
[data-theme="dark"] .acc-seg button[aria-pressed="true"] { background: #2a2a2e; }
.acc-offer { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 18px; }
.acc-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.acc-price b { font-family: var(--display); font-size: 52px; font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.acc-price s { color: var(--ink-3); font-size: 18px; }
.acc-price span { color: var(--ink-2); font-size: 15px; }
.acc-offer__sub { margin-top: 8px; color: var(--ink-2); font-size: 14px; }
.acc-offer .pill { height: 48px; padding: 0 24px; }
.acc-checks { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; list-style: none; }
.acc-checks li { display: flex; gap: 9px; font-size: 14.5px; color: var(--ink-body); }
.acc-checks svg { width: 16px; height: 16px; margin-top: 2px; color: var(--blue); flex: none; }

/* the Mac card: dark in both themes */
.acc-mac { overflow: hidden; display: flex; flex-direction: column; background: #0d0d0d; color: #f2f2f3; box-shadow: none; }
[data-theme="dark"] .acc-mac { background: #17181b; box-shadow: inset 0 0 0 1px var(--line-2); }
.acc-mac .acc-label { color: rgba(255, 255, 255, .5); }
.acc-mac .acc-p { color: rgba(255, 255, 255, .68); }
.acc-mac .acc-fine { color: rgba(255, 255, 255, .5); }
.acc-mac .acc-fine a { color: #fff; text-decoration-color: rgba(255, 255, 255, .3); }
.acc-mac .pill { background: #fff; color: #0d0d0d; }
.acc-mac .pill:hover { background: #e9e9ea; }
.acc-mac .pill--ghost { background: rgba(255, 255, 255, .1); color: #fff; }
.acc-mac .pill--ghost:hover { background: rgba(255, 255, 255, .17); }
.acc-mac__stk { position: absolute; right: 22px; top: 26px; pointer-events: none; }
.acc-mac__stk .stk { width: 210px; }
.acc-mac__body { position: relative; flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-top: 150px; }
.acc-mac .acc-h { max-width: 14ch; }
.acc-mac .acc-actions { margin-top: 20px; }
.acc-mac__hint { margin-top: 12px; font-size: 13px; color: #ffd27a; }

/* links */
.acc-sec { padding-top: 28px; }
.acc-sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.acc-sec__head h2 { font-family: var(--display); font-size: 34px; font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.acc-sec__head p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.acc-meter { display: grid; gap: 7px; min-width: 200px; font-size: 13px; color: var(--ink-2); }
.acc-meter b { color: var(--ink); font-weight: 600; }
.acc-meter__bar { height: 6px; border-radius: 99px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.acc-meter__bar i { display: block; height: 100%; border-radius: inherit; background: var(--blue); transform-origin: 0 50%; animation: acc-bar 1s var(--out) .2s both; }
.acc-meter.is-full .acc-meter__bar i { background: #e2554a; }
@keyframes acc-bar { from { transform: scaleX(0); } }
.acc-grid { margin-top: 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; }
.acc-vid { position: relative; min-width: 0; }
.acc-vid > a { display: block; color: inherit; border-radius: 18px; outline-offset: 4px; }
.acc-vid__th { position: relative; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: linear-gradient(135deg, var(--soft), var(--warm)); box-shadow: inset 0 0 0 1px var(--line); }
.acc-vid__th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--out); }
.acc-vid > a:hover .acc-vid__th img { transform: scale(1.035); }
.acc-vid__th::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); pointer-events: none; }
.acc-vid__ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); }
.acc-vid__ph svg { width: 34px; height: 34px; }
.acc-vid__dur { position: absolute; right: 10px; bottom: 10px; padding: 3px 7px; border-radius: 7px; background: rgba(0, 0, 0, .62); color: #fff; font: 600 12px/1.2 var(--sans); font-variant-numeric: tabular-nums; backdrop-filter: blur(6px); }
.acc-vid__tag { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 7px; background: rgba(255, 255, 255, .92); color: #0d0d0d; font: 600 12px/1.2 var(--sans); }
.acc-vid__tag svg { width: 12px; height: 12px; }
.acc-vid.is-archived .acc-vid__th { opacity: .55; }
.acc-vid__t { margin-top: 12px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.acc-vid__t b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-vid__m { margin-top: 3px; font-size: 13.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.acc-vid__m b { color: var(--ink-2); font-weight: 500; }
.acc-copy { position: absolute; right: 10px; top: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .94); color: #0d0d0d; font: 600 12.5px var(--sans); cursor: pointer; opacity: 0; transform: translateY(-3px); transition: opacity .2s, transform .2s; box-shadow: 0 2px 10px rgba(0, 0, 0, .15); }
.acc-copy svg { width: 13px; height: 13px; }
.acc-vid:hover .acc-copy, .acc-copy:focus-visible, .acc-copy.is-done { opacity: 1; transform: none; }
@media (hover: none) { .acc-copy { opacity: 1; transform: none; } }
.acc-more { margin-top: 22px; display: flex; justify-content: center; }
.acc-skel { aspect-ratio: 16 / 10; border-radius: 16px; background: linear-gradient(90deg, var(--soft) 0%, var(--warm) 50%, var(--soft) 100%); background-size: 200% 100%; animation: acc-sh 1.4s linear infinite; }
@keyframes acc-sh { to { background-position: -200% 0; } }
.acc-empty { margin-top: 20px; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 40px; padding: 36px 40px; border-radius: 24px; background: var(--warm); }
.acc-empty .stk { width: 220px; }
.acc-empty h3 { font-family: var(--display); font-size: 24px; font-weight: 600; letter-spacing: -.035em; }
.acc-empty p { margin-top: 6px; color: var(--ink-2); font-size: 15px; max-width: 46ch; }
.acc-empty ol { margin-top: 16px; display: grid; gap: 8px; list-style: none; counter-reset: s; }
.acc-empty li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; counter-increment: s; }
.acc-empty li::before { content: counter(s); flex: none; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 12px; font-weight: 600; }
.acc-kbd { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 6px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2), 0 1px 0 var(--line-2); font-size: 12.5px; font-weight: 600; }

/* profile + Macs */
.acc-rows { margin-top: 18px; display: grid; }
.acc-rowi { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); min-width: 0; }
.acc-rowi:last-child { padding-bottom: 0; }
.acc-rowi > span { min-width: 0; }
.acc-rowi small { display: block; color: var(--ink-3); font-size: 13px; margin-bottom: 2px; }
.acc-rowi b { font-weight: 500; font-size: 15px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-rowi .pill { height: 34px; padding: 0 14px; font-size: 13px; flex: none; }
.acc-rowi.is-free b { color: var(--ink-3); font-weight: 400; }
.acc-mac-ic { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); margin-right: 12px; }
.acc-mac-ic svg { width: 18px; height: 18px; }
.acc-rowi__l { display: flex; align-items: center; min-width: 0; }
.acc-name { margin-top: 18px; display: grid; gap: 12px; }
.acc-name .two { gap: 10px; }
.acc-name .f input[type=text] { height: 44px; }
.acc-name .acc-actions { margin-top: 4px; }
.acc-bye { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 8px; font-size: 13px; color: var(--ink-3); }
.acc-bye button { border: 0; background: none; padding: 8px 0; font: 500 14px var(--sans); color: var(--ink); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

[data-theme="dark"] .acc-card { box-shadow: inset 0 0 0 1px var(--line); }
[data-theme="dark"] .acc-card--warm, [data-theme="dark"] .acc-empty { background: #121214; box-shadow: inset 0 0 0 1px var(--line); }
[data-theme="dark"] .acc-note { color: #9cc8ff; }
[data-theme="dark"] .acc-note--err { background: rgba(226, 85, 74, .16); color: #ffb4ab; }
[data-theme="dark"] .acc-copy, [data-theme="dark"] .acc-vid__tag { background: rgba(28, 28, 31, .92); color: #f2f2f3; }

@media (max-width: 980px) {
  .acc-row, .acc-row--even { grid-template-columns: minmax(0, 1fr); }
  .acc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .acc-hero__stk .stk { width: 150px; }
}
@media (max-width: 640px) {
  .auth--home .auth__body { padding-block: 8px 40px; }
  .acc { gap: 14px; }
  .acc-hero { padding: 18px 0 8px; align-items: flex-start; }
  .acc-hero__stk { display: none; }
  .acc-hero__meta { margin-top: 14px; font-size: 14px; }
  .acc-card { padding: 22px 20px; border-radius: 20px; }
  .acc-h { font-size: 26px; }
  .acc-seg { display: grid; width: 100%; }
  .acc-seg button { padding: 0 8px; }
  .acc-offer { grid-template-columns: minmax(0, 1fr); }
  .acc-offer .pill { width: 100%; }
  .acc-price b { font-size: 44px; }
  .acc-checks { grid-template-columns: 1fr; }
  .acc-mac__body { padding-top: 112px; }
  .acc-mac__stk { right: 14px; top: 18px; }
  .acc-mac__stk .stk { width: 150px; }
  .acc-mac .acc-actions .pill { flex: 1 1 auto; }
  .acc-sec { padding-top: 18px; }
  .acc-sec__head h2 { font-size: 28px; }
  .acc-meter { min-width: 0; width: 100%; }
  .acc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .acc-vid__th { border-radius: 12px; }
  .acc-vid__t { margin-top: 8px; }
  .acc-vid__t b { font-size: 13.5px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
  .acc-vid__m { font-size: 12.5px; }
  .acc-vid__dur { right: 6px; bottom: 6px; font-size: 11px; }
  .acc-vid__tag { left: 6px; top: 6px; font-size: 11px; }
  .acc-copy { display: none; }
  .acc-empty { grid-template-columns: 1fr; padding: 22px 20px; gap: 14px; }
  .acc-empty .stk { width: 170px; }
  .acc-top__who b { display: none; }
  .acc-name .two { grid-template-columns: 1fr; }
}
.acc-plan { display: flex; flex-direction: column; }
.acc-plan > .acc-seg { align-self: flex-start; }
@media (max-width: 640px) { .acc-plan > .acc-seg { align-self: stretch; } }
.acc-plan > .acc-actions:last-child { margin-top: auto; padding-top: 22px; }
