/* One square handheld on the site and in a future collectible iframe. */
.mint-opensea { display: inline-flex; align-items: center; text-decoration: none; margin: 6px 8px 2px 0; }
.mint-opensea:focus-visible { outline: 2px solid #087bd3; outline-offset: 2px; }
#network-dialog { width: min(94vw,520px); max-height: 85dvh; overflow: auto; border: 3px solid var(--edge); border-radius: 18px; padding: 18px; background: var(--cream); color: var(--ink); font-family: inherit; }
#network-dialog::backdrop { background: #182a28bb; }
#network-dialog p { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
#network-dialog .small-button { min-height: 36px; padding: 7px 10px; font: inherit; cursor: pointer; }
body.embedded #network-open, body.embedded #network-dialog { display: none !important; }
#send-tracking { display: block; margin-top: 8px; }
#send-tracking[hidden] { display: none; }
body .device:before, body .device:after {
  top: 12px; width: 9px; height: 9px; font-size: 8px; line-height: 9px; pointer-events: none;
}
body .device:before { left: 12px; }
body .device:after { right: 12px; }
.sound-toggle { border: 0; padding: 1px 3px; background: transparent; color: var(--mint); font: 600 10px Fredoka,sans-serif; cursor: pointer; white-space: nowrap; }
.sound-toggle:focus-visible { outline: 2px solid var(--mint); outline-offset: 1px; }
body .device .screen-header .header-identity { flex: 1; min-width: 0; gap: 6px; overflow: hidden; }
body .device .header-identity #pet-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body .device .header-address { flex: none; border: 0; padding: 2px 0; background: transparent; color: #416786; font: 600 11px Nunito,sans-serif; cursor: pointer; white-space: nowrap; }
body .device .header-address:disabled { display: none; }
body .device .header-address:focus-visible { outline: 2px solid #087bd3; }
body .device,
body:not(.embedded) .device,
body.embedded .device {
  container-type: inline-size;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: 100%;
  max-width: 610px;
  height: auto;
  min-height: 0;
  aspect-ratio: 1;
  padding: 0 16px;
  overflow: hidden;
  align-self: start;
}
body .device .bezel-top {
  padding: 12px 5px 9px;
  font-size: 16px;
  letter-spacing: .6px;
}
body .device .serial { font-size: 12px; }
body .device .screen {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
}
body .device .screen-header {
  flex: none;
  flex-wrap: nowrap;
  padding: 10px 12px;
  gap: 10px;
}
body .device .screen-header > div { flex-wrap: nowrap; }
body .device .screen-header strong {
  font-size: clamp(16px, 4cqw, 23px);
  min-width: 0;
}
body .device #view-mode { font-size: 10px; letter-spacing: 0; }
body .device .screen-header .level-badge {
  font-size: 12px;
  padding: 4px 7px;
}
body .device:not(.compact) .scene,
body:not(.embedded) .device:not(.compact) .scene,
body.embedded .device:not(.compact) .scene {
  flex: 1 1 0;
  height: auto;
  min-height: 0;
  max-height: none;
  border-bottom: 0;
}
body .device:not(.compact) .scene canvas,
body:not(.embedded) .device:not(.compact) .scene canvas,
body.embedded .device:not(.compact) .scene canvas {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: fill;
  image-rendering: pixelated;
}
body .device .scene-label {
  top: 10px;
  left: 10px;
  font-size: 10px;
  letter-spacing: .2px;
}
body .device .scene-bag {
  top: 10px;
  right: 10px;
  bottom: auto;
  min-height: 34px;
  padding: 7px 10px;
  font-size: 12px;
}
body .device:not(.compact) .screen-content {
  position: absolute;
  inset: auto 10px 42px;
  z-index: 1;
  min-height: 0;
  max-height: none;
  overflow: visible;
  flex: none;
  pointer-events: none;
}
body .device:not(.compact) #content { display:none; }
body .device #home-view {
  padding: 10px 13px;
  border: 2px solid #91b9aa;
  border-radius: 12px;
  background: #f8fbff;
  box-shadow: 0 3px 0 #497a65;
  pointer-events: auto;
}
body .device #home-view .identity {
  padding: 0;
  border: 0;
  gap: 10px;
  justify-content: space-between;
}
body .device #home-view .identity .micro,
body .device #home-view .screen-note { display: none; }
body .device #copy-address {
  display: block;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  min-height: 24px;
}
body .device #home-view .chain-pill { font-size: 11px; padding: 4px 6px; }
body .device #home-view .balance-strip {
  padding: 7px 0 0;
  gap: 18px;
  align-items: center;
}
body .device #home-view .balance-strip .micro { font-size: 11px; }
body .device #home-view .balance-strip strong { font-size: 22px; }
body .device #peek-bag { font-size: 13px; min-height: 34px; }
body .device .screen-bottom {
  flex: none;
  min-height: 30px;
  padding: 7px 10px;
  gap: 8px;
}
body .device .screen-bottom #live-status {
  flex: 1;
  min-width: 0;
  font-size: 10px;
  line-height: 1.3;
  max-width: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body .device .screen-bottom .text-button,
