:root {
  --bg: #05070d;
  --panel: rgba(12, 14, 22, 0.92);
  --text: #e6ebf5;
  --muted: #9ca7bb;
  --border: rgba(163, 184, 211, 0.24);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(80% 60% at 50% -10%, rgba(59, 130, 246, 0.18), transparent 65%),
    radial-gradient(55% 45% at 10% 100%, rgba(14, 165, 233, 0.08), transparent 70%),
    var(--bg);
  min-height: 100dvh;
  padding: 24px;
}

.page {
  max-width: 1080px;
  margin: 0 auto;
}

.stage-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 22px 56px rgba(2, 6, 23, 0.55);
}

.stage-top {
  padding: 18px 18px 10px;
}

.stage-top h1 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

.stage-top p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.ski-header {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 16px;
  gap: 8px;
}

.ski-tools-toggle {
  order: -1;
  margin-right: auto;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  line-height: 1;
}
.ski-tools-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}
.ski-tools-toggle--active {
  color: var(--text);
  border-color: rgba(163, 184, 211, 0.45);
}

#ski-sign.ski-sign--collapsed {
  display: none !important;
}
@media (max-width: 600px) {
  body { padding: 10px; }
  .ski-header { padding: 8px; }
}
@media (max-width: 400px) {
  body { padding: 4px; }
  .ski-header { padding: 4px; }
}

/* ─── Sign Stage container ────────────────────────────────────────── */

#ski-sign {
  max-width: 320px;
  margin: 0;
}

/* ─── Splash Card ─────────────────────────────────────────────────── */

.splash-card {
  display: flex;
  flex-direction: column;
  max-width: 320px;
  margin: 40px 0 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  font-size: 0.82rem;
  gap: 8px;
}

.splash-card--inactive {
  flex-direction: row;
  align-items: center;
}

.splash-card--active {
  border-color: rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.06);
}

.splash-header-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.splash-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

.splash-title {
  font-weight: 600;
  color: var(--text);
  flex: 1;
}

.splash-btn {
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
  margin-left: auto;
}

.splash-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(163, 184, 211, 0.45);
}

.splash-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.splash-btn--activate,
.splash-btn--add {
  border-color: rgba(34, 197, 94, 0.45);
  color: #22c55e;
}

.splash-btn--activate:hover,
.splash-btn--add:hover {
  background: rgba(34, 197, 94, 0.12);
}

.splash-btn--deactivate {
  border-color: rgba(239, 68, 68, 0.35);
  color: #ef4444;
}

.splash-btn--deactivate:hover {
  background: rgba(239, 68, 68, 0.1);
}

.splash-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 6px;
}

.splash-list-empty {
  font-size: 0.74rem;
  color: var(--muted);
  grid-column: 1 / -1;
  padding: 2px 0;
}

.splash-list-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 6px;
  font-size: 0.78rem;
  min-width: 0;
}

.splash-item-name {
  font-weight: 600;
  color: #e2e8f0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.splash-item-addr {
  font-size: 0.68rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: monospace;
}

.splash-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 2px;
}

.splash-list-expiry {
  color: var(--muted);
  font-size: 0.72rem;
}

.splash-list-remove {
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid rgba(239, 68, 68, 0.3);
  background: transparent;
  color: #ef4444;
  font-size: 0.68rem;
  cursor: pointer;
  transition: background 0.15s;
}

.splash-list-remove:hover {
  background: rgba(239, 68, 68, 0.12);
}

.splash-add-row {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 2px;
}

.splash-input {
  flex: 1;
  min-width: 0;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 0.78rem;
  font-family: monospace;
  outline: none;
  transition: border-color 0.15s;
}

.splash-input:focus {
  border-color: rgba(34, 197, 94, 0.5);
}

.splash-input::placeholder {
  color: #475569;
  font-family: inherit;
  font-size: 0.75rem;
}

/* Sponsored shape overlay in wallet list */
.ski-list-shape {
  position: relative;
}

.splash-drop-badge {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.splash-drop-img {
  width: 55%;
  height: 55%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

/* Modal wallet detail — sponsor row */
.ski-detail-sponsor-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-top: 6px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
}

.ski-detail-sponsor-active {
  color: #22c55e;
  flex: 1;
}

.ski-detail-sponsor-revoke,
.ski-detail-sponsor-set {
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.15s;
}

.ski-detail-sponsor-revoke {
  border-color: rgba(239, 68, 68, 0.35);
  color: #ef4444;
}

.ski-detail-sponsor-set {
  border-color: rgba(34, 197, 94, 0.35);
  color: #22c55e;
}

.ski-detail-sponsor-revoke:hover { background: rgba(239, 68, 68, 0.1); }
.ski-detail-sponsor-set:hover    { background: rgba(34, 197, 94, 0.1); }

/* ─── Sign Message Card ───────────────────────────────────────────── */

.splash-card + .sign-card {
  margin-top: 0;
}

.sign-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 320px;
  margin: 40px 0 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}

.sign-action-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.sign-action-row .sign-result {
  flex: 1;
  min-width: 0;
}

.sign-textarea {
  width: 100%;
  min-height: 56px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: inherit;
  font-size: 0.85rem;
  resize: vertical;
}

.sign-textarea:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.6);
}

.sign-btn {
  align-self: flex-start;
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.5);
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.4), rgba(37, 99, 235, 0.3));
  color: #93c5fd;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.16s ease;
}

.sign-btn:hover {
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.6), rgba(37, 99, 235, 0.5));
  border-color: rgba(96, 165, 250, 0.8);
  color: #bfdbfe;
}

.sign-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.sign-btn--ns {
  border-color: rgba(168, 85, 247, 0.5);
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.4), rgba(126, 34, 206, 0.3));
  color: #d8b4fe;
}
.sign-btn--ns:hover {
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.6), rgba(126, 34, 206, 0.5));
  border-color: rgba(192, 132, 252, 0.8);
  color: #ede9fe;
}

.sign-card + .sign-card {
  margin-top: 12px;
}

.sign-result {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.06);
}

.sign-result-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #86efac;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sign-result-value {
  font-size: 0.65rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #a7f3d0;
  word-break: break-all;
  line-height: 1.4;
}

.ski-wallet {
  display: flex;
  gap: 10px;
  align-items: center;
  position: relative;
}

.ski-wallet.ski-modal-active {
  z-index: 13001;
}

.wk-widget {
  position: relative;
  display: inline-block;
}

.wk-widget-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.16s ease;
  min-height: 38px;
  color: #e4e4e7;
  background: rgba(255, 255, 255, 0.06);
  padding: 8px 16px;
}

.wk-widget-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.86);
  box-shadow:
    0 10px 20px rgba(30, 64, 175, 0.2),
    0 0 0 1px rgba(59, 130, 246, 0.2) inset;
}

.wk-widget-btn:not(.connected) {
  background: linear-gradient(135deg, rgba(5, 8, 14, 0.96), rgba(10, 14, 24, 0.92));
  border-color: rgba(255, 255, 255, 0.38);
  min-height: 30px;
  padding: 4px 10px;
}

.wk-widget-brand-logo {
  width: 98px;
  max-height: 24px;
  object-fit: contain;
  display: block;
  margin: 0 -7px;
}


.wk-widget-btn.connected {
  background: linear-gradient(135deg, rgba(8, 8, 14, 0.72), rgba(16, 16, 24, 0.68));
  border-color: rgba(100, 110, 135, 0.32);
  color: #c8cde0;
  max-width: 560px;
  padding: 3px 10px 3px 6px;
  min-height: 38px;
}

.wk-widget-btn.connected:hover {
  background: linear-gradient(135deg, rgba(13, 38, 94, 0.66), rgba(10, 24, 56, 0.75));
}

.wk-widget-method-icon,
.wk-widget-icon-fallback {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wk-widget-method-icon img,
.wk-widget-icon-fallback img {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

.wk-pill-ski-logo {
  height: 36px;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.wk-widget-btn.connected .wk-pill-ski-logo {
  height: 26px;
  opacity: 0.9;
}

/* Connected pill: wallet icon 30x30 */
.wk-widget-btn.connected .wk-widget-method-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
}

.wk-widget-btn.connected .wk-widget-method-icon img {
  width: 30px;
  height: 30px;
  border-radius: 0;
  display: block;
}

/* Social badge sits as a flex sibling of the wallet icon span */
.wk-widget-social-badge {
  flex-shrink: 0;
}

/* Pill auto-expands — remove max-width cap so both icons show unconstrained */
.wk-widget-btn.connected {
  max-width: none;
  width: max-content;
}

.wk-widget-method-dual {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.wk-widget-label-wrap {
  min-width: 0;
  flex: 1;
}

.wk-widget-title {
  display: block;
  font-size: 0.92rem;
  color: #ffffff;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wk-widget-title.is-address {
  overflow: visible;
  text-overflow: clip;
  font-size: 0.66rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
  letter-spacing: 0;
}

.wk-widget-primary-name {
  color: #ffffff;
}


.wk-widget-ika-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(168, 132, 252, 0.95);
  background: rgba(124, 58, 237, 0.14);
  border: 1px solid rgba(124, 58, 237, 0.28);
  border-radius: 4px;
  padding: 1px 4px;
  line-height: 1.2;
  flex-shrink: 0;
}

.wk-dropdown {
  width: 202px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, #141820, #0e1118);
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.62);
  display: none;
  z-index: 40;
}

.wk-dropdown.open {
  display: block;
}

#ski-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  z-index: 40;
}

.wk-dd-address-banner {
  width: 100%;
  margin-bottom: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: #dbe2f0;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  cursor: pointer;
}

