:root {
  --ink: #17201d;
  --muted: #64706b;
  --line: #dfe6e2;
  --paper: #ffffff;
  --wash: #f3f6f4;
  --green: #176b4a;
  --green-dark: #0f5037;
  --amber: #9a5c00;
  --red: #9e2d2d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--wash);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
a { color: var(--green); text-underline-offset: 3px; }
code { font-family: "SFMono-Regular", Consolas, monospace; overflow-wrap: anywhere; }
.topbar {
  min-height: 64px; padding: 0 5vw; display: flex; align-items: center; justify-content: space-between;
  background: rgba(255,255,255,.94); border-bottom: 1px solid var(--line);
}
.brand { color: var(--ink); font-weight: 760; letter-spacing: -.02em; text-decoration: none; }
.container { width: min(1080px, 90vw); margin: 0 auto; padding: 48px 0 80px; }
.hero, .section-head, .project-main, .version-row, .actions { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
h1 { margin: 8px 0 10px; font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -.045em; line-height: 1; }
h2 { margin: 0 0 22px; font-size: 1.35rem; }
h3 { margin: 0 0 7px; }
.muted, small { color: var(--muted); }
.eyebrow { color: var(--green); font-size: .74rem; font-weight: 800; letter-spacing: .14em; }
.status { display: flex; align-items: center; gap: 9px; color: var(--green); font-weight: 650; }
.status span { width: 9px; height: 9px; border-radius: 50%; background: #28a26f; box-shadow: 0 0 0 5px #dff4ea; }
.grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr); gap: 22px; margin: 42px 0 55px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: 0 18px 50px rgba(35,60,49,.06); }
.narrow { width: min(480px, 100%); margin: 4vh auto; }
.stack { display: grid; gap: 18px; margin-top: 24px; }
label { display: grid; gap: 8px; font-weight: 650; }
input, select {
  width: 100%; min-height: 46px; padding: 10px 12px; color: var(--ink); background: #fff;
  border: 1px solid #c9d3ce; border-radius: 10px; font: inherit;
}
input:focus, select:focus { outline: 3px solid #cceadd; border-color: var(--green); }
input[type="file"] { padding: 8px; }
.button {
  display: inline-flex; min-height: 42px; padding: 10px 16px; align-items: center; justify-content: center;
  border: 1px solid #c8d2cd; border-radius: 10px; background: #fff; color: var(--ink); font: inherit;
  font-weight: 720; text-decoration: none; cursor: pointer;
}
.button:hover { border-color: #91a39a; }
.button.primary { border-color: var(--green); background: var(--green); color: #fff; }
.button.primary:hover { background: var(--green-dark); }
.button.ghost { background: transparent; }
.button.small { min-height: 34px; padding: 6px 10px; font-size: .82rem; }
.guide ol { margin: 0; padding-left: 1.2rem; color: var(--muted); line-height: 1.8; }
.section-head { margin-bottom: 18px; }
.section-head h2 { margin: 5px 0 0; }
.count, .badge { padding: 5px 9px; border-radius: 999px; background: #e8eeeb; color: #52605a; font-size: .75rem; font-weight: 750; white-space: nowrap; }
.badge.managed { background: #def2e8; color: var(--green); }
.badge.legacy { background: #fff1d7; color: var(--amber); }
.project-list { display: grid; gap: 14px; }
.project.card { padding: 22px; }
.versions { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 15px; }
.versions summary, .file-list summary, details summary { cursor: pointer; color: var(--muted); font-weight: 650; }
.version-row { padding: 12px 0; border-bottom: 1px solid #edf1ef; }
.notice { margin: 16px 0; padding: 13px 15px; border-radius: 10px; background: #e4f3eb; color: var(--green-dark); }
.notice.error { background: #fbe7e7; color: var(--red); }
.notice.warning { background: #fff1d7; color: #764900; }
.notice.success { background: #e4f3eb; }
.empty { padding: 40px; text-align: center; border: 1px dashed #becbc4; border-radius: 16px; color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.facts div { padding: 15px; background: #fff; }
.facts dt { color: var(--muted); font-size: .78rem; }
.facts dd { margin: 5px 0 0; font-weight: 700; }
.file-list { margin: 22px 0; }
.file-list ul { max-height: 260px; overflow: auto; padding-left: 1.4rem; }
.check { display: flex; grid-template-columns: auto 1fr; align-items: flex-start; font-weight: 500; }
.check input { width: auto; min-height: auto; margin-top: 4px; }
.qr { display: block; width: min(260px, 75vw); margin: 22px auto; image-rendering: crisp-edges; }
.secret { display: block; margin: 12px 0; padding: 12px; background: var(--wash); border-radius: 8px; text-align: center; letter-spacing: .08em; }
@media (max-width: 720px) {
  .container { width: min(92vw, 620px); padding-top: 28px; }
  .hero { align-items: flex-start; }
  .status { margin-top: 8px; font-size: .8rem; }
  .grid { grid-template-columns: 1fr; margin-top: 28px; }
  .card { padding: 22px; border-radius: 14px; }
  .project-main, .version-row { align-items: flex-start; flex-direction: column; }
  .facts { grid-template-columns: 1fr; }
  .actions { justify-content: stretch; }
  .actions .button { flex: 1; }
}
