:root {
  color-scheme: dark;
  --bg: #111216;
  --panel: #18191d;
  --panel-raised: #202126;
  --border: #34363e;
  --text: #e8e8eb;
  --muted: #b3b4bd;
  --dim: #a2a3ad;
  --green: #45df79;
  --yellow: #e4a54c;
  --red: #ff626d;
  font-family:
    ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
  font-stretch: normal;
  font-feature-settings: normal;
  font-variation-settings: normal;
}

.rank-value { color: var(--rank-color) !important; }

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--bg);
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 20;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  background: var(--text);
  color: var(--panel);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus,
.skip-link:focus-visible {
  width: auto;
  height: auto;
  padding: 8px 12px;
  overflow: visible;
  clip: auto;
  clip-path: none;
  border-radius: 7px;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(1060px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header-start {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.site-brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-brand img {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 7px;
  image-rendering: pixelated;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 10px 0;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  color: var(--muted);
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.lang-switch a[aria-current="true"] {
  color: var(--text);
  background: var(--panel);
}

.icon {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  display: block;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--panel);
}

.site-nav a[aria-current="page"] {
  color: var(--text);
  background: var(--panel);
}

.shell,
.gallery-shell,
.setup-shell {
  width: min(1060px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0;
}

.gallery-shell {
  width: min(900px, calc(100% - 40px));
}

.gallery-header {
  margin-bottom: 28px;
}

.gallery-header h1 {
  margin: 12px 0 10px;
}

.back-link {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: none;
}

.gallery-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
}

.back-link:hover {
  color: var(--text);
}

.hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.eyebrow,
.card-label,
.stat-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.card-label .icon {
  width: 0.9rem;
  height: 0.9rem;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin-top: 8px;
}

body.is-tracking .hero {
  margin-bottom: 16px;
}

body.is-tracking .hero h1 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  margin-bottom: 0;
}

body.is-tracking .field-hint {
  display: none;
}

h2 {
  margin: 7px 0 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 510px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

.api-pill,
.badge,
.count,
.country {
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.api-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--panel);
}

.pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
}

.search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0;
}

.search-bar {
  display: block;
  margin-bottom: 14px;
}

.search-bar input,
.gallery-search input {
  flex: 1;
  width: auto;
}

.widget-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.widget-link:hover,
.mock-link:hover {
  background: var(--panel-raised);
}

.mock-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.gallery-search {
  display: block;
  margin-bottom: 16px;
}

.preset-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -12px 0 24px;
}

.preset-label {
  color: var(--dim);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.preset-button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 10px;
  border-color: var(--border);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.76rem;
}

.preset-button[aria-pressed="true"] {
  border-color: var(--text);
  background: var(--panel-raised);
  color: var(--text);
}

.preset-avatar {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  border-radius: 3px;
  background: var(--panel-raised);
  image-rendering: pixelated;
  object-fit: cover;
}

.preset-button:hover {
  border-color: var(--muted);
  background: var(--panel-raised);
  color: var(--text);
}

input,
button {
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font: inherit;
}

input {
  width: min(440px, 100%);
  min-width: 0;
  padding: 0 15px;
  outline: none;
  background: var(--panel);
  color: var(--text);
}

input:focus,
input:focus-visible {
  outline: none;
  border-color: var(--text);
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 19px;
  border-color: var(--text);
  background: var(--text);
  color: var(--panel);
  cursor: pointer;
  font-weight: 800;
}

button:hover {
  background: #ffffff;
}

button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.notice {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.86rem;
}

.notice.error {
  color: var(--red);
}

.notice.success {
  color: var(--green);
}

.inline-action {
  min-height: 30px;
  flex: 0 0 auto;
  padding: 0 10px;
  border-color: var(--border);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.75rem;
}

.inline-action:hover {
  background: var(--panel-raised);
  color: var(--text);
}

.dashboard {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--panel);
  overflow: hidden;
}

.live-card,
.profile-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.live-card .card-content,
.profile-card .stats-grid {
  flex: 1;
}

.live-card .card-footer {
  margin-top: auto;
}

.live-idle {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 120px;
  color: var(--muted);
  text-align: center;
}

.live-idle-icon {
  width: 2rem;
  height: 2rem;
  opacity: 0.4;
}

.live-idle p {
  margin: 0;
  max-width: 22ch;
  line-height: 1.45;
}

.rank-icon {
  display: inline-block;
  width: 1.40625rem;
  height: 1.40625rem;
  flex: 0 0 auto;
  background-repeat: no-repeat;
  background-size: 8.4375rem 4.21875rem;
  image-rendering: pixelated;
  vertical-align: middle;
}

#profile-rank {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}

#profile-rank .rank-icon {
  position: relative;
  top: 0;
}

#profile-rank .rank-name {
  min-width: 0;
  overflow: hidden;
  font-size: 1.05rem;
  text-overflow: ellipsis;
}

#profile-rank .rank-place {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.history-card {
  grid-column: 1 / -1;
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}

.card-heading > div {
  min-width: 0;
}