.wk-dd-address-banner:hover {
  background: rgba(255, 255, 255, 0.04);
}

.wk-dd-address-banner.copied {
  border-color: rgba(59, 130, 246, 0.86);
  background: linear-gradient(135deg, rgba(13, 38, 94, 0.66), rgba(10, 24, 56, 0.75));
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2) inset;
  justify-content: center;
}

.wk-dd-address-text {
  font-size: 0.83rem;
  line-height: 1.25;
  color: #dbe2f0;
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
  width: 100%;
}

.wk-dd-address-banner.copied .wk-dd-address-text {
  color: #60a5fa;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: 0.94rem;
  font-weight: 600;
  word-break: normal;
  text-align: center;
}

.wk-dd-item {
  width: 100%;
  margin-top: 2px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.02);
  color: #dbe2f0;
  font-size: 0.78rem;
  padding: 6px 10px;
  text-align: left;
  cursor: pointer;
}

.wk-dd-item:hover,
.wk-dd-item.active {
  border-color: rgba(59, 130, 246, 0.86);
  background: linear-gradient(135deg, rgba(13, 38, 94, 0.66), rgba(10, 24, 56, 0.75));
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2) inset;
}

/* SKI switch button — white style */
#wk-dd-switch {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

#wk-dd-switch:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.wk-dd-item.disconnect {
  border-color: rgba(239, 68, 68, 0.45);
  background: linear-gradient(135deg, rgba(80, 15, 25, 0.52), rgba(58, 10, 18, 0.5));
  color: #fca5a5;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.12) inset;
}

.wk-dd-item.disconnect:hover {
  border-color: rgba(248, 113, 113, 0.78);
  background: linear-gradient(135deg, rgba(115, 22, 35, 0.66), rgba(82, 15, 27, 0.62));
  color: #fecaca;
  box-shadow:
    0 10px 20px rgba(127, 29, 29, 0.28),
    0 0 0 1px rgba(248, 113, 113, 0.22) inset;
}

.wk-dd-address-row {
  display: flex;
  gap: 6px;
  align-items: stretch;
}

.wk-dd-address-row--with-dot {
  align-items: center;
}

.wk-dd-address-row .wk-dd-address-banner {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.wk-dd-explorer-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  color: #9ca7bb;
  font-size: 0.9rem;
  padding: 0 10px;
  text-decoration: none;
  transition: all 0.15s;
}

.wk-dd-explorer-btn:hover {
  border-color: rgba(96, 165, 250, 0.5);
  background: rgba(96, 165, 250, 0.1);
  color: #93c5fd;
}

/* ─── NS domain registration row (SKI menu) ──────────────────────── */

.wk-dd-ns-section {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.wk-dd-ns-domain-row {
  display: flex;
  align-items: center;
  gap: 4px;
}

.wk-ns-status {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wk-ns-label-input {
  flex: 1;
  min-width: 0;
  padding: 5px 7px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(1, 1, 1, 0.88);
  color: #ffffff;
  font-size: 0.76rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
  outline: none;
  caret-color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.wk-ns-label-input::placeholder {
  color: rgba(255, 255, 255, 0.32);
}

.wk-ns-label-input:focus {
  border-color: rgba(255, 255, 255, 0.8);
  background: #010101;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.wk-ns-dot-sui {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.2);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.wk-ns-price-chip {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  flex-shrink: 0;
  min-width: 32px;
}
.wk-ns-low-bal {
  font-size: 0.5rem;
  font-weight: 600;
  color: rgba(239, 68, 68, 0.85);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
  white-space: nowrap;
}

.wk-ns-price-val {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #a78bfa;
  white-space: nowrap;
}

.wk-dd-ns-section--owned .wk-ns-dot-sui {
  color: rgba(192, 132, 252, 0.6);
}

.wk-dd-ns-section--owned .wk-ns-price-val {
  color: #a78bfa;
}

.wk-dd-ns-section--owned .wk-dd-ns-register-btn {
  border-color: rgba(168, 85, 247, 0.45);
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.4), rgba(126, 34, 206, 0.35));
  color: #c4b5fd;
}

.wk-dd-ns-section--available .wk-ns-dot-sui {
  color: rgba(147, 197, 253, 0.6);
}

.wk-dd-ns-section--available .wk-ns-price-val {
  color: rgba(147, 197, 253, 0.6);
}

.wk-dd-ns-section--available .wk-dd-ns-register-btn {
  border: 1px solid white;
  background: #4da2ff;
  color: white;
}

.wk-dd-ns-section--available .wk-dd-ns-register-btn:hover {
  background: #6db6ff;
  border-color: white;
  color: white;
}

.wk-dd-ns-section--taken .wk-ns-dot-sui {
  color: rgba(251, 146, 60, 0.6);
}

.wk-dd-ns-section--taken .wk-ns-price-val {
  color: rgba(251, 146, 60, 0.85);
}

.wk-dd-ns-section--taken .wk-dd-ns-register-btn {
  border-color: rgba(251, 146, 60, 0.45);
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.6), rgba(180, 83, 9, 0.5));
  color: rgba(251, 146, 60, 0.9);
}

.wk-dd-ns-section--taken .wk-dd-ns-register-btn:hover {
  border-color: rgba(251, 146, 60, 0.75);
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.8), rgba(180, 83, 9, 0.7));
  color: #fed7aa;
}

/* Grace period — red hexagon, days-left pill */
.wk-dd-ns-section--grace .wk-ns-dot-sui {
  color: rgba(239, 68, 68, 0.6);
}
.wk-dd-ns-section--grace .wk-dd-ns-register-btn {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(127, 29, 29, 0.35);
  color: rgba(239, 68, 68, 0.5);
  cursor: not-allowed;
}
.wk-ns-grace-pill {
  color: #ef4444 !important;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.wk-ns-kiosk-pill {
  color: rgba(255, 121, 75, 0.95) !important;
}
.wk-ns-grace-date {
  color: rgba(239, 68, 68, 0.55);
  font-size: 0.68em;
  font-family: monospace;
}

/* Shade — privacy-preserving grace-period escrow states */

/* Shade ready — no order yet, amber pulsing crosshair */
.wk-shade-ready {
  cursor: pointer !important;
  border-color: rgba(245, 158, 11, 0.6) !important;
  background: linear-gradient(135deg, rgba(120, 53, 15, 0.7), rgba(180, 83, 9, 0.6)) !important;
  color: #fbbf24 !important;
  animation: wk-shade-pulse 2s ease-in-out infinite;
}
@keyframes wk-shade-pulse {
  0%, 100% { box-shadow: 0 0 4px rgba(245, 158, 11, 0.3); }
  50% { box-shadow: 0 0 12px rgba(245, 158, 11, 0.6), 0 0 24px rgba(245, 158, 11, 0.2); }
}

/* Shade active — order exists, grace still running, green steady check */
.wk-shade-active {
  cursor: pointer !important;
  border-color: rgba(34, 197, 94, 0.5) !important;
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.7), rgba(22, 101, 52, 0.6)) !important;
  color: transparent !important;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.25);
  position: relative;
}
.wk-shade-active::after {
  content: '\2713';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4ade80;
  font-size: 16px;
}
.wk-shade-active:hover {
  border-color: rgba(239, 68, 68, 0.6) !important;
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.7), rgba(153, 27, 27, 0.6)) !important;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.3);
}
.wk-shade-active:hover::after { content: '\2715'; color: #f87171; }

/* Shade execute — order exists, grace expired, bright green arrow */
.wk-shade-execute {
  cursor: pointer !important;
  border-color: rgba(34, 197, 94, 0.7) !important;
  background: linear-gradient(135deg, rgba(20, 83, 45, 0.8), rgba(22, 163, 74, 0.7)) !important;
  color: #22c55e !important;
  animation: wk-shade-glow 1.5s ease-in-out infinite;
}
@keyframes wk-shade-glow {
  0%, 100% { box-shadow: 0 0 6px rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 16px rgba(34, 197, 94, 0.7), 0 0 32px rgba(34, 197, 94, 0.3); }
}

/* Shade pill in price chip — green for active orders */
.wk-shade-pill {
  color: #4ade80 !important;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.wk-shade-pill--ready {
  color: #22c55e !important;
  animation: wk-shade-glow-text 1.5s ease-in-out infinite;
}
@keyframes wk-shade-glow-text {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

/* Override grace disabled styles when shade is active */
.wk-dd-ns-section--grace .wk-shade-ready,
.wk-dd-ns-section--grace .wk-shade-active,
.wk-dd-ns-section--grace .wk-shade-execute {
  cursor: pointer !important;
}

/* Target address matches connected wallet — .sui + button go purple */
.wk-dd-ns-section--self-target .wk-ns-dot-sui {
  color: rgba(192, 132, 252, 0.6);
}
.wk-dd-ns-section--self-target .wk-ns-price-val {
  color: #a78bfa;
}
.wk-dd-ns-section--self-target .wk-dd-ns-register-btn {
  border-color: rgba(168, 85, 247, 0.45);
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.4), rgba(126, 34, 206, 0.35));
  color: rgba(192, 132, 252, 0.8);
}

.wk-ns-price-drop {
  width: 11px;
  height: 11px;
  opacity: 0.85;
}

.wk-ns-price-loading {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 1.5px solid rgba(168, 85, 247, 0.35);
  border-top-color: #a78bfa;
  border-radius: 50%;
  animation: wk-spin 0.7s linear infinite;
}

@keyframes wk-spin { to { transform: rotate(360deg); } }

