/* css/d2/account.css -- owner D2-ACCOUNT. Design 2 (DESIGN-2 7.8, 7.9) for the account lane's pages: sign-in, account,
   Plus, alerts, tracker, chain, explainer, the account_* pages, manage, help, contact, report, withdraw, notes, the
   lifecycle links and the legal / Plus-terms texts. Linked only by those pages (pages/account/_d2_css.html), only under
   the look row; every rule is scoped under body.rf. The pages keep their kit markup (every form field, hook and test id):
   this file dresses the kit's pieces (.panel .field .btn .ticket .list-row .link-list .notice ...) in d2.css's tokens.

   1. Type   2. Form cards, fields   3. Buttons   4. Rows, notices, empty states   5. Ticket (the account's plan card)
   6. Plus   7. Sign-in   8. Account   9. Alerts   10. Explainer, tracker, chain   11. Text pages (legal 68ch)

   Rules: tokens only (no colour a theme does not flip, except white on visnja); solid surfaces, the one shadow token;
   no backdrop-filter, no blur, no gradient text; 44 px targets; text >= 12 px; ONE visnja surface a screen. */


/* ---- 1. Type (DESIGN-2 section 3) -------------------------------------------------------------------------------- */
body.rf .page-title{margin:0 0 8px;font-size:34px;font-weight:800;line-height:1.02;letter-spacing:-.035em;color:var(--d2-ink);text-wrap:balance}
@media (min-width:1024px){body.rf .page-title{font-size:44px}}
body.rf .lead{font-size:15px;font-weight:500;line-height:1.5;color:var(--d2-ink-2)}
body.rf .fine{font-size:12.5px;font-weight:500;line-height:1.45;color:var(--d2-muted)}
body.rf .section-head__title{font-size:21px;font-weight:800;line-height:1.15;letter-spacing:-.025em;color:var(--d2-ink)}
body.rf .section-head__link{min-height:44px;display:inline-flex;align-items:center;color:var(--d2-accent);font-weight:700}
body.rf .crumbs a{color:var(--d2-accent)}
body.rf .container.page p a:not([class]){color:var(--d2-accent);font-weight:600;text-underline-offset:3px}
body.rf .container.page{padding-top:26px}
body.rf .acct-alert__name a,body.rf .link-list a{color:var(--d2-ink)}


