/* launch-states.css: Go mode launch styles (2026-10-09), loaded after styles.css. */

/* ---- the state block (account-states.js): loading, empty and error, the same in every tab ---- */
/* loading, the design kit's way: a ruled line in ink where the words will go (no grey block, no shimmer), over whatever
   is behind (a card, a tile, the page), in both themes */
:root { --pst-sk-a: color-mix(in srgb, var(--ink) 6%, transparent); --pst-sk-b: color-mix(in srgb, var(--ink) 22%, transparent); }
.pst .sk, .sk.pst-fig { background: linear-gradient(var(--pst-sk-b) 0 0) 0 100% / 100% 1px no-repeat; }
/* a figure waiting for its first read (PriorsStates.figure): a rounded bar the height of its text, never a number */
.sk.pst-fig { min-width: 0; width: min(100%, 6.2em); justify-self: start; border-radius: 0; line-height: 1.1; }
.se-you .sk.pst-fig { width: min(100%, 7em); }
/* agent001's figures are styled with the agent001 tab's own rules in styles.css (a build without that tab drops them) */

.pst { display: grid; justify-items: center; gap: 6px; padding: 30px 20px 28px; border-radius: 0; border: 1px solid var(--rule-2); background: var(--grain), var(--card); text-align: center; color: var(--muted); }
.pst-ico { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 6px; border-radius: 0; background: none; box-shadow: inset 0 0 0 1px var(--brass-line); color: var(--muted); }
.pst-ico .px-ico { width: 20px; height: 20px; }
.pst-body { display: grid; gap: 4px; min-width: 0; }
.pst .pst-t { margin: 0; font: 600 15.5px/1.3 var(--sans); color: var(--ink); }
.pst .pst-l { margin: 0 auto; max-width: 36em; font: 400 14px/1.5 var(--sans); color: var(--muted); overflow-wrap: anywhere; }
.pst .pst-act { margin-top: 10px; color: var(--ink); text-decoration: none; } /* a link action is a button too (not a status line's green link) */
/* an error: the icon in the warning tone, the edge solid */
.pst-error { border-style: solid; border-color: var(--rule-2); border-left: 2px solid var(--red); background: var(--card); }
.pst-error .pst-ico { background: none; box-shadow: inset 0 0 0 1px var(--red); color: var(--red); }
/* compact: one row (icon, words, action) for a short list or a side column; where the row is narrow, the action goes
   under the words */
.pst-compact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 14px 16px; text-align: left; }
.pst-compact .pst-ico { flex: none; width: 36px; height: 36px; margin: 0; border-radius: 0; }
.pst-compact .pst-ico .px-ico { width: 18px; height: 18px; }
.pst-compact .pst-body { flex: 1 1 210px; }
.pst-compact .pst-t { font-size: 14.5px; }
.pst-compact .pst-l { margin: 0; font-size: 13.5px; line-height: 1.45; }
.pst-compact .pst-act { flex: none; margin: 0 0 0 auto; }
/* loading: skeleton rows shaped like the list that comes (an icon, two lines, an amount); no box around them */
.pst-loading { display: block; justify-items: normal; padding: 4px 0; border: 0; background: none; text-align: left; }
.pst-sk { display: grid; }
.pst-sk-row { display: grid; grid-template-columns: 36px minmax(0, 1fr) minmax(48px, 84px); align-items: center; gap: 14px; padding: 13px 2px; }
.pst-sk-row + .pst-sk-row { border-top: 1px solid var(--rule-2); }
.pst-sk .sk { display: block; min-width: 0; border-radius: 0; }
.pst-sk-dot { width: 36px; height: 36px; border-radius: 0 !important; background: none !important; box-shadow: inset 0 0 0 1px var(--brass-line); outline: 0; }
.pst-sk-lines { display: grid; gap: 8px; min-width: 0; }
.pst-sk-a { height: 12px; width: 62%; max-width: 22em; }
.pst-sk-b { height: 10px; width: 38%; max-width: 13em; }
.pst-sk-amt { height: 12px; width: 100%; justify-self: end; }
.pst-sk-row:nth-child(3n+2) .pst-sk-a { width: 48%; } .pst-sk-row:nth-child(3n+2) .pst-sk-b { width: 30%; } .pst-sk-row:nth-child(3n+2) .pst-sk-amt { width: 70%; }
.pst-sk-row:nth-child(3n) .pst-sk-a { width: 74%; } .pst-sk-row:nth-child(3n) .pst-sk-b { width: 44%; } .pst-sk-row:nth-child(3n) .pst-sk-amt { width: 84%; }
.pst-compact.pst-loading .pst-sk-row { grid-template-columns: 28px minmax(0, 1fr); padding: 10px 0; }
.pst-compact.pst-loading .pst-sk-dot { width: 28px; height: 28px; border-radius: 0 !important; }
.pst-compact.pst-loading .pst-sk-amt { display: none; }
/* in a list, the block is the list's one item */
.pst-li { list-style: none; padding: 0; border: 0; }
.pst-note { margin: 10px 0 0; text-align: center; }
/* where each tab puts it */
.ac-hist-st { padding: 6px 0 4px; }
.acct .le-state:not(:empty), .acct .se-state:not(:empty) { margin: 10px 0 6px; }
.acct .se-cards > .pst { grid-column: 1 / -1; }
.acct .se-rows > .pst { margin-top: 8px; }
.acct .ga-list > .pst-compact { padding: 12px 14px; }
@media (prefers-reduced-motion: no-preference) {
  @keyframes pstIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
  .pst:not(.pst-loading) { animation: pstIn .22s var(--ease) both; }
}