/* Instant pricing tier hint (shown while async price loads) */
.wk-ns-price-tier {
  opacity: 0.45;
  font-style: italic;
  font-size: 0.72em;
  letter-spacing: 0.01em;
}
.wk-ns-price-yr {
  font-size: 0.85em;
  opacity: 0.7;
}

/* Shade countdown monospace for ticking seconds */
.wk-shade-pill {
  font-variant-numeric: tabular-nums;
}

.wk-dd-ns-register-btn {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.15s;
}

.wk-dd-ns-register-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
}

.wk-dd-ns-register-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.wk-ns-route-wrap {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 4px;
}

.wk-ns-route {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  font-size: 0.60rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
  letter-spacing: 0.03em;
}

.wk-ns-route-step {
  color: rgba(255, 255, 255, 0.20);
  font-weight: 500;
  transition: color 0.2s;
}

.wk-ns-route-step--on {
  color: #a78bfa;
  font-weight: 700;
}

.wk-ns-route-arr {
  color: rgba(255, 255, 255, 0.12);
  font-size: 0.58rem;
}

.wk-ns-route-warn {
  color: rgba(239, 68, 68, 0.85);
  font-size: 0.58rem;
  margin-left: 2px;
}

.wk-ns-route-ns-hint {
  color: rgba(168, 85, 247, 0.45);
  font-weight: 600;
  font-size: 0.58rem;
}

.wk-ns-digest {
  color: #4da2ff;
  font-family: monospace;
  font-size: 0.60rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  user-select: all;
}

/* ─── Status-colored address row (target / taken / available / grace) ── */
.wk-ns-target-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 6px 10px;
  border-radius: 8px;
  transition: all 0.15s;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
}
.wk-ns-target-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: opacity 0.15s;
}
.wk-ns-target-icon--editable {
  cursor: pointer;
}
.wk-ns-target-icon--editable:hover { opacity: 0.6; }
.wk-ns-target-addr {
  font-size: 0.83rem;
  font-weight: 500;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wk-ns-target-row--copy {
  cursor: pointer;
}
.wk-ns-target-row--copy:hover { filter: brightness(1.2); }
.wk-ns-target-row--copied {
  opacity: 0.5;
}
/* Purple — self-target (address points to your wallet) */
.wk-ns-target-row--purple {
  border: 1px solid rgba(168, 85, 247, 0.18);
  background: rgba(168, 85, 247, 0.06);
}
.wk-ns-target-row--purple .wk-ns-target-icon { color: rgba(192, 132, 252, 0.7); }
.wk-ns-target-row--purple .wk-ns-target-addr { color: rgba(192, 132, 252, 0.85); }
/* Blue — taken by someone else */
.wk-ns-target-row--blue {
  border: 1px solid rgba(77, 162, 255, 0.18);
  background: rgba(77, 162, 255, 0.06);
}
.wk-ns-target-row--blue .wk-ns-target-icon { color: rgba(77, 162, 255, 0.7); }
.wk-ns-target-row--blue .wk-ns-target-addr { color: rgba(77, 162, 255, 0.85); }
/* Green — available */
.wk-ns-target-row--green {
  border: 1px solid rgba(34, 197, 94, 0.18);
  background: rgba(34, 197, 94, 0.06);
}
.wk-ns-target-row--green .wk-ns-target-icon { color: rgba(34, 197, 94, 0.7); }
.wk-ns-target-row--green .wk-ns-target-addr { color: rgba(34, 197, 94, 0.85); }
/* Red — grace period */
.wk-ns-target-row--red {
  border: 1px solid rgba(239, 68, 68, 0.18);
  background: rgba(239, 68, 68, 0.06);
}
.wk-ns-target-row--red .wk-ns-target-icon { color: rgba(239, 68, 68, 0.7); }
.wk-ns-target-row--red .wk-ns-target-addr { color: rgba(239, 68, 68, 0.85); }
/* Orange — kiosk / Tradeport (#FF794B) */
.wk-ns-target-row--orange {
  border: 1px solid rgba(255, 121, 75, 0.18);
  background: rgba(255, 121, 75, 0.06);
}
.wk-ns-target-row--orange .wk-ns-target-icon { color: rgba(255, 121, 75, 0.7); }
.wk-ns-target-row--orange .wk-ns-target-addr { color: rgba(255, 121, 75, 0.85); }
/* Dim idle placeholder (no name typed yet) */
.wk-ns-target-row--dim {
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.015);
}
.wk-ns-target-row--dim .wk-ns-target-icon { color: rgba(255, 255, 255, 0.15); }
.wk-ns-target-row--dim .wk-ns-target-addr { color: rgba(255, 255, 255, 0.25); }
/* Loading / resolving placeholder */
.wk-ns-target-row--loading {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}
.wk-ns-target-row--loading .wk-ns-target-icon { color: rgba(255, 255, 255, 0.2); }
.wk-ns-target-row--loading .wk-ns-target-addr { color: rgba(255, 255, 255, 0.3); }

.wk-ns-status[style*="pointer"] svg rect {
  animation: ns-owned-pulse 2s ease-in-out infinite;
}

@keyframes ns-owned-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ─── Pin button (enter subname mode) ──────────────────────────────── */
.wk-ns-input-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
}
.wk-ns-input-wrap .wk-ns-label-input {
  flex: 1;
  min-width: 0;
  padding-right: 24px;
}
.wk-ns-pin-btn {
  display: none;
  position: absolute;
  right: 3px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border: none;
  border-radius: 3px;
  background: rgba(168, 85, 247, 0.35);
  color: rgba(192, 132, 252, 0.9);
  font-size: 0.7rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: background 0.15s;
}
.wk-dd-ns-section--owned .wk-ns-pin-btn,
.wk-dd-ns-section--self-target .wk-ns-pin-btn { display: flex; }
.wk-ns-pin-btn:hover { background: rgba(168, 85, 247, 0.55); }

/* ─── Target address editor ────────────────────────────────────────── */
.wk-ns-route--target-edit {
  display: flex;
  align-items: center;
  gap: 3px;
  width: 100%;
}
.wk-ns-target-input {
  flex: 1;
  min-width: 0;
  padding: 3px 5px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(1, 1, 1, 0.88);
  color: #fff;
  font-size: 0.62rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
  outline: none;
  caret-color: #fff;
}
.wk-ns-target-input::placeholder { color: rgba(255, 255, 255, 0.32); }
.wk-ns-target-input:focus { border-color: rgba(255, 255, 255, 0.8); }
.wk-ns-target-submit {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-size: 0.7rem;
  cursor: pointer;
  padding: 0;
  transition: all 0.15s;
}
.wk-ns-target-submit:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
}

/* ─── Subname mode ─────────────────────────────────────────────────── */
.wk-ns-subname-badge {
  color: rgba(192, 132, 252, 0.85);
  font-weight: 600;
  font-size: 0.62rem;
}
.wk-ns-unpin-btn {
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.65rem;
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.15s;
}
.wk-ns-unpin-btn:hover { color: rgba(255, 255, 255, 0.8); }

.wk-dd-ns-section--subname .wk-ns-dot-sui {
  color: rgba(192, 132, 252, 0.6);
}
.wk-dd-ns-section--subname .wk-dd-ns-register-btn {
  border-color: rgba(168, 85, 247, 0.45);
  background: linear-gradient(135deg, rgba(88, 28, 135, 0.4), rgba(126, 34, 206, 0.35));
  color: #c4b5fd;
}

/* ─── Dim target row toggle cursor ─────────────────────────────────── */
.wk-ns-target-row--toggle { cursor: pointer; }
.wk-ns-target-row--toggle:hover { filter: brightness(1.3); }
/* Grace date — clickable to toggle roster */
.wk-ns-target-grace { cursor: pointer; font-size: 0.72rem; color: rgba(255,255,255,0.75); margin-left: auto; white-space: nowrap; }
.wk-ns-target-grace:hover { color: rgba(255,255,255,1); }

