/* src/components/NodeDashboard.css */
.dash {
  max-width: 720px;
  margin: 0 auto;
  padding: 1rem 0.9rem 2.5rem;
  width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
}
.dash__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.dash__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  flex: 1;
}
.dash__logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}
.dash__header h1 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.25;
}
.dash__header h1::after {
  content: "";
  display: block;
  width: 2.25rem;
  height: 3px;
  margin-top: 0.35rem;
  border-radius: 2px;
  background: var(--brand-yellow);
}
.dash__subtitle {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}
.dash__badge {
  flex-shrink: 0;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  white-space: nowrap;
}
.dash__badge.is-ok {
  color: var(--ok);
  border-color: var(--accent-dim);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent-glow);
}
.dash__badge.is-bad {
  color: var(--danger);
}
.pool-signer__controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.pool-signer--collapsed {
  padding-bottom: 0.7rem;
}
.pool-signer--collapsed .pool-signer__status {
  margin-top: 0.45rem;
}
.pool-signer__seats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
  margin: 0.55rem 0 0;
}
.pool-signer__seat {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0.45rem 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}
.pool-signer__seat.is-held {
  border-color: rgba(253, 185, 19, 0.35);
}
.pool-signer__seat.is-you {
  border-color: rgba(253, 185, 19, 0.85);
  background: rgba(253, 185, 19, 0.08);
}
.pool-signer__seat-k {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.pool-signer__seat strong {
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pool-signer__seat span {
  font-size: 0.72rem;
  color: var(--muted);
}
.pool-signer__lead,
.pool-signer__meta {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}
.pool-signer__meta.is-warn {
  color: var(--warn, #e8b84a);
}
.pool-signer__rotate {
  margin: 0.4rem 0 0;
  padding: 0.28rem 0.45rem;
  border-radius: 6px;
  background: rgba(253, 185, 19, 0.1);
  color: var(--text, inherit);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.35;
  word-break: break-word;
}
.pool-signer__slots {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  font-size: 0.75rem;
  color: var(--muted);
}
.pool-signer__slots li {
  padding: 0.15rem 0;
}
.pool-signer__slots li.is-me {
  color: var(--brand-yellow, #fdb913);
  font-weight: 600;
}
.pool-signer__history {
  margin: 0.55rem 0 0;
}
.pool-signer__history summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.75rem;
  user-select: none;
}
.pool-signer__history summary::-webkit-details-marker {
  display: none;
}
.pool-signer__history summary::before {
  content: "";
  width: 0.35rem;
  height: 0.35rem;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  opacity: 0.7;
  flex-shrink: 0;
}
.pool-signer__history[open] summary::before {
  transform: rotate(45deg);
  margin-top: -0.15rem;
}
.pool-signer__history summary span {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  opacity: 0.8;
}
.pool-signer__slots--history {
  margin-top: 0.25rem;
  opacity: 0.75;
}
.pool-signer .btn.is-on {
  color: var(--brand-yellow, #fdb913);
  border-color: rgba(253, 185, 19, 0.55);
}
.pool-signer__status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.45rem 0 0.15rem;
  font-size: 0.82rem;
}
.pool-signer__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #6b7c86;
  flex-shrink: 0;
}
.pool-signer__status.is-signing .pool-signer__dot {
  background: #fdb913;
  box-shadow: 0 0 0 4px rgba(253, 185, 19, 0.22);
  animation: pool-signer-pulse 1s ease-in-out infinite;
}
.pool-signer__status.is-idle .pool-signer__dot {
  background: #3dcea8;
}
.pool-signer__status.is-ok .pool-signer__dot {
  background: #3dce7a;
}
.pool-signer__tx {
  font-size: 0.72rem;
  word-break: break-all;
}
.pool-signer__steps {
  list-style: none;
  margin: 0.5rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.3rem;
}
.pool-signer__steps li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 0.32rem 0.45rem;
  background: rgba(255, 255, 255, 0.03);
  min-height: 2rem;
}
.pool-signer__steps li span {
  display: inline-flex;
  width: 1.15rem;
  height: 1.15rem;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}
.pool-signer__steps li.is-done {
  color: #102016;
  background: #3dce7a;
  border-color: #3dce7a;
}
.pool-signer__steps li.is-done span {
  background: #102016;
  color: #3dce7a;
}
.pool-signer__steps li.is-wait span {
  background: rgba(253, 185, 19, 0.22);
  color: #fdb913;
}
.pool-signer__status.is-err .pool-signer__dot {
  background: #f25c05;
}
.pool-signer__count {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.75rem;
}
.pool-signer__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}
.pool-signer__import {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.45rem;
}
.pool-signer__import textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: ui-monospace, monospace;
  font-size: 0.7rem;
  background: var(--bg-elevated, #12181c);
  color: inherit;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.4rem;
}
@keyframes pool-signer-pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.25);
    opacity: 0.7;
  }
}
.dash__badge.is-warn {
  color: var(--warn);
  border-color: rgba(255, 210, 122, 0.4);
}
.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.panel h2 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
.panel__head h2 {
  margin: 0;
}
.panel__count {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  max-width: 55%;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
}
.ext-download__lead {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}
.ext-download__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.75rem;
}
.ext-download__actions .btn {
  text-decoration: none;
}
.ext-download__steps {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}
.ext-download__steps code {
  font-size: 0.78em;
  color: var(--text);
}
.hero {
  text-align: center;
  padding: 1.25rem 1rem 1.15rem;
  border-color: rgba(253, 185, 19, 0.28);
  background:
    linear-gradient(
      180deg,
      rgba(253, 185, 19, 0.08) 0%,
      transparent 55%),
    var(--bg-panel);
}
.hero__status {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
  word-break: break-word;
}
.hero__hint {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: center;
  align-items: stretch;
}
.hero__progress {
  width: 100%;
  margin-top: 0.75rem;
  height: 0.45rem;
  border-radius: 999px;
  overflow: hidden;
  accent-color: var(--brand-yellow);
}
.btn--start {
  flex: 1 1 180px;
  max-width: 280px;
  padding: 0.85rem 1.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 10px;
  background:
    linear-gradient(
      180deg,
      var(--brand-yellow) 0%,
      var(--brand-yellow-hover) 100%);
  border: 1px solid var(--brand-yellow-dim);
  color: var(--brand-black);
  box-shadow: 0 4px 18px var(--accent-glow);
}
.btn--start:hover:not(:disabled) {
  background:
    linear-gradient(
      180deg,
      #ffc93a 0%,
      var(--brand-yellow) 100%);
}
.btn--start:disabled {
  background: var(--bg-elevated);
  border-color: var(--border);
  color: var(--muted);
  box-shadow: none;
}
.btn--start.is-running {
  background: var(--accent-soft);
  border-color: var(--accent-dim);
  color: var(--accent);
  cursor: default;
}
.btn--stop {
  flex: 0 1 140px;
  min-width: 7.5rem;
  padding: 0.85rem 1.1rem;
  font-size: 1rem;
  font-weight: 650;
  border-radius: 10px;
  background: transparent;
  border: 1px solid rgba(255, 123, 123, 0.5);
  color: var(--danger);
}
.btn--stop:hover:not(:disabled) {
  background: rgba(255, 123, 123, 0.1);
  border-color: var(--danger);
}
.btn--stop:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.snapshot {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}
@media (min-width: 560px) {
  .snapshot {
    grid-template-columns: repeat(4, 1fr);
  }
}
.snapshot__card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.5rem;
  text-align: center;
  min-width: 0;
  box-shadow: var(--shadow);
  border-top: 2px solid var(--brand-yellow);
}
.snapshot__label {
  display: block;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.snapshot__value {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.snapshot__sub {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.68rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash__ok {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--accent-dim);
  background: var(--accent-soft);
  color: var(--ok);
  font-size: 0.86rem;
  line-height: 1.45;
  word-break: break-word;
}
.dash__error {
  padding: 0.65rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 123, 123, 0.45);
  background: rgba(255, 123, 123, 0.08);
  color: var(--danger);
  font-size: 0.86rem;
  line-height: 1.45;
  word-break: break-word;
}
.dash__error + .dash__error,
.dash__ok + .dash__error,
.hero + .dash__error {
  margin-top: 0.75rem;
}
.dash__checklist {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  color: var(--text);
  font-size: 0.84rem;
}
.dash__checklist li {
  margin: 0.3rem 0;
}
.list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 340px;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}
.list__empty {
  margin: 0;
  padding: 0.85rem 0.5rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.88rem;
}
.list-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  min-width: 0;
}
.list-item__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}
.list-item__main {
  font-size: 0.88rem;
  font-weight: 600;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list-item__meta {
  flex-shrink: 0;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.list-item__addr {
  margin-top: 0.25rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}
.list-item__amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  margin-top: 0.35rem;
  font-size: 0.82rem;
}
.list-item__amounts span {
  color: var(--text);
}
.list-item__amounts .muted {
  color: var(--muted);
  font-size: 0.75rem;
}
.tag {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 600;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.tag--in {
  color: var(--brand-black);
  border-color: var(--accent-dim);
  background: var(--brand-yellow);
}
.tag--out {
  color: var(--warn);
  border-color: rgba(255, 210, 122, 0.35);
}
.advanced {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-panel);
  margin-bottom: 0.85rem;
  overflow: hidden;
}
.advanced[open] {
  border-color: rgba(253, 185, 19, 0.35);
}
.advanced > summary {
  cursor: pointer;
  padding: 0.85rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
  list-style: none;
  user-select: none;
  color: var(--text);
}
.advanced > summary::-webkit-details-marker {
  display: none;
}
.advanced > summary::before {
  content: "\25b8";
  display: inline-block;
  margin-right: 0.45rem;
  color: var(--muted);
  transition: transform 0.15s;
}
.advanced[open] > summary::before {
  transform: rotate(90deg);
}
.advanced > summary .advanced__hint {
  display: block;
  margin-top: 0.2rem;
  margin-left: 1.1rem;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--muted);
}
.advanced__body {
  padding: 0 1rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}
