/* The Antitheft app's own components, ported to the page as live markup (not
   screenshots): the always-on-top alert (antitheft/ui AlertNotification.css)
   and the vault window (Vaults.css). Sizes are the app's real pixels; the
   stage scales them as a whole with `zoom` (next.js sets --z). Tokens come
   from system.css, which already carries the app's palette. */

/* ---- the alert ---------------------------------------------------------- */

.notif-card {
  --sev: var(--good);
  position: relative;
  display: flex;
  flex-direction: column;
  width: 384px;
  zoom: var(--z, 1);
  border-radius: 12px;
  overflow: hidden;
  /* the glass border, not the severity colour: the app sets a tinted border-color
     here but .home-canvas .glass (more specific) overrides it with this one */
  border: 1px solid var(--glass-border);
  /* nothing sits behind the real window's card, so its fill is nearly opaque */
  background: linear-gradient(180deg, light-dark(rgba(248, 250, 254, 0.96), rgba(26, 26, 31, 0.96)), light-dark(rgba(238, 242, 250, 0.94), rgba(18, 18, 22, 0.95)));
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 24px 50px -28px var(--glass-drop);
  text-align: left;
}
.notif-card--critical { --sev: var(--critical); }
.notif-card--warning { --sev: var(--warning); }
.notif-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(300px 160px at 0% 0%, color-mix(in srgb, var(--sev) 16%, transparent), transparent 70%);
  pointer-events: none;
}
.notif-card > * { position: relative; z-index: 1; }
/* the hands artwork: a luminance mask over a flat fill in the severity colour */
.notif-card > .notif-emblem {
  position: absolute;
  z-index: 0;
  inset: 0 0 auto 0;
  height: 130px;
  pointer-events: none;
  background: light-dark(color-mix(in srgb, var(--sev) 26%, transparent), color-mix(in srgb, var(--sev) 34%, transparent));
  /* an ALPHA mask (white with the artwork's tones as alpha): iOS Safari reads the old grayscale one's luminance as alpha and paints a solid block */
  -webkit-mask: url(img/app/alert-hands-mask-a.png) center top / 100% 100% no-repeat;
  mask: url(img/app/alert-hands-mask-a.png) center top / 100% 100% no-repeat;
}

.notif-head { display: flex; align-items: center; gap: 12px; padding: 13px 12px 0 18px; }
.notif-wordmark { font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.notif-severity { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; color: var(--sev); }
.notif-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--sev); box-shadow: 0 0 10px color-mix(in srgb, var(--sev) 70%, transparent); animation: notif-blink 1.4s ease-in-out infinite; }
.notif-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--sev); animation: notif-ping 1.4s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes notif-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.2; } }
@keyframes notif-ping { 0% { transform: scale(1); opacity: 0.55; } 70%, 100% { transform: scale(3); opacity: 0; } }
.notif-time { margin-left: auto; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }
.notif-close { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); font-size: 14px; }