/* ─── Owned SuiNS domains list — Kumo-style collapsible ────────────── */
.wk-ns-owned-list {
  display: grid;
  grid-template-rows: 1fr;
  overflow: hidden;
  transition: grid-template-rows 0.2s ease, opacity 0.2s ease, margin 0.2s ease;
  opacity: 1;
  margin-top: 6px;
}
.wk-ns-owned-inner {
  min-height: 0;
  overflow: hidden;
}
.wk-ns-owned-list:empty { display: none; }
.wk-ns-owned-list--hidden {
  grid-template-rows: 0fr;
  opacity: 0;
  margin-top: 0;
}
.wk-ns-owned-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 5px;
}
.wk-ns-owned-title {
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(77, 162, 255, 0.85);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 5px;
}
.wk-ns-owned-tally {
  font-size: 0.5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
}
.wk-ns-owned-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
}
.wk-ns-owned-renewal {
  font-size: 0.55rem;
  font-weight: 600;
  color: rgba(239, 68, 68, 0.75);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
}
.wk-ns-owned-savings {
  font-size: 0.55rem;
  font-weight: 600;
  color: rgba(34, 197, 94, 0.85);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
}
.wk-ns-owned-grid {
  display: flex;
  flex-flow: column wrap;
  gap: 4px;
  max-height: 162px; /* ~6 rows */
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: #ffffff transparent;
}
.wk-ns-owned-grid::-webkit-scrollbar {
  height: 6px;
}
.wk-ns-owned-grid::-webkit-scrollbar-track {
  background: transparent;
}
.wk-ns-owned-grid::-webkit-scrollbar-thumb {
  background: #ffffff;
  border-radius: 3px;
}
.wk-ns-owned-grid::-webkit-scrollbar-thumb:hover {
  background: #ffffff;
}
#wk-roster-qr {
  height: 104px;
  width: 104px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #0d1117;
}
#wk-roster-qr[data-qr-action] { cursor: pointer; }
#wk-roster-qr[data-qr-action]:hover { opacity: 0.85; }
#wk-roster-qr svg {
  width: 100%;
  height: 100%;
  display: block;
}
.wk-ns-owned-chip svg { flex-shrink: 0; }
.wk-ns-owned-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(77, 162, 255, 0.2);
  border-radius: 5px;
  background: rgba(77, 162, 255, 0.06);
  padding: 4px 7px;
  cursor: pointer;
  transition: all 0.15s;
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
  white-space: nowrap;
  flex-shrink: 0;
}
.wk-ns-owned-chip:hover {
  border-color: rgba(77, 162, 255, 0.5);
  background: rgba(77, 162, 255, 0.14);
}
.wk-ns-owned-chip--dim {
  opacity: 0.25;
}
/* Kiosk / Tradeport listed — orange #FF794B */
.wk-ns-owned-chip--kiosk {
  border-color: rgba(255, 121, 75, 0.3);
  background: rgba(255, 121, 75, 0.08);
}
.wk-ns-owned-chip--kiosk:hover {
  border-color: rgba(255, 121, 75, 0.5);
  background: rgba(255, 121, 75, 0.16);
}
/* Wishlist (black-diamond) chips */
.wk-ns-owned-chip--wish {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: rgba(255, 255, 255, 0.4);
}
.wk-ns-owned-chip--wish:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
}
.wk-ns-owned-cap {
  font-size: 0.45rem;
  color: rgba(192, 132, 252, 0.7);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.wk-ns-owned-kiosk {
  font-size: 0.45rem;
  color: rgba(255, 121, 75, 0.9);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.wk-ns-owned-expiry {
  display: inline-block;
  font-size: 0.48rem;
  font-weight: 700;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  padding: 1px 4px;
  white-space: nowrap;
}
.wk-ns-owned-expiry--warn {
  color: rgba(251, 191, 36, 0.9);
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.25);
}
.wk-ns-owned-expiry--urgent {
  color: rgba(239, 68, 68, 0.9);
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.25);
}
.wk-ns-wish-rm {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.5rem;
  cursor: pointer;
  margin-left: 2px;
  transition: color 0.15s;
  line-height: 1;
}
.wk-ns-wish-rm:hover { color: rgba(239, 68, 68, 0.8); }
/* Shade order chips — red #ef4444 */
.wk-ns-owned-chip--shade {
  border-color: rgba(239, 68, 68, 0.3);
  background: rgba(239, 68, 68, 0.08);
}
.wk-ns-owned-chip--shade:hover {
  border-color: rgba(239, 68, 68, 0.5);
  background: rgba(239, 68, 68, 0.16);
}
.wk-ns-owned-shade {
  font-size: 0.45rem;
  color: rgba(239, 68, 68, 0.7);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ─── NFT Card Popover (roster chip hover) ────────────────────────── */

.ski-nft-popover {
  position: fixed;
  z-index: 99999;
  pointer-events: auto;
  animation: ski-nft-in 0.15s ease;
}
.ski-nft-popover[hidden] { display: none; }
@keyframes ski-nft-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ski-nft-card {
  background: #000000;
  border: 1px solid rgba(96, 165, 250, 0.25);
  border-radius: 14px;
  padding: 14px;
  width: 192px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 24px rgba(96, 165, 250, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
}

.ski-nft-qr {
  width: 148px;
  height: 148px;
  border-radius: 8px;
  overflow: hidden;
  background: #0d1117;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ski-nft-qr svg {
  width: 100%;
  height: 100%;
  display: block;
}

.ski-nft-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
}

.ski-nft-domain {
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.01em;
}
.ski-nft-tld {
  color: rgba(96, 165, 250, 0.7);
  font-weight: 600;
}

.ski-nft-link {
  font-size: 0.55rem;
  font-weight: 500;
  color: rgba(96, 165, 250, 0.6);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.15s;
}
.ski-nft-link:hover {
  color: #93c5fd;
}

.ski-nft-expiry {
  font-size: 0.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.02em;
}
.ski-nft-expiry--warn { color: rgba(251, 191, 36, 0.7); }
.ski-nft-expiry--urgent { color: rgba(239, 68, 68, 0.7); }

.ski-nft-owner {
  width: 100%;
  display: flex;
  justify-content: center;
}

.ski-nft-owner-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.25), rgba(59, 130, 246, 0.2));
  border: 1px solid rgba(96, 165, 250, 0.35);
  border-radius: 6px;
  padding: 3px 10px;
  letter-spacing: 0.02em;
}

.ski-nft-owner-addr {
  font-size: 0.5rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.02em;
}

/* ─── Big Popout (blue-square / SuiNS profile card) ──────────────── */

.wk-dropdown--large {
  width: 100%;
  padding: 12px;
}

.wk-popout-name-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  margin-bottom: 8px;
}

.wk-popout-name-text {
  font-size: 1.09rem;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
}

.wk-popout-name-tld {
  color: rgba(147, 197, 253, 0.6);
  font-weight: 400;
}

.wk-popout-name-link {
  color: #60a5fa;
  text-decoration: none;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: color 0.15s;
}

.wk-popout-name-link:hover {
  color: #93c5fd;
}

.wk-popout-balance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 8px;
}

.wk-popout-bal-display {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.wk-popout-bal-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.wk-popout-bal-val {
  font-size: 1.21rem;
  font-weight: 600;
  white-space: nowrap;
}

.wk-popout-bal-val--usd {
  color: #86efac;
}

.wk-popout-bal-val--sui {
  color: #93c5fd;
}

.wk-bal-whole {
  color: #ffffff;
}

.wk-bal-decimals {
  font-size: 0.78em;
  font-weight: 500;
}

/* Balance toggle inside SKI menu — higher-specificity overrides base ski-layout-toggle */
.wk-popout-bal-toggle {
  flex-shrink: 0;
}

/* White thumb always */
.wk-popout-balance .ski-layout-toggle .ski-layout-thumb {
  background: white;
}

/* Checked = USD = light green track */
.wk-popout-balance .ski-layout-toggle input:checked + .ski-layout-track {
  background: rgba(74, 222, 128, 0.55);
  border-color: rgba(74, 222, 128, 0.8);
}

.wk-popout-balance .ski-layout-toggle input:checked + .ski-layout-track .ski-layout-thumb {
  left: 16px;
  background: white;
}

/* Unchecked = SUI = blue track */
.wk-popout-balance .ski-layout-toggle input:not(:checked) + .ski-layout-track {
  background: rgba(77, 162, 255, 0.35);
  border-color: rgba(77, 162, 255, 0.5);
}

.wk-popout-balance .ski-layout-toggle input:not(:checked) + .ski-layout-track .ski-layout-thumb {
  left: 2px;
  background: white;
}

/* Legacy static balance classes (kept for any external reference) */
.wk-popout-balance-sui {
  font-size: 1.05rem;
  font-weight: 600;
  color: #e4efff;
}

.wk-popout-balance-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.wk-popout-balance-usd {
  font-size: 0.78rem;
  color: #9ca7bb;
  margin-left: auto;
}

.wk-popout-actions {
  display: flex;
  gap: 6px;
  margin-top: 0;
  margin-bottom: 6px;
}

.wk-popout-actions .wk-dd-item {
  flex: 1;
  margin-top: 0;
  text-align: center;
}

.wk-waap-clear-btn {
  position: fixed;
  top: 10px;
  right: 10px;
  z-index: 12010;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.68);
  color: #c7d7ef;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 6px 10px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(2, 6, 23, 0.42);
}

.wk-waap-clear-btn:hover {
  border-color: rgba(96, 165, 250, 0.7);
  background: rgba(30, 58, 138, 0.3);
  color: #e4efff;
}

.ski-btn {
  min-height: 26px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #090f1d, #0d1728);
  border: 1.5px solid rgba(148, 163, 184, 0.42);
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 3px 7px;
  box-shadow:
    0 10px 22px rgba(2, 6, 23, 0.45),
    0 0 0 1px rgba(148, 163, 184, 0.14) inset;
  position: relative;
}

.ski-dot {
  padding: 3px;
  min-width: 30px;
}
/* Dot close-modal hover: show X overlay */
.ski-dot.ski-dot--modal-open {
  position: relative;
}
.ski-dot.ski-dot--modal-open::after {
  content: '\00D7';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  background: rgba(239, 68, 68, 0.85);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.12s;
  pointer-events: none;
}
.ski-dot.ski-dot--modal-open:hover::after {
  opacity: 1;
}
.ski-btn-session-drop {
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
  pointer-events: none;
  z-index: 1;
}

.ski-btn-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  transition: opacity 0.12s;
  cursor: pointer;
}
.ski-btn-dot:hover { opacity: 0.75; }

.ski-btn-price-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.ski-btn-session-indicator {
  width: 14px;
  height: 14px;
  margin-left: 2px;
}

.ski-btn-price-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #e6ebf5;
  white-space: nowrap;
  padding: 0 3px;
}

.ski-btn-price-label--usd {
  font-size: 1.35rem;
}

.ski-btn-inline-drop {
  width: 18px;
  height: 18px;
  filter: brightness(0) saturate(100%) invert(62%) sepia(68%) saturate(500%) hue-rotate(183deg) brightness(103%) contrast(98%);
  flex-shrink: 0;
}

.ski-btn:hover,
.ski-btn.ski-menu-open {
  transform: translateY(-1px);
  border-color: rgba(59, 130, 246, 0.86);
  box-shadow:
    0 10px 20px rgba(30, 64, 175, 0.2),
    0 0 0 1px rgba(59, 130, 246, 0.2) inset;
}

