:root {
  --bg: #e8ebf0;
  --panel: #ffffff;
  --line: #ccd2dc;
  --ink: #1e2430;
  --muted: #6a7385;
  box-sizing: border-box;
}

*, *::before, *::after { box-sizing: inherit; }

html { background: var(--bg); }

body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  line-height: 1.5;
}

.top {
  max-width: 880px;
  margin: 0 auto;
  padding: 28px 20px 0;
}

.top-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}

.wallet {
  font-weight: 700;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 2px 14px;
  white-space: nowrap;
}

h1 {
  margin: 0 0 16px;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  margin: 32px 0 12px;
  font-size: 1.1rem;
  font-weight: 700;
}

.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 2px solid var(--ink);
}

.tabs button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  padding: 10px 18px;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
}

.tabs button:hover { color: var(--ink); }

.tabs button.active {
  background: var(--ink);
  color: #fff;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid #3d7bff;
  outline-offset: 2px;
}

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 20px 60px;
}

.tab { display: none; }
.tab.active { display: block; }

.muted { color: var(--muted); margin: 8px 0; }

button.primary {
  border: 0;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 10px;
  cursor: pointer;
}

button.primary:hover { background: #363f52; }
button.primary:active { transform: translateY(1px); }

.pull-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 12px 0 8px;
}

.chip {
  width: 260px;
  background: var(--panel);
  border-radius: 12px;
  padding: 12px 12px 0;
  box-shadow: 0 1px 0 var(--line), 0 10px 24px rgba(30, 36, 48, 0.12);
}

.chip-color {
  height: 260px;
  border-radius: 6px;
  background: repeating-conic-gradient(#dfe3ea 0 25%, #f3f5f8 0 50%) 0 0 / 24px 24px;
}

.chip-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 2px 14px;
  font-weight: 700;
}

.chip-label #chipTag {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.chip.reveal .chip-color {
  animation: reveal 0.55s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes reveal {
  0% { transform: scaleY(0); transform-origin: top; }
  100% { transform: scaleY(1); transform-origin: top; }
}

