/* ============================================================
   Styling for the billing page, /subscription.

   One document, one card, several states: sign-in, the plan chooser (for an
   account with nothing to manage), the manager (for one that already pays or
   is grandfathered), and the small in-between screens. Until Aug 2026 the
   chooser was a separate document, /subscribe, because only it loaded
   Paddle.js under a widened CSP; the checkout moved to passkrypt.com/checkout,
   no path on this host loads third-party script any more, and the two pages
   merged. This file already served both, so nothing here had to split or
   rejoin - which is the reason it was one file in the first place.
   ============================================================ */

/* Copied verbatim from renderer/index.html. These pages sit next to the vault
   in the same session - a sign-in screen on my.passkrypt.com that is a slightly
   different grey from the one on app.passkrypt.com reads as a different site,
   which on a password manager is exactly the wrong instinct to teach. If the
   vault's palette changes, change it here too. */
:root{--bg:#0f1218; --bg2:#151a22; --panel:#1a212b; --panel2:#212a36;
      --line:#2a3441; --line2:#354251;
      --txt:#e6ebf2; --muted:#8a97a8; --muted2:#5f6c7d;
      --accent:#4f8cff; --accent2:#3b74e0;
      /* The brand button fill, one value on every surface (the owner, 24 Sept
         2026). The same name and value live in renderer/index.html :root and
         frontend/marketing/site/assets/tokens.css; THE THREE CHANGE TOGETHER,
         and test/signin-parity-test.js fails when they differ. #fff measures
         5.14:1 and 5.46:1 on its two stops. */
      --grad-cta:linear-gradient(135deg,#3565e0,#6a4ee6);
      --green:#37c98b; --red:#f2545b; --amber:#f2c14e;
      --shadow:0 6px 24px rgba(0,0,0,.35);
      --shadow-lg:0 24px 70px rgba(0,0,0,.5);
      --ease-out:cubic-bezier(.23,1,.32,1)}
*{box-sizing:border-box}
/* The two accent/violet glows layered over the base radial are the vault lock
   screen's backdrop, value for value - the same brand glow behind the same
   sign-in card. */
body{margin:0;min-height:100vh;
     background:
       radial-gradient(760px 380px at 50% -8%,rgba(79,140,255,.16),transparent 68%),
       radial-gradient(560px 320px at 78% 4%,rgba(122,92,255,.12),transparent 70%),
       radial-gradient(1200px 600px at 50% -10%,#1c2635,#0f1218);
     color:var(--txt);font:15px/1.5 system-ui,-apple-system,Segoe UI,Roboto,sans-serif;
     display:flex;align-items:center;justify-content:center;padding:28px 16px}
/* The card is held back until the page knows what to put in it. Otherwise an
   empty card with just the logo painted immediately and then grew as the
   content arrived - a box appearing and resizing on every refresh.
   The class is in the HTML because the CSP forbids inline script, so nothing
   can run before first paint to set it. That means a page whose JavaScript
   never runs would be blank for ever - hence the animation: a zero-length
   animation delayed 2.5s flips visibility back on regardless, so the worst case
   is a slow reveal rather than a dead page. */
@keyframes pk-reveal{to{visibility:visible}}
html.booting .card{visibility:hidden;animation:pk-reveal 0s linear 2.5s forwards}

/* ============================================================
   BEGIN SIGN-IN SHELL — COPY PAIR
   Twin: renderer/index.html, the block marked "BEGIN SIGN-IN SHELL"
         inside its single <style>.

   Everything between these markers is duplicated, declaration for
   declaration, in the vault's lock screen. It has to be: the vault is on
   app.passkrypt.com and these pages are on my.passkrypt.com, and a browser
   will not share a stylesheet across origins. So the copy is deliberate, and
   the ONLY thing keeping the two halves together is that whoever edits one
   edits the other. They have drifted three times; the last drift was a
   32px brand mark here against a 42px one there, and a gradient that ended
   #7b5cff here against #7a5cff there - one character, two brands.

   Selector names differ per side; the mapping is: .card is the vault's
   .lockcard, .field is its scoped lock-card input rule (the global input rule
   there serves the whole app and stays compact), .field:focus is its scoped
   input focus rule, .btn (the primary here) is .lockcard .btn plus
   .lockcard .btn.primary, .lbl is label.fld, .linky is .linkbtn, .silinks is
   .lockrow, .chk is .pubchk. Every VALUE must be textually identical.
   The pair also extends past the END marker in one place: the motion block at
   the end of this file carries the shell's transition, press and hover-lift
   values, and the vault's lock-screen motion block carries the same values -
   they are part of this pact too.

   Change a value here -> change it in renderer/index.html in the same commit.
   test/signin-parity-test.js fails on the next divergence it can see; it
   cannot see all of them.

   Allowed to differ, and only these: the settings gear and version footer
   (vault only), the "Create an account" block that leaves the app (vault
   only), each page's own <h2>, and the "Have a Setup Code?" toggle (vault
   only).
   ============================================================ */

/* Same box as the vault's .lockcard: 400 wide, 34/30 padding, same shadow.
   width:100% + max-width here rather than a flat width so it can shrink on a
   phone; the number a desktop visitor sees is the same 400. */
.card{width:100%;max-width:400px;background:var(--panel);border:1px solid var(--line);
      border-radius:16px;padding:34px 30px;box-shadow:var(--shadow-lg)}
/* The brand row. 10px below it, not 4: the subtitle underneath was sitting so
   close to the wordmark that the two read as one block. */
.brand{display:flex;align-items:center;justify-content:center;gap:11px;
       font-size:22px;font-weight:700;letter-spacing:.5px;margin-bottom:10px}
/* 42px, radius 11, and the gradient ends #7a5cff - the --accent-alt token, and
   the value the vault has always used. #7b5cff was a typo that lived here for
   months and made the mark a different purple on the two sites. */
.mark{width:42px;height:42px;border-radius:11px;
      background:linear-gradient(135deg,var(--accent),#7a5cff);
      display:flex;align-items:center;justify-content:center;
      box-shadow:0 6px 18px color-mix(in srgb,var(--accent) 30%,transparent)}
/* The small note under the wordmark. --muted, not --muted2: at this size the
   darker grey lands near 3:1 against the panel and fails AA. The same swap is
   applied to every small-but-meant-to-be-read line below; --muted2 is kept only
   for the sign-in sub-label the vault also renders in it (parity wins there)
   and for pure decoration. */
.who{text-align:center;color:var(--muted);font-size:13px;margin:0 0 22px}
/* The signed-in address, when there is one: a second line of the same block,
   so the 22px gap below is the block's, not each line's. */
.who .whomail{display:block}

/* Fields and labels copied from the vault's lock screen rule for rule, so the
   two sign-in boxes are the same control at the same size, not two designers'
   idea of the same control. */
.field{width:100%;background:var(--bg2);border:1px solid var(--line);color:var(--txt);
       padding:11px 12px;border-radius:8px;outline:none;font-family:inherit;font-size:13.5px}
/* Focus is a ring, not just a recoloured border: the vault's scoped input
   focus rule carries these exact values. */
.field:focus{border-color:var(--accent);
       box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent)}
/* A FIELD THAT IS FILLED IN AND MUST NOT CHANGE (22 Aug 2026, brief §3): the
   address an invitation was sent to. Greyed rather than hidden, because the
   point is that the reader can SEE which address they are about to sign in as -
   and the invitation is refused for any other, so an editable box would only
   invite an attempt that cannot work.

   readOnly rather than disabled, in the markup and here: a disabled input is
   skipped by the tab order and is not read out by some screen readers, so
   somebody navigating by keyboard would never learn what address the page had
   decided on. readonly stays focusable, stays announced, and still refuses
   edits. `cursor:default` rather than `not-allowed` - the field is not a
   control that has failed, it is a fact being shown. */
.field.locked{background:var(--panel2);color:var(--muted);cursor:default}
.field.locked:focus{border-color:var(--line2);box-shadow:none}
/* The browser default placeholder grey is below AA on this background. --muted
   rather than --muted2 for the same reason as .who above. The vault had no
   placeholder rule at all and so fell back to that default - which is what made
   the boxes on my.passkrypt.com look brighter than the ones on app. - and it
   now carries this exact declaration, scoped to its lock card. */
.field::placeholder{color:var(--muted)}
.lbl{display:block;font-size:11px;color:var(--muted);margin:0 0 4px;
     text-transform:uppercase;letter-spacing:.4px}
/* The vault's .devbadge - the "from your Recovery Kit" hint beside a label. */
.devbadge{font-size:9.5px;background:var(--panel2);border:1px solid var(--line);
          color:var(--muted);border-radius:20px;padding:1px 7px;margin-left:6px;
          vertical-align:2px;font-weight:500}

/* The primary action wears the brand button fill, --grad-cta: the gradient
   the marketing site's buttons ship and every primary button in the vault
   wears. It was flat accent on both surfaces (deliberately, so it matched the
   vault's Unlock), then the logo mark's accent-to-#7a5cff, whose lighter stop
   put a white label at 3.22:1; since 24 Sept 2026 it is the deeper
   --grad-cta, 5.14:1 and 5.46:1, and the mark alone keeps its own gradient.
   Each change landed on both surfaces in one commit, so the two sign-in boxes
   match each other and the site. The vault's global .btn is a small inline
   control used by the entire app, so it does NOT carry the metrics below -
   its twins are .lockcard .btn (the metrics) and .lockcard .btn.primary (this
   treatment).
   THE FRONT DOORS HOVER ALIKE, THE APP HOVERS QUIETER (25 Sept 2026). This
   hover, both sign-in cards and passkrypt.com's .btn.primary (site.css) do the
   same three things: brighten by 1.06, grow the glow and lift 1px (the lift is
   in the motion block at the end of this file). The vault's in-app primary
   buttons only brighten. */
.btn{width:100%;margin-top:16px;padding:10px 16px;border-radius:8px;
     background:var(--grad-cta);border:1px solid transparent;color:#fff;
     box-shadow:0 6px 20px color-mix(in srgb,var(--accent) 25%,transparent);
     font-weight:600;font-size:.95rem;cursor:pointer;font-family:inherit}
.btn:hover{box-shadow:0 10px 28px color-mix(in srgb,var(--accent) 38%,transparent);filter:brightness(1.06)}
/* Two buttons stacked read as one control at 16px apart; the vault's lock card
   uses the same 9px between its Unlock and "Unlock with Windows". */
.btn+.btn{margin-top:9px}
/* A button that reads as a link. Real buttons because the CSP forbids inline
   handlers, and an <a href="#"> that only runs script is a worse thing to
   middle-click. The vault's .linkbtn: no underline until hover. */
.linky{background:none;border:0;padding:2px 4px;color:var(--accent);cursor:pointer;
       font-family:inherit;font-size:12px}
.linky:hover{text-decoration:underline}
/* Matches .pubchk on the vault's lock screen: a two-line label, so top-aligned
   rather than centred. The sub-line stays --muted2 on BOTH sides - it is the one
   small line the vault renders in the darker grey, and parity wins there. */
.chk{display:flex;align-items:flex-start;gap:9px;margin-top:13px;font-size:12px;
     color:var(--muted);line-height:1.45;cursor:pointer}
.chk input{width:15px;height:15px;margin:1px 0 0;accent-color:var(--accent);flex:none;cursor:pointer}
.chk small{display:block;color:var(--muted2);font-size:11px;margin-top:1px}
.chk:hover{color:var(--txt)}
/* END SIGN-IN SHELL — COPY PAIR with renderer/index.html ==================== */

h2{font-size:1.05rem;text-align:center;margin:0 0 6px}
.lede{text-align:center;color:var(--muted);font-size:.86rem;margin:0 0 20px}

/* Secondary and danger keep their panel2/line2 colours and inherit only the
   new metrics from .btn above: the glow and the brightness hover belong to
   the primary. box-shadow/filter:none here also wins on hover - same
   specificity as .btn:hover, later in the file. */
.btn.sec{background:var(--panel2);border-color:var(--line2);color:var(--txt);box-shadow:none;filter:none}
.btn.danger{background:var(--panel2);border-color:rgba(242,84,91,.45);color:#ff8b90;box-shadow:none;filter:none}
.btn.danger:hover{border-color:var(--red)}
/* A REFUSED BUTTON DIMS BY COLOUR, NOT OPACITY (24 Sept 2026). opacity:.5
   stacked on the brand gradient left the white label at about 3:1 and let
   the page show through; this is the vault's own refused pair instead.
   Measured in a browser on 25 Sept 2026 (this sheet has one theme): the
   refused label is 4.88:1 on its --panel2 fill, against 5.14/5.46:1 for the
   live primary's white on --grad-cta and 6.45:1 for the live danger label.
   By label ratio alone the step is small (1.05 primary, 1.32 danger), so the
   step is carried by the FILL, as the vault's selection bar records for its
   hue step: the live primary's gradient stands 3.15/2.97:1 off the card, the
   refused grey 1.12:1. The vault's own refused .btn.primary is the same pair.
   After .btn.sec and .btn.danger on purpose: same specificity, so the later
   rule wins, and a refused secondary button would otherwise keep its live
   colours. The :hover twin stops .btn:hover's glow and brightening and
   .btn.danger:hover's red edge reaching a refused button. No
   pointer-events:none, so a reason in a title attribute still shows on
   hover. */
.btn[disabled],.btn[disabled]:hover{cursor:not-allowed;background:var(--panel2);border-color:var(--line2);color:var(--muted);box-shadow:none;filter:none}
/* Anchors that are buttons. All three documents carried the same
   display/centre/no-underline inline style attribute to make <a class="btn">
   sit like <button class="btn">; one rule is harder to forget on the fourth. */
a.btn{display:block;text-align:center;text-decoration:none}

/* ---- the confirmation dialog, #confirmDlg --------------------------------
   A native <dialog>, so all this has to do is undo the browser's own chrome -
   Canvas white, a 2px inset border, 1em of padding - and dress it as the card
   it opens over. Same panel, same line, same radius family; nothing new is
   invented here and no colour is a literal except the backdrop's black.

   Its two buttons need no rule at all. .btn is already width:100% with
   margin-top:16px and .btn+.btn is already 9px, so Cancel and the verb stack
   exactly the way every other pair of actions on these pages does, and
   .btn:focus-visible already gives both of them the accent ring. */
.cdlg{max-width:400px;width:calc(100% - 32px);padding:20px 20px 22px;
      border:1px solid var(--line2);border-radius:14px;
      background:var(--panel);color:var(--txt);box-shadow:var(--shadow-lg)}
.cdlg::backdrop{background:rgba(6,9,13,.62)}
/* Left, not the card's centred h2: this is a sentence to be read, and the
   title is short enough that centring it over ragged body text reads as a
   different component. */
.cdlg h2{text-align:left;margin:0 0 9px}
.cdlg p{margin:0;color:var(--muted);font-size:.86rem;line-height:1.5}

.msg{min-height:20px;text-align:center;font-size:.83rem;margin-top:13px;color:var(--muted)}
.msg.err{color:var(--red)} .msg.ok{color:var(--green)}
.foot{text-align:center;font-size:.74rem;color:var(--muted2);margin-top:20px;line-height:1.8}
.foot a{color:var(--muted)}
/* Billing-only refinements of the shared .field above: the Secret Key box is
   monospaced (the vault does the same with an inline font-family on #siSk), and
   a label that follows a field opens a gap the first label does not need. */
.field.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.86rem;letter-spacing:.02em}
/* A field that is showing a value rather than asking for one - today only the
   organisation name on the chooser, which is read-only once the account has one.
   It has to LOOK unavailable: an ordinary-looking box that silently refuses
   typing reads as a broken page, which is the same complaint the disabled
   "Invite" button had before a line was put beside it. Not [disabled], because
   the value still has to be selectable and readable by a screen reader. */
.field[readonly]{background:var(--bg);color:var(--muted);cursor:default}
.field[readonly]:focus{border-color:var(--line);box-shadow:none}
.field+.lbl{margin-top:12px}
.hint{font-size:.76rem;color:var(--muted);margin:7px 0 0;line-height:1.5}
/* The remembered-account chip. Deliberately the same shape as the one on the
   vault's lock screen, because it means the same thing: this browser already
   knows who you are, so it only wants your password. */
/* Mirrors .acctchip in renderer/index.html, value for value. The name and email
   are spans here, so they need display:block - without it they render on one
   line as "Danieldaniel@..." while the vault stacks them. */
.acct{display:flex;align-items:center;gap:11px;background:var(--bg2);
      border:1px solid var(--line);border-radius:12px;padding:11px 13px;margin-bottom:14px}
/* The same hover the vault's .acctchip has, so the remembered chip feels
   alive on both surfaces. */
.acct:hover{border-color:var(--line2);background:var(--panel2)}
.acct .av{width:34px;height:34px;border-radius:50%;display:flex;align-items:center;
          justify-content:center;line-height:1;font-weight:700;font-size:15px;color:#fff;flex-shrink:0}
.acct .t{min-width:0;flex:1}
.acct .n{display:block;font-size:13.5px;font-weight:600;
         white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.acct .e{display:block;font-size:11.5px;color:var(--muted);
         white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* The vault's .lockrow. Recovery sits bottom-left, switch-account bottom-right,
   matching renderer/index.html. When "Use another account" is hidden - no
   remembered account on this browser - space-between leaves "Forgot password?"
   on the left where it belongs, rather than centring it. */
.silinks{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:10px}
/* The vault's .forgetrow. "Forget this device" gets its own centred row instead
   of sharing with the others: it is the one control here that throws something
   away, and it should not sit shoulder to shoulder with the routine links. */
.silinks.forgetrow{justify-content:center;margin-top:9px}

/* !important on purpose. `.hidden` is a utility that has to win against the
   layout rules it is switched against, and an id selector outranks a class:
   #manageBtns{display:flex} beat .hidden{display:none}, so hiding that block
   silently did nothing and a grandfathered account - which has no subscription
   at all - was shown "Cancel subscription" and "Update payment method". A
   utility class that can be overruled by the thing it is meant to hide is not a
   utility class. */
.hidden{display:none !important}

/* ---- plan chooser (the no-subscription state) -----------------------------
   Rebuilt 4 Aug 2026. It was a 400px column: two full-size plan rows, then
   THREE full-size "coming soon" rows, then the button - a page that ran well
   past a laptop viewport to say one thing, that Personal costs €2.99 or
   €29.99. It is now a switch, one price panel, and the announced tiers three
   across.

   The card widens to 720 for this state ALONE, driven by data-wide="1" on the
   section and applied by show() in billing-common.js. Every other state is a
   400px form and a wide one would just be a stretched form. */
.card.wide{max-width:720px}

/* The Personal card - the one plan on this page that can be bought, dressed as
   the featured card on passkrypt.com/#pricing. The complaint this closes: the
   buyable plan was never named and did not read like a plan you pick. The base
   .plan below already gives it the card shell (border, radius, panel2 fill); this
   adds the marketing "featured" treatment - the accent ring, room for the badge
   that overhangs the top edge, and the padding a headline card wants rather than
   the 12px the receded "coming soon" tiles use. gap:0 because this card lays its
   own children out with explicit margins, not the 3px stack the soon tiles use.
   Not itself clickable, so it carries no hover transform: the lift and press
   feedback belong on the switch and the button, the things you operate. */
.plan.personal{position:relative;padding:20px 22px 18px;gap:0;margin-bottom:6px;
               border-color:var(--accent);
               box-shadow:0 0 0 1px var(--accent),0 18px 48px rgba(79,140,255,.15)}
/* Same construction as .plan .badge on passkrypt.com, and the same gradient the
   brand mark uses (--accent -> #7a5cff), so the "Most popular" chip is the same
   object on both sites rather than two takes on it. */
.plan.personal .badge{position:absolute;top:-11px;left:50%;transform:translateX(-50%);
     background:linear-gradient(135deg,var(--accent),#7a5cff);color:#fff;
     font-size:.66rem;font-weight:700;padding:3px 12px;border-radius:20px;
     letter-spacing:.05em;text-transform:uppercase;white-space:nowrap}
/* The plan name, and since 20 Aug 2026 nothing else: the cycle switch that
   shared this row moved to .chooserow above the cards. Kept as a flex row rather
   than flattened to a bare heading because it is the card's head band and the
   margin below it is what separates the name from the price panel. */
.plan-head{display:flex;align-items:center;justify-content:space-between;
           gap:12px 18px;flex-wrap:wrap;margin-bottom:16px}
.plan-name{margin:0;font-size:1.15rem;font-weight:700}

/* The switch. Same control as the pricing switch on passkrypt.com, down to the
   sliding pill and its curve - see .seg in marketing/site/assets/site.css. The
   difference is what drives it: that page has no script, so it is two clipped
   radios and :checked ~ ; here the two halves ARE #planAnnual and #planMonthly,
   the elements subscription.js has always bound to, so the state comes from the
   .on class it has always set, and .y on #cycle marks Yearly as the picked half
   (Monthly is the default, so at rest there is no .y). */
/* The chooser's head row: the instruction on the left, the cycle switch on the
   right, above all four cards (20 Aug 2026). The switch spent a week inside the
   Personal card's head, which read as Personal's own control while it actually
   re-prices every card on the page.

   Aligned on the BASELINE of the label rather than centred - centring made the
   switch sit proud of the text it belongs to. They wrap on a narrow window
   rather than crushing the pill.

   THE 16px BOTTOM MARGIN IS LOAD-BEARING and was found by looking at the
   deployed page rather than by any check (20 Aug 2026). The first cut zeroed
   .grouphead's bottom margin so the two would baseline-align, and that removed
   the only gap between this row and the card below it: the switch landed flush
   on the Personal card and COLLIDED WITH THE "MOST POPULAR" BADGE, which is
   absolutely positioned at top:-11px and so reaches above the card's own edge.
   The row owns its spacing now (.grouphead's margins go to 0 inside it), and 16
   leaves 6px of air under the badge. Anything less than about 12 puts the pill
   back under the switch. */
.chooserow{display:flex;align-items:baseline;justify-content:space-between;
           gap:8px 18px;flex-wrap:wrap;margin:18px 0 16px}
.chooserow .grouphead{margin:0}
/* No margin of its own: whichever row it sits in owns the spacing around it. */
.cycle{margin:0}
/* background --panel, not --bg2: on --bg2 the unselected half read as near-black
   against the lighter card; --panel is the grey the marketing switch uses, so
   the unselected label sits on the same tone there. inline-grid so the control
   is only as wide as its two labels need - it was stretching to 330px and
   dominating the card head; it is a compact pill now. */
.seg{position:relative;display:inline-grid;grid-template-columns:1fr 1fr;align-items:center;
     margin:0;background:var(--panel);border:1px solid var(--line);
     border-radius:999px;padding:3px}
.segopt{position:relative;z-index:1;padding:5px 9px;border-radius:999px;cursor:pointer;
        text-align:center;font-size:.78rem;font-weight:600;color:var(--muted);
        white-space:nowrap;user-select:none}
.segopt:hover{color:var(--txt)}
.segopt.on,.segopt.on:hover{color:#fff}
/* calc(50% - 3px) is half the padding box less the track's own 3px inset, so
   translateX(100%) lands the pill exactly on the other half. The switch is
   deliberately smaller than the marketing one here (the owner asked for a more
   compact pill on this page), so the inset is 3px to the marketing switch's 4px;
   keep this figure and the padding on .seg the same or the pill drifts off half. */
.seg .ind{position:absolute;top:3px;bottom:3px;left:3px;width:calc(50% - 3px);
          background:var(--accent);border-radius:999px}
/* Monthly is the left half and the default now, so the pill sits LEFT at rest
   and moves RIGHT only when Yearly is picked (which is when #cycle gains .y). */
.cycle.y .ind{transform:translateX(100%)}

/* One price, for the cycle that is chosen. Two columns where there is room: the
   number is the decision and the list is the reassurance, and stacking them
   made the reassurance the reason the page needed scrolling. */
/* The price and the feature list, two columns where there is room. It has no
   border or fill of its own any more: it lives INSIDE the Personal card now, and
   a bordered panel within a bordered card was a card inside a card. */
/* The price column is a FIXED width, not auto: the "per" line under the amount is
   a few px wider for Monthly ("Cancel any time") than for Yearly ("Billed once a
   year"), so an auto column changed width on toggle and shoved the feature list
   sideways. 172px clears the widest of the two (measured ~163px) with a little
   breathing room, so the features start at the same x in both states. The mobile
   rule below drops this to one column, so the fixed width is desktop-only. */
.pricepanel{display:grid;grid-template-columns:172px minmax(0,1fr);gap:14px 26px;
            align-items:center}
.pp-price{min-width:0}
.amt{margin:0;font-size:2.1rem;font-weight:700;line-height:1.15;white-space:nowrap}
.per{margin:5px 0 0;font-size:.82rem;color:var(--muted)}
/* Monthly is the default now (matching the marketing switch), and it is the
   variant with NO display rule of its own: with the stylesheet missing, both
   real prices render instead of neither. */
.amt-annual,.per-annual{display:none}
/* Keyed off #choose, not .cycle: the price panel is a SIBLING of the switch
   inside the card, not a descendant, so a .cycle-scoped rule would not reach the
   figures. choose() toggles .y on #choose (which wraps the whole chooser) when
   Yearly is picked, so that is the reliable hook. */
#choose.y .amt-monthly,#choose.y .per-monthly{display:none}
#choose.y .amt-annual,#choose.y .per-annual{display:block}
.pp-what{list-style:none;margin:0;padding:0;display:grid;gap:6px;
         font-size:.81rem;color:var(--muted);min-width:0}
.pp-what li{display:flex;align-items:flex-start;gap:8px;line-height:1.45}
.pp-what svg{color:var(--green);flex:none;margin-top:3px}

/* "2 months free": the same treatment as .pill.good below, because it is the
   same kind of object - a small green status chip - and two green chips built
   to different recipes read as a mistake.

   AND SINCE 24 AUG 2026 IT IS LITERALLY THE SAME SHAPE, not merely a similar
   recipe. The comment above had been true in spirit and false in numbers -
   .62rem/1px-5px/20px against the pill's 10px/3px-12px/999px - which is how a
   sentence like this goes stale beside code that never changed. Rendered in the
   segmented control before committing to it: the option grows a couple of
   pixels and nothing wraps or clips. Colour is all that is left here. */
.tag{display:inline-block;box-sizing:border-box;
     font-size:10px;padding:3px 12px;border-radius:999px;font-weight:600;
     white-space:nowrap;min-width:4.4rem;text-align:center;line-height:1.35;
     background:rgba(55,201,139,.14);border:1px solid rgba(55,201,139,.35);
     color:var(--green);margin-left:5px;vertical-align:middle}
/* On the lit (selected) Yearly half the green chip fights the accent pill, so it
   turns translucent-white there - exactly as the marketing switch's "save" chip
   does on its lit half. */
.segopt.on .tag{background:rgba(255,255,255,.22);border-color:transparent;color:#fff}

/* The multi-user tiers, three across. Buyable since 12 Aug 2026: each card is
   a radio in the same plan group as the Personal card (id, data-price, role,
   tabindex in the markup, wired by subscription.js), so they answer the
   cursor, take a press and carry the same .selected tick. */
.tiergrid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.plan{border:1px solid var(--line2);border-radius:12px;background:var(--panel2);
      display:flex;flex-direction:column;gap:3px;padding:12px 13px}
/* Full strength, pointer, hover: these are plans you can pick now, and a card
   that ignored the cursor would read as unavailable - the exact opposite of
   what the old .72-dimmed "coming soon" treatment was for. position:relative
   anchors the .selected tick. */
.plan.tier{cursor:pointer;position:relative}
/* Plan cards answer the cursor like the pricing tiers on passkrypt.com: the
   featured Personal card lifts with a brighter accent shadow, the tier cards
   lift a touch. Gated behind a real pointer so a tap on a phone does not stick
   a hover; the lift drops under reduced motion. */
.plan.personal{cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease}
.plan.tier{transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}
@media (hover:hover) and (pointer:fine){
  .plan.personal:hover{transform:translateY(-4px);
    box-shadow:0 0 0 1px var(--accent),0 26px 60px rgba(79,140,255,.24)}
  .plan.tier:hover{transform:translateY(-2px);border-color:var(--line2);
    box-shadow:0 10px 28px rgba(0,0,0,.25)}
}
@media (prefers-reduced-motion:reduce){
  .plan.personal:hover,.plan.tier:hover,.plan.personal:active,.plan.tier:active{transform:none}
}
/* A plan is a selectable card, not a checkout link. Clicking it marks it as
   your choice - the tick in the corner - and "Continue to payment" is the only
   control that opens the checkout. The owner asked for exactly that split: a
   card that swallowed its own click made the button below look redundant.
   NOTHING IS TICKED ON ARRIVAL since 17 Aug 2026 (see subscription.html): the
   page no longer pre-selects a plan, so .selected is only ever a state
   somebody's own click put there.
   \2713 is escaped rather than a literal glyph so the file stays plain ASCII. */
.plan.personal.selected{box-shadow:0 0 0 1px var(--accent),0 22px 54px rgba(79,140,255,.22)}
.plan.tier.selected{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}
/* The quiet explanatory line under a heading, used by /signup to name the plan
   the visitor clicked. Quiet and factual rather than a banner: this is the page
   reporting what it knows, not selling. The <b> around the plan name is the one
   part that has to survive a glance.

   It was the chooser's "carried over from passkrypt.com" note first, and that
   note is gone with the pre-selection; /signup is the surviving user. */
.carried{font-size:.78rem;color:var(--muted);line-height:1.5;margin:0 0 12px;
     padding:8px 11px;border-left:2px solid var(--accent);border-radius:0 8px 8px 0;
     background:rgba(79,140,255,.08)}
.carried b{color:var(--txt);font-weight:600}

/* WHICH PLAN THIS ACCOUNT IS ALREADY ON. It replaces the tick that used to be
   there on arrival, and it is deliberately a different SHAPE as well as a
   different colour: a tick means "this is what you have chosen" and this means
   "this is what you have", and if the two looked alike the removal of the
   pre-selection would have achieved nothing.

   Muted rather than accent-coloured, and it does not move the card. The card
   the account is on is the one thing on this screen it is NOT here to buy, so
   drawing the eye to it would be selling in the wrong direction.

   IN THE FLOW, NOT ABSOLUTE, which is the one layout decision here worth
   stating. Both card shapes are flex columns, so a static first child costs
   nothing at all while it is .hidden - which it is on three cards out of four -
   and pushes the name down by exactly its own height on the one that shows it.
   Positioning it absolutely would have meant reserving that space on every
   card for a label almost none of them ever carry, or overlapping the heading
   on the featured card, whose 20px of top padding is already spoken for.
   top-right is .selected's tick and top-centre is the "Most popular" badge; all
   three can be on one card at once and none of them collide. */
/* The shared chip shape, with the one thing this position needs on top:
   align-self, because it sits in a column flex and would otherwise stretch to
   the card's full width. Uppercase and its letter-spacing are gone with the
   size - a marker that shouts in a different typeface is a second vocabulary,
   which is the whole thing the one shape exists to stop. */
.tagcur{display:inline-block;box-sizing:border-box;align-self:flex-start;
     font-size:10px;padding:3px 12px;border-radius:999px;font-weight:600;
     white-space:nowrap;min-width:4.4rem;text-align:center;line-height:1.35;
     color:var(--muted);background:var(--bg2);border:1px solid var(--line2);
     margin:0 0 8px}

.plan.selected::after{content:"\2713";position:absolute;top:12px;right:12px;
     width:22px;height:22px;border-radius:50%;background:var(--accent);color:#fff;
     font-size:12px;font-weight:700;line-height:22px;text-align:center}
/* The Business seat box. A compact row inside the card: same field recipe as
   .field but sized for three digits, and the uppercase micro-label the rest of
   the page uses. The input is a real spinner (type=number, 2-500) so the range
   the checkout enforces is the range the control offers. */
.seats{display:flex;align-items:center;gap:8px;margin-top:9px}
.seats .lbl{margin:0}
.seats input{width:74px;background:var(--bg2);border:1px solid var(--line);color:var(--txt);
     border-radius:8px;padding:6px 8px;font-family:inherit;font-size:.85rem;outline:none}
.seats input:focus{border-color:var(--accent);
     box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent)}
.plan .n{font-weight:600;font-size:.88rem}
.plan .d{font-size:.76rem;color:var(--muted);line-height:1.4;flex:1}
/* Not uppercase any more: this used to read "SOON" and now carries a figure,
   and "€59.99 / YEAR" is not how a price is written. */
.plan .p{margin-top:6px;font-size:.74rem;font-weight:600;color:var(--muted)}
/* Annual is the shown default here too, matching .amt above, so a stylesheet
   that never arrives leaves both real figures on screen rather than none.
   Keyed off #choose rather than #cycle because these cards sit outside the
   cycle wrapper and cannot see its class. */
.sp-annual{display:none}
#choose.y .sp-monthly{display:none}
#choose.y .sp-annual{display:inline}

/* One column below 760: the two-up panel and the three-up grid both stop being
   readable long before the card itself does. */
@media (max-width:760px){
  .pricepanel{grid-template-columns:minmax(0,1fr)}
  .tiergrid{grid-template-columns:minmax(0,1fr)}
  .amt{font-size:1.8rem}
}

/* ---- facts table (the manager state) ---- */
/* radius 12 like every other box on the card - .summary, .plan, .acct, the
   notices - so the page runs one radius scale: 16 card, 12 boxes, 9 buttons,
   7 fields, 20 chips. */
.facts{border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:14px}
.facts .f{display:flex;justify-content:space-between;gap:14px;padding:11px 14px;font-size:.85rem;
          border-bottom:1px solid var(--line);background:var(--panel2)}
.facts .f:last-child{border-bottom:0}
.facts .k{color:var(--muted);white-space:nowrap}
.facts .v{color:var(--txt);text-align:right;font-weight:500}
.facts .v.good{color:var(--green)}
.facts .v.warn{color:var(--amber)}
.facts .v.bad{color:#ff8b90}
.stack{display:flex;flex-direction:column;gap:9px}
.stack .btn{margin-top:0}

/* ---- people on a multi-seat plan (the manager state, owner only) ----
   The member list borrows the facts table's construction - same border, same
   row rhythm - because it answers the same kind of question: a record, not a
   control panel. The one control per row is the Remove link. */
/* CONTAINED, NOT ENDLESS (brief §13, 22 Aug 2026). A Business plan runs to 500
   members and the invitations sit in the same list, so without a ceiling the
   number of people on the plan decides the height of the page and everything
   below the list - the invite box, and in the vault app the Permissions section
   - moves off screen as the plan grows.

   A max-height rather than a fixed one, so the small plans this page was
   written for are unchanged: three rows still render as three rows with no
   scrollbar and no empty space under them. 26rem is about six of today's
   three-line rows, which is enough to see that a list IS a list and to scroll
   it deliberately.

   overflow-y:auto with overflow-x:hidden rather than the old blanket
   overflow:hidden - the hidden was there to clip the first and last rows to the
   rounded corners, and the x half still does that. */
/* ============================================================
   THE SAME ROW AS THE APP, RULE FOR RULE (24 August 2026)
   ============================================================
   The owner put the two lists side by side and they were not the same object:
   the app had a tile, four stacked lines, chips beside the name and two select
   toolbars, and this page had a join-number gutter, a wrapped flex row, filter
   chips with counts, and its invite box underneath the list. Every ROUND of
   this work had aligned the two by VOCABULARY — the same pill words, the same
   search predicate, the same paging — and none of it had aligned the markup,
   which is what he was actually looking at.

   So the rules below are the vault's `.shrow.orgrow` block, ported class for
   class. The palettes are already identical (see :root at the top of this file
   — same hexes, same names), so nothing had to be re-picked; what follows is
   the same declarations against the same tokens.

   THE OLD `.people .m` RULES ARE DELETED RATHER THAN LEFT UNDER THE NEW ONES.
   Two row systems in one stylesheet is the "two near-identical components"
   failure this project has a paragraph about, and the loser is whichever one
   the next person edits. The member-row half of them outlived this port by a
   month and went on 25 September 2026; what remains of `.m` and `.e` below is
   the placeholder line ("Loading…", "Nobody else is on this plan yet") that
   peopleLine() in subscription.js still draws.

   WHEN YOU CHANGE ONE, CHANGE BOTH. `test/member-name-test.cjs` compares the
   two stylesheets rule by rule and fails naming the property that drifted. */
.people{border:1px solid var(--line);border-radius:12px;
        overflow-x:hidden;overflow-y:auto;max-height:26rem;margin-bottom:10px}
/* --- ported from renderer/index.html, .shrow.orgrow and friends --- */
.people .orgrow{display:flex;align-items:flex-start;padding:10px 14px;gap:12px;
                border-bottom:1px solid var(--line);background:var(--panel2)}
.people .orgrow:last-child{border-bottom:0}
.people .sha{width:24px;height:24px;border-radius:7px;margin-top:1px;line-height:1;
             display:flex;align-items:center;justify-content:center;
             color:#fff;font-size:11px;font-weight:600;flex-shrink:0}
.people .sha svg{display:block}
.people .shmail{flex:1;min-width:0;white-space:normal;line-height:1.4}
.people .orgnm{display:block;font-weight:600;font-size:13.5px;color:var(--txt)}
.people .orgem{display:block;font-size:12px;color:var(--muted)}
.people .orgwhen{display:block;font-size:11.5px;color:var(--muted2);margin-top:2px}
.people .orgctl{flex:none;display:flex;align-items:center;gap:6px;
                white-space:nowrap;margin-top:1px}
.people .orgwhen .pill{margin-left:6px;vertical-align:1px}
.people .orgctl .rm{color:#ff8b90;background:none;border:0;cursor:pointer;
                    font-size:11.5px;padding:4px 9px;font-family:inherit}
/* An invitation is not a member, and the one thing on its row that differs from
   a member's says so. Remove ends somebody's coverage and cuts their access to
   every shared vault; Withdraw cancels a link nobody has opened, and the remedy
   for pressing it by mistake is the invite box eight pixels below. So Withdraw
   goes back to the ordinary link colour that .linky gives every other action on
   this card, and the red is kept for the one that cannot be undone by pressing
   the same button again. Shape is identical - that is the rule - and only the
   weight of the action is coloured. */
.people .orgrow.inv .orgctl .rm{color:var(--accent)}
.people .m{display:flex;align-items:center;gap:10px;padding:10px 14px;font-size:.85rem;
           border-bottom:1px solid var(--line);background:var(--panel2)}
.people .m:last-child{border-bottom:0}
.people .e{flex:1 1 auto;min-width:9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.people .e.quiet{color:var(--muted);white-space:normal;min-width:0}
.people .pill{flex:none}
.people .rm{flex:none;color:#ff8b90}
.people .m{flex-wrap:wrap;row-gap:5px}
.people .m .e{order:2;flex:1 1 calc(100% - 1.5rem - 10px);min-width:0;
              white-space:normal;overflow-wrap:anywhere;text-overflow:clip}
/* The placeholder lines ("Loading…", "Nobody else is on this plan yet") are not
   addresses, so they take the whole row. */
.people .m .e.quiet{flex-basis:100%}
@media (max-width:520px){
  .people .m{flex-wrap:wrap;row-gap:5px}
  .people .e{flex:1 1 100%;white-space:normal;overflow-wrap:anywhere;text-overflow:clip}
  .people .e{order:3}
  .people .pill{order:5}
  .people .rm{order:6;margin-left:auto}
}

/* ---- what the tags mean ----
   One line per tag, and only the tags the list actually uses; setLegend() in
   subscription.js hides the rest, because a legend for a state this plan does
   not have is noise directly above the list it is meant to explain.

   The chip in each line is the same .pill the rows carry - one kind of small
   round thing on this card - so the match is by shape and colour and the word
   is not read twice. align-items:baseline rather than center: the chip is
   shorter than the sentence beside it, and centring it floats it above the
   first line of a two-line explanation. */
/* ITS OWN SPACE (24 August 2026, the owner: "pills in this info are very
   tight"). Four chips stacked at a 5px gap, hard against the invite row above
   and the toolbar below, read as one dense block rather than as a key to the
   list — the chips were nearly touching each other and the sentences beside
   them. It is a card of its own now: separated above and below, breathing
   between the lines, and the same treatment in the app. */
.legend{display:flex;flex-direction:column;gap:9px;margin:14px 0;padding:12px 14px;
        background:var(--panel2);border:1px solid var(--line);border-radius:12px}
.legend .lg{display:flex;align-items:baseline;gap:10px}
/* One size for every status pill, legend and row alike — the same 5.6rem the
   vault sets. See the note beside `.orglg .pill` in renderer/index.html. */
/* Oval, and the same 3px/12px/999px the vault sets — see the note beside
   `.orglg .pill` in renderer/index.html. */
/* Shape is the shared .pill rule; this only stops the chip being squeezed. */
.legend .lg .pill,.people .orgwhen .pill{flex:none}
/* Room under the invite field, matching the app's `.orginvnote`: the two
   sentences were set solid and read as one grey mass. */
.orginvnote{font-size:11.5px;line-height:1.75;margin:8px 0 4px}
/* flex:none for the same reason .people .pill has it: the chip is nowrap and
   would otherwise be what gives way when the sentence needs the room. The fixed
   min-width is what makes this read as a definition list rather than three
   ragged lines: the three words are different lengths, so without it each
   explanation starts at its own x and the eye has nothing to run down. */
/* --muted rather than --muted2, the rule this card follows everywhere: small
   and meant to be read, not decorated. */
.legend .lgt{flex:1;min-width:0;font-size:.76rem;color:var(--muted);line-height:1.5}

/* ---- finding one person in a long list ----
   Held back below TOOLBAR_MIN rows by setTools(): on a Family plan these three
   controls stand in front of two rows and help nobody, and at 500 seats - the
   Business maximum, and the tier where the seat rule bites hardest - typing is
   the only way to reach one address. */
/* PORTED FROM THE APP (24 Aug 2026): one row, a search box and two selects,
   the vault's `.orgtools`. It replaced a row of filter chips, whose rules went
   with their markup (the tombstone below names them).

   The counts the chips carried are the one thing lost, and it is recorded
   rather than shrugged off: "Invited 4" read without being clicked. The select
   cannot do that, and one control in two places beats two controls that each
   do slightly more. */
.ptools{display:flex;gap:6px;align-items:center;margin:0 0 6px}
.ptools .pfind{flex:1;min-width:0}
.ptoolsel{flex:none;max-width:11.5rem;background:var(--panel);border:1px solid var(--line);
          color:var(--txt);border-radius:7px;font-family:inherit;
          width:auto;min-width:104px;font-size:12px;padding:4px 6px}
/* Deliberately NOT .field. That class is inside the sign-in shell copy pair with
   renderer/index.html and every value in it is pinned to the vault's lock
   screen; a filter box on a member list has no business being the same object
   as an Account Password field, and overriding .field here would make the pair
   harder to read for no gain. */
.pfind{flex:1 1 100%;min-width:0;background:var(--bg2);border:1px solid var(--line);
       color:var(--txt);padding:8px 11px;border-radius:7px;outline:none;
       font-family:inherit;font-size:13px}
.pfind::placeholder{color:var(--muted)}
.pfind:focus{border-color:var(--accent);
             box-shadow:0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent)}
/* TOMBSTONE (24 Aug 2026): .chips / .chip / .chip.on / .chip .cnt / .psortrow /
   .psortlbl stood here. They dressed the filter-and-sort chips this card used
   before the toolbar was ported from the vault; nothing has rendered a .chip
   since that markup went, and a dead rounded chip in the stylesheet is exactly
   what somebody copies when they next want "something like a pill". The
   replacement is .ptools / .ptoolsel above. */


/* The invite row: field and button share a line, so the button drops the
   full-width, top-margined shape .btn assumes everywhere else on the card. */
.invrow{display:flex;gap:9px;align-items:stretch}
.invrow .field{flex:1;min-width:0}
.invrow .btn{width:auto;margin-top:0;white-space:nowrap;padding:10px 18px}

/* THE APP'S SCROLLBAR (24 August 2026). This page had none of its own, so
   every scroll region wore the platform's default — a light-grey bar in a dark
   panel, next to the app's slim `--line2` one on the identical list. Three
   lines, copied from renderer/index.html. */
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:var(--line2);border-radius:6px}
::-webkit-scrollbar-track{background:transparent}

/* THE POLICY PANEL IS THE APP'S SETTINGS ROWS NOW (24 August 2026), ported
   from renderer/index.html: `.set-group` is the card, `.set-row` the row, with
   the label and its explanation on the left and the control on the right. It
   was `.polbox/.polrow/.pol-k/.pol-v`, which drew the same three numbers as a
   visibly different object.

   `.set-gtitle` is not ported: this page's own `.grouphead` is already the same
   uppercase micro-label, and two names for one thing is what the port is
   removing rather than adding. */
.set-group{background:var(--panel2);border:1px solid var(--line2);border-radius:12px;padding:1px 15px}
.set-row{display:flex;align-items:flex-start;gap:16px;padding:14px 0}
.set-row .txt{flex:1;min-width:0}
.set-row .txt .t{font-size:13.5px;color:var(--txt)}
.set-row .txt .d{font-size:12px;color:var(--muted);margin-top:3px;line-height:1.5}
.set-row .ctl{flex-shrink:0;display:flex;align-items:center;gap:8px;padding-top:2px}
/* The number inputs the rows carry, on the card rather than the page: --bg2 is
   all but identical to --panel2, so a field would dissolve into the card it
   stands on. The vault makes the same swap for the same reason. */
.set-row .ctl input[type=number]{background:var(--panel);border:1px solid var(--line);
  color:var(--txt);padding:8px 10px;border-radius:7px;outline:none;font-family:inherit;font-size:13px}
.set-row .ctl input[type=number]:focus{border-color:var(--accent)}

/* THE ACTIVITY LOG IS THE APP'S LIST NOW (24 August 2026). `.actlist` and its
   `.a > .w + .t` row are gone: the log lives in `.orglist`, the same contained
   scroll box every other list on both surfaces uses, with `.shrow.shhist` rows
   and the See-more button inside it. Ported from renderer/index.html.

   19rem, not 26: the vault's ceiling, because this list is now the vault's
   list. overflow-wrap stays — every sentence here can carry an email address,
   and a long one with nowhere to break would push the row wide. */
.orglist{border:1px solid var(--line);border-radius:12px;
         max-height:19rem;overflow-y:auto;overflow-x:hidden;margin-bottom:6px}
.orglist .shrow{border-bottom:1px solid var(--line);background:var(--panel2)}
.orglist .shrow:last-child{border-bottom:0}
.shrow.shhist{display:flex;align-items:flex-start;padding:9px 14px;font-size:.85rem}
.shrow.shhist .shmail{flex:1;min-width:0;white-space:normal;line-height:1.45;overflow-wrap:anywhere}
.shrow.shhist .shmail.muted{color:var(--muted)}
.shhistnote{display:block;font-size:11.5px;line-height:1.45;color:var(--muted);margin-top:2px}
.orgmorewrap{display:flex;justify-content:center;padding:8px 2px 2px}
/* SEE-MORE IS THE VAULT'S BUTTON, SPELLED OUT (24 August 2026).
   `class="btn sm"` was not enough here and the result was the opposite of the
   intent: this page's `.btn` is the big call-to-action — width:100%, a blue
   gradient, a glow and a 16px top margin — so the reveal inside a quiet list
   rendered as a full-width primary bar, louder than anything around it. The
   vault's `.btn` is a small bordered neutral control, and that is what a
   See-more is.

   Every property the CTA sets is therefore un-set here, not merely added to:
   width, margin, background, shadow, weight and size all have to be named or
   the cascade keeps them. */
.orgmore.btn{width:auto;margin:0;padding:4px 9px;font-size:12px;font-weight:400;
  background:var(--panel2);border:1px solid var(--line2);color:var(--txt);
  border-radius:7px;box-shadow:none;filter:none;
  display:inline-flex;align-items:center;gap:6px}
.orgmore.btn:hover{background:#28323f;border-color:#41505f;box-shadow:none;filter:none}

/* ============================================================
   One shell, two states

   The chooser and the manager are two states of one document, and they share
   the status block, the group labels, the callouts and the loading state -
   defined once here, with each state only deciding what goes inside them.
   When they were two documents, a rule that existed on one page and not the
   other is how they drifted; now it would simply be two screens of one page
   disagreeing, which is no better.
   ============================================================ */

/* The headline answer, directly under the heading in both states: what plan
   am I on, is it healthy, and what happens next. It goes ABOVE the detail
   because somebody arriving from the vault's account menu came to read exactly
   this - before, the same three facts were rows three, four and five of a
   table. */
.summary{background:var(--panel2);border:1px solid var(--line2);border-radius:12px;
         padding:13px 15px;margin-bottom:16px}
.sumtop{display:flex;align-items:center;justify-content:space-between;gap:10px}
.sumplan{font-size:.98rem;font-weight:600;min-width:0}
.sumnext{margin:7px 0 0;font-size:.83rem;color:var(--muted);line-height:1.5}
/* The dates and amounts inside that sentence. Built as real <b> elements by the
   page rather than concatenated into innerHTML - a plan name that came back
   from the server is data, and data does not get to be markup. */
.sumnext b{color:var(--txt);font-weight:600}

/* Same shape, size and weight as the vault's .pill, so a status here reads as
   the same kind of object as the plan badge in the app's account menu - which
   is the thing most people will have clicked to arrive. */
/* ONE CHIP SHAPE, identical to the vault's (24 Aug 2026). See the note beside
   `.pill,.role-badge` in renderer/index.html: same height, same side room, true
   semicircular ends, centred text, and a min-width so a column of them lines up
   while anything longer grows past it. */
.pill{display:inline-block;box-sizing:border-box;
      font-size:10px;padding:3px 12px;border-radius:999px;font-weight:600;
      white-space:nowrap;min-width:4.4rem;text-align:center;line-height:1.35;
      background:var(--panel);border:1px solid var(--line);color:var(--muted)}
.pill.good{background:rgba(55,201,139,.14);border-color:rgba(55,201,139,.35);color:var(--green)}
.pill.warn{background:rgba(242,193,78,.13);border-color:rgba(242,193,78,.35);color:var(--amber)}
.pill.bad{background:rgba(242,84,91,.13);border-color:rgba(242,84,91,.35);color:#ff8b90}

/* A quiet label over a group of facts or controls. Same type as .lbl on
   purpose: one uppercase micro-label in the product, not two. */
/* No :first-child exception. The "Change what you pay" label IS the first child
   of its own wrapper, so zeroing the top margin there would push it flat
   against the table above it - the one place the gap matters most. */
.grouphead{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.4px;
           margin:18px 0 7px}

/* Navigation is fenced off by a rule from the controls that change what you
   pay, so "Back to my vault" is never read as another billing action. */
.navgroup{margin-top:20px;padding-top:16px;border-top:1px solid var(--line)}
.navgroup .btn{margin-top:0}
/* Sign out is a link, centred on its own row - the same treatment "Forget this
   device" gets on the sign-in box. */
.signoutrow{justify-content:center;margin-top:12px}

/* Callouts. Amber is the default because most of them are "something needs
   your attention"; info states what we cannot do for you, bad is a failure. */
.notice{background:rgba(242,193,78,.09);border:1px solid rgba(242,193,78,.3);border-radius:12px;
        padding:11px 13px;font-size:.83rem;color:#f2d79a;margin-bottom:14px;line-height:1.55}
.notice.info{background:rgba(79,140,255,.08);border-color:rgba(79,140,255,.3);color:#c3d7ff}
.notice.bad{background:rgba(242,84,91,.08);border-color:rgba(242,84,91,.3);color:#ffb9bc}
.notice a{color:inherit;font-weight:600}

/* Loading is a state, not an absence. A page that shows nothing while a fetch
   is in flight is indistinguishable from a page whose script died - which is
   the failure this project keeps getting bitten by. */
.loadbox{display:flex;align-items:center;justify-content:center;gap:10px;padding:6px 0 2px}
.loadbox .lede{margin:0}
.spin{width:16px;height:16px;border-radius:50%;flex:none;
      border:2px solid var(--line2);border-top-color:var(--accent);
      animation:pk-spin .7s linear infinite}
@keyframes pk-spin{to{transform:rotate(360deg)}}
/* Someone who asked the OS for less motion asked for less of this too. */
@media (prefers-reduced-motion:reduce){.spin{animation-duration:2.6s}}

.smallprint{font-size:.78rem}

/* Keyboard focus gets the same accent ring everywhere: 2px, offset so it reads
   as a ring around the control rather than a changed border. Fields are the
   one exception - their border itself turns accent on focus, because that is
   the vault's treatment and the two sign-in boxes are one control. */
.btn:focus-visible,.linky:focus-visible,.segopt:focus-visible,
.chk input:focus-visible,.foot a:focus-visible,
.plan.personal:focus-visible,.plan.tier:focus-visible{
  outline:2px solid var(--accent);outline-offset:2px}

/* ---- motion: suggestion, not spectacle ------------------------------------
   Three things move, all under 200ms and all behind the OS motion preference:
   hover/selection eases instead of snapping, pressable things acknowledge the
   press, and a section rises 5px as it appears so a state swap does not cut.
   Under reduced motion the page simply switches - every rule below is inside
   the gate, so there is nothing to neutralise. */
@media (prefers-reduced-motion:no-preference){
  /* The sign-in shell's transition/press/lift values are part of the COPY
     PAIR above: the vault's lock-screen motion block carries the same values
     against its scoped selectors. Change one side, change the other. */
  .btn{transition:background .15s ease,border-color .15s ease,box-shadow .15s ease,transform .15s ease,color .15s ease,filter .15s ease}
  .field{transition:border-color .15s ease,box-shadow .15s ease}
  .linky{transition:color .15s ease}
  .acct{transition:border-color .15s ease,background .15s ease}
  .segopt{transition:background-color .15s ease-out,border-color .15s ease-out,
          box-shadow .15s ease-out,color .15s ease-out,transform .15s ease-out}
  .btn:active{transform:translateY(1px)}
  .btn[disabled]:active{transform:none}
  .segopt:active{transform:scale(.97)}
  /* Selectable now, so they acknowledge the press the way the switch does. */
  .plan.tier:active{transform:translateY(1px)}
  /* The primary lift, gated behind a real pointer so a tap cannot stick it.
     .sec and .danger keep their feet on the ground - the lift belongs to the
     one action the card is for. A refused button does not lift either: it
     is grey and must not answer the pointer like a live one. */
  @media (hover:hover) and (pointer:fine){
    .btn:not(.sec):not(.danger):not([disabled]):hover{transform:translateY(-1px)}
  }

  /* The switch. The pill travels, the card follows it, and the price arrives -
     three ways of saying one thing changed, none of them longer than a quarter
     of a second. The curve is the marketing switch's, exactly.
     Under `reduce` none of this exists: the pill is simply already on the other
     half, the card is already the other width, and the price is already the
     other number. The state change stays visible; only the travel goes. */
  .seg .ind{transition:transform .24s cubic-bezier(.2,.7,.3,1)}
  .card{transition:max-width .24s cubic-bezier(.2,.7,.3,1)}
  /* Runs on the price that has just been switched from display:none - an
     animation cannot run on a hidden element, so removing the display rule
     restarts it. Same caveat as pk-state below: a from-state of opacity 0 is
     safe here only because this page is authenticated and noindex. */
  .amt,.per{animation:pk-price .18s ease-out}
  /* Runs each time a section's display flips from none - animations do not run
     while an element is display:none, so removing .hidden restarts it. The
     from-state is invisible, which is safe here only because this page is
     authenticated, noindex, and always viewed in a compositing browser; do NOT
     copy this pattern to a page a crawler screenshots (see CLAUDE.md). */
  main.card>section{animation:pk-state .2s ease-out}
}
@keyframes pk-state{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
@keyframes pk-price{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