.ski-btn svg,
.wk-ski-btn-logo {
  height: 31px;
  width: auto;
  display: block;
}

.ski-wallet.has-black-diamond .wk-widget-btn.connected {
  background: linear-gradient(135deg, rgba(8, 8, 16, 0.95), rgba(16, 16, 30, 0.94));
  border-color: rgba(198, 170, 98, 0.62);
  box-shadow:
    0 0 0 1px rgba(160, 120, 56, 0.24) inset,
    0 10px 24px rgba(0, 0, 0, 0.58),
    0 0 18px rgba(194, 145, 72, 0.26);
}

.app-toast-root {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 2147483000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.app-toast-root--top {
  right: auto;
  bottom: auto;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
}

.app-toast {
  min-width: 260px;
  max-width: min(420px, calc(100vw - 28px));
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(96, 165, 250, 0.55);
  background: rgba(15, 23, 42, 0.95);
  color: #dbeafe;
  font-size: 0.78rem;
  line-height: 1.35;
  box-shadow: 0 10px 26px rgba(2, 6, 23, 0.45);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: auto;
  cursor: pointer;
}

.app-toast-root--top .app-toast {
  transform: translateY(-8px);
}

.app-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.app-toast-root--top .app-toast.show {
  transform: translateY(0);
}

.app-toast--action {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}

.app-toast--backpack {
  max-width: min(520px, calc(100vw - 28px));
}

.app-toast-wallet-icon-link {
  flex-shrink: 0;
  display: flex;
  border-radius: 10px;
  transition: opacity 0.15s;
}

.app-toast-wallet-icon-link:hover {
  opacity: 0.8;
}

.app-toast-wallet-icon {
  width: 47px;
  height: 47px;
  border-radius: 10px;
  flex-shrink: 0;
  object-fit: contain;
  display: block;
}

.app-toast-backpack-body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
}

.app-toast-store-links {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.app-toast-store-link {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 5px;
  border: 1px solid rgba(96, 165, 250, 0.45);
  background: rgba(96, 165, 250, 0.1);
  color: #7dd3fc;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
}

.app-toast-store-link:hover {
  background: rgba(96, 165, 250, 0.22);
}

.app-toast-retry {
  flex-shrink: 0;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid rgba(96, 165, 250, 0.6);
  background: rgba(96, 165, 250, 0.15);
  color: #93c5fd;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

.app-toast-retry:hover {
  background: rgba(96, 165, 250, 0.28);
}

.app-toast--copyable {
  max-width: min(480px, calc(100vw - 28px));
}

.app-toast-copy-msg {
  white-space: pre-line;
  line-height: 1.5;
}

.app-toast-copy-hint {
  margin-top: 7px;
  font-size: 0.65rem;
  opacity: 0.45;
  text-align: right;
  letter-spacing: 0.02em;
  transition: color 0.15s ease, opacity 0.15s ease;
}

/* ─── Wallet Connect Modal ─────────────────────────────────────────── */

.ski-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(4, 8, 16, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 13000;
  forced-color-adjust: none;
  -webkit-forced-color-adjust: none;
}

.ski-modal-overlay.open {
  display: block;
}

.ski-modal {
  background: linear-gradient(180deg, #141820, #0e1118 50%, #101520);
  border: 1px solid rgba(160, 200, 240, 0.12);
  border-radius: 12px;
  max-width: calc(100% - 20px);
  width: auto;
  max-height: calc(100vh - 32px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 61px;
  right: 0;
  /* top & right are overridden inline by renderModal() to anchor below the SKI button */
  box-shadow: 0 28px 84px rgba(2, 6, 23, 0.82), 0 0 38px rgba(180, 210, 240, 0.1);
  /* Prevent OS brightness adaptation and forced-color override */
  color-scheme: dark;
  forced-color-adjust: none;
  -webkit-forced-color-adjust: none;
}

@keyframes ski-modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.ski-modal-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 0 4px;
  overflow-y: auto;
  max-height: 234px;
  /* Firefox */
  scrollbar-color: #ffffff transparent;
  scrollbar-width: thin;
}
.ski-modal-body::-webkit-scrollbar { width: 6px; background: transparent; }
.ski-modal-body::-webkit-scrollbar-track { background: transparent; }
.ski-modal-body::-webkit-scrollbar-thumb { background: #ffffff; border-radius: 3px; }
.ski-modal-body::-webkit-scrollbar-thumb:hover { background: #ffffff; }
.ski-modal-legend-col {
  flex: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.ski-modal-legend-col--live {
}
.ski-modal-connected-key {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}
.ski-modal-connected-key:empty {
  display: none;
}
/* Single-column layout — no narrow breakpoint overrides needed */

.ski-modal-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.ski-modal-right-col {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.ski-modal-detail {
  justify-content: center;
  align-items: center;
  gap: 8px;
  position: relative;
  flex: none;
}

/* Other keys slot below legend */
#ski-other-keys-slot:empty { display: none; }
#ski-other-keys-slot {
  border-top: 1px solid rgba(160, 200, 240, 0.06);
  padding: 4px 10px 0;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
#ski-other-keys-slot.ski-other-keys--open {
  grid-template-rows: 1fr;
}
#ski-other-keys-slot > * {
  overflow: hidden;
  min-height: 0;
}
/* Small white arrow next to wallet icon in legend rows */
.ski-legend-keys-arrow {
  position: absolute;
  right: -8px;
  top: 0;
  width: 16px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  margin: 0;
  z-index: 1;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transform: rotate(0deg);
  transform-origin: center;
}
.ski-legend-keys-arrow:hover { color: #ffffff; }
.ski-legend-keys-arrow.ski-legend-keys-arrow--open {
  transform: rotate(90deg);
}

/* Wallet-list layout left column */
.ski-modal-wallets {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: 4px 6px;
}
.ski-walletlist-name {
  flex: 1;
  text-align: left;
  font-size: 0.9rem;
  color: #e2e8f0;
}

/* Settings strip — full-width bar at bottom of modal */
.ski-modal-settings-strip {
  padding: 6px 14px 8px;
  border-top: 1px solid rgba(160, 200, 240, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-shrink: 0;
}
.ski-layout-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
  font-size: 0.72rem;
  color: #64748b;
}
.ski-layout-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.ski-layout-track {
  width: 32px;
  height: 18px;
  background: #1e293b;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.ski-layout-toggle input:checked + .ski-layout-track {
  background: rgba(59, 130, 246, 0.35);
  border-color: rgba(59, 130, 246, 0.5);
}
.ski-layout-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  background: #475569;
  border-radius: 50%;
  transition: left 0.2s, background 0.2s;
}
.ski-layout-toggle input:checked + .ski-layout-track .ski-layout-thumb {
  left: 16px;
  background: #4da2ff;
}

/* Detail header: wallet identity + active key side-by-side */
.ski-detail-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 8px;
}

/* Connected-key row hover: hide right-col header, highlight matching addr */
.ski-detail--key-hover > .ski-detail-header {
  display: none;
}
.ski-detail-addr--highlighted {
  background: #000 !important;
  border-radius: 8px;
  outline: 1px solid rgba(255, 255, 255, 0.08);
}

/* Sponsor row inside hero card — flush width, subtle separator */
.ski-detail-header .ski-detail-sponsor-row {
  width: 100%;
  padding: 6px 0 0;
  border-top: 1px solid rgba(59, 130, 246, 0.15);
}

/* Blue card only when wallet has at least one key */
.ski-detail-header--keyed {
  border: 1px solid rgba(59, 130, 246, 0.86);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(13, 38, 94, 0.66), rgba(10, 24, 56, 0.75));
  box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.2) inset;
}
/* In the detail pane, the keyed header is clickable to sign */
#ski-modal-detail .ski-detail-header--keyed {
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#ski-modal-detail .ski-detail-header--keyed:hover {
  border-color: rgba(96, 165, 250, 1);
  box-shadow: 0 0 0 1px rgba(96, 165, 250, 0.35) inset, 0 0 12px rgba(59, 130, 246, 0.18);
}

.ski-detail-icon-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
}