.advanced__section h3 {
  margin: 0.85rem 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.advanced__section:first-child h3 {
  margin-top: 0.85rem;
}
.dash__help {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.85rem;
  background: var(--bg-elevated);
  font-size: 0.84rem;
  color: var(--muted);
  min-width: 0;
}
.dash__help summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 600;
}
.dash__help[open] summary {
  margin-bottom: 0.5rem;
}
.checks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem;
}
.checks-grid .stat {
  min-width: 0;
}
.status-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}
.status-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}
.status-card .label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.status-card > span:not(.label) {
  word-break: break-word;
  font-size: 0.85rem;
}
.stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.stat__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.stat__value {
  font-size: 0.88rem;
  font-weight: 600;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.chain-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
}
.controls__custom {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}
.controls__custom input {
  width: 100%;
  min-width: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  box-sizing: border-box;
}
.controls__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.controls__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  font-size: 0.8rem;
  min-width: 0;
}
.controls__meta .mono {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  display: block;
}
.btn {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
  font-size: 0.85rem;
  font-weight: 500;
}
.btn:hover:not(:disabled) {
  background: #2c2728;
  border-color: var(--accent-dim);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.btn--active {
  background: var(--accent-soft);
  border-color: var(--accent-dim);
  color: var(--accent);
}
.btn--active:disabled {
  color: var(--muted);
  border-color: var(--border);
  background: var(--bg-elevated);
}
.btn--ghost {
  background: transparent;
}
.btn--danger-ghost {
  background: transparent;
  border-color: rgba(255, 123, 123, 0.35);
  color: var(--danger);
}
.console {
  width: 100%;
  height: 420px;
  min-height: 200px;
  max-height: 70vh;
  resize: vertical;
  background: #100e0f;
  color: #f5d57a;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.4;
  box-sizing: border-box;
  overflow: auto;
  white-space: pre;
}
.console:focus {
  outline: 1px solid var(--accent-dim);
  outline-offset: 0;
}
.dash__footer {
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}
.dash__footer code {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.74rem;
  word-break: break-all;
}
.mono {
  font-family: var(--mono);
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.78rem;
}
.chain-height {
  color: var(--accent);
  font-weight: 700;
}
@media (min-width: 560px) {
  .dash {
    padding: 1.25rem 1.1rem 3rem;
  }
  .dash__header h1 {
    font-size: 1.3rem;
  }
  .snapshot__value {
    font-size: 1.35rem;
  }
  .status-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .chain-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .checks-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .controls__custom {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .controls__custom input {
    flex: 1 1 200px;
    width: auto;
  }
  .btn--start {
    width: auto;
    min-width: 200px;
  }
  .btn--stop {
    min-width: 8rem;
  }
}
@media (min-width: 840px) {
  .dash {
    max-width: 900px;
  }
  .lists-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }
  .lists-row > .panel {
    margin-bottom: 0.85rem;
  }
}

/* scripts/extension-theme.css */
:root {
  --brand-yellow: #fdb913;
  --brand-yellow-hover: #e79300;
  --brand-yellow-dim: #c48f0e;
  --brand-black: #231f20;
  --brand-offwhite: #f8f8f9;
  --brand-white: #ffffff;
  --brand-gray: #e9e9e9;
  --bg: #141112;
  --bg-elevated: #1c191a;
  --bg-panel: #221e1f;
  --border: #3a3435;
  --text: var(--brand-offwhite);
  --muted: #9a9192;
  --accent: var(--brand-yellow);
  --accent-dim: var(--brand-yellow-dim);
  --accent-soft: rgba(253, 185, 19, 0.12);
  --accent-glow: rgba(253, 185, 19, 0.28);
  --danger: #ff7b7b;
  --warn: #ffd27a;
  --ok: var(--brand-yellow);
  --mono:
    ui-monospace,
    "SF Mono",
    Menlo,
    Consolas,
    monospace;
  --sans:
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  --radius: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.45;
}
#root {
  min-height: 100vh;
}
a {
  color: var(--accent);
}
button,
input,
select,
textarea {
  font: inherit;
}
html.extension-popup,
html.extension-popup body {
  width: 380px;
  min-width: 380px;
  max-width: 380px;
  height: 600px;
  max-height: 600px;
  overflow: hidden;
  min-height: 0;
}
html.extension-popup #root {
  height: 600px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