.notif-body { padding: 14px 18px 18px; }
.notif-title { font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.25; color: var(--ink); text-wrap: pretty; }
.notif-actor { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.notif-actor-icon { flex-shrink: 0; width: 38px; height: 38px; display: grid; place-items: center; color: var(--ink); font-size: 34px; }
.notif-actor-icon img { width: 100%; height: 100%; object-fit: contain; }
.notif-actor-text { min-width: 0; }
.notif-actor-name { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--ink); }
.notif-actor-detail { margin-top: 2px; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.notif-facts { margin: 16px 0 0; border-top: 1px solid var(--line); }
.notif-fact { display: grid; grid-template-columns: 74px 1fr; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); }
.notif-fact dt { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.notif-fact dd { margin: 0; font-family: var(--font-mono); font-size: 11px; color: var(--ink); overflow-wrap: anywhere; }
.notif-fact dd.notif-fact-type { display: flex; align-items: center; gap: 8px; }
.notif-fact-type .ui-pic { flex-shrink: 0; font-size: 15px; color: var(--accent-2); }

/* the dashboard's ALERTS & HISTORY button: flat at rest, glass pane on hover */
.notif-actions { display: grid; grid-template-columns: auto 1fr 1fr; gap: 8px; padding: 14px 18px 18px; border-top: 1px solid var(--line); }
.ui-btn {
  position: relative;
  min-width: 0;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 10px;
  white-space: nowrap;
  transition: transform 0.15s ease;
}
.ui-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, light-dark(rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.14)), light-dark(rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0.07)));
  border: 1px solid light-dark(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.3));
  box-shadow: inset 0 1px 0 light-dark(rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.22)), 0 12px 26px -12px light-dark(rgba(24, 40, 84, 0.4), rgba(2, 4, 12, 0.85));
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.ui-btn > * { position: relative; z-index: 1; }
.ui-btn:hover::before { opacity: 1; backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); }
.ui-btn:hover { transform: translateY(-1px); }
.ui-btn:active { transform: translateY(0) scale(0.97); }
.ui-btn:active::before { box-shadow: inset 0 1px 0 light-dark(rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.12)), 0 4px 10px -6px light-dark(rgba(24, 40, 84, 0.3), rgba(0, 0, 0, 0.6)); }
.ui-btn-icon { font-size: 15px; color: var(--accent-2); }
.ui-btn-label { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--ink); }
.ui-btn--kill .ui-btn-icon, .ui-btn--kill .ui-btn-label { color: var(--critical); }
.ui-btn--kill::before { background: linear-gradient(180deg, color-mix(in srgb, var(--critical) 26%, light-dark(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.05))), color-mix(in srgb, var(--critical) 14%, transparent)); border-color: color-mix(in srgb, var(--critical) 45%, transparent); }
.ui-btn--primary::before { background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 32%, light-dark(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.05))), color-mix(in srgb, var(--accent) 20%, transparent)); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }

/* ---- the vault window --------------------------------------------------- */

