:root {
  color-scheme: dark;
  --bg: #101113;
  --panel: #1b1c1f;
  --border: #3a3531;
  --gold: #e9be7b;
  --muted: #b4afa9;
  --ink: #f3eee7;
  --accent: #913f4c;
  --focus: #81d0c6;
  font:
    16px/1.6 system-ui,
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 18% 0%, #352222 0, transparent 48%), var(--bg);
  color: var(--ink);
}
a {
  color: var(--gold);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
header,
main,
footer {
  max-width: 1320px;
  margin: auto;
  padding: 24px 32px;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  gap: 20px;
}
.brand {
  font-weight: 700;
  color: var(--ink);
  font-size: 21px;
}
.brand span {
  color: var(--gold);
}
.brand small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--muted);
  margin-left: 36px;
}
h1 {
  font:
    clamp(38px, 5vw, 68px) / 1.1 Georgia,
    serif;
  margin: 20px 0 28px;
  letter-spacing: -0.035em;
}
h2 {
  font:
    28px/1.25 Georgia,
    serif;
  margin: 12px 0 24px;
}
.small-title {
  font-size: 42px;
  margin: 0;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--gold);
}
.lead {
  font-size: 20px;
  color: var(--muted);
  margin-bottom: 30px;
}
.intro {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 64px;
  padding: 48px 0;
}
.card {
  background: linear-gradient(125deg, #242021, var(--panel));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
  min-width: 0;
}
.login {
  align-self: center;
}
.muted {
  color: var(--muted);
  font-size: 14px;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border: 1px solid #6d5742;
  background: #302a27;
  color: var(--ink);
  border-radius: 6px;
  font: 600 14px/1.5 system-ui;
  cursor: pointer;
  text-decoration: none;
  min-height: 44px;
}
button:hover,
.button:hover {
  background: #493731;
  text-decoration: none;
}
button.primary,
.primary {
  background: var(--accent);
  border-color: #b85c68;
}
.install {
  padding: 16px 24px;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
input,
textarea,
select {
  width: 100%;
  max-width: 100%;
  padding: 10px 12px;
  background: #131417;
  color: var(--ink);
  border: 1px solid #57504b;
  border-radius: 6px;
  font: inherit;
}
textarea {
  resize: vertical;
}
label {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}
label input,
label select,
label textarea {
  display: block;
  margin-top: 6px;
}
form button {
  margin-top: 4px;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding-left: 24px;
}
.steps li {
  padding-left: 4px;
  font-size: 14px;
}
.steps li::marker {
  color: var(--gold);
  font-weight: bold;
}
#catalog {
  padding: 28px 0;
}
.news-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.announcement h3 {
  overflow-wrap: anywhere;
  font: 24px/1.3 Georgia, serif;
}
.announcement time {
  color: var(--muted);
  font-size: 14px;
}
.catalog {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.catalog img {
  display: block;
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: #121214;
  border-radius: 6px;
}
.catalog article h3 {
  font:
    24px Georgia,
    serif;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.workspace {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 24px;
}
.workspace nav button {
  width: 100%;
  margin-bottom: 10px;
  text-align: left;
  justify-content: flex-start;
  overflow-wrap: anywhere;
}
.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  margin-bottom: 20px;
}
.tabs button[aria-selected="true"] {
  border-color: var(--gold);
  color: var(--gold);
}
.file-list {
  max-height: 360px;
  overflow: auto;
  list-style: none;
  padding: 0;
}
.file-list button {
  width: 100%;
  justify-content: space-between;
  text-align: left;
  gap: 20px;
  font-size: 12px;
  overflow-wrap: anywhere;
  margin-bottom: 5px;
}
.preview {
  max-width: 100%;
  max-height: 300px;
  object-fit: contain;
  border: 1px solid var(--border);
  background: repeating-conic-gradient(#333 0% 25%, #222 0% 50%) 50%/20px 20px;
}
.code {
  font: 13px/1.6 monospace;
  min-height: 400px;
  tab-size: 2;
}
.error,
#notice.error {
  color: #ffacb5;
  white-space: pre-wrap;
}
.success {
  color: #9ee0b4;
}
#notice {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  scroll-margin-top: 20px;
}
progress {
  width: 100%;
}
summary {
  cursor: pointer;
  color: var(--gold);
}
details form {
  max-width: 500px;
  margin-top: 20px;
}
footer {
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
small {
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
.badge {
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 12px;
  color: var(--gold);
}
.history {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  overflow-wrap: anywhere;
}
@media (max-width: 900px) {
  .intro {
    gap: 24px;
    grid-template-columns: 1fr 1fr;
  }
  .steps {
    grid-template-columns: 1fr 1fr;
  }
  .catalog {
    grid-template-columns: 1fr 1fr;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .workspace nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .workspace nav button {
    width: auto;
  }
  .fields {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  header,
  main,
  footer {
    padding: 18px;
  }
  .intro {
    grid-template-columns: 1fr;
    padding: 26px 0;
    gap: 16px;
  }
  .steps,
  .catalog {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 20px;
  }
  .brand {
    font-size: 17px;
  }
  header > a:last-child:not(.brand) {
    font-size: 13px;
  }
  h1 {
    font-size: 43px;
  }
  .actions > button {
    flex: 1 1 140px;
  }
  .login {
    margin-bottom: 0;
  }
}
.addon-source {
  min-height: 28rem;
  tab-size: 2;
}
.code-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.code-compare pre {
  max-height: 24rem;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.code-body > * {
  margin-top: 1rem;
}
.check-row {
  display: flex;
  align-items: start;
  gap: 0.7rem;
}
.check-row input {
  width: auto;
  min-height: auto;
  flex: none;
  margin-top: 0.3rem;
}
@media (max-width: 700px) {
  .code-compare {
    grid-template-columns: 1fr;
  }
}