.ski-detail-icons-top {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.ski-detail-key-column {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 47px;
  height: 47px;
  flex-shrink: 0;
}
/* When key column follows a wallet icon wrap, shrink it */
.ski-detail-icon-wrap + .ski-detail-key-column {
  width: 36px;
  height: 36px;
}
.ski-detail-icon-wrap + .ski-detail-key-column .ski-key-pfp {
  width: 36px !important;
  height: 36px !important;
}

.ski-detail-stable-bal {
  font-size: 0.85rem;
  font-weight: 600;
  color: #e4efff;
  letter-spacing: 0.01em;
}

/* Active key card shown in header: diamond on top, name+addr row below */
.ski-detail-active-key {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

/* Key profile picture container */
.ski-key-pfp {
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  forced-color-adjust: none;
  -webkit-forced-color-adjust: none;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Active key pfp: matches wallet icon size */
.ski-detail-active-key .ski-key-pfp,
.ski-detail-key-column .ski-key-pfp {
  width: 47px;
  height: 47px;
}

/* Secondary key pfp: smaller */
.ski-detail-addr-wrap .ski-key-pfp {
  width: 24px;
  height: 24px;
  border-radius: 5px;
}

/* Black diamond variant — transparent bg, SVG provides the shape */
.ski-key-pfp--diamond {
  background: transparent;
}

/* Green circle variant — shown when no wallet is connected yet */
.ski-key-pfp--green-circle {
  background: transparent;
  width: 47px;
  height: 47px;
}

.ski-key-pfp--diamond .ski-key-pfp-ski {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Blue square variant — solid Sui blue with white sui-drop inside */
.ski-key-pfp--blue {
  background: #4da2ff;
  margin-top: 5px;
  outline: 2px solid #ffffff;
  transition: background 0.15s;
}

.ski-key-pfp--blue .ski-key-pfp-drop {
  width: 85%;
  height: 85%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transform: translate(0, 0);
}

/* Splash active: white outline on blue square */
.ski-key-pfp--blue.ski-key-pfp--splash {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.25);
}

/* Splash active: white sui-drop overlay inside diamond */
.ski-key-pfp-splash-drop {
  position: absolute;
  inset: 0;
  width: 58%;
  height: 58%;
  margin: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  pointer-events: none;
}

/* Inline sui-drop in text/buttons (replaces 💧 emoji) */
.splash-inline-drop {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-bottom: 1px;
  filter: brightness(0) invert(1);
}

/* Blue variant — Sui brand blue ~#4DA2FF */
.splash-inline-drop--blue {
  filter: brightness(0) saturate(100%) invert(58%) sepia(90%) saturate(400%) hue-rotate(185deg) brightness(105%);
}

/* Sui-drop in toast messages */
.toast-drop {
  width: 15px;
  height: 15px;
  vertical-align: middle;
  margin-bottom: 2px;
  filter: brightness(0) invert(1);
}

/* Sui-drop icon in Splash card header */
.splash-icon-drop {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(72%) sepia(60%) saturate(400%) hue-rotate(80deg) brightness(95%);
}

/* Text block inside each key card */
.ski-detail-key-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  width: 100%;
}

/* Secondary key rows: stacked — main row on top, subname col below */
.ski-detail-addr-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

/* Inner row: pfp left, text right */
.ski-detail-addr-main {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 6px;
  width: 100%;
}

.ski-detail-empty {
  color: #555d6e;
  font-size: 0.7rem;
  text-align: center;
  line-height: 1.4;
}

.ski-detail-icon-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.ski-list-shape {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  flex-shrink: 0;
  margin-left: auto;
}

.ski-list-shape--blue {
  background: transparent;
  border-radius: 5px;
  outline: 2px solid #ffffff;
  transition: background 0.15s;
}

.ski-list-shape-hover-drop {
  position: absolute;
  width: 65%;
  height: 65%;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 1;
  transition: opacity 0.15s;
  pointer-events: none;
  z-index: 1;
}

.ski-splash-legend {
  padding: 12px 2px 12px 2px;
  font-size: 0.72rem;
  color: #9ca7bb;
}
.ski-legend-header {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
}
.ski-legend-drop {
  width: 10px;
  height: 10px;
  filter: brightness(0) invert(1);
  opacity: 0.7;
  flex-shrink: 0;
}
.ski-legend-sponsor {
  color: #e2e8f0;
  font-weight: 600;
}
.ski-legend-verb {
  color: #64748b;
  font-style: italic;
}
/* Legend — vertical list with collapsible shape groups */
.ski-legend-targets {
  padding: 0 4px 0 0;
}
.ski-legend-scroll {
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow-x: hidden;
}
.ski-legend-row {
  display: flex;
  align-items: center;
  height: 36px;
  padding: 0 4px 0 16px;
  gap: 3px;
  cursor: pointer;
  outline: none;
  white-space: nowrap;
  border-radius: 6px;
  transition: background 0.1s;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
}
.ski-legend-row:hover,
.ski-legend-row.active {
  background: rgba(255, 255, 255, 0.06);
}
.ski-legend-row:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12);
}
.ski-legend-shape {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  forced-color-adjust: none;
  -webkit-forced-color-adjust: none;
}
/* Push content between shape (left) and icon (right) */
.ski-legend-row-mid {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
}
.ski-legend-wallet-icon,
.ski-legend-social-icon {
  margin-left: auto;
}

/* ── Collapsible shape-category groups ── */
.ski-legend-group {
  border-radius: 8px;
  margin-bottom: 1px;
}
.ski-legend-group-head {
  display: flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
}
.ski-legend-group-arrow {
  width: 16px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  transform: rotate(0deg);
  transform-origin: center;
}
.ski-legend-group-arrow:hover {
  color: #ffffff;
}
.ski-legend-group--open > .ski-legend-group-head > .ski-legend-group-arrow {
  transform: rotate(90deg);
}
.ski-legend-group-head > .ski-legend-row {
  flex: 1;
  min-width: 0;
  padding-left: 0;
}
.ski-legend-group-head > .ski-legend-row > .ski-legend-shape {
  cursor: pointer;
}
.ski-legend-group-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}
.ski-legend-group--open > .ski-legend-group-body {
  grid-template-rows: 1fr;
}
.ski-legend-group-inner {
  overflow: hidden;
  min-height: 0;
}
.ski-legend-target {
  grid-column: 1 / -1;
  justify-self: start;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.68rem;
  color: #93c5fd;
  white-space: nowrap;
}
.ski-legend-target--open {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.25);
  color: #86efac;
}
.ski-legend-name {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  text-decoration: none;
}
.ski-legend-name:not(.ski-legend-name--empty):hover {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(59, 130, 246, 0.45);
  color: #bfdbfe;
}
.ski-legend-name--empty {
  background: transparent;
  border-color: transparent;
  pointer-events: none;
}
.ski-legend-name--wallet {
  background: rgba(34, 197, 94, 0.1);
  border-color: rgba(34, 197, 94, 0.22);
  color: #86efac;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
}
.ski-legend-name--wallet:hover {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.4);
  color: #bbf7d0;
}

.ski-legend-wallet-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  flex-shrink: 0;
  display: block;
}
.ski-legend-addr--right {
  justify-self: end;
  text-align: right;
}
.ski-legend-addr {
  font-size: 0.72rem;
  color: #cbd5e1;
  font-family: monospace;
  white-space: nowrap;
  text-decoration: none;
  margin-left: auto;
  cursor: pointer;
  display: inline-block;
  transition: color 0.1s;
  flex-shrink: 0;
  overflow: hidden;
}
.ski-legend-addr:hover {
  text-decoration: underline;
  color: #e2e8f0;
}
.ski-legend-addr--copied {
  color: #22c55e !important;
  font-weight: 600;
  text-decoration: none !important;
}
.ski-legend-name--create-waap {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.22);
  border-radius: 5px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #86efac;
  white-space: nowrap;
  margin-left: auto;
}
.ski-legend-row--create-waap:hover .ski-legend-name--create-waap {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.4);
  color: #bbf7d0;
}
.ski-legend-addr--faux {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.25);
  cursor: default;
  pointer-events: none;
  white-space: nowrap;
}
.ski-create-waap-name-input {
  background: rgba(34, 197, 94, 0.06);
  border: 1px dashed rgba(34, 197, 94, 0.3);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(134, 239, 172, 0.5);
  outline: none;
  width: 80px;
  line-height: 1.2;
  box-sizing: border-box;
  height: 20px;
}
.ski-create-waap-name-input::placeholder {
  color: rgba(134, 239, 172, 0.35);
}
.ski-create-waap-tld {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(134, 239, 172, 0.5);
  margin-left: 1px;
}
.ski-detail-addr-text--faux {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, monospace;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.2);
  cursor: default;
}

/* Social provider X badge — 30×30 block used in pill, legend col-2, and list shapes */
.ski-waap-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: #fff;
  font-family: system-ui, -apple-system, sans-serif;
  font-style: normal;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1;
  forced-color-adjust: none;
  -webkit-forced-color-adjust: none;
}

/* In the legend col-2 position (next to the shape) */
.ski-legend-social-badge {
  align-self: center;
}

/* Wrapper for social wallet in list-mode shape column (X badge + green circle) */
.ski-list-shape-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  flex-shrink: 0;
}
.ski-list-shape-group .ski-list-shape {
  margin-left: 0;
}
/* Smaller X in the list shape context */
.ski-list-shape-x {
  width: 22px;
  height: 22px;
  font-size: 0.95rem;
}

/* Social icon in legend col-4 — inline SVG replaces wallet img */
.ski-legend-social-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  forced-color-adjust: none;
  -webkit-forced-color-adjust: none;
}

.ski-detail-icon-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 8px;
}
.ski-detail-icon {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  transition: opacity 0.15s;
}
.ski-detail-icon-wrap:hover .ski-detail-icon,
.ski-detail-icon-wrap--activated .ski-detail-icon {
  opacity: 0;
}
.ski-detail-icon-overlay {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}
.ski-detail-icon-overlay-drop {
  width: 30px;
  height: 30px;
  /* Sui blue ~#4DA2FF */
  filter: brightness(0) saturate(100%) invert(58%) sepia(90%) saturate(400%) hue-rotate(185deg) brightness(105%);
}
.ski-detail-icon-wrap:hover .ski-detail-icon-overlay,
.ski-detail-icon-wrap--activated .ski-detail-icon-overlay {
  opacity: 1;
}
/* Activated + hover: swap blue drop for red X */
.ski-detail-icon-wrap--activated:hover .ski-detail-icon-overlay {
  opacity: 0;
}
.ski-detail-icon-revoke-overlay {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}
.ski-detail-icon-wrap--activated:hover .ski-detail-icon-revoke-overlay {
  opacity: 1;
}
/* On revoke-hover: hide all splash drops (primary pfp + secondary key rows) */
.ski-detail-icon-wrap--activated:hover .ski-detail-key-column .ski-key-pfp-splash-drop,
.ski-detail-icon-wrap--activated:hover .ski-detail-key-column .ski-key-pfp--blue .ski-key-pfp-drop,
.ski-detail-header:has(.ski-detail-icon-wrap--activated:hover) .ski-detail-active-pfp .ski-key-pfp-splash-drop,
.ski-detail-header:has(.ski-detail-icon-wrap--activated:hover) .ski-detail-active-pfp .ski-key-pfp--blue .ski-key-pfp-drop {
  opacity: 0;
}
.ski-detail-header:has(.ski-detail-icon-wrap--activated:hover) ~ .ski-detail-row .ski-key-pfp-splash-drop {
  opacity: 0;
}
/* Custom revoke tooltip */
.ski-revoke-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.75rem;
  color: #e2e8f0;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 4px;
}
.ski-revoke-tooltip-name {
  color: #4da2ff;
  font-weight: 600;
}
.ski-revoke-tooltip-drop {
  width: 13px;
  height: 13px;
  filter: brightness(0) saturate(100%) invert(58%) sepia(90%) saturate(400%) hue-rotate(185deg) brightness(105%);
}
.ski-detail-icon-wrap--activated:hover .ski-revoke-tooltip {
  opacity: 1;
}