/* ---- phones ---- */
@media (max-width: 640px) {
  /* one card deep: a tab's wrapper (every tab but Home) drops its own card, so the cards inside get the width back */
  body.goapp .acct > .panel:not(.ac-sum) { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
  body.goapp .acct > .panel:not(.ac-sum) > header { padding: 2px 0 12px; }
  /* the Guide's contents strip ran out to the card's edge: now to the page's (goapp.js's 16px gutter) */
  body.goapp .acct .gd-toc { margin: 0 -16px 8px; background: color-mix(in srgb, var(--paper) 92%, transparent); }
  body.goapp .acct .gd-toc ol { padding: 0 16px; scroll-padding: 0 16px; }
  /* the state block a little tighter */
  .pst:not(.pst-loading) { padding: 24px 16px 22px; }
  .pst-compact:not(.pst-loading) { padding: 12px 14px; }
  .pst-compact .pst-body { flex-basis: 180px; }
  .pst-compact .pst-act { flex: 1 1 100%; }

  /* Seats: the four vault figures as a 2 x 2 grid, each tile its label, its figure and a short line */
  .acct .se-hero { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 2px 0 10px; }
  .acct .se-figs { display: contents; }
  .acct .se-big, .acct .se-figs > div { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; align-items: start; gap: 5px; padding: 13px 14px; border-radius: 0; }
  .acct .se-figs > div .label, .acct .se-figs > div .sub { grid-row: auto; grid-column: auto; }
  .acct .se-big .label, .acct .se-figs .label { font-size: 12.5px; line-height: 1.3; }
  .acct .se-big b, .acct .se-figs b { font: 500 21px/1.15 var(--serif); }
  .acct .se-big .sub, .acct .se-figs .sub { font-size: 12px; line-height: 1.4; }
  .acct .se-figs .sub:empty { display: none; }
  .acct .se-figs .sub[data-i18n] { display: none; } /* the tile's fixed help line: its label says it */
  /* the account's own figures as a short statement: each label on the left, its figure on the right */
  .acct .se-you { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 4px 14px 14px; }
  .acct .se-you > div:not(.se-you-act) { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--rule-2); }
  .acct .se-you b { font-size: 15px; text-align: right; }
  .acct .se-you-act { padding-top: 12px; }
  /* the Rows / Cards switch: a phone always shows the rows (account-seats.js PHONE_VIEW) */
  .acct .se-view { display: none; }
}
