:root {
  --bg: #0c0f14;
  --panel: #141922;
  --panel-2: #1b2230;
  --line: rgba(255,255,255,.08);
  --text: #f6f1e8;
  --muted: #aeb6c2;
  --gold: #d6aa4f;
  --gold-2: #f0d38a;
  --danger: #d86161;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, rgba(214,170,79,.16), transparent 34%), var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
code { background: rgba(255,255,255,.08); padding: 2px 7px; border-radius: 8px; color: var(--gold-2); }
.app-shell { display: grid; grid-template-columns: 300px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; padding: 28px;
  border-right: 1px solid var(--line); background: rgba(12,15,20,.82); backdrop-filter: blur(20px);
}
.brand { display: flex; gap: 14px; align-items: center; margin-bottom: 34px; }
.brand-mark {
  width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--gold), #6d5122); color: #141006; font-weight: 900;
}
.brand h1 { font-size: 18px; margin: 0; }
.brand p { font-size: 12px; margin: 4px 0 0; color: var(--muted); }
.nav-list { display: grid; gap: 8px; }
.nav-list a { padding: 12px 14px; border-radius: 12px; color: var(--muted); border: 1px solid transparent; }
.nav-list a:hover { color: var(--text); border-color: var(--line); background: rgba(255,255,255,.04); }
.sidebar-note { margin-top: 32px; color: var(--muted); font-size: 13px; line-height: 1.6; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.03); }
.content { padding: 36px; max-width: 1280px; width: 100%; }
.hero {
  display: grid; grid-template-columns: 1fr 260px; gap: 24px; align-items: stretch; margin-bottom: 28px;
  padding: 34px; border: 1px solid var(--line); border-radius: 28px; background: linear-gradient(135deg, rgba(27,34,48,.92), rgba(20,25,34,.72)); box-shadow: var(--shadow);
}
.badge { display: inline-flex; color: #151006; background: var(--gold); border-radius: 999px; padding: 8px 12px; font-weight: 800; font-size: 12px; }
.hero h2 { margin: 18px 0 12px; font-size: clamp(32px, 5vw, 62px); line-height: .98; letter-spacing: -1.8px; }
.hero p { color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 760px; }
.hero-actions, .file-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.btn {
  border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); border-radius: 12px;
  padding: 11px 15px; cursor: pointer; font-weight: 700; font-size: 14px;
}
.btn:hover { border-color: rgba(214,170,79,.45); }
.btn.primary { background: linear-gradient(135deg, var(--gold), #8c681f); color: #130f07; border: none; }
.btn.small { padding: 8px 11px; font-size: 12px; }
.btn.ghost { background: transparent; color: var(--muted); }
.status-card { border: 1px solid var(--line); border-radius: 22px; background: rgba(255,255,255,.04); padding: 22px; display: grid; align-content: center; }
.status-card span { color: var(--muted); }
.status-card strong { font-size: 54px; color: var(--gold-2); margin: 8px 0; }
.status-card small { color: var(--muted); line-height: 1.5; }
.section { margin: 24px 0; }
.section-title { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; }
.section-title h3 { margin: 0; font-size: 24px; }
input[type="search"] { width: min(420px, 100%); padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); outline: none; }
.file-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.file-card, .guide-card {
  border: 1px solid var(--line); background: rgba(20,25,34,.75); border-radius: var(--radius); padding: 20px; box-shadow: 0 10px 30px rgba(0,0,0,.14);
}
.file-card h4 { margin: 14px 0 8px; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.file-card p, .guide-card li, .guide-card p, .workflow span { color: var(--muted); line-height: 1.6; }
.file-top { display: flex; justify-content: space-between; align-items: center; }
.file-type { color: #120e05; background: var(--gold-2); padding: 5px 9px; border-radius: 999px; font-size: 11px; font-weight: 900; }
.dot { width: 8px; height: 8px; border-radius: 999px; background: #48c27a; }
.viewer { min-height: 260px; max-height: 520px; overflow: auto; white-space: pre-wrap; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #080b10; color: #e7edf5; line-height: 1.6; }
.guide-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.guide-card h3 { margin-top: 0; }
.guide-card.wide { grid-column: 1 / -1; }
.workflow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.workflow div { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: rgba(255,255,255,.03); }
.workflow strong, .workflow span { display: block; }
.danger { border-color: rgba(216,97,97,.38); }
.danger h3 { color: #ffb1b1; }
@media (max-width: 1024px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; height: auto; }
  .content { padding: 20px; }
  .hero { grid-template-columns: 1fr; }
  .file-grid { grid-template-columns: repeat(2, 1fr); }
  .workflow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .sidebar { padding: 20px; }
  .content { padding: 14px; }
  .hero { padding: 22px; border-radius: 20px; }
  .file-grid, .guide-grid, .workflow { grid-template-columns: 1fr; }
  .section-title { align-items: stretch; flex-direction: column; }
}