/* ---- 2. Form cards on white r22, inputs 52 px r16 inside trays (7.8) -------------------------------------------- */
body.rf .panel,body.rf .card{border:0;border-radius:var(--d2-r-card);background:var(--d2-surface);box-shadow:var(--d2-shadow)}
body.rf .panel--pad{padding:20px}
body.rf .field{gap:8px}
body.rf .field__label{font-size:14px;font-weight:700;color:var(--d2-ink)}
/* the input sits in a 6 px tray ring (the search tray's grammar), drawn as a shadow so the field's box does not grow */
body.rf .field__control{width:calc(100% - 12px);min-height:52px;margin:6px;padding:0 16px;border:0;border-radius:var(--d2-r-sm);
  background:var(--d2-surface);color:var(--d2-ink);font-size:16px;font-weight:500;
  box-shadow:0 0 0 6px var(--d2-tray),inset 0 0 0 1px var(--line-strong,#8A8178)}
body.rf textarea.field__control{min-height:132px;padding:14px 16px}
body.rf .field__control:hover{box-shadow:0 0 0 6px var(--d2-tray),inset 0 0 0 1px var(--d2-ink-2)}
body.rf .field__control:focus-visible{outline:3px solid var(--d2-focus);outline-offset:2px;box-shadow:0 0 0 6px var(--d2-tray),inset 0 0 0 1px var(--d2-focus)}
body.rf .field--error .field__control{box-shadow:0 0 0 6px var(--d2-tray),inset 0 0 0 2px var(--danger)}
body.rf .field--code .field__control{min-height:60px;font-size:26px;font-weight:800}
body.rf .field__hint{font-size:13px;color:var(--d2-muted)}
body.rf .field__error{font-size:13.5px;font-weight:600}
body.rf .check{font-weight:600}
body.rf .check input{accent-color:var(--d2-cta)}
body.rf fieldset{border:0;padding:0;margin:0}
body.rf legend{font-weight:800;font-size:17px;margin-bottom:6px}


/* ---- 3. Buttons: primary = visnja pill 48, secondary = white pill + hairline, ghost = visnja text link 44 ----------- */
body.rf .btn{min-height:48px;padding:0 22px;border:0;border-radius:999px;font-size:14.5px;font-weight:800;line-height:1.2;box-shadow:none}
body.rf .btn--sm{min-height:44px;padding:0 18px;font-size:14px}
body.rf .btn--primary{background:var(--d2-cta);color:#fff}
body.rf .btn--primary:hover{background:var(--d2-cta);filter:none}
body.rf .btn--secondary{background:var(--d2-surface);color:var(--d2-ink);box-shadow:inset 0 0 0 1px var(--d2-hair-2),0 1px 0 var(--d2-line)}
/* the hairline of a white pill that sits on a white card: --d2-line vanishes there */
body.rf{--d2-hair-2:color-mix(in srgb,var(--d2-ink) 20%,transparent)}
body.rf .btn--secondary:hover{background:var(--d2-surface);box-shadow:inset 0 0 0 1px var(--d2-ink-2)}
body.rf .btn--ghost{min-height:44px;padding:0 6px;background:none;color:var(--d2-accent)}
body.rf .btn--ghost:hover{background:none;text-decoration:underline;text-underline-offset:3px}
body.rf .btn--danger{background:var(--d2-surface);color:var(--danger);box-shadow:inset 0 0 0 1.5px var(--danger)}
body.rf .btn--danger-solid{background:var(--danger);color:var(--d2-bg)}
body.rf .btn--on-visnja{background:#fff;color:#7A1E3A}
@media (prefers-reduced-motion:no-preference){
  body.rf .btn{transition:transform var(--d2-press) var(--d2-ease)}
  body.rf .btn:active{transform:scale(.96)}
}
body.rf .actions{gap:10px}


/* ---- 4. Rows, notices, empty states ---------------------------------------------------------------------------------- */
body.rf .panel:has(>.list-rows,>.link-list,>.list-row){padding:4px 18px}
body.rf .list-row{gap:14px;padding:14px 0;border-top-color:var(--d2-line)}
body.rf .list-row__icon,body.rf .acct-id__icon,body.rf .acct-fact-card__icon,body.rf .callout__icon{width:44px;height:44px;border-radius:50%;background:var(--d2-tray);color:var(--d2-ink)}
body.rf .list-row--danger .list-row__icon{background:var(--d2-tray);color:var(--danger)}
body.rf .list-row__title{font-size:15px;font-weight:700;color:var(--d2-ink)}
body.rf .list-row__text{font-size:13.5px;line-height:1.45;color:var(--d2-ink-2)}
body.rf .link-list>li>a,body.rf .link-list__row{min-height:56px;border-top-color:var(--d2-line);font-weight:700;color:var(--d2-ink)}
body.rf .link-list__sub,body.rf .link-row__sub{font-size:12.5px;font-weight:500;color:var(--d2-muted)}
body.rf .link-row__name{color:var(--d2-ink)}
body.rf .notice{gap:12px;padding:14px 16px;border:0;border-radius:var(--d2-r-sm);background:var(--d2-surface);box-shadow:var(--d2-shadow),inset 4px 0 0 var(--n)}
body.rf .notice--success{--n:var(--save-ink)}   /* the trunk's, themed: a light green at night */
body.rf .notice--info{--n:var(--d2-accent)}
body.rf .notice__title{font-weight:800}
body.rf .notice__text,body.rf .notice__text--solo{font-size:14px;color:var(--d2-ink-2)}
body.rf .callout{border:0;border-radius:var(--d2-r-card);background:var(--d2-surface);box-shadow:var(--d2-shadow)}
body.rf .empty__icon{width:72px;height:72px;border-radius:50%;background:var(--d2-tray);color:var(--d2-ink)}
body.rf .empty__title,body.rf .error-state__title{font-family:var(--sans);font-size:21px;font-weight:800;letter-spacing:-.025em}
body.rf .empty__text{color:var(--d2-muted)}
body.rf .stat__k{font-size:12.5px;color:var(--d2-muted)}
body.rf .stat__v{font-weight:800;font-variant-numeric:tabular-nums}
body.rf .summary-list>li{border-top-color:var(--d2-line)}
body.rf .kv-list__k{font-family:var(--sans);background:var(--d2-tray);color:var(--d2-ink)}
body.rf .chip{min-height:44px}


/* ---- 5. The ticket. On the account (and every page here but Plus) it is a white receipt card: the visnja surface of
       those pages is the primary button. The plan name / days 800, the label an ink pill, the zigzag edge kept. ------ */
body.rf .ticket{padding:18px 20px 30px;border-radius:var(--d2-r-card) var(--d2-r-card) 0 0;background:var(--d2-surface);color:var(--d2-ink);
  box-shadow:var(--d2-edge);-webkit-mask:var(--d2-zig-b);mask:var(--d2-zig-b)}
body.rf .ticket__label{padding:5px 10px;border-radius:999px;background:var(--d2-dark);color:var(--d2-on-dark);font-size:12.5px;font-weight:800}
body.rf .ticket__num{font-size:44px;font-weight:800;letter-spacing:-.035em}
body.rf .ticket__unit{font-size:21px;font-weight:800}
body.rf .ticket__sub{font-size:14px;font-weight:500;color:var(--d2-ink-2)}
body.rf .meter{background:var(--d2-tray)}
body.rf .meter>span{background:var(--d2-save-ink)}
body.rf .ticket-bottom{margin-top:-1px;padding:16px 20px 20px;border:0;border-radius:0 0 var(--d2-r-card) var(--d2-r-card);background:var(--d2-surface);box-shadow:var(--d2-shadow)}
body.rf .ticket+.ticket-bottom{margin-top:6px;border-radius:var(--d2-r-card)}


/* ---- 6. Plus (7.8): the visnja hero card is the ONE visnja surface (the ticket + its bottom, one card with the
       receipt edge); the plans are white cards with the price 32/800 and secondary buttons; what Plus gives = rows with
       save-green checks. --------------------------------------------------------------------------------------------------- */
body.rf .acct-plus-head .page-title{margin-bottom:6px}
body.rf .layout-product:has(.acct-plus-head){row-gap:var(--d2-gap)}
body.rf .layout-product:has(.acct-plus-head) .ticket{padding:22px 22px 34px;border-radius:var(--d2-r-tile) var(--d2-r-tile) 0 0;background:var(--d2-visnja);color:#fff;box-shadow:none}
body.rf .layout-product:has(.acct-plus-head) .ticket:has(+.ticket-bottom){padding-bottom:6px;-webkit-mask:none;mask:none}
body.rf .layout-product:has(.acct-plus-head) .ticket__label{background:var(--d2-save-bg);color:var(--d2-save-ink)}
body.rf .layout-product:has(.acct-plus-head) .ticket__num{font-size:56px}
body.rf .layout-product:has(.acct-plus-head) .ticket__sub{color:var(--d2-visnja-ink);font-size:14.5px;font-weight:600}
body.rf .layout-product:has(.acct-plus-head) .ticket+.ticket-bottom{margin-top:0;padding:16px 22px 34px;border-radius:0;background:var(--d2-visnja);box-shadow:none;
  -webkit-mask:var(--d2-zig-b);mask:var(--d2-zig-b)}
body.rf .layout-product:has(.acct-plus-head) .ticket-bottom .btn--primary{background:#fff;color:#7A1E3A}
body.rf .layout-product:has(.acct-plus-head) .ticket-bottom .stat__k,body.rf .layout-product:has(.acct-plus-head) .ticket-bottom .stat__v{color:#fff}
/* what Plus gives / good to know: the icon becomes a save-green check disc */
body.rf .layout-product:has(.acct-plus-head) .list-row__icon{width:32px;height:32px;background:var(--d2-save-bg);color:var(--d2-save-ink)}
body.rf .layout-product:has(.acct-plus-head) .list-row__icon .icon{display:none}
body.rf .layout-product:has(.acct-plus-head) .list-row__icon::before{content:"";width:12px;height:7px;margin-top:-3px;border:solid currentColor;border-width:0 0 2.5px 2.5px;rotate:-45deg}
body.rf .acct-plans{gap:var(--d2-card-gap)}
body.rf .acct-plan{gap:6px;padding:20px}
body.rf .acct-plan__name{font-family:var(--sans);font-size:17px;font-weight:800;letter-spacing:-.02em}
body.rf .acct-plan__trial{font-size:13.5px;color:var(--d2-ink-2)}
body.rf .acct-plan .price{font-weight:800;font-variant-numeric:tabular-nums lining-nums;color:var(--d2-ink)}
body.rf .acct-plan .price__e{font-size:32px;letter-spacing:-.03em}
body.rf .acct-plan .price__c{font-size:19px}
body.rf .acct-plan .price__cur{font-size:.6em}
body.rf .acct-plan .price__per{font-size:12.5px;font-weight:500;color:var(--d2-muted)}
/* a plan's button is white: the hero card above carries the page's visnja */
body.rf .layout-product:has(.ticket) .acct-plan .btn--primary{background:var(--d2-surface);color:var(--d2-ink);box-shadow:inset 0 0 0 1px var(--d2-hair-2),0 1px 0 var(--d2-line)}
body.rf .prose:has(h2) h2{font-size:21px;font-weight:800;letter-spacing:-.025em;line-height:1.15}


/* ---- 7. Sign-in (signin, signin_link, signin_done, keydrop): one task, a narrow column, the mascot says hello -------- */
body.rf .acct-narrow{max-width:30rem}
body.rf .acct-auth-head{gap:14px;margin:18px 0 20px}
body.rf .acct-auth-head .d2-acct-m{width:88px;height:88px;margin:0 0 -4px -6px}
body.rf .acct-auth-head .lead b{font-weight:800}
body.rf .acct-form{gap:18px}
body.rf .acct-aux{gap:4px 12px;font-size:14px;color:var(--d2-ink-2)}
body.rf .acct-narrow>.fine,body.rf .acct-narrow>p{margin:12px 4px 0}


/* ---- 8. Account: the identity card, the plan receipt, the saved and data rows --------------------------------------- */
body.rf .acct-id{gap:14px;padding:14px 14px 14px 18px}
body.rf .acct-id__k{font-size:12.5px;font-weight:600;color:var(--d2-muted)}
body.rf .acct-id__v{font-size:15px;font-weight:800}
body.rf .layout-split{row-gap:var(--d2-gap)}
body.rf .acct-narrow.actions,body.rf .acct-narrow.stack,body.rf .acct-narrow:has(>.panel){margin-top:var(--d2-card-gap)}


/* ---- 9. Alerts: product rows on discs (product_visual sm), the switch and delete behind 44 px targets --------------- */
body.rf .acct-alerts{gap:var(--d2-card-gap)}
body.rf .acct-alert{gap:10px;padding:14px 16px}
body.rf .acct-alert__top{gap:14px}
body.rf .acct-alert__name{font-size:15px;font-weight:700}
body.rf .acct-alert__meta{font-size:12.5px;color:var(--d2-muted)}
body.rf .acct-alert__meta b{font-weight:800;color:var(--d2-ink);font-variant-numeric:tabular-nums}
/* rule 6 (CTO note 1): the claim is the proof link, styled as the muted store line; 44 px tall from padding */
body.rf .acct-alert__meta{margin:-12px 0}
body.rf .d2-proof--line{font-size:inherit;font-weight:500;color:var(--d2-muted);text-decoration:none}
body.rf .d2-proof--line:is(:hover,:focus-visible){text-decoration:underline}
body.rf .d2-price--line{font-size:14px;margin-left:2px}
body.rf .acct-alert__foot{border-top:1px solid var(--d2-line)}
body.rf .switch__track{accent-color:var(--d2-cta)}


/* ---- 10. Explainer, tracker, chain -------------------------------------------------------------------------------- */
body.rf .acct-kicker{font-size:12.5px;font-weight:600;letter-spacing:0;text-transform:none;color:var(--d2-accent)}
body.rf .acct-explain{gap:var(--d2-card-gap)}
body.rf .acct-fact-card{gap:12px;padding:20px}
body.rf .acct-fact-card__title{font-family:var(--sans);font-size:17px;font-weight:800;letter-spacing:-.02em}
body.rf .acct-fact-card__text{font-size:15px}
body.rf .acct-stamp{border:0;border-radius:999px;background:var(--d2-save-bg);color:var(--d2-save-ink);font-size:21px;font-weight:800;padding:6px 14px}
body.rf .acct-warn{border:0;border-radius:var(--d2-r-sm);background:var(--d2-surface);box-shadow:var(--d2-shadow),inset 4px 0 0 var(--danger)}
body.rf .acct-stats .stat__v{font-size:21px;font-weight:800}


/* ---- 11. Text pages: legal, Plus terms, accessibility, help (7.9): a readable 68ch column, 17 px body, titles 21/800 */
body.rf .prose{max-width:68ch;font-size:17px;line-height:1.6;color:var(--d2-ink)}
body.rf .prose h1{font-size:34px;font-weight:800;line-height:1.05;letter-spacing:-.035em;margin:24px 0 16px}
body.rf .prose h2{font-size:21px;font-weight:800;line-height:1.2;letter-spacing:-.025em;margin:32px 0 10px}
body.rf .prose h3{font-size:17px;font-weight:800;margin:24px 0 8px}
body.rf .prose a{color:var(--d2-accent);font-weight:600;text-underline-offset:3px}
body.rf .prose :is(ul,ol){padding-left:1.3em}
body.rf .prose table{border-collapse:collapse;font-size:15px}
body.rf .prose :is(th,td){padding:8px 10px;border-bottom:1px solid var(--d2-line);text-align:left;vertical-align:top}

@media (forced-colors:active){
  body.rf .panel,body.rf .card,body.rf .notice,body.rf .ticket,body.rf .ticket-bottom{border:1px solid CanvasText}
}

/* the lane's mascot (_lane.html mascot / empty): the night file swaps in by <picture> */
body.rf .d2-acct-m,body.rf .d2-acct-m img{display:block}
body.rf .d2-empty .d2-acct-m img{width:120px;height:120px}
body.rf .panel>.d2-empty{padding:28px 8px}
/* the account's own extra blocks (data, devices, lifecycle, payment) under the kit's grid: on the main column's line, not
   centred under both columns */
body.rf .layout-split~.acct-narrow{max-width:40rem;margin-inline:0;padding-top:0}
body.rf .layout-split~.acct-narrow.actions{margin-top:14px}
/* a form card never spans a desktop screen: one readable column */
body.rf form.panel,body.rf .panel:has(>form .field){max-width:40rem}

/* ---- Fix round 1 (CTO notes 2-3) -------------------------------------------------------------------------------- */
/* rule 8: a plain text link in running text gets a 44 px hit area from padding; the line box does not move */
body.rf main :is(p,li,td,dd,dt)>a:not([class]){padding:12px 2px;margin:0 -2px}
/* rule 4: the price notes' table: tabular figures, the euro at .6em */
body.rf .acct-fact-price{font-variant-numeric:tabular-nums}
body.rf .acct-fact-price .rf-cur{font-size:.6em;font-weight:inherit;margin-left:1px}