body .device .screen-bottom a { font-size: 12px; min-height: 20px; }
body .device .screen-bottom a { flex: none; white-space: nowrap; }
body .device #bag-copy-address { margin: 12px 0 0; }
body .device .device-controls { padding: 12px 0 6px; gap: 8px; }
body .device .physical-button {
  min-height: 54px;
  min-width: 0;
  flex: 1;
  gap: 8px;
  font-size: 12px;
  letter-spacing: .1px;
}
body .device .button-icon { width: 58px; height: 36px; font-size: 22px; }
body .device .device-bottom { padding: 6px 4px 12px; font-size: 9px; }
body .device.compact .screen-content,
body:not(.embedded) .device.compact .screen-content {
  position: static;
  flex: 1 1 0;
  min-height: 0;
  max-height: none;
  height: auto;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
body .device.compact .view { padding: 16px; }
body.embedded .workbench {
  width: 100vw;
  height: 100vh;
  width: 100dvw;
  height: 100dvh;
  display: grid;
  place-items: center;
}
body.embedded .device-stage {
  width: min(100vw, 100vh);
  height: min(100vw, 100vh);
  width: min(100dvw, 100dvh);
  height: min(100dvw, 100dvh);
}
body.embedded .device {
  max-width: none;
  box-shadow: inset 0 3px 0 var(--cyan), inset 0 -5px 0 var(--blue-deep);
}
@container (max-width: 420px) {
  body .device .bezel-top { padding: 9px 4px 7px; font-size: 13px; }
  body .device .serial { font-size: 10px; }
  body .device .device-bottom { display: none; }
  body .device .screen-header { padding: 8px; gap: 5px; }
  body .device #view-mode { font-size: 9px; }
  body .device .screen-header .level-badge { font-size: 10px; padding: 3px 5px; }
  body .device .screen-header .status-light { display: none; }
  body .device .device-controls { padding: 10px 0 9px; gap: 5px; }
  body .device .physical-button { font-size: 10px; min-height: 46px; gap: 5px; }
  body .device .button-icon { width: 45px; height: 29px; font-size: 19px; }
  body .device #home-view { padding: 7px 9px; }
  body .device #home-view .identity { display: none; }
  body .device #home-view .balance-strip > div { display: flex; flex-direction: row; align-items: baseline; gap: 5px; }
  body .device #home-view .balance-strip { padding-top: 3px; gap: 12px; }
  body .device #home-view .balance-strip strong { font-size: 19px; }
  body .device #home-view .balance-strip > div { white-space: nowrap; }
  body .device #home-view .balance-strip .micro { font-size: 10px; }
  body .device #peek-bag { min-height: 27px; font-size: 12px; }
  body .device #copy-address { font-size: 12px; min-height: 20px; }
  body .device:not(.compact) .screen-content { inset: auto 7px 38px; }
  body .device .scene-label { font-size: 9px; top: 8px; left: 8px; }
  body .device .scene-bag { top: 7px; right: 7px; font-size: 11px; padding: 6px 8px; min-height: 29px; }
  body .device .screen-bottom { padding: 5px 8px; min-height: 27px; }
  body .device .screen-bottom #live-status { font-size: 9px; }
  body .device .screen-bottom .text-button, .device .screen-bottom a { font-size: 11px; }
  body .device.compact .view { padding: 13px; }
  body .device .view-title h2 { font-size: 20px; }
}
@container (max-width: 300px) {
  body .device #peek-bag { display: none; }
  body .device #home-view .balance-strip > div { flex: 1; }
  body .device #home-view .balance-strip { padding: 0; }
  body .device #home-view { padding: 5px 9px; }
  body .device .scene-label { display: none; }
}
/* Four legible balances, without growing the tray back over the character. */
body .device #home-view .identity,
body .device #home-view #peek-bag { display: none; }
body .device #home-view { padding: 8px 10px; }
body .device #home-view .gas-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 7px 14px;
  padding: 0;
}
body .device #home-view .gas-strip > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
  white-space: normal;
}
body .device #home-view .gas-strip .micro { font-size: 11px; letter-spacing: 0; margin-bottom: 0; line-height: 1.1; }
body .device #home-view .gas-strip strong { font-size: 18px; line-height: 1.15; overflow-wrap: anywhere; }
.gas-balances strong { font-size: 20px; }
.gas-balances > div { border-left-width: 4px; }
.gas-balances [data-chain="8453"] { border-left-color: #0000ff; }
.gas-balances [data-chain="4663"] { border-left-color: #a8cf2c; }
.gas-balances [data-chain="33139"] { border-left-color: #0054fa; }
.gas-balances [data-chain="1"] { border-left-color: #8c8c8c; }
.base-assets { display: flex; justify-content: space-between; gap: 12px; padding: 12px; background: #e1f0ff; border-radius: 10px; font-size: 15px; }
.base-nft-title { font: 600 20px Fredoka,sans-serif; margin: 22px 0 8px; }
@container (max-width: 420px) {
  body .device .bezel-top { padding: 6px 4px 5px; }
  body .device .device-controls { padding: 7px 0 6px; }
  body .device .physical-button { min-height: 42px; }
  body .device .screen-header { padding: 5px 8px; }
  body .device #home-view { padding: 6px 8px; }
  body .device #home-view .gas-strip { gap: 4px 10px; }
  body .device #home-view .gas-strip .micro { font-size: 10px; }
  body .device #home-view .gas-strip strong { font-size: 16px; }
}
@container (max-width: 300px) {
  body .device .bezel-top { padding: 4px 8px 3px; }
  body .device .device-controls { padding-block: 5px 4px; }
  body .device .physical-button { min-height: 40px; gap: 3px; }
  body .device .button-icon { height: 25px; }
  body .device #home-view { padding-block: 4px; }
  body .device #home-view .gas-strip { row-gap: 3px; }
}
/* Dense inventory, without shrinking the character or main navigation. */
#world { cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent; }
#world:focus-visible { outline:3px solid #fff1a1;outline-offset:-4px; }
body .device .screen-header { padding: 6px 10px; gap: 6px; }
body .device .screen-header #portrait { width: 25px; height: 25px; }
body .device .screen-header strong { font-size: 20px; }
body .device .header-meta { flex: none; gap: 7px; align-items: center; }
body .device .game-level { color: #255773; background: #d9ecfa; border: 1px solid #a8c9dd; border-radius: 5px; padding: 2px 5px; font: 900 11px Nunito,sans-serif; white-space: nowrap; }
body .device .mint-count { color:#166443;background:#ddf7e9;border-color:#a0d9bc; }
body .device .header-meta { flex-wrap:wrap;justify-content:flex-end;row-gap:3px;max-width:46%; }
body .device .header-meta #view-mode { font-size:9px; }
button, a.small-button { transition:background-color .14s ease,color .14s ease,border-color .14s ease; }
@media(hover:hover) {
  .small-button:not(:disabled):hover,.text-button:not(:disabled):hover { background-color:#c8f7df;color:#103c2a;border-color:#27845c; }
  .connect:not(:disabled):hover { background-color:#b4ffd1;color:#0e3426; }
  .physical-button:not(:disabled):hover .button-icon { background-color:#b4ffd1;border-color:#2caa76; }
  #nft-mint-toggle:not(:disabled):hover { background-color:#b4ffd1; }
}
button:focus-visible,a.small-button:focus-visible { outline:2px solid #268865;outline-offset:2px; }
@media(prefers-reduced-motion:reduce) { button,a.small-button { transition:none; } }
/* Confirmed on/off state stays separate from an in-flight owner request. */
body .device #nft-mint-toggle { display:inline-flex;align-items:center;flex:none;gap:8px;min-height:44px;margin:0;padding:4px 6px;border:0;background:transparent;box-shadow:none;white-space:nowrap; }
.nft-mint-top > strong { min-width:0;flex:1;font-size:14px;line-height:1.3; }
.mint-switch-track { display:block;position:relative;flex:none;width:48px;height:28px;border:2px solid #7d96a3;border-radius:18px;background:#d2dfe5;transition:background-color .15s,border-color .15s; }
.mint-switch-knob { display:block;position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff9df;box-shadow:0 1px 2px #102b4655;transition:transform .15s; }
[aria-checked=true] .mint-switch-track { background:#55e887;border-color:#20764b; }
[aria-checked=true] .mint-switch-knob { transform:translateX(20px); }
.mint-switch-label { min-width:55px;font-weight:900;font-size:12px;text-align:left; }
button[aria-busy=true] { cursor:progress;opacity:.8; }
.mint-switch[aria-busy=true] .mint-switch-knob::after,.small-button[aria-busy=true]:not(.mint-switch)::before,.owner-progress::before { content:"";display:inline-block;width:12px;height:12px;border:2px solid #578097;border-top-color:transparent;border-radius:50%;animation:owner-spin .8s linear infinite; }
.mint-switch[aria-busy=true] .mint-switch-knob::after { position:absolute;top:3px;left:3px; }
.small-button[aria-busy=true]:not(.mint-switch)::before,.owner-progress::before { margin-right:7px;vertical-align:-2px; }
.owner-progress { margin:7px 0;padding:6px 8px;border-radius:6px;background:#dcedf7;color:#16435f;font-size:12px;font-weight:800; }
.owner-progress[hidden] { display:none; }
.setup-progress { padding:10px;border:1px solid #aacde0;border-radius:8px;background:#e0f1fa;margin:8px 0; }
.setup-progress[hidden] { display:none; }
.setup-progress strong,.setup-progress small { display:block;line-height:1.4; }
.setup-progress strong { font-size:14px; }
.setup-progress small { font-size:12px; }
.setup-progress progress { display:block;width:100%;height:12px;margin:8px 0;accent-color:#1eab68; }
.setup-progress progress::-webkit-progress-bar { background:#b8d5e4;border-radius:8px; }
.setup-progress progress::-webkit-progress-value { background:#1eab68;border-radius:8px; }
.radar-status { color:#265e72;font-weight:800;line-height:1.35; }
#mints-view .view-title { flex-wrap:wrap; }
#mints-view .view-title h2 { flex:1 0 100%; }
#mints-view .view-title select { flex:1;min-width:0; }
.nft-chain-state { overflow-wrap:anywhere; }
.nft-gas-notice { font-size:12px;line-height:1.4;padding:8px;border:1px solid #a8c9dd;border-radius:6px;background:#e3f1fa; }
.nft-gas-notice.needs-gas,.nft-chain-line.needs-gas { border-color:#bd344e;background:#ffe5e9;color:#822337;box-shadow:0 0 0 1px #bd344e; }
.nft-chain-line.needs-gas input { accent-color:#bd344e; }
.discord-shortcut { color:#5865f2;display:inline-flex;align-items:center;justify-content:center;flex:none;width:25px;height:25px;border-radius:5px; }
.discord-shortcut svg { width:18px;height:18px; }
.discord-shortcut:hover { background:#dbe0ff; }
.discord-shortcut:focus-visible { outline:2px solid #5865f2;outline-offset:2px; }
body .device .mint .mint-price { flex:none;max-width:110px;font-size:12px; }
body .device .mint-volume { font-size:10px;line-height:1.2;white-space:nowrap;font-weight:700; }
body .device #radar-pagination { justify-content:center; }
body .device #mints-view .mint { padding:9px 0; }
body .device #mints-view .mint strong { font-size:14px; }
body .device #mints-view .mint small { font-size:11px;line-height:1.3; }
body .device #mints-view .mint .mint-volume { font-size:10px; }
@keyframes owner-spin { to { transform:rotate(360deg); } }
@media(prefers-reduced-motion:reduce) {
  .mint-switch-track,.mint-switch-knob { transition:none; }
  .mint-switch[aria-busy=true] .mint-switch-knob::after,.small-button[aria-busy=true]:not(.mint-switch)::before,.owner-progress::before { animation:none; }
}
body .device #bag-view, body .device #controls-view, body .device #mints-view { padding: 10px 12px; }
body .device .view-title h2 { font-size: 18px; }
body .device .view-hint { font-size: 12px; line-height: 1.35; margin: 5px 0; }
body .device .chain-pill { font-size: 10px; padding: 3px 5px; }
body .device #bag-view .gas-balances { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; margin: 4px 0; }
body .device #bag-view .gas-balances > div { border-radius: 5px; padding: 3px 5px; border-left-width: 3px; }
body .device #bag-view .gas-balances span { font-size: 10px; line-height: 1.1; min-height: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body .device #bag-view .gas-balances strong { font-size: 14px; line-height: 1.15; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body .device #bag-view .gas-reserve { display: none; }
body .device #bag-view .view-title { margin-bottom:4px; }
body .device .bag-heading { flex-wrap:wrap;gap:4px 8px;align-items:center; }
body .device .bag-heading h2 { margin:0;flex:1;white-space:nowrap; }
.bag-actions { display:flex;gap:5px;align-items:center;flex-wrap:wrap; }
.bag-actions[hidden] { display:none; }
body .device .bag-actions .small-button { min-height:32px;padding:4px 7px;white-space:nowrap; }
.radar-locked { padding:18px 4px; }
.radar-locked p { font-weight:800;line-height:1.4; }
@container (max-width:420px) {
  body .device .bag-heading { align-items:flex-start; }
  body .device .bag-heading h2 { font-size:16px;line-height:32px; }
  body .device .bag-actions .small-button { font-size:11px;padding:4px 6px; }
}
body .device #bag-view .bag-state { padding:3px 0;font-size:12px;line-height:1.4; }
body .device #bag-view .bag-state strong { font-size:14px;margin-bottom:3px; }
body .device #bag-view .bag-slots { grid-template-columns:repeat(4,minmax(0,1fr));gap:6px; }
body .device #bag-view .bag-slot { max-height:85px;border-radius:8px; }
body .device #bag-view .bag-slot-symbol { font-size:20px; }
body .device .base-assets { padding: 6px 8px; font-size: 12px; border-radius: 7px; }
body .device .base-nft-title { font-size: 16px; margin: 10px 0 3px; }
body .device #nft-coverage { font-size: 11px; margin: 3px 0 6px; }
body .device .nft-grid { grid-template-columns: repeat(auto-fill,minmax(88px,100px)); gap: 7px; margin-top: 5px; }
body .device .nft-card { padding: 5px; border-radius: 7px; }
body .device .nft-card img, body .device .nft-art { width: 100%; height: 84px; aspect-ratio: auto; object-fit: contain; border-radius: 4px; }
body .device .nft-art-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: repeating-linear-gradient(0deg,transparent,transparent 11px,#90b8d51a 11px,#90b8d51a 12px),
    repeating-linear-gradient(90deg,transparent,transparent 11px,#90b8d51a 11px,#90b8d51a 12px),#d7e9f7;
  color: #355f7e;
}
body .device .nft-art-mark { display: grid; place-items: center; width: 24px; height: 25px; border: 2px dashed #789eb9; font: 700 17px Fredoka,sans-serif; }
body .device .nft-art-label { max-width: 100%; padding-inline: 3px; font: 800 10px/1.15 Nunito,sans-serif; text-align: center; }
body .device .nft-card strong { font-size: 12px; line-height: 1.25; padding: 4px 0 0; white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
body .device .nft-card small { font-size: 10px; line-height: 1.25; padding: 2px 0 0; }
body .device .pagination { margin-top: 8px; gap: 8px; font-size: 12px; }
body .device .small-button { min-height: 30px; padding: 5px 8px; font-size: 12px; }
body .device .footnote { margin-top: 7px; font-size: 10px; }
body .device .control-row { padding: 9px 0; gap: 10px; }
body .device .control-row strong { font-size: 15px; }
body .device .control-row span { font-size: 12px; line-height: 1.4; }
body .device .control-help summary, body .device .control-disclosure { font-size: 12px; }
#send-dialog { width: min(94vw,520px); padding: 17px; }
#send-dialog .send-heading h2 { font-size: 23px; line-height: 1.15; }
#send-dialog .send-choice { margin-block: 14px; }
#send-dialog .send-choice button { padding: 12px; }
#send-dialog .send-choice strong { font-size: 22px; }
#send-dialog .send-asset-card { padding: 9px; gap: 4px; }
#send-dialog .send-asset-card img { width: 60px; height: 60px; align-self: center; }
#send-dialog .send-selected { padding: 10px; margin-block: 10px; gap: 5px; }
#send-dialog .send-selected img { width: 96px; height: 96px; max-height: 96px; }
#send-dialog .send-selected strong { font-size: 18px; }
#send-dialog .small-button { min-height: 36px; padding: 7px 10px; font-size: 13px; }
#send-dialog .view-hint, #send-status, #send-dialog label, #send-dialog .send-warning { font-size: 13px; line-height: 1.4; }
@container (max-width: 420px) {
  body .device .screen-header { padding: 5px 8px; }
  body .device .screen-header strong { font-size: 16px; }
  body .device .screen-header #portrait { width: 20px; height: 20px; }
  body .device .header-meta { gap: 4px; }
  body .device .game-level { font-size: 10px; padding: 2px 3px; }
  body .device #bag-view .gas-balances { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; }
  body .device #bag-view .gas-balances > div { padding: 4px; }
  body .device #bag-view .gas-balances strong { font-size: 14px; margin: 0; }
  body .device .header-address { font-size: 10px; }
  body .device .nft-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 4px; }
  body .device .nft-card { padding: 3px; border-radius: 5px; }
  body .device .nft-card img, body .device .nft-art { height: auto; aspect-ratio: 1; min-height: 0; }
  body .device .nft-card strong { font-size: 10px; padding-top: 3px; overflow-wrap: anywhere; }
  body .device .nft-card small { font-size: 9px; }
  body .device .nft-art-empty { gap: 2px; overflow: hidden; }
  body .device .nft-art-mark { width: 13px; height: 13px; flex: none; font-size: 11px; border-width: 1px; }
  body .device .nft-art-label { padding-inline: 1px; font-size: 8px; line-height: 1.1; }
}
/* Keep screw clearance after the compact header's responsive padding rules. */
body .device .bezel-top { padding-inline: 16px; }
/* Keep identity and badges on one line; the copyable address lives by the clock. */
body .device .screen-header { flex-direction: row; align-items: center; flex-wrap: nowrap; gap: 6px; }
body .device .screen-header .header-identity { flex: 1 1 0; width: auto; min-width: 0; overflow: hidden; }
body .device .header-identity #pet-name { flex: 1 1 auto; min-width: 0; }
body .device .screen-header .header-meta { flex: none; flex-wrap: nowrap; max-width: none; width: auto; justify-content: flex-end; gap: 5px; }
body .device .job-streak { display: inline-flex; align-items: center; gap: 3px; color: #47627b; background: #e4edf5; font-variant-numeric: tabular-nums; }
body .device .job-streak[hidden] { display: none; }
body .device .job-streak[data-done=true] { color: #166443; background: #ddf7e9; border-color: #a0d9bc; }
body .device .header-meta .discord-shortcut { width: 23px; height: 22px; }
body .device .footer-reading { display: flex; align-items: center; flex: 1; min-width: 0; gap: 7px; }
body .device .footer-reading #live-status { flex: 0 1 auto; }
body .device .screen-bottom #view-mode { flex: none; white-space: nowrap; font-size: 9px; }
body .device .screen-bottom .header-address { flex: none; padding-block: 3px; font-size: 10px; }
body .device .mint-count::after,body .device .job-streak::after { display: none; }
@container (max-width: 420px) {
  body .device .screen-header { gap: 4px; }
  body .device .screen-header .header-identity { gap: 4px; }
  body .device .screen-header #portrait { width: 16px; height: 16px; }
  body .device .screen-header .header-meta { gap: 3px; }
  body .device .game-level { font-size: 9px; padding: 2px 3px; }
  body .device .job-streak { gap: 2px; }
  body .device .header-meta .discord-shortcut { width: 17px; height: 20px; }
  body .device .header-meta .discord-shortcut svg { width: 16px; height: 16px; }
  body .device .mint-count-label,body .device .job-streak [data-count],body .device .checked-label { display: none; }
  body .device .mint-count::after,body .device .job-streak::after { display: inline; content: attr(data-compact); }
  body .device .screen-bottom #view-mode { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  body .device .screen-bottom { gap: 5px; }
  body .device .footer-reading { gap: 5px; }
}
@container (max-width: 300px) {
  body .device .screen-header #portrait { display: none; }
}
@container (max-width: 420px) {
  body .device #bag-view .gas-balances { margin: 4px 0; gap: 4px; }
  body .device #bag-view .gas-balances > div { container-type: inline-size; padding: 2px; border-left-width: 2px; border-radius: 4px; }
  body .device #bag-view .gas-balances > div > span { min-height: 0; font-size: 0; line-height: 0; }
  body .device #bag-view .gas-balances > div > span::after {
    content: attr(data-mobile-label); display: block; overflow: hidden; text-overflow: ellipsis;
    font-size: 9px; line-height: 1.1; white-space: nowrap;
  }
  body .device #bag-view .gas-balances strong { font-size: clamp(9px,18cqw,12px); line-height: 1.1; margin-top: 1px; white-space: nowrap; letter-spacing: -.15px; }
  body .device #bag-view .gas-reserve { display: none; }
}
/* Mobile opens straight into the picker and pet, without moving desktop content. */
@media (max-width: 650px) {
  body:not(.embedded):not(.gallery-page) .workbench { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin-top: 16px; }
  body:not(.embedded):not(.gallery-page) .intro { display: contents; }
  body:not(.embedded):not(.gallery-page) .intro > .lookup { order: 0; margin: 0; }
  body:not(.embedded):not(.gallery-page) .lookup .picker-status { font-size: 11px; line-height: 1.3; margin-top: 5px; }
  body:not(.embedded):not(.gallery-page) .device-stage { order: 1; }
  body:not(.embedded):not(.gallery-page) .intro > .eyebrow { order: 2; margin: 20px 0 0; }
  body:not(.embedded):not(.gallery-page) .intro > h1 { order: 3; margin: 0; }
  body:not(.embedded):not(.gallery-page) .intro > .intro-copy { order: 4; margin: 0; }
  body:not(.embedded):not(.gallery-page) .intro > .small-note { order: 5; margin-top: 0; }
}
.wallet-feed { list-style: none; padding: 0; margin: 8px 0; }
.wallet-feed li { padding: 9px 0; border-bottom: 1px solid #b8d0e2; overflow-wrap: anywhere; }
.wallet-feed strong { display: block; font: 800 14px/1.35 Nunito,sans-serif; }
.wallet-feed small { display: block; margin-top: 3px; color: #416786; font-size: 11px; }
.wallet-feed a { display: inline-block; margin-top: 4px; font-size: 12px; color: #176b50; }
.wallet-feed [data-status=pending] strong { color: #795918; }
.wallet-feed [data-status=failed] strong { color: #9b344b; }
.nft-chain-line[data-chain="57073"],.gas-balances [data-chain="57073"] { border-left-color:#7132f5; }
body .device #bag-view .gas-balances.has-ink { grid-template-columns:repeat(5,minmax(0,1fr)); }
.ink-gas-address { display:flex;align-items:flex-start;min-height:24px;border:0;padding:0;background:transparent;color:#3d3762;font:800 10px/1.2 Nunito,sans-serif;text-align:left;cursor:pointer;overflow:hidden;text-overflow:ellipsis;max-width:100%;white-space:nowrap; }
.ink-gas-address:hover { color:#7132f5;text-decoration:underline; }
body .device .ink-copy { min-height:25px;padding:3px 5px;font-size:10px; }
@container(max-width:420px){.ink-gas-address{font-size:9px;line-height:1.1;min-height:0}.gas-balances [data-chain="57073"]{container-type:inline-size}}
.wallet-feed-pages { display: flex; flex-wrap: wrap; gap: 7px; margin-block: 10px; }