.ski-detail-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: #e6ebf5;
}

.ski-detail-row {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-left: 12px;
}

.ski-detail-row.inline {
  flex-direction: row;
  align-items: baseline;
  gap: 6px;
}

.ski-detail-label {
  font-size: 0.58rem;
  font-weight: 600;
  color: #555d6e;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ski-detail-value {
  font-size: 0.66rem;
  color: #9ca7bb;
  word-break: break-word;
  line-height: 1.3;
}


/* Row that holds pfp indicator + name/addr text — centered under provider icon */
.ski-detail-active-text-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 38px;
}
.ski-detail-active-pfp {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ski-detail-active-pfp .ski-key-pfp {
  width: 32px !important;
  height: 32px !important;
}

.ski-detail-addr-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.ski-lockin-label {
  font-size: 0.58rem;
  color: #6b7894;
  text-transform: lowercase;
  letter-spacing: 0.06em;
  font-weight: 500;
  display: block;
}

.ski-detail-addr-text {
  font-size: 0.64rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #9ca7bb;
  line-height: 1.3;
  text-decoration: none;
  position: relative;
  top: 3px;
  white-space: nowrap;
}

.ski-detail-addr-text:hover {
  color: #c8d0e0;
  text-decoration: underline;
}

.ski-detail-addr.muted {
  font-size: 0.64rem;
  color: #555d6e;
  font-style: italic;
}

.ski-copy-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #9ca7bb;
  font-size: 0.6rem;
  padding: 1px 4px;
  cursor: pointer;
  line-height: 1;
  transition: all 0.15s;
  flex-shrink: 0;
}

.ski-copy-btn:hover {
  border-color: rgba(96, 165, 250, 0.5);
  color: #93c5fd;
}

.ski-detail-suins {
  font-size: 0.78rem;
  font-weight: 600;
  color: #93c5fd;
  text-decoration: none;
}

.ski-detail-suins:hover {
  text-decoration: underline;
}

.ski-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.ski-feature-tag {
  display: inline-block;
  font-size: 0.58rem;
  line-height: 1.2;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #93c5fd;
  text-decoration: none;
  transition: border-color 0.15s;
}

.ski-feature-tag:hover {
  border-color: rgba(96, 165, 250, 0.7);
}

.ski-feature-tag.legacy {
  background: rgba(234, 179, 8, 0.1);
  border-color: rgba(234, 179, 8, 0.3);
  color: #fde68a;
  text-decoration: line-through;
  text-decoration-color: rgba(234, 179, 8, 0.5);
}

.ski-feature-tag.legacy:hover {
  border-color: rgba(250, 204, 21, 0.65);
}

.ski-network-tag {
  display: inline-block;
  font-size: 0.58rem;
  line-height: 1.2;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #555d6e;
}

.ski-network-tag.active {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
  color: #86efac;
}

/* Gear toggle — inline in settings strip */
.ski-gear-row {
  display: flex;
  align-items: center;
}

.ski-gear-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  padding: 0;
  background: none;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 5px;
  color: #555d6e;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.ski-gear-btn:hover,
.ski-gear-btn.active {
  color: #93c5fd;
  border-color: rgba(147,197,253,0.3);
}

.ski-gear-sections {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding-left: 12px;
}

.ski-gear-sections[hidden] {
  display: none;
}

/* Collapsible sections: Networks / Features / Legacy */
.ski-collapsible-section {
  margin: 0;
  margin-left: -16px;
  margin-right: -16px;
  padding: 0 16px;
}

.ski-section-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  list-style: none;
  padding: 6px 0;
  user-select: none;
}

.ski-section-summary::-webkit-details-marker { display: none; }

.ski-section-summary::before {
  content: '\25B8';
  font-size: 0.6rem;
  color: #555d6e;
  flex-shrink: 0;
  transition: transform 0.15s;
}

.ski-collapsible-section[open] > .ski-section-summary::before {
  transform: rotate(90deg);
}

.ski-section-label {
  font-size: 0.58rem;
  font-weight: 600;
  color: #555d6e;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.ski-section-count {
  font-size: 0.55rem;
  font-weight: 700;
  color: #3d4558;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 0 4px;
  line-height: 1.5;
  flex-shrink: 0;
}

.ski-section-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.07);
}

.ski-collapsible-section > .ski-feature-list {
  padding-bottom: 8px;
}

.ski-no-wallets {
  padding: 8px 16px 24px;
  text-align: center;
}

.ski-no-wallets-msg {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e6ebf5;
  margin: 0 0 6px;
}

.ski-no-wallets-sub {
  font-size: 0.76rem;
  color: #555d6e;
  margin: 0;
}

.ski-modal-header {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  border-bottom: 1px solid rgba(160, 200, 240, 0.08);
  position: relative;
}

/* Brand column in header — right-aligned */
.ski-modal-header-brand {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 2px 3px 6px 12px;
  gap: 0;
}

/* Top row inside brand column: logo + titles */
.ski-modal-header-brand-top {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  overflow: visible;
}
#ski-modal-close {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: #9ca7bb;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
  border-radius: 4px;
  position: absolute;
  top: 2px;
  left: 2px;
  z-index: 5;
  transition: background 0.15s, color 0.15s;
}
#ski-modal-close:hover {
  background: #ef4444;
  color: #fff;
}

/* Splash button in brand column header — inline after tagline */
.ski-header-splash {
  position: absolute;
  right: 8px;
  top: 4px;
}
.ski-header-splash-drop {
  width: 28px;
  height: 28px;
  opacity: 0.7;
}
.ski-header-splash--on .ski-header-splash-drop {
  opacity: 1;
}
.ski-header-splash-days {
  font-size: 0.7rem;
  color: #64748b;
}
.ski-header-splash-drop-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline;
  vertical-align: middle;
}
.ski-header-splash-drop-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.ski-modal-header-left {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  overflow: visible;
}

.ski-modal-brand-link {
  display: flex;
  align-items: stretch;
  height: 100%;
  overflow: visible;
}

.ski-modal-logo {
  width: auto;
  height: calc(100% + 6px);
  flex-shrink: 0;
  transition: opacity 0.12s ease;
  margin-right: -1px;
  margin-bottom: -6px;
}

.ski-modal-logo:hover {
  opacity: 0.85;
}

.ski-modal-titles {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}

.ski-modal-title {
  color: #ffffff;
  font-size: 1.275rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.15;
  text-align: right;
  white-space: nowrap;
}

.ski-modal-tagline {
  color: #ffffff;
  font-size: 0.71rem;
  margin: 1px 0 0;
  line-height: 1.25;
  text-align: right;
}

/* Brand column: grid replaces flex so SVG + titles align precisely */
.ski-modal-header-brand .ski-modal-header-left {
  display: grid;
  grid-template-columns: auto auto;
  column-gap: 0;
  row-gap: 0;
  align-items: start;
  justify-content: end;
  align-self: stretch;
  width: 92%;
  margin-left: 8%;
  overflow: visible;
}
/* Logo row (wallet icon + SKI svg) spans both text rows */
.ski-modal-header-brand .ski-brand-logo-row {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: stretch;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  overflow: visible;
}
/* Dissolve the titles wrapper so h2 and p sit in separate grid rows */
.ski-modal-header-brand .ski-modal-titles {
  display: contents;
}
/* Title: row 1, 1px left-pad → 2px column-gap + 1px = 3px from SVG */
.ski-modal-header-brand .ski-modal-title {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  padding-left: 1px;
  position: relative;
  top: 0;
  font-size: 2.12rem;
}
/* Tagline: row 2, left-justified, anchored to bottom of brand area */
.ski-modal-header-brand .ski-modal-tagline {
  grid-column: 2;
  grid-row: 2;
  text-align: left;
  align-self: start;
  margin: 0;
  padding-bottom: 0;
  position: relative;
  left: 5px;
  top: 1px;
  font-size: 0.95rem;
  line-height: 1.2;
}

/* ─── Subname Creator (secondary key cards) ────────────────────────── */

/* Container: indented to align past the 24px pfp + 6px gap */
.ski-subname-col {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 4px;
  padding-left: 30px;
  width: 100%;
  box-sizing: border-box;
}