.recent {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.charges { width: 260px; }

.charge-bar {
  height: 10px;
  border-radius: 999px;
  background: #d9dde5;
  overflow: hidden;
}

.charge-fill {
  height: 100%;
  background: var(--ink);
  transition: width 0.3s ease;
}

.charge-text {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

button.primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

button.primary:disabled:hover { background: var(--ink); }

.notice {
  min-height: 1.5em;
  margin: 0;
  font-weight: 800;
}

.notice.show { animation: pop 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }

@keyframes pop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.goal {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.goal .muted { margin: 0; }

.goal-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.dot.small {
  width: 24px;
  height: 24px;
  border-radius: 5px;
}

.overview {
  display: flex;
  height: 32px;
  margin: 8px 0 20px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}

.overview .cell {
  flex: 1;
  background: #d9dde5;
}

.overview .cell.first { margin-left: 6px; }

.strip.complete {
  border: 3px solid transparent;
  padding: 7px;
  background: linear-gradient(var(--panel), var(--panel)) padding-box, var(--seal) border-box;
}

.dot {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.strip {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  background: var(--panel);
  border-radius: 12px;
  padding: 10px;
  gap: 6px;
  margin-bottom: 16px;
  box-shadow: 0 1px 0 var(--line);
}

.strip-head {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 2px 2px 4px;
  font-weight: 700;
}

.strip-head > span:last-child {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--muted);
}

.badge {
  margin-left: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 8px;
}

.strip.inactive { opacity: 0.6; }

.slot {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  overflow: hidden;
}

.slot.missing {
  background: repeating-linear-gradient(135deg, #eef0f4 0 8px, #e4e7ed 8px 16px);
  color: #a3abbb;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.slot .count {
  position: absolute;
  top: 4px;
  right: 4px;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  border-radius: 999px;
  padding: 0 6px;
}

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

.wild .slot { aspect-ratio: 1; }

.draw-layout {
  display: grid;
  grid-template-columns: minmax(0, 480px) 1fr;
  gap: 28px;
  align-items: start;
}

#canvas {
  width: 100%;
  aspect-ratio: 1;
  image-rendering: pixelated;
  border-radius: 8px;
  cursor: crosshair;
  touch-action: none;
  background: repeating-conic-gradient(#dfe3ea 0 25%, #f3f5f8 0 50%) 0 0 / 12.5% 12.5%;
  box-shadow: 0 1px 0 var(--line), 0 10px 24px rgba(30, 36, 48, 0.12);
}

.tools, .save-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.tool {
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
}

.tool.active {
  background: var(--ink);
  color: #fff;
}

.save-row input {
  flex: 1;
  min-width: 0;
  font: inherit;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.draw-right h2 { margin-top: 0; }

.swatches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(34px, 1fr));
  gap: 6px;
  max-height: 480px;
  overflow-y: auto;
  padding: 4px;
}

.swatch {
  aspect-ratio: 1;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  padding: 0;
}

.swatch.selected {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 16px;
}

.frame {
  --pad: 4px;
  padding: var(--pad);
  border-radius: 14px;
  background: #dfe3ea;
  box-shadow: 0 6px 16px rgba(30, 36, 48, 0.08);
}

.frame-inner {
  background: var(--panel);
  border-radius: 10px;
  padding: 10px;
}

.frame.f-holz {
  --pad: 9px;
  background: linear-gradient(135deg, #b4804a, #7a4d24 55%, #a06a38);
}

.frame.f-gold {
  --pad: 9px;
  background: linear-gradient(135deg, #f6dd8b, #c99a2e 50%, #f0d276);
  box-shadow: 0 0 0 1px #a8801f, 0 8px 20px rgba(201, 154, 46, 0.35);
}

.frame.f-neon {
  --pad: 7px;
  background: #0d1220;
  box-shadow: 0 0 0 2px #00f5d4, 0 0 18px 2px rgba(0, 245, 212, 0.6);
}

.frame.f-regenbogen {
  --pad: 7px;
  background: linear-gradient(135deg, #ff0054, #ffbd00, #b5ff00, #00f5d4, #00bbf9, #9b5de5);
}

.frame canvas {
  width: 100%;
  aspect-ratio: 1;
  image-rendering: pixelated;
  border-radius: 6px;
  background: repeating-conic-gradient(#dfe3ea 0 25%, #f3f5f8 0 50%) 0 0 / 12.5% 12.5%;
}

.frame-title {
  margin: 8px 0 6px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.frame-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.frame-actions button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  padding: 3px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.frame-actions button:hover { background: var(--bg); }

.frame-actions select {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 0.82rem;
  padding: 3px 6px;
  border-radius: 6px;
}

@media (max-width: 720px) {
  .draw-layout { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(4, 1fr); }
  .swatches { max-height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  .chip.reveal .chip-color { animation: none; }
  .notice.show { animation: none; }
}

.shop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: var(--panel);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 0 var(--line);
}

.shop div {
  display: flex;
  flex-direction: column;
}

.shop .muted { margin: 0; font-size: 0.9rem; }

.dupe-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.dupe-head .muted { margin: 0; }

.dupes {
  display: grid;
  gap: 8px;
}

.dupe-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--panel);
  border-radius: 10px;
  padding: 8px 12px;
  box-shadow: 0 1px 0 var(--line);
}

.dupe-swatch {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.dupe-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dupe-text .muted { margin: 0; font-size: 0.85rem; }

.tool:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.tabs button[hidden] { display: none; }

.frame-shop {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.frame-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--panel);
  border-radius: 10px;
  padding: 14px 12px;
  box-shadow: 0 1px 0 var(--line);
}

.frame-card .muted { margin: 0; font-size: 0.85rem; }

.frame.preview { width: 72px; }

.frame-inner.sample {
  height: 48px;
  padding: 0;
  background: repeating-linear-gradient(45deg, #e4e7ed 0 6px, #d9dde5 6px 12px);
}

@media (max-width: 720px) {
    }

[hidden] { display: none !important; }

.top-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--muted);
}

.auth-card {
  max-width: 400px;
  margin: 24px auto;
  background: var(--panel);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 0 var(--line), 0 10px 24px rgba(30, 36, 48, 0.12);
}

.auth-card h2 { margin-top: 0; }

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
  font-weight: 600;
}

.field input {
  font: inherit;
  font-weight: 400;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

button.link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.form-error {
  min-height: 1.4em;
  margin: 8px 0 0;
  color: #b3122f;
  font-weight: 600;
}

.tabs { flex-wrap: wrap; }

.frame-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.frame-actions button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.import-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--panel);
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 1px 0 var(--line);
}

.segmented {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.more-row {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.rank {
  display: inline-block;
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 0 8px;
  margin-right: 6px;
  font-size: 0.8rem;
  font-weight: 700;
}

.stars {
  display: flex;
  gap: 2px;
  margin-bottom: 4px;
}

.star {
  border: 0;
  background: none;
  padding: 0 2px;
  font-size: 1.35rem;
  line-height: 1;
  color: #c3c9d6;
  cursor: pointer;
}

.star.on { color: #e8a317; }
.star:hover { transform: scale(1.15); }

.admin-group {
  background: var(--panel);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 0 var(--line);
}

.admin-group h3 { margin: 0 0 6px; font-size: 1rem; }

.admin-group .muted { margin: 0 0 8px; }

.admin-row {
  display: grid;
  grid-template-columns: 1fr 110px 130px;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
  border-top: 1px solid var(--line);
}

.admin-row input,
.grant-row input {
  font: inherit;
  padding: 6px 8px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  width: 100%;
}

.admin-row input.invalid { border-color: #d6284a; }

.admin-group .admin-default { margin: 0; font-size: 0.85rem; }

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.grant-row {
  display: grid;
  grid-template-columns: 1fr 100px auto auto;
  gap: 8px;
  align-items: center;
}

@media (max-width: 720px) {
  .admin-row { grid-template-columns: 1fr 100px; }
  .admin-default { display: none; }
  .grant-row { grid-template-columns: 1fr 1fr; }
}

.trade-compose {
  background: var(--panel);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 1px 0 var(--line);
}

.trade-compose h2 { margin-top: 0; }

.trade-compose h3 {
  margin: 16px 0 8px;
  font-size: 0.95rem;
}

.pick-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
}

.pick-row:first-child { border-top: 0; }

.pick-name {
  font-weight: 700;
  min-width: 80px;
}

.pick-row .muted {
  margin: 0;
  flex: 1;
  font-size: 0.85rem;
}

.stepper {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stepper-value {
  min-width: 1.5em;
  text-align: center;
  font-weight: 700;
}

.stepper button { padding: 2px 10px; }

.pick-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pick-swatch {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  padding: 0;
}

.pick-swatch.on {
  outline: 3px solid var(--ink);
  outline-offset: 2px;
}

.chosen {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.want-extra {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.want-extra input {
  flex: 1;
  min-width: 0;
  font: inherit;
  padding: 8px 10px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.color-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border-radius: 999px;
  padding: 3px 10px 3px 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.color-chip.removable { cursor: pointer; }
.color-chip.removable:hover { background: var(--line); }

.color-chip.missing {
  background: #fbe3e8;
  color: #b3122f;
}

.chip-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.offers {
  display: grid;
  gap: 10px;
}

.offer {
  background: var(--panel);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 1px 0 var(--line);
}

.offer-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.offer-head .muted {
  margin: 0;
  font-size: 0.85rem;
}

.offer-body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}

.offer-side {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.offer-label {
  width: 100%;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
}

.offer-arrow {
  font-size: 1.4rem;
  color: var(--muted);
}

.offer-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.offer-actions button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (max-width: 720px) {
  .offer-body { grid-template-columns: 1fr; }
  .offer-arrow { display: none; }
}

.market-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}

.market-filters select,
.market-filters input[type="text"],
.sell-box select,
.sell-box input {
  font: inherit;
  padding: 7px 10px;
  border: 2px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.market-filters input[type="text"] { width: 160px; }

.check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.sell-box {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
  background: var(--panel);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 0 var(--line);
}

.sell-box label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
}

.sell-box input { width: 110px; }

.listing {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  background: var(--panel);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 1px 0 var(--line);
}

.listing-swatch {
  width: 56px;
  height: 56px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.15);
}

.frame.mini { width: 88px; }

.frame-inner.tight { padding: 4px; }

.frame.mini canvas {
  width: 100%;
  aspect-ratio: 1;
  display: block;
  image-rendering: pixelated;
  border-radius: 4px;
}

.listing-title { font-weight: 700; }

.listing-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

.listing-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.price {
  font-size: 1.1rem;
  font-weight: 800;
}

.price-input {
  width: 90px;
  font: inherit;
  font-size: 0.82rem;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

.copies-input {
  width: 56px;
  font: inherit;
  font-size: 0.82rem;
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
}

@media (max-width: 720px) {
  .listing { grid-template-columns: auto 1fr; }
  .listing-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

.site-footer {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: flex;
  gap: 8px;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer a { color: var(--muted); }

.account-box {
  max-width: 460px;
  background: var(--panel);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 1px 0 var(--line);
}

.account-box.danger { border: 2px solid #f0c9d1; }

.danger-btn {
  border-color: #b3122f;
  color: #b3122f;
}

.danger-btn:hover { background: #fbe3e8; }

.report-select {
  font: inherit;
  font-size: 0.8rem;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--muted);
  margin-top: 6px;
}

.reported {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.ban-row { grid-template-columns: 1fr 1.4fr auto auto; }

.ban-row input {
  font: inherit;
  padding: 6px 8px;
  border: 2px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  width: 100%;
}

.mod-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  background: var(--panel);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 1px 0 var(--line);
}

.mod-card canvas {
  width: 88px;
  height: 88px;
  image-rendering: pixelated;
  border-radius: 6px;
  background: repeating-conic-gradient(#dfe3ea 0 25%, #f3f5f8 0 50%) 0 0 / 12.5% 12.5%;
}

.mod-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-log {
  background: var(--panel);
  border-radius: 12px;
  padding: 8px 14px;
  box-shadow: 0 1px 0 var(--line);
  font-size: 0.85rem;
}

.log-row {
  display: grid;
  grid-template-columns: 9.5em 7em 8em 1fr;
  gap: 10px;
  padding: 5px 0;
  border-top: 1px solid var(--line);
}

.log-row:first-child { border-top: 0; }

.log-row span:nth-child(2) { font-weight: 700; }

@media (max-width: 720px) {
  .ban-row { grid-template-columns: 1fr 1fr; }
  .mod-card { grid-template-columns: auto 1fr; }
  .mod-actions { grid-column: 1 / -1; flex-direction: row; }
  .log-row { grid-template-columns: 1fr; }
}

.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 20px 60px;
  line-height: 1.6;
}

.legal h1 { margin-bottom: 8px; }

.notice-box {
  background: #fff4d6;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
}
