:root {
  --bg: #0e1116;
  --panel: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --gold: #f5b942;
  --accent: #58a6ff;
  --error: #f85149;
  --ok: #3fb950;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font: 14px/1.5 system-ui, sans-serif; }
header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 24px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #1a1f29, #0e1116);
}
header .brand { color: var(--gold); font-weight: 700; text-decoration: none; font-size: 16px; }
header nav { display: flex; gap: 16px; align-items: center; }
header nav a { color: var(--accent); text-decoration: none; }
header nav a:hover { text-decoration: underline; }
header .who { color: var(--muted); }

main { max-width: 1100px; margin: 0 auto; padding: 24px; }

h1 { margin: 0 0 12px; font-size: 22px; }
h2 { margin: 24px 0 8px; font-size: 16px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.hint { color: var(--muted); margin-bottom: 16px; }

.card { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 24px; }
.card.narrow { max-width: 380px; margin: 64px auto; }

label { display: block; margin: 12px 0; }
input[type=text], input[type=password], textarea {
  width: 100%; background: #0d1117; color: var(--text);
  border: 1px solid var(--border); border-radius: 6px; padding: 10px;
  font: 14px ui-monospace, monospace;
}
input:focus, textarea:focus { outline: none; border-color: var(--accent); }

button.primary {
  background: var(--accent); color: white; border: none; border-radius: 6px;
  padding: 10px 20px; font-weight: 600; cursor: pointer;
}
button.primary:hover { filter: brightness(1.1); }

.flashes { margin-bottom: 16px; }
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 8px; }
.flash.error { background: rgba(248,81,73,0.12); border: 1px solid var(--error); color: var(--error); }
.flash.ok { background: rgba(63,185,80,0.12); border: 1px solid var(--ok); color: var(--ok); }

.group { margin-bottom: 24px; }
.filelist { list-style: none; padding: 0; margin: 0; }
.filelist li {
  background: var(--panel); border: 1px solid var(--border); border-radius: 6px;
  padding: 12px 16px; margin-bottom: 8px;
}
.filelist a { color: var(--gold); font-weight: 600; text-decoration: none; }
.filelist a:hover { text-decoration: underline; }
.filelist .path { display: block; color: var(--muted); font: 12px ui-monospace, monospace; margin-top: 4px; }
.filelist .apply-hint { display: block; color: var(--accent); font-size: 12px; margin-top: 2px; }

.breadcrumb { margin-bottom: 8px; }
.breadcrumb a { color: var(--accent); text-decoration: none; }
.meta { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.meta code { background: #0d1117; border: 1px solid var(--border); padding: 2px 8px; border-radius: 4px; font: 12px ui-monospace, monospace; }
.meta .lang { color: var(--muted); font-size: 12px; }
.apply-box {
  background: rgba(88,166,255,0.08); border: 1px solid rgba(88,166,255,0.3);
  border-radius: 6px; padding: 10px 14px; margin-bottom: 16px; color: var(--text);
}

textarea { min-height: 480px; resize: vertical; }
.actions { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.apply-now { color: var(--muted); margin: 0; }
.apply-now code { color: var(--text); }

footer { text-align: center; color: var(--muted); padding: 24px; font-size: 12px; }