/* Text input for the subdomain label */
.ski-subname-input {
  background: rgba(15, 20, 35, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 5px;
  color: #e2e8f0;
  font-size: 11px;
  font-family: ui-monospace, monospace;
  padding: 3px 6px;
  width: 60px;
  min-width: 0;
  outline: none;
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.ski-subname-input:focus {
  border-color: rgba(34, 197, 94, 0.45);
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.12);
}

.ski-subname-input::placeholder {
  color: #374151;
  font-size: 10px;
}

/* Dot separator between label and parent domain */
.ski-subname-dot {
  color: #4b5563;
  font-size: 13px;
  flex-shrink: 0;
  line-height: 1;
  font-weight: 600;
}

/* Parent domain dropdown */
.ski-subname-select {
  background: rgba(15, 20, 35, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 5px;
  color: #94a3b8;
  font-size: 11px;
  padding: 3px 4px;
  flex: 1;
  min-width: 0;
  max-width: 88px;
  cursor: pointer;
  outline: none;
  transition: border-color 0.12s ease;
}

.ski-subname-select:focus {
  border-color: rgba(34, 197, 94, 0.35);
}

.ski-subname-select:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Green circle mint button with ski.svg icon */
.ski-subname-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: opacity 0.12s ease, transform 0.1s ease;
}

.ski-subname-btn:hover {
  opacity: 0.88;
  transform: scale(1.07);
}

.ski-subname-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
}

.ski-subname-btn-icon {
  width: 11px;
  height: 11px;
  filter: brightness(0) invert(1);
  display: block;
  flex-shrink: 0;
}


/* WaaP social provider badge — covers top-left quarter of wallet icon */
.ski-detail-provider-badge {
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  height: 55%;
  border-radius: 2px 0 2px 0;
  overflow: hidden;
  pointer-events: none;
  forced-color-adjust: none;
  -webkit-forced-color-adjust: none;
  z-index: 2;
}
.ski-detail-provider-badge svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* key-column overlaid in top-right of WaaP icon wrap */
.ski-detail-key-column--in-wrap {
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 55%;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  z-index: 1;
  pointer-events: auto;
  overflow: hidden;
  border-radius: 0 2px 0 2px;
}
.ski-detail-key-column--in-wrap .ski-key-pfp {
  width: 100% !important;
  height: 100% !important;
  margin-top: 0 !important;
  border-radius: 0 2px 0 2px;
}

/* Long-press lock: amber ring on locked row */
.ski-legend-row--locked td {
  box-shadow: inset 0 0 0 2px rgba(251, 191, 36, 0.55);
}
.ski-legend-row--locked td:first-child { border-radius: 6px 0 0 6px; }
.ski-legend-row--locked td:last-child  { border-radius: 0 6px 6px 0; }
.wk-dd-item--locked {
  box-shadow: inset 0 0 0 2px rgba(251, 191, 36, 0.55);
}

/* Prevent text selection during long-press */
.ski-legend-row,
.wk-dd-item {
  user-select: none;
  -webkit-user-select: none;
}

/* ── Balance cycler ─────────────────────────────────────────────────── */
/* Shared system for #ski-detail-balance-cycler and mountBalanceCycler() */

@keyframes ski-bal-row-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Any element with this class becomes a self-contained cycler */
.ski-balance-cycler {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  background: none;
  border: none;
  padding: 4px 6px;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: opacity 0.12s;
}
.ski-balance-cycler:hover  { opacity: 0.75; }
.ski-balance-cycler:active { opacity: 0.45; }

/* Row base */
.ski-header-bal-sui,
.ski-header-bal-usd {
  white-space: nowrap;
  animation: ski-bal-row-in 0.18s ease both;
}
.ski-header-bal-sui {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Primary row: large + bright */
.ski-header-bal-primary.ski-header-bal-sui,
.ski-header-bal-primary.ski-header-bal-usd {
  font-size: 1.05rem;
  font-weight: 600;
  color: #e2e8f0;
}
/* Secondary row: small + muted */
.ski-header-bal-secondary.ski-header-bal-sui,
.ski-header-bal-secondary.ski-header-bal-usd {
  font-size: 0.7rem;
  font-weight: 400;
  color: #64748b;
  animation-delay: 0.04s;
}

/* SUI drop icon */
.ski-header-bal-sui-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  forced-color-adjust: none;
  -webkit-forced-color-adjust: none;
}
.ski-header-bal-secondary .ski-header-bal-sui-icon {
  width: 11px;
  height: 11px;
}

/* Detail card instance: push to right edge */
#ski-detail-balance-cycler {
  margin-left: auto;
}

/* Active card slot in header — compact for single-column */
#ski-modal-detail .ski-detail-header {
  margin-bottom: 0;
}

/* Modal header balance column (mountBalanceCycler instance) */
.ski-modal-header-balance {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 16px;
  border-right: 1px solid rgba(160, 200, 240, 0.08);
  flex-shrink: 0;
  min-width: 80px;
}

/* SKI logo button + QR popup */
.ski-logo-btn-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

/* Brand pfp slot: hidden by default, shown in stacked layout over the ski logo */
.ski-brand-pfp {
  display: none;
  position: absolute;
  top: 0;
  left: 50%;
  width: 20px;
  height: 20px;
  z-index: 5;
  pointer-events: auto;
}
.ski-brand-pfp .ski-key-pfp {
  width: 100% !important;
  height: 100% !important;
  margin-top: 0 !important;
  border-radius: 2px;
}


/* Brand balance slot: hidden by default, shown in stacked layout over right half of ski svg */
#ski-brand-balance {
  display: none;
}
#ski-brand-balance .ski-header-bal-primary.ski-header-bal-sui,
#ski-brand-balance .ski-header-bal-primary.ski-header-bal-usd {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f1f5f9;
  line-height: 1.1;
}
#ski-brand-balance .ski-header-bal-primary .ski-header-bal-sui-icon {
  width: 20px;
  height: 20px;
}
#ski-brand-balance .ski-header-bal-secondary.ski-header-bal-sui,
#ski-brand-balance .ski-header-bal-secondary.ski-header-bal-usd {
  font-size: 0.75rem;
  font-weight: 400;
  color: #64748b;
}
.ski-logo-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: opacity 0.15s;
  width: 130px;
  height: 81px;
  overflow: hidden;
  flex-shrink: 0;
  margin-left: 0;
  position: relative;
  left: 14px;
  z-index: 1;
}
.ski-logo-btn > a {
  display: block;
  width: 100%;
  height: 100%;
}
.ski-logo-btn svg {
  width: 100%;
  height: 100%;
}
.ski-logo-btn:hover  { opacity: 0.8; }
.ski-logo-btn:active { opacity: 0.55; }

.ski-qr-popup {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: #0d1117;
  border: 1px solid rgba(160, 200, 240, 0.18);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.65);
  animation: ski-modal-in 0.15s ease;
}
.ski-qr-popup[hidden] { display: none; }
.ski-qr-img {
  width: 148px;
  height: 148px;
  border-radius: 6px;
  display: block;
}
.ski-qr-url {
  font-size: 0.78rem;
  color: #60a5fa;
  letter-spacing: 0.03em;
}

/* ── Shape fill: outline-only default, color fill on hover/active ─── */

/* Legend row shapes — default: transparent fill, outline only */
.ski-legend-row .ski-list-shape--diamond polygon {
  fill: transparent;
  transition: fill 0.15s;
}
.ski-legend-row .ski-list-shape--green circle {
  fill: transparent;
  transition: fill 0.15s;
}

/* Legend row shapes — hover/active: filled with shape color */
.ski-legend-row:hover .ski-list-shape--diamond polygon,
.ski-legend-row.active .ski-list-shape--diamond polygon {
  fill: #111111;
}
.ski-legend-row:hover .ski-list-shape--blue,
.ski-legend-row.active .ski-list-shape--blue {
  background: #4da2ff;
}
.ski-legend-row:hover .ski-list-shape--green circle,
.ski-legend-row.active .ski-list-shape--green circle {
  fill: #22c55e;
}

/* Key PFP shapes — default fills */
.ski-key-pfp--diamond polygon {
  fill: #000000;
  transition: fill 0.15s;
}
.ski-key-pfp--green-circle circle {
  fill: #22c55e;
  transition: fill 0.15s;
}

/* Key PFP shapes — hover over the button or parent detail header: filled */
.ski-key-pfp--diamond:hover polygon,
.ski-detail-header--keyed:hover .ski-key-pfp--diamond polygon {
  fill: #111111;
}
.ski-key-pfp--blue:hover,
.ski-detail-header--keyed:hover .ski-key-pfp--blue {
  background: #4da2ff;
}
.ski-key-pfp--green-circle:hover circle,
.ski-detail-header--keyed:hover .ski-key-pfp--green-circle circle {
  fill: #22c55e;
}

/* WaaP icon in brand column header — sits behind the ski fin */
.ski-header-waap-icon-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 40px;
  border-radius: 7px;
  overflow: hidden;
  z-index: 0;
}
.ski-header-waap-icon {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 7px;
}

/* Small blue square inline with address in WaaP connected-key header */
.ski-connected-key-addr-row {
  margin-top: auto;
}
.ski-connected-key-addr-row .ski-detail-key-column--small {
  width: 28px;
  height: 28px;
}
.ski-connected-key-addr-row .ski-detail-key-column--small .ski-key-pfp {
  width: 28px !important;
  height: 28px !important;
  margin-top: 0 !important;
  border-radius: 5px;
}

/* ── SuiNS name QR popup (key detail card) ──────────────────────────── */

.ski-suins-qr-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.ski-suins-qr-popup {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  background: #0d1117;
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: 10px;
  padding: 8px;
  width: 128px;
  height: 128px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.65);
  pointer-events: none;
}

.ski-suins-qr-popup svg {
  width: 100%;
  height: 100%;
  border-radius: 4px;
  display: block;
}

.ski-suins-qr-popup[hidden] { display: none; }