html.extension-popup .dash {
  max-width: none;
  padding: 0.75rem 0.75rem 1.25rem;
}
html.extension-popup .dash__header {
  flex-wrap: wrap;
  gap: 0.5rem;
}
html.extension-popup .dash__header h1 {
  font-size: 1rem;
}
html.extension-popup .dash__logo {
  width: 36px;
  height: 36px;
}
html.extension-popup .dash__subtitle {
  font-size: 0.72rem;
}
html.extension-popup .hero__actions {
  flex-wrap: wrap;
}
html.extension-popup .ext-popup-banner {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius);
  border: 1px solid rgba(253, 185, 19, 0.35);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.75rem;
  line-height: 1.4;
}
html.extension-popup .ext-popup-banner strong {
  color: var(--accent);
}
html.extension-popup .ext-popup-toolbar {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
html.extension-popup .ext-popup-toolbar .btn {
  flex: 1 1 auto;
  font-size: 0.78rem;
  padding: 0.4rem 0.55rem;
}
html.extension-sidepanel,
html.extension-sidepanel body {
  width: 100%;
  min-width: 0;
  max-width: none;
  height: 100%;
  min-height: 100%;
  max-height: none;
  overflow: hidden;
}
html.extension-sidepanel #root {
  height: 100vh;
  min-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
html.extension-sidepanel .dash {
  max-width: none;
  padding: 0.85rem 0.85rem 1.5rem;
}
html.extension-sidepanel .dash__header h1 {
  font-size: 1.05rem;
}
html.extension-sidepanel .ext-popup-banner {
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius);
  border: 1px solid rgba(253, 185, 19, 0.35);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.75rem;
  line-height: 1.4;
}
html.extension-sidepanel .ext-popup-banner strong {
  color: var(--accent);
}
html.extension-sidepanel .ext-popup-toolbar {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
html.extension-sidepanel .ext-popup-toolbar .btn {
  flex: 1 1 auto;
  font-size: 0.8rem;
  padding: 0.45rem 0.6rem;
}
