:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --ink: #1b1f26;
  --muted: #6b7280;
  --line: #e3e6eb;
  --accent: #c31432;
  --accent-soft: #fdecef;
  --ok: #16794a;
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 "Segoe UI", Roboto, system-ui, -apple-system, sans-serif;
}

a { color: var(--ink); }
code { background: #eef1f5; padding: 1px 5px; border-radius: 5px; font-size: 13px; }

.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 14px 24px; background: var(--panel);
  border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon { width: 38px; height: 38px; border-radius: 9px; }
.brand-title { font-weight: 700; letter-spacing: .2px; font-size: 17px; }
.brand-sub { color: var(--muted); font-size: 12.5px; }

.user { display: flex; align-items: center; gap: 10px; font-size: 14px; }

.wrap {
  max-width: 1080px; margin: 24px auto 48px; padding: 0 20px;
  display: flex; flex-direction: column; gap: 18px;
}

.card {
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px;
}

.hero-head { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.hero h1 { margin: 0 0 4px; font-size: 24px; }
.hero-desc { margin: 0; max-width: 560px; }
.version-block { text-align: right; }
.version { font-size: 22px; font-weight: 700; }

.card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px; flex-wrap: wrap;
}
.card-head h2 { margin: 0; font-size: 18px; }
.card-head h3 { margin: 0; font-size: 16px; }

.muted { color: var(--muted); }
.hidden { display: none !important; }
.row { display: flex; }
.gap { gap: 12px; flex-wrap: wrap; }

.btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 9px; padding: 8px 14px; font-size: 14px; cursor: pointer;
  font-family: inherit;
}
.btn:hover { border-color: #c9ced6; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(.95); }
.btn.ghost { background: transparent; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: .55; cursor: default; }

.downloads { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0 6px; }
.dl {
  display: flex; flex-direction: column; gap: 2px; min-width: 180px;
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px;
  text-decoration: none; background: #fcfcfd;
}
.dl:hover { border-color: var(--accent); }
.dl-name { font-weight: 600; font-size: 14px; }
.dl-size { color: var(--muted); font-size: 12.5px; }

.check-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.check-row input {
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px;
  font: inherit; width: 110px;
}

.plan { margin-top: 14px; background: var(--accent-soft); border-radius: 10px; padding: 12px 16px; }
.plan h3 { margin: 0 0 6px; font-size: 15px; }
.plan ol { margin: 0 0 6px 18px; padding: 0; }
.plan li { margin: 3px 0; }

.notes { margin-top: 14px; }
.notes summary { cursor: pointer; color: var(--muted); }
.notes-body {
  white-space: pre-wrap; background: #fafbfc; border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px; font-size: 13px; max-height: 260px;
  overflow: auto; font-family: ui-monospace, "Cascadia Mono", monospace;
}

.tabs { display: flex; gap: 6px; align-items: center; }
.tab {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 5px 14px; cursor: pointer; font: inherit; font-size: 13.5px;
}
.tab.active { background: #1b1f26; color: #fff; border-color: #1b1f26; }

.list { display: flex; flex-direction: column; gap: 8px; }
.item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px;
}
.item-code { font-weight: 600; }
.item-meta { color: var(--muted); font-size: 12.5px; }
.item-actions { display: flex; gap: 6px; }

.preview { margin-top: 14px; }
.preview pre {
  background: #fafbfc; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font-size: 12.5px; max-height: 420px; overflow: auto;
  font-family: ui-monospace, "Cascadia Mono", monospace;
}

.issue-form { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.issue-form input, .issue-form textarea, .issue-form select {
  border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px;
  font: inherit; width: 100%; background: #fff;
}
.issue-form button { align-self: flex-start; }
.issue { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.issue-title { font-weight: 600; }
.issue-meta { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

.banner {
  background: #fff4e5; border-bottom: 1px solid #f3d9b1; padding: 12px 24px;
  font-size: 14px;
}

.foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 24px 26px; max-width: 1080px; margin: 0 auto; flex-wrap: wrap;
}
.foot-logo { height: 26px; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
.status { padding: 2px 8px; border-radius: 999px; font-size: 12px; background: #eef1f5; }
.status.approved { background: #e3f5ec; color: var(--ok); }
.status.rejected { background: #fdecef; color: var(--accent); }
.status.applied { background: #e6effc; color: #1f4f9c; }
.status.ok { background: #e3f5ec; color: var(--ok); }
.status.bad { background: #fdecef; color: var(--accent); }

@media (max-width: 720px) {
  .wrap { padding: 0 12px; margin-top: 16px; }
  .card { padding: 16px 14px; }
  .topbar { padding: 12px 14px; }
  .version-block { text-align: left; }
  .dl { min-width: 100%; }
}

/* ---- лаунчер инструментов ---- */
.hero-launch h1{font-size:26px;margin:4px 0 4px}
.hero-launch p{margin:0 0 4px}
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:14px}
a.tool{display:flex;gap:14px;align-items:flex-start;background:var(--panel);
  border:1px solid var(--line);border-radius:14px;padding:18px;text-decoration:none;color:var(--ink);
  transition:transform .12s ease,border-color .12s ease,box-shadow .12s ease}
a.tool:hover{transform:translateY(-2px);border-color:var(--accent);box-shadow:0 8px 24px rgba(0,0,0,.08)}
.tool-icon{font-size:30px;width:52px;height:52px;border-radius:12px;display:grid;place-items:center;
  background:color-mix(in srgb,var(--accent) 14%,white);flex:none}
.tool-body{flex:1;min-width:0}
.tool-name{font-weight:700;font-size:17px;color:var(--accent)}
.tool-desc{color:var(--muted);font-size:13px;line-height:1.45;margin-top:3px}
.tool-open{align-self:flex-end;font-size:13px;color:var(--accent);font-weight:600;white-space:nowrap}
@media (max-width:720px){.tiles{grid-template-columns:1fr}}
