/* SilkNet's menu palette (shared with fireLauncher): slate and light blue, no gold. A working tool for artists:
   quiet surfaces, one accent, consistent spacing (4, 8, 12, 16, 24 pixels). */
:root { --bg: #0C1016; --card: #121820; --sunk: #0E131A; --line: rgba(228, 233, 240, 0.12);
        --line-strong: rgba(228, 233, 240, 0.22); --text: #E4E9F0; --muted: #8FA3B8; --accent: #A9BFD8;
        --good: #9EC7D6; --warn: #A9BFD8; --bad: #D89EA3; --radius: 6px; --mono: ui-monospace, Consolas, "Cascadia Mono", monospace; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

/* Header */
header { border-bottom: 1px solid var(--line); }
.bar { max-width: 820px; margin: 0 auto; padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { color: var(--text); text-decoration: none; letter-spacing: .2em; font-weight: 700; font-size: .95rem; white-space: nowrap; }
.brand span { color: var(--accent); }
nav { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
nav a, nav button.link { color: var(--muted); text-decoration: none; font-size: .9rem; }
nav a:hover, nav button.link:hover { color: var(--text); }
nav .who { color: var(--muted); font-size: .8rem; }

/* Page and panels */
main { max-width: 820px; margin: 28px auto 64px; padding: 0 16px; display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 28px; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.card-head h1 { margin: 0; }
.card-head .actions { margin: 0; }

h1 { font-size: 1.4rem; line-height: 1.3; font-weight: 600; margin: 0 0 12px; }
h2 { font-size: 1.1rem; line-height: 1.35; font-weight: 600; margin: 28px 0 8px; }
h3 { font-size: 1rem; line-height: 1.4; font-weight: 600; margin: 0 0 6px; }
p { margin: 0 0 12px; }
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--text); }
code, .mono { font-family: var(--mono); font-size: .85rem; }
.mono { color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.good { color: var(--good); } .warn { color: var(--warn); } .error { color: var(--bad); }
.error:empty { display: none; }
.eyebrow { color: var(--muted); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.back { margin: 0; }
.back a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.back a::before { content: "\2190\00a0"; }
.back a:hover { color: var(--text); }

.steps { padding-left: 22px; margin: 0 0 16px; }
.steps li { margin: 8px 0; padding-left: 4px; }
.compact { margin: 4px 0 12px; padding-left: 20px; } .compact li { margin: 2px 0; overflow-wrap: anywhere; }

/* Buttons */
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 20px; }
.button, button.button { display: inline-block; background: var(--accent); color: var(--bg); border: 1px solid var(--accent);
  border-radius: 4px; padding: 9px 16px; font: inherit; font-weight: 600; line-height: 1.3; cursor: pointer; text-decoration: none; }
.button:hover { background: #BFD0E3; border-color: #BFD0E3; color: var(--bg); }
.button.secondary { background: transparent; color: var(--accent); border-color: var(--line-strong); }
.button.secondary:hover { border-color: var(--accent); color: var(--text); }
.button.danger { background: transparent; color: var(--bad); border-color: rgba(216, 158, 163, 0.45); }
.button.danger:hover { border-color: var(--bad); }
.button.small { padding: 5px 12px; font-size: .85rem; font-weight: 500; }
button:disabled { opacity: .5; cursor: default; }
button.link { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: 0; }
button.link:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Forms */
input[type=file] { display: none; }
label { display: block; margin: 12px 0; }
.field-label { margin: 16px 0 4px; }
label input, textarea { display: block; width: 100%; margin-top: 4px; }
input, textarea { background: var(--sunk); color: var(--text); border: 1px solid var(--line); border-radius: 4px; padding: 8px 10px; font: inherit; }
input:focus, textarea:focus { outline: 1px solid var(--accent); border-color: var(--accent); }
textarea { min-height: 84px; resize: vertical; }
.link-row { display: grid; grid-template-columns: 11rem 1fr auto; gap: 8px; margin: 6px 0; align-items: center; }
.check { display: flex; gap: 10px; align-items: center; }
.check input { width: auto; margin: 0; }

/* Lists of skins */
.rows { list-style: none; padding: 0; margin: 8px 0 0; }
.rows li + li { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 10px 4px; color: var(--text); text-decoration: none; }
.row:hover { color: var(--text); background: rgba(228, 233, 240, 0.03); }
.row-name { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.row-name .muted { font-size: .85rem; }
.thumb { width: 40px; height: 40px; object-fit: contain; border-radius: 4px; background: var(--sunk); }

/* Transparent art sits on a quiet checkerboard. */
.preview, .pixels, .thumb { background: repeating-conic-gradient(#18202a 0 25%, #121820 0 50%) 0 0/16px 16px; }
.preview { display: block; max-width: 220px; max-height: 260px; border-radius: 4px; padding: 8px; border: 1px solid var(--line); }

/* A skin's page */
.skin-head { display: flex; gap: 24px; align-items: flex-start; }
.skin-head .preview { flex: none; max-width: 160px; }
.skin-title { min-width: 0; flex: 1; }
.title-line { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.title-line h1 { margin: 0; overflow-wrap: anywhere; }
.byline { color: var(--muted); margin: 4px 0 0; }
.support-links { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.support-links a { font-weight: 500; }
.support-links a::after { content: "\00a0\2197"; font-size: .8em; color: var(--muted); }
.skin-title .actions { margin-top: 16px; }
.notice { margin: 16px 0 0; padding: 8px 12px; border-left: 2px solid var(--accent); background: rgba(169, 191, 216, 0.06); }

/* Progress: a sunk track filled with the accent. Work of unknown length slides a short band along it. */
.progress-block { margin: 16px 0 0; }
.notice.progress-block { padding: 12px 14px; }
.progress { position: relative; height: 8px; border-radius: 4px; background: var(--sunk); border: 1px solid var(--line); overflow: hidden; }
.progress-fill { display: block; width: 0; height: 100%; background: var(--accent); transition: width .3s ease-out; }
.progress.indeterminate .progress-fill { position: absolute; top: 0; left: 0; width: 30%; transition: none;
  animation: progress-slide 1.4s ease-in-out infinite; }
@keyframes progress-slide { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.progress-text { margin: 8px 0 0; color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.button.disabled { opacity: .5; cursor: default; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .progress-fill { transition: none; }
  .progress.indeterminate .progress-fill { animation: none; width: 100%; opacity: .35; }
}

/* Folded sections */
.fold { padding: 0; }
.fold > summary { list-style: none; cursor: pointer; padding: 14px 28px; font-weight: 600; display: flex; gap: 10px; align-items: baseline; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::before { content: "\25B8"; color: var(--muted); width: 1em; flex: none; }
.fold[open] > summary::before { content: "\25BE"; }
.fold > summary .muted { font-weight: 400; font-size: .9rem; }
.fold > summary:hover { color: var(--accent); }
.fold[open] > summary { border-bottom: 1px solid var(--line); }
.fold > :not(summary) { margin-left: 28px; margin-right: 28px; }
.fold > :nth-child(2) { margin-top: 16px; }
.fold > :last-child { margin-bottom: 20px; }
.timeline { padding-left: 20px; } .timeline li { margin: 8px 0; }
.note { margin: 4px 0 0; }
.review textarea { margin-top: 4px; }
.review .actions { margin-top: 12px; }

/* Status: small uppercase text after a coloured dot, instead of a bubble (a rule there read like a dash). */
.status { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; font-weight: 500; }
.status::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin: 0 7px 2px 0; background: currentColor; vertical-align: middle; }
.status-live { color: var(--good); }
.status-submitted, .status-in_review, .status-changes_requested, .status-queued, .status-publishing { color: var(--accent); }
.status-withdrawn, .status-rejected { color: var(--bad); }

/* How a skin is stored */
.demo { list-style: none; counter-reset: demo; padding: 0; margin: 20px 0 0; }
.demo > li { counter-increment: demo; position: relative; padding: 18px 0 18px 40px; border-top: 1px solid var(--line); }
.demo > li::before { content: counter(demo); position: absolute; left: 0; top: 17px; width: 26px; height: 26px; border: 1px solid var(--line-strong);
  border-radius: 50%; color: var(--accent); font-size: .85rem; font-weight: 600; text-align: center; line-height: 24px; }
.demo p:last-child { margin-bottom: 0; }
.download { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 0 0 10px; }
.download code { color: var(--muted); overflow-wrap: anywhere; }
.bytes { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 0 0 16px; padding: 10px 14px; background: var(--sunk);
  border: 1px solid var(--line); border-radius: 4px; font-size: .9rem; }
.bytes dt { color: var(--muted); }
.bytes dd { margin: 0; font-family: var(--mono); letter-spacing: .04em; }
.facts { padding-left: 20px; margin: 0; }
.facts li { margin: 6px 0; }
figure { margin: 0; }
figcaption { color: var(--muted); font-size: .85rem; margin-top: 6px; }
.pixels { display: block; border: 1px solid var(--line); border-radius: 4px; max-width: 100%; height: auto; }
.pixels.enlarge { image-rendering: pixelated; }
.noise .pixels { width: 256px; }
.figures { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 4px 0 12px; align-items: start; }
.figures .pixels { width: 100%; }
.closing { margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); }

/* Reports and the owner's moderation page */
fieldset.choices { border: 0; padding: 0; margin: 12px 0; min-width: 0; }
fieldset.choices legend { padding: 0; margin-bottom: 4px; }
fieldset.choices .check { margin: 6px 0; }
.card-head h2 { margin: 0; }
.reports { list-style: none; padding: 0; margin: 8px 0 0; }
.reports > li { padding: 16px 0; border-top: 1px solid var(--line); }
.reports > li:first-child { border-top: 0; padding-top: 4px; }
.reports > li:last-child { padding-bottom: 0; }
.reports label { margin: 8px 0; }
.reports .actions { margin-top: 8px; }
.report-head { display: flex; gap: 6px 14px; align-items: baseline; flex-wrap: wrap; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: 4px 16px; margin: 10px 0; }
.details dt { color: var(--muted); }
.details dd { margin: 0; overflow-wrap: anywhere; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
.status-open { color: var(--accent); }
.status-closed { color: var(--muted); }
.ban-form { display: grid; grid-template-columns: 17rem 1fr; gap: 0 12px; }
.ban-form input.mono { font-family: var(--mono); color: var(--text); }
.ban-form input.mono::placeholder { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.ban-form label { margin: 8px 0 0; }
.ban-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 4px; }
.ban-row .row-name code { color: var(--text); }
.skin-id code { overflow-wrap: anywhere; }
.doc h1 { margin-bottom: 16px; }
.doc h2:first-of-type { margin-top: 20px; }
.doc ol, .doc ul { padding-left: 22px; margin: 0 0 12px; }
.doc li { margin: 6px 0; }
.doc pre { background: var(--sunk); border: 1px solid var(--line); border-radius: 4px; padding: 10px 14px; overflow-x: auto;
  margin: 0 0 12px; white-space: pre-wrap; }
.doc pre code { font-size: .85rem; }

@media (max-width: 600px) {
  .details { grid-template-columns: 1fr; gap: 0; }
  .details dd + dt { margin-top: 6px; }
  .ban-form { grid-template-columns: 1fr; }
  .ban-row { flex-direction: column; align-items: flex-start; }
  body { font-size: 15px; }
  .bar { padding: 12px 16px; gap: 12px; }
  .brand { letter-spacing: .14em; }
  nav { gap: 14px; }
  nav #home { display: none; } /* the brand links home */
  .bytes { grid-template-columns: 1fr; gap: 0; }
  .bytes dd + dt { margin-top: 6px; }
  .fold > summary { flex-wrap: wrap; }
  main { margin-top: 16px; gap: 12px; }
  .card { padding: 18px 16px; }
  .fold { padding: 0; }
  .fold > summary { padding: 12px 16px; }
  .fold > :not(summary) { margin-left: 16px; margin-right: 16px; }
  .skin-head { flex-direction: column; gap: 16px; }
  .skin-head .preview { max-width: 140px; }
  .figures { grid-template-columns: 1fr; }
  .demo > li { padding-left: 0; padding-top: 52px; }
  .demo > li::before { top: 16px; }
  .link-row { grid-template-columns: 1fr; margin-bottom: 14px; }
  .link-row button.link { justify-self: start; font-size: .9rem; }
  .noise .pixels { width: 100%; max-width: 256px; }
}

/* The public list of named accounts, the footer link to it, and the owner's Steam profile lookup. */
footer { max-width: 820px; margin: -40px auto 32px; padding: 0 16px; font-size: .85rem; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }
table.named { width: 100%; border-collapse: collapse; }
table.named th { text-align: left; color: var(--muted); font-weight: 600; font-size: .85rem; padding: 6px 8px; border-bottom: 1px solid var(--line-strong); }
table.named td { padding: 8px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.found p { margin: 6px 0; overflow-wrap: anywhere; }
.row-name .warn { display: block; }

/* The privacy note and terms (texts.py): the links to them at the foot of each page, their quotes and tables. */
footer a + a { margin-left: 16px; }
.doc h3 { margin-top: 20px; }
.doc blockquote { margin: 0 0 16px; padding: 8px 12px; border-left: 2px solid var(--accent); background: rgba(169, 191, 216, 0.06); }
.doc blockquote p:last-child { margin-bottom: 0; }
.doc .table { overflow-x: auto; margin: 0 0 16px; }
.doc table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.doc th { text-align: left; vertical-align: bottom; color: var(--muted); font-weight: 600; font-size: .85rem; padding: 6px 8px;
  border-bottom: 1px solid var(--line-strong); }
.doc td { vertical-align: top; padding: 8px; border-top: 1px solid var(--line); overflow-wrap: break-word; }
.doc th:first-child, .doc td:first-child { width: 20%; }
.doc td:first-child { font-weight: 600; }
@media (max-width: 600px) {
  .doc table, .doc tbody, .doc tr, .doc td { display: block; }
  .doc thead { display: none; }
  .doc tr { padding: 10px 0; border-top: 1px solid var(--line); }
  .doc td { border: 0; padding: 2px 0; }
  .doc td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 600; }
}
