/* Vanilla components: buttons, the settings lists (vn-list-group and friends) and fields (.vn-field). */
@import url("../../vanilla/components/app/tokens.css"); /* --vn-app-* (lists, row buttons) */
@import url("../../vanilla/components/buttons.css");
@import url("../../vanilla/components/app/buttons.css");
@import url("../../vanilla/components/app/list.css");
@import url("../../vanilla/components/fields.css");
@import url("../../vanilla/custom.css");
/* site-wide overrides, last so they win */
/* Badge profile: the page shown on / after a passkey.
   Everything is scoped to .pf and the tokens are --pf-* so the passkey gate's own styles are untouched. */
@font-face { font-family: Inter; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: Inter; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
:root {
  /* The theme comes from Vanilla (--vn-app-* in vanilla/components/app/tokens.css: light, and dark for data-theme="dark"). */
  --pf-bg: var(--vn-app-bg);
  --pf-ink: var(--vn-app-ink);
  --pf-muted: var(--vn-app-muted);
  --pf-panel: #f6f6f4;
  --pf-panel-line: var(--vn-app-panel-line);
  --pf-box-line: var(--vn-app-box-line);
  --pf-row-line: var(--vn-app-row-line);
  --pf-underline: var(--vn-app-underline);
  --pf-accent: var(--vn-app-accent);
  --pf-accent-hover: color-mix(in srgb, var(--vn-app-accent) 12%, transparent);
  --pf-menu: var(--vn-app-menu);
  --pf-field: var(--vn-app-outline);
  --pf-gold: linear-gradient(180deg, #fffbef 0%, #f4e8c8 100%);
}
/* Page colours apply only once unlocked, so the white gate is unchanged. */
html.is-unlocked, html.is-unlocked body { background: var(--pf-bg); color: var(--pf-ink); transition: background .2s ease, color .2s ease; }
html.is-unlocked { color-scheme: light; }
html.is-unlocked[data-theme="dark"] { color-scheme: dark; }
.pf { width: min(560px, 100%); margin: 0 auto; padding: 72px 16px 80px; text-align: center; color: var(--pf-ink);
  font-family: Inter, system-ui, -apple-system, sans-serif; letter-spacing: -0.02em; -webkit-font-smoothing: antialiased; }
.pf *, .pf *::before, .pf *::after { box-sizing: border-box; }
.pf .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0; }
.pf .dim { color: var(--pf-muted); }
/* Badge: same visible size as the gate's badge, 440 x 62% x 92% ≈ 251px (phones: 380 x 68% x 92%). */
.pf-pic { position: relative; width: min(251px, 62vw); aspect-ratio: 1; margin: 0 auto; }
.pf-pic .b3 { width: 100%; height: 100%; }
.pf-pic .b3__face svg rect[fill="none"] { display: none; }
/* no rim line on the default art */
@media (max-width: 520px) {
  .pf-pic { width: min(238px, 59vw); }
}
.pf h1 { margin: 26px 0 0; font-size: 40px; font-weight: 600; letter-spacing: -0.04em; line-height: 1.2; }
.pf-sec { margin: 34px 0 10px 4px; text-align: left; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--pf-muted); }
/* Tables */
.pf-panel { text-align: left; border-radius: 20px; background: transparent; box-shadow: inset 0 0 0 1px var(--pf-box-line); }
.pf-chips { display: flex; flex-wrap: wrap; gap: 6px; white-space: normal; }
.pf-chip { padding: 5px 10px; border-radius: 999px; font-size: 13px; background: var(--pf-gold); color: #2b2614; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
/* Identities and Wallets: list rows with a small logo, the name, and a right-aligned Connect / Verified / balance */
/* same size and stroke as the other row icons */
/* Whole-row links */
/* Send / receive: black outline */
/* One icon per row, all in the same right-hand column, in the same grey as the row labels */
/* Icon buttons (copy, explorer, and the rest): hover is the same rounded fill as the row chevron (.st-chev). */
/* match the chevron's weight */
/* Change picture + Log out, at the bottom of the Badge table. The name is shown only in that table. */
.pf-pic + .pf-body > .pf-sec:first-child { margin-top: 40px; }
.pf-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 16px; border-top: 1px solid var(--pf-row-line); }
.pf-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 132px; height: 44px; padding: 0 22px;
  border: 0; border-radius: 999px; font: 600 16px Inter, sans-serif; letter-spacing: -0.015em; line-height: 1; cursor: pointer;
  color: var(--pf-ink); background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.05); transition: transform .18s ease, background .18s ease; }
