:root {
  color-scheme: dark;
  --bg: #111318;
  --panel: #1c2028;
  --panel-soft: #242a35;
  --line: #343b49;
  --text: #f3f5f8;
  --muted: #a6adba;
  --accent: #3dd6a1;
  --accent-strong: #19b987;
  --warning: #ffd166;
  --danger: #ff6b6b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(135deg, rgba(61, 214, 161, 0.12), transparent 38%),
    linear-gradient(225deg, rgba(255, 209, 102, 0.10), transparent 34%),
    var(--bg);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

button,
input,
select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

button,
.download-button {
  padding: 0 16px;
  background: var(--panel-soft);
  color: var(--text);
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

button.primary,
.download-button.primary {
  border-color: transparent;
  background: var(--accent);
  color: #07130f;
  font-weight: 700;
}

button:not(:disabled):hover,
.download-button:hover {
  border-color: var(--accent);
}

a {
  text-decoration: none;
}

input,
select {
  width: 100%;
  padding: 0 12px;
  background: #141820;
  color: var(--text);
}

.site-shell {
  width: min(1080px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 32px 0;
}

.hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  min-height: 170px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(28, 32, 40, 0.94), rgba(28, 32, 40, 0.76)),
    url("https://images.unsplash.com/photo-1607513746994-51f730a44832?auto=format&fit=crop&w=1600&q=80");
  background-position: center;
  background-size: cover;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-logo {
  width: 86px;
  height: 86px;
  object-fit: contain;
  filter: drop-shadow(0 18px 22px rgba(0, 0, 0, 0.35));
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 44px;
  line-height: 1.05;
}

h2 {
  font-size: 18px;
}

.server-box {
  display: grid;
  gap: 4px;
  min-width: 180px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 19, 24, 0.82);
}

.server-box span,
.status-text,
dt,
.panel-header span {
  color: var(--muted);
}

.workspace {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 16px;
  margin-top: 16px;
}

.panel {
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(28, 32, 40, 0.96);
}

.download-panel {
  grid-column: 1 / -1;
  min-height: auto;
}

.download-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 700;
}

.download-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.download-note code {
  display: block;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #141820;
  color: var(--text);
  overflow-wrap: anywhere;
}

.auth-panel {
  min-height: 270px;
}

.tabs,
.panel-header,
.skin-form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tabs {
  margin-bottom: 18px;
}

.tab.active {
  border-color: var(--accent);
  color: var(--accent);
}

.panel-header {
  justify-content: space-between;
  margin-bottom: 20px;
}

.form {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.status-text {
  min-height: 22px;
  margin-top: 16px;
}

.status-text.success,
#skinStatus.success {
  color: var(--accent);
}

.status-text.error,
#skinStatus.error {
  color: var(--danger);
}

.profile-list {
  display: grid;
  gap: 16px;
  margin: 0;
}

.profile-list div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
}

dt,
dd {
  margin: 0;
}

dd {
  overflow-wrap: anywhere;
}

.skin-form {
  display: grid;
  grid-template-columns: 1fr 140px 150px;
}

@media (max-width: 820px) {
  .hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .workspace,
  .download-actions,
  .skin-form {
    grid-template-columns: 1fr;
  }
}
