/* Phos Editor prototype · accounts (v0.23): sign in with Google, welcome, account menu, account page, testers.
   Built only from the Phos UI system v1 (phos-ui.css: .pu-glass, .pu-btn roles, .pu-field, .pu-area, .pu-seg,
   .pu-menu/.pu-row, .pu-kelvin, .pu-check, .pu-avatar, .pu-badge, .pu-note, .pu-or) and the shared app bar.
   This file holds layout only. Screens live in account.js. */

.pa-screen { position: fixed; inset: 0; z-index: 65; overflow-y: auto; overflow-x: hidden; background: var(--pu-blackout); color: var(--pu-ink);
  font-family: var(--pu-sans); -webkit-font-smoothing: antialiased; }
.pa-screen[hidden] { display: none; }
.pa-screen *, .pa-pop *, .pa-dialog-wrap * { box-sizing: border-box; }
/* zero-specificity reset, so UI system components (.pu-chip = Geist Mono tags, .pu-btn …) keep their own type */
:where(.pa-screen) :where(button, input, select, textarea), :where(.pa-pop) :where(button), :where(.pa-dialog-wrap) :where(button, input, select, textarea) { font: inherit; color: inherit; }
.pa-screen a, .pa-dialog-wrap a { color: var(--pu-ink); }
.pa-mono { font: 500 11px/16px var(--pu-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--pu-ink-sub); }
.pa-sub { color: var(--pu-ink-sub); }
.pa-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* background: Blackout, the light rising from the bottom edge, a faint grid only where there is light */
.pa-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 46% at 50% 108%, rgba(255, 90, 31, 0.42) 0%, rgba(255, 150, 70, 0.14) 42%, rgba(10, 10, 11, 0) 76%), var(--pu-blackout); }
.pa-bg::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 40px 40px; background-position: center bottom;
  -webkit-mask: radial-gradient(55% 50% at 50% 100%, #000 0%, transparent 78%); mask: radial-gradient(55% 50% at 50% 100%, #000 0%, transparent 78%); }
.pa-screen.pa-app .pa-bg { background: radial-gradient(42% 46% at 0% 100%, rgba(226, 53, 28, 0.18) 0%, rgba(255, 90, 31, 0.08) 38%, rgba(255, 90, 31, 0) 72%), var(--pu-blackout); }
.pa-screen.pa-app .pa-bg::after { -webkit-mask: radial-gradient(45% 50% at 0% 100%, #000 0%, transparent 75%); mask: radial-gradient(45% 50% at 0% 100%, #000 0%, transparent 75%); }

/* ── Auth screens: one dialog-like panel in the middle (24, Frost dense, Kelvin hairline) */
.pa-auth { position: relative; z-index: 1; min-height: 100%; display: flex; flex-direction: column; }
.pa-auth-top { display: flex; align-items: center; justify-content: space-between; padding: 20px clamp(16px, 4vw, 40px); }
.pa-brand { display: inline-flex; align-items: center; gap: 8px; color: var(--pu-ink); text-decoration: none; }
.pa-brand svg { width: 26px; height: 26px; }
.pa-brand span { font-weight: 600; font-size: 22px; letter-spacing: -0.04em; }
.pa-auth-mid { flex: 1; display: grid; place-items: center; padding: 16px clamp(16px, 4vw, 40px) 56px; }
.pa-card { width: 100%; max-width: 440px; padding: 36px 32px 28px; display: flex; flex-direction: column; gap: 20px; animation: pa-in .26s var(--pu-ease) both; }
.pa-card-head { display: flex; flex-direction: column; gap: 10px; }
.pa-card h1 { margin: 0; font-size: 32px; line-height: 36px; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
.pa-card p { margin: 0; font-size: 15px; line-height: 22px; color: var(--pu-ink-soft); }
.pa-card .pu-btn { width: 100%; height: 48px; }
.pa-stack { display: flex; flex-direction: column; gap: 10px; }
.pa-fine { font-size: 13px; line-height: 19px; color: var(--pu-ink-sub); text-align: center; }
.pa-fine a { color: var(--pu-ink-soft); }
.pa-auth-foot { display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; padding: 0 16px 24px; }
.pa-auth-foot a { color: var(--pu-ink-sub); text-decoration: none; }
.pa-auth-foot a:hover { color: var(--pu-ink); }
.pa-g { width: 18px; height: 18px; flex: none; }
.pa-who { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--pu-r-row); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.pa-who b { display: block; font-weight: 500; font-size: 14px; }
.pa-who span { font-size: 13px; color: var(--pu-ink-sub); }
.pa-chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* demo account chooser: says it is a demo; it never imitates Google's own screen */
.pa-dialog-wrap { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: rgba(5, 5, 6, 0.62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: pa-fade .2s var(--pu-ease) both; color: var(--pu-ink); font-family: var(--pu-sans); }
.pa-dialog { width: 100%; max-width: 460px; max-height: calc(100dvh - 32px); overflow-y: auto; padding: 28px 24px 20px; display: flex; flex-direction: column; gap: 18px; animation: pa-in .22s var(--pu-ease) both; }
.pa-dialog h2 { margin: 0; font-size: 22px; line-height: 28px; font-weight: 600; letter-spacing: -0.02em; }
.pa-dialog p { margin: 0; font-size: 14px; line-height: 21px; color: var(--pu-ink-soft); }
.pa-dialog-acts { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.pa-pick { display: flex; flex-direction: column; gap: 2px; }
.pa-pick .pu-row { min-height: 60px; gap: 12px; }
.pa-pick .pu-row > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pa-pick .pu-row b { font-weight: 500; color: var(--pu-ink); }
.pa-pick .pu-row small { font-size: 13px; color: var(--pu-ink-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Account menu (from the avatar, top right): 24 surface, 12 rows */
.pa-pop { position: fixed; z-index: 75; width: 300px; max-width: calc(100vw - 16px); padding: 8px; display: flex; flex-direction: column; gap: 2px;
  font-family: var(--pu-sans); color: var(--pu-ink); animation: pa-pop .18s var(--pu-ease) both; transform-origin: top right; }
.pa-pop[hidden] { display: none; }
.pa-pop-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; }
.pa-pop-head > span:nth-child(2) { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pa-pop-head b { font-weight: 500; font-size: 15px; }
.pa-pop-head small { font-size: 13px; color: var(--pu-ink-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-pop-plan { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 4px 6px; padding: 10px 12px; border-radius: var(--pu-r-row); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); font-size: 13px; color: var(--pu-ink-soft); }
.pa-pop .pu-row { min-height: 40px; }
.pa-pop .pu-row svg { width: 16px; height: 16px; color: var(--pu-ink-sub); }
.pa-pop .pu-row .pa-meta { margin-left: auto; font: 500 10.5px/1 var(--pu-mono); letter-spacing: 0.08em; color: var(--pu-ink-sub); }
.pa-pop-sep { height: 1px; margin: 6px 8px; background: rgba(255, 255, 255, 0.08); }
.pa-pop-foot { padding: 8px 12px 4px; font: 500 10px/14px var(--pu-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--pu-ink-faint); }
.pab-avatar.pa-has { padding: 0; overflow: hidden; background: var(--pu-duvetyne); font-weight: 600; font-size: 13px; }
.pab-avatar[aria-expanded="true"] { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4); }

/* ── App pages (account, testers): the shared app bar + one column */
.pa-app-bar .pab-link.pa-back svg { width: 15px; height: 15px; }
.pa-page { position: relative; z-index: 1; width: 100%; max-width: 1040px; margin: 0 auto; padding: 32px clamp(16px, 4vw, 40px) 96px; display: flex; flex-direction: column; gap: 24px; }
.pa-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.pa-head > div { display: flex; flex-direction: column; gap: 6px; }
.pa-head h1 { margin: 0; font-size: 40px; line-height: 44px; font-weight: 600; letter-spacing: -0.035em; }
.pa-head p { margin: 2px 0 0; max-width: 60ch; font-size: 14px; line-height: 21px; color: var(--pu-ink-sub); }
.pa-cols { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.pa-toc { position: sticky; top: 88px; padding: 8px; }
.pa-sections { display: flex; flex-direction: column; gap: 16px; }
.pa-sec { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 88px; }
.pa-sec-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pa-sec-head h2 { margin: 0; font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -0.02em; }
.pa-sec-head p { margin: 4px 0 0; font-size: 14px; line-height: 20px; color: var(--pu-ink-sub); }
.pa-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 14px; }
.pa-grid2 .pa-span { grid-column: 1 / -1; }
.pa-prof { display: flex; align-items: center; gap: 16px; }
.pa-prof > div { display: flex; flex-direction: column; gap: 4px; }
.pa-prof b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.pa-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pa-saved { font: 500 11px/16px var(--pu-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--pu-ink-sub); opacity: 0; transition: opacity .2s var(--pu-ease); }
.pa-saved.on { opacity: 1; }
.pa-list { display: flex; flex-direction: column; }
.pa-item { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.07); }
.pa-item:first-child { border-top: 0; }
.pa-item-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); color: var(--pu-ink-soft); }
.pa-item-ic svg { width: 18px; height: 18px; }
.pa-item-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pa-item-t b { font-weight: 500; font-size: 15px; }
.pa-item-t span { font-size: 13px; line-height: 18px; color: var(--pu-ink-sub); overflow-wrap: anywhere; }
.pa-item-r { display: flex; align-items: center; gap: 8px; flex: none; }
.pa-danger-zone { box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.18), var(--pu-drop); }

/* ── Testers */
.pa-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.pa-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pa-tools .pu-field { flex: 1 1 260px; height: 44px; }
.pa-table { padding: 8px; }
.pa-tr { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr) minmax(0, 1.2fr) 44px; align-items: center; gap: 14px; min-height: 64px; padding: 8px 12px; border-radius: var(--pu-r-row); }
.pa-tr + .pa-tr { margin-top: 2px; }
.pa-tr:not(.pa-th):hover { background: var(--pu-wash-hover); }
.pa-th { min-height: 36px; }
.pa-th > span { font: 500 10.5px/1 var(--pu-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--pu-ink-sub); }
.pa-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pa-person > span:last-child { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pa-person b { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-person small { font-size: 13px; color: var(--pu-ink-sub); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pa-when { font-size: 13px; color: var(--pu-ink-sub); }
.pa-cell-acts { position: relative; justify-self: end; }
.pa-icon-btn { width: 36px; height: 36px; padding: 0; display: grid; place-items: center; }
.pa-icon-btn svg { width: 16px; height: 16px; }
.pa-row-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 5; width: 230px; }
/* the row with its menu open sits above the rows after it (each row is its own layer inside the glass table) */
.pa-tr.pa-menu-open { z-index: 6; }
.pa-empty { padding: 40px 16px; text-align: center; color: var(--pu-ink-sub); font-size: 14px; }
.pa-revoked { opacity: 0.55; }
.pa-linkbox { display: flex; align-items: center; gap: 8px; }
.pa-linkbox .pu-field { flex: 1; height: 44px; }

@keyframes pa-in { from { opacity: 0; transform: scale(0.97) translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes pa-pop { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes pa-fade { from { opacity: 0; } to { opacity: 1; } }

@media (width <= 900px) {
  .pa-cols { grid-template-columns: 1fr; }
  .pa-toc { position: sticky; top: 64px; z-index: 3; display: flex; flex-direction: row; overflow-x: auto; scrollbar-width: none; border-radius: var(--pu-r-pill); padding: 4px; }
  .pa-toc::-webkit-scrollbar { display: none; }
  .pa-toc .pu-row { flex: none; border-radius: var(--pu-r-pill); white-space: nowrap; }
  .pa-tr { grid-template-columns: minmax(0, 1fr) auto 44px; }
  .pa-tr .pa-when, .pa-th .pa-c-when { display: none; }
}
@media (width <= 640px) {
  .pa-card { padding: 28px 20px 22px; }
  .pa-card h1 { font-size: 28px; line-height: 32px; }
  .pa-page { padding-top: 20px; gap: 20px; }
  .pa-head h1 { font-size: 32px; line-height: 36px; }
  .pa-head .pu-btn { width: 100%; }
  .pa-toc { top: 56px; }
  .pa-grid2 { grid-template-columns: 1fr; }
  .pa-item { flex-wrap: wrap; }
  .pa-item-r { width: 100%; padding-left: 54px; }
  .pa-tr { grid-template-columns: minmax(0, 1fr) 44px; gap: 8px; }
  .pa-tr .pa-c-access { grid-column: 1; grid-row: 2; padding-left: 44px; display: flex; gap: 6px; flex-wrap: wrap; }
  .pa-tr .pa-cell-acts { grid-column: 2; grid-row: 1; }
  .pa-th { display: none; }
  .pa-pop { right: 8px !important; left: 8px !important; width: auto; }
  .pa-dialog { padding: 24px 18px 18px; }
}
@media (prefers-reduced-motion: reduce) { .pa-card, .pa-pop, .pa-dialog, .pa-dialog-wrap { animation: none; } }
.pa-toc a.pu-row { text-decoration: none; }
.pa-pop .pu-row, .pa-row-menu .pu-row { width: 100%; }
.pu-row.pa-danger-row { color: #F87171; }
.pu-row.pa-danger-row svg { color: #F87171; }
@media (width <= 900px) {
  .pa-toc { --pu-glass-fill: var(--pu-frost-dense); }
}
@media (width <= 640px) {
  .pa-tools .pu-seg { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .pa-tools .pu-seg::-webkit-scrollbar { display: none; }
  .pa-tools .pu-seg-btn { flex: 1 0 auto; justify-content: center; padding: 0 12px; }
}

/* ── v0.24 · review fixes: every surface is a 24 panel (login card, dialogs, the account menu); one Frost glass */
.pa-card, .pa-dialog, .pa-pop, .pa-table, .pa-kind, .pa-done { border-radius: var(--pu-r-panel) !important; }
.pa-pop { padding: 12px; }
/* the card's own text styles must not restyle field messages and hints */
.pa-card p.pu-msg, .pa-dialog p.pu-msg, .pa-card p.pu-hint, .pa-dialog p.pu-hint { margin: 8px 0 0; padding: 0 20px; font: 400 10.5px/16px var(--pu-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--pu-key); }
.pa-card p.pu-hint, .pa-dialog p.pu-hint { font: 400 13px/18px var(--pu-sans); letter-spacing: 0; text-transform: none; color: var(--pu-ink-sub); }
.pa-faint { color: var(--pu-ink-faint); text-transform: none; letter-spacing: 0; font-family: var(--pu-sans); font-size: 12px; }
.pa-narrow { max-width: 760px; }
.pa-segfull { display: flex !important; }
.pa-segfull .pu-seg-btn { flex: 1; justify-content: center; }
.pa-add { align-self: flex-start; }
.pa-select { user-select: all; }

/* Submit a project */
.pa-kind { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 20px; }
.pa-kind p { flex: 1 1 360px; margin: 0; font-size: 14px; line-height: 21px; color: var(--pu-ink-soft); }
.pa-asview { flex: none; }
.pa-asview .pu-seg-btn { height: 34px; font-size: 13px; }
.pa-stepper { padding: 4px; border-radius: var(--pu-r-pill); display: flex; }
.pa-stepper .pu-steps { flex: 1; }
.pa-subform, .pa-fbform { display: flex; flex-direction: column; gap: 22px; }
.pa-sub-head { display: flex; flex-direction: column; gap: 4px; }
.pa-sub-head h2 { margin: 2px 0 0; font-size: 26px; line-height: 30px; font-weight: 600; letter-spacing: -0.03em; outline: none; }
.pa-sub-head p { margin: 4px 0 0; max-width: 62ch; font-size: 14px; line-height: 21px; color: var(--pu-ink-sub); }
.pa-subnav { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
.pa-subnav .pa-mono { flex: 1; text-align: center; }
.pa-scene { display: flex; flex-direction: column; gap: 18px; padding: 20px; border-radius: var(--pu-r-panel); background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.pa-scene-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pa-scene-head b { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.pa-scene-head b svg { width: 18px; height: 18px; color: var(--pu-ink-sub); }
.pa-upload { display: flex; flex-direction: column; gap: 10px; }
.pa-upload .pu-label { margin-bottom: 0; }
.pa-upload > .pu-msg { margin: 0; }
.pa-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 132px; padding: 20px; border-radius: var(--pu-r-row);
  border: 1px dashed rgba(255, 255, 255, 0.22); color: var(--pu-ink-sub); text-align: center; cursor: pointer; transition: border-color .15s var(--pu-ease), background-color .15s var(--pu-ease), color .15s var(--pu-ease); }
.pa-drop b { font-weight: 500; font-size: 14px; color: var(--pu-ink-soft); }
.pa-drop span { font-size: 12px; }
.pa-drop:hover, .pa-drop.over, .pa-drop:focus-within { border-color: rgba(255, 90, 31, 0.6); background: var(--pu-tint); color: var(--pu-ink); }
.pa-drop:focus-within { box-shadow: var(--pu-focus); }
.pa-drop-sm { min-height: 72px; flex-direction: row; flex-wrap: wrap; gap: 4px 10px; }
.pa-drop-sm span { flex-basis: 100%; }
.pa-upload.bad .pa-drop, .pa-upload.bad .pa-layout { border-color: rgba(255, 90, 31, 0.8); box-shadow: var(--pu-focus); }
.pa-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.pa-thumbs.one { grid-template-columns: minmax(0, 360px); }
.pa-thumb { position: relative; margin: 0; border-radius: var(--pu-r-row); overflow: hidden; background: var(--pu-duvetyne); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.pa-thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.pa-thumbs.one .pa-thumb img { aspect-ratio: auto; max-height: 240px; object-fit: contain; background: #050506; }
.pa-thumb figcaption { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; font-size: 12px; color: var(--pu-ink-soft); }
.pa-thumb figcaption { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pa-thumb figcaption span { flex: none; font: 500 10.5px/16px var(--pu-mono); color: var(--pu-ink-sub); }
.pa-thumb .pa-icon-btn { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; background: rgba(10, 10, 11, 0.72); color: #fff; }
.pa-layout { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 12px 10px 16px; border-radius: var(--pu-r-row); background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); border: 1px solid transparent; }
.pa-layout > svg { width: 18px; height: 18px; color: var(--pu-ink-sub); flex: none; }
.pa-layout > span:not(.pa-layout-acts) { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pa-layout b { font-weight: 500; font-size: 14px; }
.pa-layout small { font-size: 13px; color: var(--pu-ink-sub); }
.pa-layout.empty { border-style: dashed; border-color: rgba(255, 255, 255, 0.22); box-shadow: none; background: transparent; }
.pa-layout-acts { display: flex; gap: 6px; flex-wrap: wrap; }
.pa-review { display: flex; flex-direction: column; gap: 10px; }
.pa-rsec { padding: 14px 16px; border-radius: var(--pu-r-row); background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.pa-rsec-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.pa-rsec-head b { font-size: 15px; font-weight: 600; }
.pa-rsec dl { margin: 0; display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 6px 14px; font-size: 14px; line-height: 20px; }
.pa-rsec dt { color: var(--pu-ink-sub); }
.pa-rsec dd { margin: 0; color: var(--pu-ink-soft); overflow-wrap: anywhere; white-space: pre-line; }
.pa-rsec dd.empty { color: var(--pu-ink-faint); }
.pa-rscene { display: flex; align-items: center; gap: 12px; padding: 6px 0; }
.pa-rscene img, .pa-rscene-ph { width: 72px; height: 45px; border-radius: 8px; object-fit: cover; flex: none; background: var(--pu-duvetyne); }
.pa-rscene > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pa-rscene b { font-size: 14px; font-weight: 500; }
.pa-rscene small { font-size: 13px; color: var(--pu-ink-sub); }
.pa-item-img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.pa-done { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 36px 32px; }
.pa-done h1 { margin: 4px 0 0; font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -0.035em; text-wrap: balance; }
.pa-done p { margin: 0; max-width: 56ch; font-size: 15px; line-height: 23px; color: var(--pu-ink-soft); }
.pa-pick-scroll { max-height: 46vh; overflow-y: auto; gap: 12px; }
.pa-pick-group { display: flex; flex-direction: column; gap: 2px; }
.pa-pick-group .pa-mono { padding: 0 12px 4px; }
.pa-pick-group .pu-row { min-height: 44px; }
.pa-pick-group .pu-row svg { width: 16px; height: 16px; color: var(--pu-ink-sub); }

/* Help */
.pa-faq { display: flex; flex-direction: column; }
.pa-faq details { border-top: 1px solid rgba(255, 255, 255, 0.07); }
.pa-faq details:first-child { border-top: 0; }
.pa-faq summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; list-style: none; cursor: pointer; font-size: 15px; font-weight: 500; }
.pa-faq summary::-webkit-details-marker { display: none; }
.pa-faq summary svg { width: 16px; height: 16px; color: var(--pu-ink-sub); transition: transform .2s var(--pu-ease); flex: none; }
.pa-faq details[open] summary svg { transform: rotate(180deg); }
.pa-faq summary:focus-visible { outline: 2px solid var(--pu-key); outline-offset: 2px; border-radius: 8px; }
.pa-faq details p { margin: 0 0 16px; max-width: 64ch; font-size: 14px; line-height: 22px; color: var(--pu-ink-soft); }
.pa-key { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; border-top: 1px solid rgba(255, 255, 255, 0.07); font-size: 14px; color: var(--pu-ink-soft); }
.pa-key:first-child { border-top: 0; }
.pa-kbd { color: var(--pu-ink); text-align: right; }
.pa-fbform .pu-field select { padding-right: 4px; }
.pa-fbform .pu-field svg, .pa-grid2 .pu-field svg { width: 16px; height: 16px; color: var(--pu-ink-sub); flex: none; }

@media (width <= 760px) {
  .pa-rsec dl { grid-template-columns: 1fr; gap: 2px; }
  .pa-rsec dd { margin-bottom: 8px; }
  .pa-subnav .pa-mono { display: none; }
  .pa-subnav .pu-btn { flex: 1; }
  .pa-scene { padding: 16px 14px; }
  .pa-subform.pu-panel, .pa-fbform.pu-panel { padding: 20px 16px; }
  .pa-layout { flex-wrap: wrap; }
  .pa-layout-acts { width: 100%; }
  .pa-done { padding: 28px 20px; }
  .pa-done h1 { font-size: 28px; line-height: 32px; }
}
.pa-key .pa-kbd { text-transform: none; letter-spacing: 0.02em; font-size: 12px; }

/* v0.24 · submit note, exports (mark or own logo) */
.pa-kind { flex-wrap: nowrap; }
.pa-kind-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; flex: none; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); color: var(--pu-ink-soft); }
.pa-kind-ic svg { width: 18px; height: 18px; }
.pa-xps { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pa-xp { position: relative; height: 96px; border-radius: var(--pu-r-row); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); overflow: hidden; }
.pa-xp-title { position: absolute; left: 16px; bottom: 34px; font: 600 14px/1 var(--pu-sans); }
.pa-xp-scale { position: absolute; left: 16px; bottom: 14px; font: 500 9px/1 var(--pu-mono); letter-spacing: 0.1em; opacity: 0.8; }
.pa-xp-mark { position: absolute; right: 16px; bottom: 14px; font: 500 9px/1 var(--pu-mono); letter-spacing: 0.1em; opacity: 0.6; }
.pa-xp-logo { position: absolute; right: 16px; bottom: 12px; height: 22px; max-width: 45%; object-fit: contain; }
.pa-filebtn { cursor: pointer; }
.pa-filebtn:focus-within { outline: 2px solid var(--pu-key); outline-offset: 3px; }
@media (width <= 640px) { .pa-xps { grid-template-columns: 1fr; } }

/* real sign-in (27 Nov): Google's own button (Google Identity Services) sits where our Continue with Google was */
.pa-gsi { display: flex; justify-content: center; align-items: center; min-height: 44px; width: 100%; }
.pa-gsi > .pu-btn { width: 100%; }
.pa-gsi > div { color-scheme: normal; }