.aw {
  --aw-w: 960px;
  position: relative;
  width: var(--aw-w);
  zoom: var(--zw, 1);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  color: var(--ink);
  /* the app's window: the glass fill over the canvas with its blooms */
  background:
    linear-gradient(180deg, var(--panel), var(--panel-hi)),
    radial-gradient(700px 520px at 12% -8%, var(--bloom-1), transparent 60%),
    radial-gradient(700px 560px at 100% 105%, var(--bloom-2), transparent 60%),
    var(--canvas);
}
.aw-bar { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.aw-brand { display: flex; align-items: baseline; gap: 8px; margin-right: auto; }
.aw-brand b { font-family: var(--font-display); font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.aw-brand span { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.aw-pill { height: 26px; padding: 0 9px; display: flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }
.aw-pill .ui-pic { font-size: 14px; }
.aw-dots { display: flex; gap: 8px; margin-left: 10px; }
.aw-dots i { width: 11px; height: 11px; border-radius: 50%; }
.aw-dots i:nth-child(1) { background: #febc2e; }
.aw-dots i:nth-child(2) { background: #28c840; }
.aw-dots i:nth-child(3) { background: #ff5f57; }

.aw-body { padding: 40px 40px 44px; }
.aw-head { display: flex; align-items: center; gap: 14px; }
.aw-back { flex-shrink: 0; width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--btn-fill); font-size: 15px; }
.aw-back .ui-pic { transform: scaleX(-1); }
.aw-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.aw-sub { margin-top: 4px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.aw-search { margin-left: auto; flex-shrink: 0; width: 220px; height: 37px; display: flex; align-items: center; gap: 9px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--btn-fill); font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.aw-search .ui-pic { font-size: 15px; }

.aw-panel {
  position: relative;
  margin-top: 57px;
  padding: 0 26px 44px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background:
    radial-gradient(520px 300px at 18% 8%, light-dark(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.07)), transparent 70%),
    radial-gradient(420px 380px at 94% 58%, light-dark(color-mix(in srgb, var(--critical) 10%, transparent), color-mix(in srgb, var(--critical) 24%, transparent)), transparent 70%),
    linear-gradient(180deg, light-dark(var(--panel), rgba(255, 255, 255, 0.125)), light-dark(var(--panel-hi), rgba(255, 255, 255, 0.075)));
  box-shadow: inset 0 1px 0 var(--glass-hi), 0 30px 60px -36px var(--glass-drop);
}
/* the app lays its cash artwork behind the list the way it does its card emblems */
.aw-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: light-dark(color-mix(in srgb, var(--accent) 24%, transparent), color-mix(in srgb, var(--accent) 34%, transparent));
  /* an ALPHA mask, not a luminance one: iOS Safari ignores mask-mode and painted the whole picture as a solid blue block behind the rows */
  -webkit-mask: url(img/app/vault-cash-mask-a.png) center / contain no-repeat;
  mask: url(img/app/vault-cash-mask-a.png) center / contain no-repeat;
  pointer-events: none;
}
.aw-panel > * { position: relative; }
.aw-group { display: flex; align-items: center; gap: 8px; padding: 26px 0 8px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.aw-group .ui-pic { font-size: 14px; }
.aw-group::after { content: ""; order: 1; flex: 1; height: 1px; margin-left: 4px; background: var(--line); }
.aw-group em { order: 2; font-style: normal; }
.aw-row { display: flex; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid var(--line); transition: background-color 0.4s ease, box-shadow 0.4s ease; }
.aw-row:last-child { border-bottom: 0; }
.aw-icon { flex-shrink: 0; width: 30px; height: 30px; display: grid; place-items: center; font-size: 26px; }
.aw-icon img { width: 100%; height: 100%; object-fit: contain; }
/* an app icon that is its own tile (Ledger Wallet's black square), rounded like an app icon */
.aw-icon img.aw-app { border-radius: 22%; }.aw-copy { min-width: 0; }
.aw-name { font-family: var(--font-display); font-size: 13.5px; font-weight: 600; }
.aw-meta { margin-top: 2px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.aw-status { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 11.5px; font-weight: 600; color: var(--good); }
.aw-status .ui-pic { font-size: 13px; }
.aw-go { width: 23px; height: 23px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 13px; }
/* the vault the alert is about: its icon sends out a ring, over and over (the alert dot's
   own ping), and its status reads what happened. Nothing leaves the row. */
.aw-icon { position: relative; }
.aw-row:not(.is-hit) .st-hit, .aw-row.is-hit .st-ok { display: none; }
.aw-row.is-hit .aw-go { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.aw-row.is-hit .aw-icon::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 10px;
  border: 1.5px solid var(--accent-2);
  animation: aw-ring 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
  pointer-events: none;
}
@keyframes aw-ring { 0% { transform: scale(0.9); opacity: 0.85; } 100% { transform: scale(1.55); opacity: 0; } }

/* a row that can be picked: its chevron lights, nothing else moves */
.aw-row[role="button"] { cursor: pointer; }
.aw-icon { transition: transform 0.2s ease; }
.aw-row[role="button"]:hover .aw-icon { transform: scale(1.07); }
.aw-row[role="button"]:hover .aw-go { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.aw-row[role="button"]:focus-visible { outline: 2px solid var(--accent-2); outline-offset: -2px; border-radius: 10px; }

/* the window's screens share one frame, so swapping them never resizes it */
.aw-screens { display: grid; }
.aw-screen { grid-area: 1 / 1; min-width: 0; }
.aw:not([data-screen]) .aw-screen--log,
.aw[data-screen="a"] .aw-screen--log,
.aw[data-screen="b"] .aw-screen--vault,
.aw[data-screen="c"] .aw-screen--vault,
.aw[data-screen="c"] .aw-screen--log,
.aw:not([data-screen="travel"]):not([data-screen="c"]) .aw-screen--wallet { display: none; }
/* the protection screens (f1..f4): in the journey (travel) all are stacked in the cell; a still copy (data-screen="f1".."f4") shows just its own */
.aw .aw-screen--feat { display: none; }
.aw[data-screen="travel"] .aw-screen--feat,
.aw[data-screen="f1"] .aw-screen--f1,
.aw[data-screen="f2"] .aw-screen--f2,
.aw[data-screen="f3"] .aw-screen--f3,
.aw[data-screen="f4"] .aw-screen--f4 { display: flex; }
.aw[data-screen^="f"] .aw-screen--vault,
.aw[data-screen^="f"] .aw-screen--log { display: none; }

/* the access log screen: the second section's rows inside the window's panel */
.aw-panel--log { padding: 4px 26px 10px; }
.aw-panel--log::before { display: none; }
/* the live feed: each entry is a wrapper that opens from nothing while the oldest folds
   away, so the frame keeps its height */
.rw { display: grid; grid-template-rows: 1fr; border-top: 1px solid var(--line); transition: grid-template-rows 0.5s var(--ease); }
.rw:first-child { border-top: 0; }
.aw-screen--log .rows .rw > .row { min-height: 0; overflow: hidden; padding: 12px 0; border-top: 0; transition: padding 0.5s var(--ease), opacity 0.4s ease; }
.rw--in, .rw--out { grid-template-rows: 0fr; }
.aw-screen--log .rows .rw--in > .row, .aw-screen--log .rows .rw--out > .row { padding-block: 0; opacity: 0; }
.rw.is-new .chip { position: relative; animation: chip-pop 0.4s var(--ease) both; }
.rw.is-new .chip--crit { animation: chip-deny 0.7s var(--ease) both; }
.rw.is-new .chip--crit::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; border: 1.5px solid var(--critical); opacity: 0; animation: chip-ring 1s ease-out 0.6s both; pointer-events: none; }
.rw.is-new { position: relative; z-index: 1; }
/* a row clips its contents only while it opens or folds away; settled, nothing is cut, so the ring can leave it */
.aw-screen--log .rows .rw.is-settled > .row { overflow: visible; }
.aw-screen--log .rows .rw--out > .row { overflow: hidden; }
.rw.is-new > .row[data-verdict="refused"] .actor-logo { animation: logo-jolt 0.5s var(--ease) 0.15s both; }
@keyframes chip-deny { 0% { transform: scale(0.6); opacity: 0; } 30% { transform: scale(1.1); opacity: 1; } 45% { transform: translateX(-4px); } 60% { transform: translateX(4px); } 75% { transform: translateX(-2px); } 100% { transform: none; } }
@keyframes chip-ring { 0% { transform: scale(1); opacity: 0.85; } 100% { transform: scale(1.7, 2.1); opacity: 0; } }
@keyframes logo-jolt { 0% { transform: none; } 30% { transform: translateX(-3px); } 60% { transform: translateX(3px); } 100% { transform: none; } }
@keyframes chip-pop { from { transform: scale(0.7); opacity: 0; } }

/* the wallet screen: same panel, without the cash artwork; plain rows are checks, not controls */
.aw-panel--wallet::before { display: none; }
.aw-row--plain .aw-go--none { visibility: hidden; }
.aw-row--plain .aw-status { color: color-mix(in srgb, var(--good) 75%, var(--ink)); }
.aw-icon .ui-pic { font-size: 24px; }
/* a process the app cannot identify: dashed and muted, like the app draws it */
.actor-logo--unknown { display: grid; place-items: center; box-sizing: border-box; background: none; border: 1px dashed var(--line); box-shadow: none; color: var(--muted); font-size: 13px; font-weight: 700; padding: 0; }
.notif-actor-icon.is-unknown { box-sizing: border-box; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); font-size: 16px; font-weight: 700; }

/* the hardware wallet screen: the app's card, then its details as labelled facts */
.aw-panel--wallet { padding-top: 6px; }
.aw-appcard { display: flex; align-items: center; gap: 14px; padding: 8px 0 8px; border-bottom: 1px solid var(--line); }
.aw-appcard-logo { width: 46px; height: 46px; object-fit: contain; border-radius: 22%; flex-shrink: 0; }
.aw-appcard-name { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.aw-verified { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 1px solid color-mix(in srgb, var(--good) 45%, transparent); border-radius: 8px; background: color-mix(in srgb, var(--good) 12%, transparent); font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: color-mix(in srgb, var(--good) 75%, var(--ink)); }
.aw-verified .ui-pic { font-size: 14px; }
.aw-kvs { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; padding: 2px 0 2px; }
.aw-panel--wallet .aw-group { padding-top: 18px; }
.aw-panel--wallet .aw-row { padding: 8px 0; }
.kv { display: grid; grid-template-columns: 96px minmax(0, 1fr) 62px; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.kv--wide { grid-column: 1 / -1; }
.kv-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.kv-v { display: flex; align-items: center; gap: 7px; min-width: 0; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kv-v img { width: 16px; height: 16px; flex-shrink: 0; object-fit: contain; border-radius: 4px; }
.kv-v img.kv-plain { border-radius: 0; }
.kv-s { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; font-family: var(--font-mono); font-size: 10.5px; color: color-mix(in srgb, var(--good) 75%, var(--ink)); }
.kv-ring { position: relative; display: inline-grid; font-size: 14px; }

/* switching wallets: the card blurs out and back in around the change */
.aw-screen--wallet .aw-head > div, .aw-screen--wallet .aw-appcard, .aw-screen--wallet .aw-kvs { transition: opacity 0.18s ease, filter 0.18s ease; }
.aw-screen--wallet.is-swapping .aw-head > div, .aw-screen--wallet.is-swapping .aw-appcard, .aw-screen--wallet.is-swapping .aw-kvs { opacity: 0; filter: blur(4px); }
.aw-appcard-logo.is-tile { padding: 6px; border-radius: 22%; background: #fff; box-shadow: inset 0 0 0 1px rgba(16, 24, 44, 0.1); }

/* the wallet screen's two states: verified, or failing its identity check */
.aw-screen--wallet .ic-bad, .aw-verified .ic-bad, .aw-banner .ic-bad { display: none; }
.aw-verified.is-danger { border-color: color-mix(in srgb, var(--critical) 50%, transparent); background: color-mix(in srgb, var(--critical) 13%, transparent); color: var(--critical); }
.aw-verified.is-danger .ic-ok, .aw-banner.is-danger .ic-ok { display: none; }
.aw-verified.is-danger .ic-bad, .aw-banner.is-danger .ic-bad { display: block; }
.aw-banner { display: flex; align-items: center; gap: 12px; min-height: 46px; margin: 8px 0 2px; padding: 8px 14px; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--good) 40%, transparent); background: color-mix(in srgb, var(--good) 9%, transparent); font-size: 12.5px; line-height: 1.45; color: var(--ink); }
.aw-banner-ic { display: grid; flex-shrink: 0; font-size: 20px; color: var(--good); }
.aw-banner.is-danger { border-color: color-mix(in srgb, var(--critical) 50%, transparent); background: color-mix(in srgb, var(--critical) 12%, transparent); }
.aw-banner.is-danger .aw-banner-ic { color: var(--critical); }
.kv[data-bad] .ic-ok, .aw-row[data-bad] .ic-ok { display: none; }
.kv[data-bad] .ic-bad, .aw-row[data-bad] .ic-bad { display: block; }
.kv[data-bad] .kv-s, .aw-row[data-bad] .aw-status { color: var(--critical); }
.kv[data-bad] .kv-t { color: color-mix(in srgb, var(--critical) 78%, var(--ink)); }
.kv-note { flex-shrink: 0; font-size: 10.5px; color: var(--critical); white-space: nowrap; }
.kv-note--muted { color: var(--muted); }
.kv-unk { display: grid; place-items: center; flex-shrink: 0; width: 16px; height: 16px; box-sizing: border-box; border: 1px dashed var(--line); border-radius: 4px; font-size: 10px; font-weight: 700; color: var(--muted); }

/* the wallet selector, inside the window above the card, drawn like the window's own pills */
.aw-tabs { display: flex; gap: 6px; margin: 26px 0 0; }
.aw-screen--wallet .aw-panel--wallet { margin-top: 14px; }
.aw-tabs .wtab { height: 30px; padding: 0 11px 0 6px; gap: 7px; border-radius: 8px; font-family: var(--font-mono); font-size: 11px; white-space: nowrap; }
.aw-tabs .sup-logo { width: 18px; height: 18px; padding: 2px; border-radius: 5px; }
.aw-tabs .wtab[data-danger]::after { width: 6px; height: 6px; }
/* every screen's panel fills the shared frame, so a taller screen never leaves blank space under the others */
.aw-screen { display: flex; flex-direction: column; }
.aw-screen > .aw-panel { flex: 1 1 auto; }

@media (prefers-reduced-motion: reduce) {
  .notif-dot, .notif-dot::after, .aw-row.is-hit .aw-icon::after { animation: none; }
}

/* the supply chain screen's meta lines are folder + manager + what it ran, as long as the app's own, which cuts them with an ellipsis */
.aw-screen--supply .aw-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* touch screens: a screen swap is a timed transition (next.js paintStep), not a blur redrawn on every scroll event: the old one blurs, sinks and
   fades, the new one rises in from the same look */
.aw[data-step] .aw-screen { transition: opacity 0.45s ease, transform 0.6s var(--ease); }
.aw[data-step] .aw-screen.is-away { opacity: 0; transform: translateY(26px) scale(0.97); }   /* no blur here: a blur animated on a window-sized layer steps on iOS Safari */
.aw[data-step] .aw-screen--wallet.is-swapping .aw-head > div, .aw[data-step] .aw-screen--wallet.is-swapping .aw-appcard, .aw[data-step] .aw-screen--wallet.is-swapping .aw-kvs { filter: none; }

/* ---- the phone-sized window: next.js draws it 520 design pixels wide instead of 960 below 680px and marks it .is-narrow. The same app, laid
   out for a narrow window: no Settings or Help pills, the search is a button, the panel and its rows have less air around them, the wallet's
   facts are one column. ---- */
.aw.is-narrow .aw-bar { gap: 8px; padding: 0 14px; }
.aw.is-narrow .aw-pill:nth-child(n+4) { display: none; }
.aw.is-narrow .aw-dots { margin-left: 4px; }
.aw.is-narrow .aw-body { padding: 26px 18px 30px; }
.aw.is-narrow .aw-head { gap: 12px; }
.aw.is-narrow .aw-title { font-size: 20px; }
.aw.is-narrow .aw-search { width: 37px; gap: 0; padding: 0; justify-content: center; font-size: 0; }   /* the label is dropped, the magnifier stays */
.aw.is-narrow .aw-panel { margin-top: 28px; padding: 0 16px 28px; }
.aw.is-narrow .aw-panel--log { padding: 4px 16px 10px; }
.aw.is-narrow .aw-group { padding-top: 22px; }
.aw.is-narrow .aw-row { gap: 12px; }
.aw.is-narrow .aw-screen--wallet .aw-panel--wallet { margin-top: 12px; padding-top: 6px; }
.aw.is-narrow .aw-tabs { flex-wrap: wrap; margin-top: 20px; }
.aw.is-narrow .aw-appcard { gap: 12px; }
.aw.is-narrow .aw-kvs { grid-template-columns: minmax(0, 1fr); }
.aw.is-narrow .kv { grid-template-columns: 76px minmax(0, 1fr) 24px; gap: 8px; }