.pf-btn:hover { transform: translateY(-1px); background: #fafafa; }
.pf-btn:focus-visible { outline: 2px solid var(--vn-app-focus); outline-offset: 3px; }
/* Log out: the Field pill, same as Access your Badge in landing.css. */
/* Apps and Wallets: at least three per row */
.pf-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(96px, 30%), 1fr)); gap: 8px; padding: 18px 12px; }
.pf-tile { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 8px 4px; border-radius: 14px; font-size: 14px; }
.pf-tile img { width: 72px; height: 72px; display: block; }
/* Official wallet marks sit on a light rounded square, same 72px box as the app icons. */
.pf-tile[data-wallet] img {
  box-sizing: border-box;
  padding: 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.06);
  object-fit: contain; /* official marks keep their aspect; do not stretch */
}
/* QR dialog */
.pf-dialog { border: 0; padding: 0; background: transparent; color: var(--pf-ink); }
.pf-dialog:focus { outline: none; }
/* focused itself on touch screens (js/softfocus.js) */
.pf-dialog::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pf-qrbox { width: min(320px, 86vw); padding: 22px; border-radius: 24px; background: var(--pf-menu); box-shadow: inset 0 0 0 1px var(--pf-panel-line); text-align: center;
  font-family: Inter, system-ui, sans-serif; letter-spacing: -0.02em; }
.pf-qrbox h2 { margin: 0 0 14px; font-size: 15px; font-weight: 600; }
.pf-qrbox .code { border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--pf-panel-line); }
.pf-qrbox .code svg { display: block; width: 100%; height: auto; }
.pf-qrbox p { margin: 12px 0 0; font-size: 12px; color: var(--pf-muted); word-break: break-all; }
/* Done and the other popup actions: the Field button, same as Access your Badge on the landing page
   (hairline border, white fill, the border darkens on hover), with 12px corners in popups. */
.pf-qrbox button:where(:not(.vn-button, .vn-button-outline, .vn-button-tiny, .vn-text-button, .vn-ib)) { margin-top: 16px; min-width: 132px; height: 44px; padding: 0 26px; border: 1px solid #e5e5e5; border-radius: 999px;
  font: 500 16px Inter, sans-serif; letter-spacing: -0.015em; line-height: 1; cursor: pointer; color: #111111;
  background: #ffffff; box-shadow: none;
  transition: border-color .18s ease, background-color .18s ease; }