.card-heading-meta {
  display: flex;
  min-width: max-content;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.card-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.card-status.stale {
  border-color: #e4a54c66;
  background: #e4a54c14;
  color: var(--yellow);
}

.card-status.error {
  border-color: #f47f8666;
  background: #f47f8614;
  color: var(--red);
}

.count {
  display: block;
  max-width: 45%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge,
.country {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
}

.count { padding: 6px 9px; }
.card-heading-meta .count { max-width: none; }

.badge.live {
  border-color: #6ee7a066;
  background: #6ee7a014;
  color: var(--green);
}

.badge.online {
  border-color: #f4cb7066;
  background: #f4cb7014;
  color: var(--yellow);
}

.badge.error {
  border-color: #f47f8666;
  background: #f47f8614;
  color: var(--red);
}

.badge.neutral,
.count,
.country {
  background: #ffffff06;
  color: var(--muted);
}

.card-content {
  padding: 22px;
}

.muted {
  color: var(--muted);
}

.live-summary {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 22px;
}

.live-time {
  color: var(--text);
  font-size: clamp(2rem, 5vw, 3rem);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 1;
}

.live-state {
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.detail {
  padding: 11px 12px;
  border-radius: 9px;
  background: var(--panel-raised);
}

.detail-label {
  display: block;
  margin-bottom: 4px;
  color: var(--dim);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.detail-value {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 22px;
  border-top: 1px solid var(--border);
  color: var(--dim);
  font-size: 0.73rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
}

.stat {
  min-width: 0;
  min-height: 70px;
  padding: 12px 16px;
  background: var(--panel);
}

.stat strong {
  display: block;
  margin-top: 7px;
  overflow: hidden;
  color: var(--text);
  font-size: 1.25rem;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.uuid {
  font-size: 0.8rem !important;
  font-weight: 500 !important;
}

.history-list {
  padding: 8px 22px 15px;
}

.history-row {
  display: grid;
  font-variant-numeric: tabular-nums;
  grid-template-columns: minmax(0, 1fr) 72px 68px 84px;
  align-items: center;
  gap: 14px;
  min-height: 52px;
  border-bottom: 1px solid #ffffff0b;
  font-size: 0.85rem;
}

.history-row:last-child {
  border-bottom: 0;
}

.history-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 5px 10px;
  min-width: 0;
}

.result {
  font-weight: 800;
}

.history-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22px;
  align-items: center;
  gap: 6px;
  text-align: right;
}

.result-mark {
  display: grid;
  grid-column: 2;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 3px;
  background: var(--muted);
  color: var(--panel);
  font-size: 0.75rem;
}

.win .result-mark { background: var(--green); }
.loss .result-mark { background: var(--red); }
.history-forfeit { color: var(--muted); font-size: 0.65rem; }
.history-elo { font-size: 0.75rem; }

.history-opponent,
.history-date {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.history-opponent {
  color: var(--text);
  font-weight: 700;
}

.history-date {
  color: var(--muted);
  font-size: 0.76rem;
}

.seed-info {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.seed-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.71rem;
  white-space: nowrap;
}

.seed-icon {
  position: relative;
  display: inline-grid;
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  place-items: center;
  overflow: hidden;
  border-radius: 4px;
  background: #556b46;
  color: #e7f1d4;
  font-size: 0.78rem;
}

.seed-icon.nether {
  background: #8d403d;
  color: #ffd1bd;
}

.seed-icon-image {
  display: block;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  object-fit: contain;
  image-rendering: pixelated;
}

.seed-icon-fallback {
  grid-area: 1 / 1;
  width: 21px;
  height: 21px;
}

.seed-icon-fallback {
  display: block;
  font-size: 0;
  background: linear-gradient(#8bb9e8 0 38%, #79a54b 38% 68%, #886542 68%);
}

.seed-icon-fallback::after {
  display: block;
  width: 6px;
  height: 7px;
  margin: 8px 0 0 8px;
  background: #9f7045;
  box-shadow: 4px -3px #d49b56;
  content: "";
}

.seed-icon.nether .seed-icon-fallback {
  background:
    radial-gradient(circle at 5px 5px, #dc9960 0 2px, transparent 2.5px),
    radial-gradient(circle at 16px 14px, #b9674b 0 2px, transparent 2.5px),
    #793c3a;
}

.seed-icon.nether .seed-icon-fallback::after {
  width: 8px;
  height: 6px;
  margin: 10px 0 0 6px;
  background: #3c3033;
  box-shadow: 5px -3px #5e4848;
}


.seed-badge b {
  margin-right: 4px;
  color: var(--dim);
  font-size: 0.6rem;
  letter-spacing: 0.05em;
}

.history-completion {
  display: flex;
  font-variant-numeric: tabular-nums;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.history-completion strong {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.history-completion span {
  color: var(--dim);
  font-size: 0.68rem;
}

.result.win {
  color: var(--green);
}

.result.loss {
  color: var(--red);
}

.result.draw {
  color: var(--muted);
}

.result.unknown {
  color: var(--muted);
}

.history-category {
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.widget-gallery-card {
  overflow: hidden;
}

.api-pill.connected .pulse { background: var(--green); }
.api-pill.error .pulse { background: var(--red); }
.api-pill.partial .pulse { background: var(--yellow); }
#updated.stale { color: var(--yellow); }

.gallery-empty { color: var(--muted); font-size: 0.9rem; }

.widget-preview {
  display: flex;
  min-height: 285px;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background:
    linear-gradient(45deg, #ffffff05 25%, transparent 25%),
    linear-gradient(-45deg, #ffffff05 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #ffffff05 75%),
    linear-gradient(-45deg, transparent 75%, #ffffff05 75%);
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  background-size: 16px 16px;
}

.preview-stage {
  display: flex;
  justify-content: center;
  width: 100%;
  overflow: hidden;
}

.preview-viewport {
  width: 380px;
  transform-origin: top center;
}

.widget-preview iframe {
  display: block;
  width: 380px;
  max-width: 380px;
  height: 360px;
  border: 0;
  background: transparent;
}

.widget-url-row {
  padding: 17px 22px 20px;
  border-top: 1px solid var(--border);
}

.widget-url-row > label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.widget-url-controls {
  display: flex;
  gap: 8px;
}

.widget-url-controls input {
  min-width: 0;
  flex: 1;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-raised);
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
}

.widget-url-controls button {
  min-height: 40px;
  padding: 0 13px;
  font-size: 0.8rem;
}

.copy-status {
  margin: 9px 0 0;
  color: var(--dim);
  font-size: 0.75rem;
}

.disclaimer {
  margin: 23px 0 14px;
  color: var(--dim);
  font-size: 0.76rem;
  line-height: 1.5;
}

.debug-panel {
  color: var(--dim);
  font-size: 0.76rem;
}

.debug-panel summary {
  cursor: pointer;
}

pre {
  max-height: 260px;
  padding: 14px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #090c11;
  color: var(--muted);
  font-size: 0.7rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.field {
  display: grid;
  gap: 8px;
  width: 100%;
}

.field label {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
}

.field-hint {
  margin: 0;
  color: var(--dim);
  font-size: 0.78rem;
  line-height: 1.45;
}

.field-error {
  margin: 0;
  color: var(--red);
  font-size: 0.82rem;
}

.welcome {
  max-width: 540px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.recent-players {
  margin: 0 0 18px;
}

.recent-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.secondary-button {
  min-height: 40px;
  padding: 0 12px;
  border-color: var(--border);
  background: var(--panel);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.text-button {
  min-height: 28px;
  width: auto;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.text-button:hover,
.secondary-button:hover {
  background: var(--panel-raised);
  color: var(--text);
}

.text-button:hover {
  background: transparent;
}

.player-actions {
  margin: 0 0 18px;
}

.setup-step {
  margin-bottom: 28px;
}

.setup-step h2,
.step-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 6px 0 10px;
}

.obs-size {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.step-copy {
  max-width: 620px;
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.variant-row {
  margin: 0;
  gap: 10px;
}

.variant-button {
  flex-direction: column;
  align-items: flex-start;
  min-height: 64px;
  padding: 10px 14px;
  gap: 2px;
}

.variant-button strong {
  font-size: 0.9rem;
}

.variant-button span {
  color: var(--dim);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.setup-header {
  margin-bottom: 24px;
}

.setup-card {
  margin-bottom: 14px;
}

.setup-list,
.setup-copy {
  margin: 0;
  padding: 18px 22px 22px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.setup-list {
  padding-left: 42px;
}

.setup-list li + li,
.setup-copy p + p {
  margin-top: 10px;
}

.setup-copy a,
.disclaimer a {
  color: var(--text);
}

@media (max-width: 720px) {
  .shell,
  .gallery-shell,
  .setup-shell,
  .site-header-inner {
    width: min(100% - 24px, 600px);
    padding-top: 24px;
  }

  .site-header-inner {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .hero {
    flex-direction: column;
    margin-bottom: 25px;
  }

  .search-row,
  .gallery-search,
  .search-bar {
    flex-direction: column;
    align-items: stretch;
  }

  input,
  button:not(.text-button):not(.preset-button):not(.inline-action):not(.variant-button) {
    width: 100%;
  }

  .widget-link,
  .mock-link {
    justify-content: center;
  }

  .dashboard {
    display: flex;
    flex-direction: column;
  }

  .history-row {
    grid-template-columns: minmax(0, 1fr) 60px 60px 60px;
    gap: 6px;
    padding: 8px 0;
  }

  .seed-info {
    gap: 4px;
  }

  .history-list { padding: 8px 10px; }
  .history-elo { font-size: 0.7rem; }
  .widget-preview { padding: 12px; }
  .widget-url-controls { flex-direction: column; }
  .search-bar input { flex: auto; }
  .card-footer { flex-wrap: wrap; gap: 6px; }
  .notice { align-items: flex-start; }
  .inline-action { width: auto; }
  .card-heading { gap: 10px; padding: 14px; }
  .card-heading h2 { overflow-wrap: anywhere; }
  .preset-button { width: auto; }
  .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .seed-badge b {
    display: none;
  }

  .history-row > :last-child {
    justify-self: end;
  }
}
