:root {
  --ink: #14213d;
  --ink-2: #4a5568;
  --paper: #f7f7f5;
  --card: #fff;
  --accent: #b5121b;
  --line: #e4e4e0;
}
body { font-family: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, sans-serif; background: var(--paper); color: var(--ink); }
.hero { background: linear-gradient(160deg, #14213d 0%, #1d2d50 60%, #26365d 100%); color: #fff; padding: 56px 24px 44px; }
.hero-inner { max-width: 1080px; margin: 0 auto; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; opacity: 0.75; margin: 0 0 12px; }
.hero h1 { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; margin: 0 0 16px; font-weight: 700; letter-spacing: -0.01em; max-width: 20ch; }
.lede { font-size: 17px; line-height: 1.55; max-width: 62ch; opacity: 0.92; margin: 0 0 20px; }
.status-row { display: flex; gap: 18px; align-items: center; font-size: 13px; flex-wrap: wrap; }
.runner-dot { display: inline-flex; align-items: center; gap: 6px; opacity: 0.9; }
.runner-dot i { width: 8px; height: 8px; border-radius: 50%; background: #97a0af; display: inline-block; }
.runner-dot.up i { background: #36b37e; box-shadow: 0 0 0 3px rgba(54,179,126,0.25); }
.runner-dot.down i { background: #ff5630; box-shadow: 0 0 0 3px rgba(255,86,48,0.25); }
.runner-dot code { background: rgba(255,255,255,0.12); padding: 1px 6px; border-radius: 4px; }

.content { max-width: 1080px; margin: -24px auto 40px; padding: 0 24px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.card {
  display: flex; flex-direction: column; gap: 10px; background: var(--card); border-radius: 12px; padding: 22px 22px 18px;
  text-decoration: none; color: inherit; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(20,33,61,0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease; position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--brand, #999); }
.card-jira { --brand: #0052cc; }
.card-plane { --brand: #4f46e5; }
.card-panel { --brand: #0f766e; }
.card-vibe { --brand: #8b5cf6; }
.card-gitlab { --brand: #fc6d26; }
.card-reset { --brand: #b5121b; }
a.card:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(20,33,61,0.12); }
.card-head { display: flex; justify-content: space-between; align-items: center; }
.proposal { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; color: var(--brand, #999); }
.brand { width: 28px; height: 28px; border-radius: 8px; background: var(--brand); opacity: 0.9; position: relative; }
.brand::after { content: ""; position: absolute; inset: 8px; border-radius: 3px; background: rgba(255,255,255,0.85); }
.brand-jira::after { clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.brand-plane::after { border-radius: 50%; }
.brand-panel::after { inset: 7px 9px; }
.brand-vibe::after { inset: 8px 6px; width: 5px; box-shadow: 6px 0 0 rgba(255,255,255,0.85), 12px 0 0 rgba(255,255,255,0.85); }
.brand-gitlab::after { clip-path: polygon(50% 100%, 0 40%, 20% 0, 50% 45%, 80% 0, 100% 40%); }
.card h2 { margin: 2px 0 0; font-size: 20px; }
.card p { margin: 0; color: var(--ink-2); line-height: 1.5; font-size: 14.5px; flex: 1; }
.counts { display: flex; flex-wrap: wrap; gap: 6px; min-height: 24px; }
.count { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: #eef0f3; color: #42526e; }
.count b { font-weight: 700; }
.count.cat-active { background: #deebff; color: #0747a6; }
.count.cat-waiting { background: #fff0b3; color: #7a4d00; }
.count.cat-review { background: #eae6ff; color: #403294; }
.count.cat-merged { background: #e0f2fe; color: #075985; }
.count.cat-done { background: #e3fcef; color: #006644; }
.card-cta { font-size: 13.5px; font-weight: 600; color: var(--brand); margin-top: 4px; }
.btn-reset {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: #fff; border: 0; border-radius: 8px;
  padding: 10px 16px; font-weight: 600; margin-top: 4px;
}
.btn-reset:hover { background: #99101a; }
.reset-note { font-size: 12px !important; }

.howto { margin-top: 40px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px 28px; }
.howto h2, .tasks-overview h2 { font-size: 18px; margin: 0 0 12px; }
.howto ol { margin: 0; padding-left: 22px; line-height: 1.6; font-size: 15px; }
.howto li { margin: 6px 0; }
.tip { margin: 16px 0 0; font-size: 13.5px; color: var(--ink-2); }
.tip code, .howto code { background: #eef0f3; padding: 1px 5px; border-radius: 4px; }

.tasks-overview { margin-top: 28px; }
.tasks-overview table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.tasks-overview th, .tasks-overview td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: top; }
.tasks-overview th { background: #f1f1ee; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-2); }
.task-cell .muted { font-size: 13px; }
.pill { display: inline-block; font-size: 12px; padding: 3px 9px; border-radius: 4px; text-decoration: none; font-weight: 600; background: #eef0f3; color: #42526e; }
.pill.cat-active { background: #deebff; color: #0747a6; }
.pill.cat-waiting { background: #fff0b3; color: #7a4d00; }
.pill.cat-review { background: #eae6ff; color: #403294; }
.pill.cat-merged { background: #e0f2fe; color: #075985; }
.pill.cat-done { background: #e3fcef; color: #006644; }
.foot { text-align: center; color: var(--ink-2); font-size: 13px; padding: 24px; }