.pf-qrbox .vn-button, .pf-qrbox .vn-button-outline { margin-top: 16px; }
.pf-qrbox button:where(:not(.vn-button, .vn-button-outline, .vn-button-tiny, .vn-text-button, .vn-ib)):hover { border-color: #b8b8b8; }
.pf-qrbox button:where(:not(.vn-button, .vn-button-outline, .vn-button-tiny, .vn-text-button, .vn-ib)):active { background: #f7f7f7; }
/* In popups the action is a rounded rectangle, not a pill (12px, like the popup's inputs). */
.pf-qrbox button:where(:not(.vn-button, .vn-button-outline, .vn-button-tiny, .vn-text-button, .vn-ib)):focus-visible { outline: none; border-color: #111111; box-shadow: inset 0 0 0 1px #111111; }
/* Popup actions (Use passkey, Continue, Done, ...): the Vanilla Standalone button in light and dark.
   */
/* Crop picture dialog. Same cream box / dark backdrop / graphite Save as the QR dialog and Log out. */
.pf-crop { border: 0; padding: 0; max-width: none; max-height: calc(100% - 24px); background: transparent; color: var(--pf-ink); }
.pf-crop::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pf-crop-box { width: min(420px, 92vw); max-height: calc(100vh - 32px); overflow: auto; padding: 20px; border-radius: 24px;
  background: var(--pf-menu); box-shadow: inset 0 0 0 1px var(--pf-panel-line);
  font-family: Inter, system-ui, sans-serif; letter-spacing: -0.02em; text-align: left; box-sizing: border-box; }
.pf-crop-box *, .pf-crop-box *::before, .pf-crop-box *::after { box-sizing: border-box; }
.pf-crop-stage { position: relative; height: min(340px, 50vh); background: #1a1c20; border-radius: 16px; overflow: hidden;
  touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.pf-crop-stage.is-dragging { cursor: grabbing; }
.pf-crop-stage:focus-visible { outline: 2px solid #fff; outline-offset: -2px; }
.pf-crop-stage img { position: absolute; max-width: none; display: block; pointer-events: none; -webkit-user-drag: none; }
/* Exact same rounded-square as the badge tile (.b3__face). The spread shadow dims everything outside the frame. */
.pf-crop-frame { position: absolute; width: var(--crop-f, 280px); height: var(--crop-f, 280px); left: 50%; top: 50%;
  transform: translate(-50%, -50%); border-radius: 21.74%; pointer-events: none;
  box-shadow: 0 0 0 1.5px rgba(255,255,255,.72), 0 0 0 9999px rgba(0,0,0,.55); }
.pf-crop-zoom { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 0; font-size: 13px; font-weight: 600; color: var(--pf-muted); }
.pf-crop-zoom-label { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pf-crop-zoom-label > span { flex: 0 0 52px; }
.pf-crop-q { flex: 0 0 38px; text-align: right; font-variant-numeric: tabular-nums; color: var(--pf-ink); }
.pf-crop-zoom input[type="range"] { flex: 1; min-width: 0; height: 28px; margin: 0; accent-color: var(--vn-app-focus); cursor: pointer; }
.pf-crop-zoom input[type="range"]:focus-visible { outline: 2px solid var(--vn-app-focus); outline-offset: 2px; }
.pf-crop-budget { margin-top: 6px; min-width: 0; }
.pf-crop-budget [data-budget-size] { display: block; white-space: nowrap; color: var(--pf-ink); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.pf-crop-budget-track { height: 4px; margin-top: 6px; border-radius: 999px; background: rgba(29,31,36,.1); overflow: hidden; }
.pf-crop-budget-fill { height: 100%; width: 0; border-radius: inherit; background: #1a7f37; transition: width .16s ease, background .16s ease; }
.pf-crop-budget.is-tight .pf-crop-budget-fill { background: var(--vn-app-accent); }
.pf-crop-budget.is-over .pf-crop-budget-fill { background: #8a2f2f; }
.pf-crop-err { margin: 10px 0 0; font-size: 13px; color: #8a2f2f; text-align: center; }
.pf-crop-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pf-btn:disabled { opacity: .5; cursor: default; transform: none; filter: none; }
/* Steps 2 and 3 of the picture popup: confirm the permanent upload, then the instant Arweave IDs. */
.pf-up { text-align: center; }
.pf-up[hidden], .pf-crop-box[hidden], .pf-up [hidden] { display: none !important; }
.pf-up-pic { position: relative; width: 132px; height: 132px; margin: 6px auto 0; }
.pf-up-pic img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 21.74%; box-shadow: 0 0 0 1px var(--pf-panel-line), 0 10px 24px rgba(0,0,0,.12); }
/* Username / display name upload: the change, old → new. */
.pf-up-name { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; margin: 6px auto 0; padding: 14px 16px; max-width: 330px;
  border-radius: 14px; background: rgba(29,31,36,.05); font-size: 15px; overflow-wrap: anywhere; }
.pf-up-name .pf-up-k { width: 100%; font-size: 12px; }
.pf-up-old { color: var(--pf-muted); text-decoration: line-through; }
.pf-up-arrow { color: var(--pf-muted); }
.pf-up-new { font-weight: 600; color: var(--pf-ink); }
.pf-up-size { margin: 12px 0 0; font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--pf-muted); }
.pf-up-h { margin: 14px 0 0; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; color: var(--pf-ink); display: inline-flex; align-items: center; gap: 10px; }
.pf-up-p { margin: 8px auto 0; max-width: 330px; font-size: 14px; line-height: 1.45; color: var(--pf-muted); }
.pf-up-rows { margin-top: 14px; display: grid; gap: 8px; text-align: left; }
.pf-up-rows:empty { display: none; }
.pf-up-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(29,31,36,.05); font-size: 13px; }
.pf-up-k { flex: 0 0 auto; color: var(--pf-muted); font-weight: 600; }
.pf-up-v { margin-left: auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--pf-ink); }
.pf-up-v.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0; font-size: 12px; }
.pf-up-err { text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px;
  padding: 10px 12px; border-radius: 12px; background: rgba(138,47,47,.08); }
.pf-up-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(29,31,36,.18); border-top-color: var(--vn-app-focus); animation: pf-spin .8s linear infinite; }
@keyframes pf-spin { to { transform: rotate(360deg); } }
.pf-up-pk { margin: 10px auto 0; font-size: 13px; color: var(--pf-muted); }
.pf-up-link { border: 0; padding: 0; background: none; color: var(--pf-ink); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.pf-up-link:focus-visible { outline: 2px solid var(--vn-app-focus); outline-offset: 2px; border-radius: 4px; }
.pf-up-alt { margin: 10px 0 0; font-size: 13px; color: var(--pf-muted); }
/* Full-width buttons in the picture / upload popups (Continue, Upload to Arweave): as wide as the size bar,
   with the same rounded-square corners as the inputs and the Access popup's buttons. */
.pf-up-wide { width: 100%; border-radius: 12px; }
.pf-pk-err { color: #8a2f2f; font-size: 12px; white-space: normal; }
.pf-confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 2; }
.pf-confetti[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .pf-up-spin { animation: none; border-top-color: rgba(29,31,36,.18); border-right-color: var(--vn-app-focus); }
}
@media (max-width: 460px) {
  .pf-crop-box { width: min(420px, 96vw); padding: 14px; border-radius: 20px; }
  .pf-crop-stage { height: min(300px, 46vh); }
}
/* ---------- Settings layout (design variant 04, now the live page) ---------- */
/* Badge keeps the home-page size from .pf-pic above. */
.st-h { margin: 22px 0 8px 16px; text-align: left; font-size: 13px; font-weight: 500; letter-spacing: -0.01em; color: var(--pf-muted); }
/* Groups are outlined, not filled: a 1px line and no background. */
/* full width, edge to edge */
/* the Badge rows reuse .pf-r for the name editor; undo its grid and borders here */
.st-v { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; padding: 0; }
/* Rows don't highlight on hover; only the control on the far right does */
.st-out { display: flex; flex-direction: column; align-items: center; margin-top: 30px; }
/* Log out, then Use · Develop under it */
/* Wallets: a row per wallet showing its USD value; click to expand balance, value, Send and Receive. */
/* full width, edge to edge */
/* Line the chevron up with the + / arrow / pencil icons in the other groups (they sit centered in a 32px box). */
/* border-box: the slide animates padding too */
.st-wk { font-size: 12px; color: var(--pf-muted); }
/* Picture thumbnail in the Badge list */
/* Identities: + to connect, gold check once connected, in the same right-hand column as the other icons */
/* same size and stroke as the chevron */
/* Right-hand controls: the same 32px rounded square as the Badge section's buttons (.pf-ib), filled on hover like the chevron */
/* every right-hand icon shares one colour */
/* Log out: as wide as the badge */
/* "Badge" heading over the first list */
/* Expanded wallet: balance and value on the left, graphite Send / Receive on the right, one row */
/* Field buttons: hairline border, white fill (#1a1a1a in dark), the border darkens on hover. */
/* Rows that open a popup are buttons */
/* Passkeys: one line per passkey, domain then user name */
/* Popups */
/* The ✕ in every popup's top-right corner (publish.js CLOSE_X). */
.pf-qrbox, .pf-crop-box { position: relative; }
.pf-x { position: absolute; top: 12px; right: 12px; z-index: 3; width: 32px; height: 32px; margin: 0 !important; min-width: 0 !important; padding: 0 !important;
  display: grid; place-items: center; border: 0 !important; border-radius: 8px !important; background: none !important; box-shadow: none !important;
  color: var(--pf-muted) !important; cursor: pointer; transform: none !important; filter: none !important; }
.pf-x:hover { background: rgba(29,31,36,.06) !important; color: var(--pf-ink) !important; }
.pf-x:focus-visible { outline: 2px solid var(--vn-app-focus); outline-offset: 1px; }
.pf-x svg { width: 18px; height: 18px; }
/* The ‹ in the top-left corner, back to the step before (publish.js BACK); same look as the ✕. */
.pf-back { position: absolute; top: 12px; left: 12px; z-index: 3; width: 32px; height: 32px; margin: 0 !important; min-width: 0 !important; padding: 0 !important;
  display: grid; place-items: center; border: 0 !important; border-radius: 8px !important; background: none !important; box-shadow: none !important;
  color: var(--pf-muted) !important; cursor: pointer; transform: none !important; filter: none !important; }
.pf-back[hidden] { display: none; }
.pf-back:hover { background: rgba(29,31,36,.06) !important; color: var(--pf-ink) !important; }
.pf-back:focus-visible { outline: 2px solid var(--vn-app-focus); outline-offset: 1px; }
.pf-back svg { width: 18px; height: 18px; }
/* Confirm step: the real badge with the new picture, draggable. */
.pf-crop-box:not(.pf-up) { padding-top: 52px; }
/* room for the ✕ above the crop area */
.pf-up-badge { width: 170px; height: 170px; margin: 8px auto 6px; }
.pf-up-badge .b3 { width: 100%; height: 100%; }
.pf-up .pf-up-p:first-of-type { margin-top: 18px; }
.pf-pop-logo { width: 56px; height: 56px; margin: 4px auto 12px; }
.pf-pop-logo svg, .pf-pop-logo img { width: 100%; height: 100%; display: block; object-fit: contain; border-radius: 12px; }
.pf-pop-body p { margin: 10px 0 0; font-size: 14px; color: var(--pf-muted); word-break: normal; }
.pf-pop-body p b { color: var(--pf-ink); font-weight: 600; }
.pf-pop-body .mono { word-break: break-all; }
.pf-pop-ok { display: inline-flex; align-items: center; gap: 8px; color: var(--pf-ink) !important; }
.pf-pop-ok svg { width: 20px; height: 20px; }
/* Verified uses the toast surface: cream (umber in dark), a hairline, and the toast's gold check. */
.vn-verified-mark {
  --vn-verified-fill-top: #fffdf7;
  --vn-verified-fill-bottom: #faf3e1;
  --vn-verified-line: rgba(0, 0, 0, 0.1);
  --vn-verified-ink: #956c25;
}
html[data-scheme="dark"] .vn-verified-mark, html[data-theme="dark"] .vn-verified-mark {
  --vn-verified-fill-top: #3f3a34;
  --vn-verified-fill-bottom: #3f3a34;
  --vn-verified-line: #c4b8a4;
  --vn-verified-ink: #dcc28e;
}
.pf-pop-acts { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
.pf-pop-acts .pf-pop-done, .pf-pop-acts .pf-pop-go { margin-top: 0; min-width: 104px; }
.pf-pop-go { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 24px; border-radius: 999px; text-decoration: none;
  font: 600 16px Inter, sans-serif; letter-spacing: -0.015em; color: var(--pf-ink); background: #fff; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.pf-pop-go:hover { background: #fafafa; }
/* A popup with one button: Continue, full width, graphite like Log out. Hover only lifts it. */
.pf-pop-acts.is-single { display: block; }
.pf-pop-acts .pf-pop-wide { width: 100%; margin-top: 0; border-radius: 12px; }
/* as the gate's Use passkey button */
.pf-pop-acts .pf-pop-wide:hover { transform: translateY(-1px); filter: none; }
/* Verified identity with a profile: an arrow to the top right */
/* "Show on public profile" switch at the bottom of an expanded wallet or app */
/* Username under the badge: same type as the public page's name (heading style, bigger). */
.pf .st-uname { margin: 24px 0 0; font-size: 24px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; color: var(--pf-muted); }
/* Test site only (added by scripts/deploy.mjs --target test): a fixed notice at the bottom. */
.test-banner { position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 50; max-width: calc(100% - 32px); box-sizing: border-box;
  padding: 8px 14px; border-radius: 999px; background: #fff4d6; color: #6b4e00; box-shadow: 0 0 0 1px rgba(107,78,0,.18), 0 4px 14px rgba(0,0,0,.08);
  font: 600 12px/1.3 Inter, system-ui, sans-serif; text-align: center; pointer-events: none; }
/* Every button in a popup looks like the Access popup's "Use passkey": as wide as the popup, with
   12px rounded-square corners. Two buttons in one row (Try again + Done, Open + Done) share it.
   The ✕ and ‹ corner buttons and the small Copy buttons keep their own shapes. */
.pf-pop-acts { width: 100%; }
.pf-pop-acts > button, .pf-pop-acts > a { flex: 1 1 0; min-width: 0 !important; border-radius: 12px !important; }
.pf-pop-acts.is-single > * { width: 100%; }
.pf-crop-actions { width: 100%; }
.pf-crop-actions > .pf-btn { flex: 1 1 0; min-width: 0; border-radius: 12px; }
.pf-crop-actions > [hidden] { display: none; }
/* Raw manifest / sandbox link (landing/canonical.js): read-only preview, sign-in is on the canonical host. */
.preview-note { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); z-index: 60; margin: 0; padding: 6px 14px; border-radius: 999px; background: #fff7d6; color: #5a4300; font: 600 13px/1.3 Inter, system-ui, -apple-system, sans-serif; box-shadow: 0 2px 10px rgba(0,0,0,.12); white-space: nowrap; }
.preview-note a { color: inherit; }
.enter:disabled { opacity: .7; cursor: default; }
/* Badge Profile row while the first profile record uploads (landing/profile/profile.js startNewBadgeProfile). */
.pf-save-note { font-size: 12px; color: var(--pf-muted); white-space: nowrap; }
.pf-save-note.is-bad { color: #8a2f2f; }
.pf-up-note { max-width: 330px; margin: 10px auto 0; font-size: 13px; line-height: 1.4; color: var(--pf-muted); text-align: center; }
/* Groups: member list and add-row inside the group popup. */
.st-glabel { margin: 16px 0 8px; font-size: 13px; font-weight: 500; color: var(--pf-muted); }
.st-glist { display: flex; flex-direction: column; gap: 0; border: 1px solid rgba(0,0,0,.1); border-radius: 12px; overflow: hidden; background: #fff; }
.st-gmem { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-top: 1px solid var(--pf-row-line); }
.st-gmem:first-child { border-top: 0; }
.st-gmem .st-v { flex: 1 1 auto; min-width: 0; font-size: 14px; }
.st-grole { height: 32px; padding: 0 8px; border: 1px solid rgba(0,0,0,.18); border-radius: 8px; background: #fff; font: inherit; font-size: 13px; color: var(--pf-ink); }
.st-grole:disabled { opacity: .65; }
.st-grm { width: 32px; height: 32px; min-width: 32px; margin: 0 !important; padding: 0 !important; border-radius: 8px !important; font-size: 18px; line-height: 1; color: var(--pf-muted); }
.st-gadd { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.st-gadd .gate-input { flex: 1 1 auto; min-width: 0; }
/* Apps > Signed in with your Badge: the private, local list (js/connectedapps.js). */
/* Apps you signed in to with your Badge: rows in the Apps list (profile.js connectedAppRowsHtml). */
/* Export key popup (keyexport.js) */
.pf-kx-ok { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: var(--pf-ink); cursor: pointer; }
.pf-kx-ok input { width: 18px; height: 18px; margin: 0; accent-color: var(--vn-app-focus); }
/* near-black, as the buttons */
.pf-kx-addr { font-size: 13px; }
.pf-kx-key { display: grid; gap: 6px; margin-top: 12px; text-align: left; }
.pf-kx-lbl { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pf-kx-copied { font-size: 12px; color: var(--pf-ink); }
.pf-kx-field { display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 12px; border-radius: 10px; background: rgba(42, 44, 49, .06); }
.pf-kx-val { flex: 1 1 auto; min-width: 0; font-size: 13px; overflow: hidden; white-space: nowrap; user-select: none; -webkit-user-select: none; }
.pf-kx-more { margin-top: 12px; text-align: left; font-size: 13px; }
.pf-kx-more summary { cursor: pointer; color: var(--pf-muted); }
.pf-kx-row { display: flex; justify-content: center; margin-top: 14px; }
/* Send, Receive, then Export key (Standalone style, like Log out). On wider screens the amounts
   and buttons share one line whatever the balance's length. */
/* Very narrow phones: Export key takes its own full-width line below Send and Receive. */
/* Dark theme for the signed-in profile. Light --pf-* tokens above stay exactly as they are.
   Toggle, storage key and boot are Vanilla's (vanilla/components/docs/theme-boot.js, <vn-theme-toggle>; vanilla:theme). */
html[data-theme="dark"] {
  --pf-panel: #161616;
  --pf-gold: linear-gradient(180deg, #3a3420 0%, #2a2410 100%);
}
/* Surfaces, hovers and chips that used a light-only gray or white. */
html[data-theme="dark"] .pf-chip { color: var(--vn-app-accent); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
html[data-theme="dark"] .pf-kx-field { background: rgba(255, 255, 255, .06); }
html[data-theme="dark"] .st-glist { background: #1a1a1a; border-color: rgba(255, 255, 255, .1); }
html[data-theme="dark"] .pf-up-name, html[data-theme="dark"] .pf-up-row { background: rgba(255, 255, 255, .06); }
html[data-theme="dark"] .pf-up-spin { border-color: rgba(255, 255, 255, .2); border-top-color: #e6e8eb; }
html[data-theme="dark"] .pf-x:hover, html[data-theme="dark"] .pf-back:hover { background: rgba(255, 255, 255, .08) !important; color: var(--pf-ink) !important; }
html[data-theme="dark"] .pf-x:focus-visible, html[data-theme="dark"] .pf-back:focus-visible, html[data-theme="dark"] .pf-btn:focus-visible, html[data-theme="dark"] .pf-up-link:focus-visible { outline-color: #e6e7ea; }
/* Buttons in dark: the dark Field (#1a1a1a fill, #2b2b2b hairline that lightens on hover). */
/* Secondary outlined pills and fields (Done, form controls). */
html[data-theme="dark"] .pf-btn, html[data-theme="dark"] .pf-pop-go, html[data-theme="dark"] .st-grole {
  color: var(--pf-ink);
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, .22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08);
  filter: none;
}
html[data-theme="dark"] .pf-btn:hover, html[data-theme="dark"] .pf-pop-go:hover {
  background: #242424;
  border-color: rgba(255, 255, 255, .4);
  filter: none;
}
/* Export checkbox and other controls: light silver in dark mode. */
html[data-theme="dark"] .pf-kx-ok input { accent-color: #d0d3d8; }
html[data-theme="dark"] .pf-crop-zoom input[type="range"] { accent-color: #d0d3d8; }
html[data-theme="dark"] .pf-crop-zoom input[type="range"]:focus-visible { outline-color: #e6e7ea; }
/* Arweave and Ethereum marks are near-black; invert them so they read on dark cards.
   Bitcoin and Solana already have their own color and are left alone. */
html[data-theme="dark"] img[src$="arweave.svg"], html[data-theme="dark"] img[src$="ethereum.svg"] { filter: invert(1); }
html[data-theme="dark"] .pf-crop-err, html[data-theme="dark"] .pf-pk-err, html[data-theme="dark"] .pf-save-note.is-bad { color: #f2b8b5; }
html[data-theme="dark"] .pf-up-fail { background: rgba(242, 184, 181, .1); }
/* Buttons are Vanilla's (vn-button--standalone, --grouped) and the lists are Vanilla's (vn-list-group and friends): no button or row styles here. */
/* Use and Develop sit under Log out (they left the header). */
.st-out .st-links { margin-top: 18px; }
/* Toasts are Vanilla's status toast: vanilla/components/status-toast.{js,css}. */
/* Expanded wallet: Balance, Value and a shortened Address (with copy and explorer) on one line,
   then Send / Receive / Export key across the full width below. */
/* the same line height as the amounts */
/* Very narrow phones: Export key still takes its own full-width line below Send and Receive. */

/* Page spacing around Vanilla's lists (vanilla/components/app/list.css). */
.pf vn-list-group[first] .vn-lg__h { margin-top: 34px; }
.pf .st-uname + vn-list-group[first] .vn-lg__h { margin-top: 26px; }
.st-out .vn-button { width: min(251px, 62vw); }
@media (max-width: 520px) { .st-out .vn-button { width: min(238px, 59vw); } }
