.collective-cyber-defense {
  --ccd-ink: #17231f;
  --ccd-muted: #68736f;
  --ccd-paper: #f5f4f0;
  --ccd-white: #fff;
  --ccd-line: #d7ddda;
  --ccd-green: #2e6f61;
  --ccd-green-soft: #dcebe5;
  --ccd-gold: #8a6b32;
  --ccd-red: #a34f42;
  margin: 3.5rem 0;
  overflow: hidden;
  color: var(--ccd-ink);
  background: var(--ccd-paper);
  border: 1px solid var(--ccd-line);
  border-radius: 28px;
  box-shadow: 0 22px 70px rgba(18, 29, 24, .1);
}
.collective-cyber-defense *, .collective-cyber-defense *::before, .collective-cyber-defense *::after { box-sizing: border-box; }
.collective-cyber-defense button, .collective-cyber-defense input { font: inherit; }
.ccd-masthead { display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(360px, .96fr); gap: 2rem; padding: 3rem; background: #17231f; color: #fff; }
.ccd-kicker { color: #91c7b8; font: 700 .72rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .15em; text-transform: uppercase; }
.ccd-masthead h2 { max-width: 760px; margin: 1rem 0 0; font-size: clamp(2.45rem, 5vw, 4.8rem); line-height: .97; letter-spacing: -.055em; }
.ccd-masthead h2 em { color: #d4b46f; font-family: Georgia, serif; font-weight: 500; }
.ccd-masthead p { max-width: 720px; margin: 1.4rem 0 0; color: #bdc7c3; font-size: 1.04rem; line-height: 1.7; }
.ccd-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.5rem; }
.ccd-actions a, .ccd-actions button { display: inline-flex; min-height: 44px; align-items: center; padding: .7rem 1rem; border-radius: 999px; font-weight: 760; text-decoration: none; cursor: pointer; }
.ccd-actions .primary { border: 1px solid #91c7b8; color: #17231f; background: #91c7b8; }
.ccd-actions .secondary { border: 1px solid rgba(255,255,255,.22); color: #fff; background: transparent; }
.ccd-masthead figure { align-self: center; margin: 0; }
.ccd-masthead figure img { display: block; width: 100%; height: auto; border: 1px solid rgba(255,255,255,.12); border-radius: 18px; }
.ccd-masthead figcaption { margin-top: .65rem; color: #91a09a; font-size: .75rem; line-height: 1.5; }
.ccd-proof { display: grid; grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--ccd-line); background: var(--ccd-white); }
.ccd-proof span { padding: 1.2rem 1.35rem; border-right: 1px solid var(--ccd-line); }
.ccd-proof span:last-child { border-right: 0; }
.ccd-proof b { display: block; color: var(--ccd-green); font-size: 2rem; line-height: 1; }
.ccd-proof small { display: block; margin-top: .45rem; color: var(--ccd-muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.ccd-body { padding: 2.6rem 3rem 3rem; }
.ccd-section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin: 0 0 1.15rem; }
.ccd-section-head + .ccd-section-head { margin-top: 2.8rem; }
.ccd-section-head span { color: var(--ccd-green); font: 700 .7rem ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; }
.ccd-section-head h3 { margin: .45rem 0 0; font-size: clamp(1.65rem, 3vw, 2.5rem); letter-spacing: -.035em; }
.ccd-section-head p { max-width: 540px; margin: 0; color: var(--ccd-muted); line-height: 1.55; }
.ccd-routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--ccd-line); border-radius: 18px; background: var(--ccd-line); }
.ccd-route { min-height: 190px; padding: 1.3rem; color: inherit; text-decoration: none; background: var(--ccd-white); }
.ccd-route span { color: var(--ccd-gold); font: 700 .68rem ui-monospace, monospace; letter-spacing: .1em; }
.ccd-route h4 { margin: 1.15rem 0 .55rem; font-size: 1.15rem; }
.ccd-route p { margin: 0; color: var(--ccd-muted); font-size: .88rem; line-height: 1.55; }
.ccd-route:hover h4 { color: var(--ccd-green); text-decoration: underline; text-underline-offset: 3px; }
.ccd-fix-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.ccd-fix { min-height: 190px; padding: 1.2rem; color: inherit; text-decoration: none; border: 1px solid var(--ccd-line); border-radius: 16px; background: var(--ccd-white); }
.ccd-fix header { display: flex; justify-content: space-between; gap: .75rem; }
.ccd-fix header span, .ccd-fix header b { color: var(--ccd-green); font: 700 .68rem ui-monospace, monospace; text-transform: uppercase; }
.ccd-fix h4 { margin: 1rem 0 .65rem; font-size: 1.08rem; line-height: 1.35; }
.ccd-fix footer { display: flex; justify-content: space-between; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--ccd-line); color: var(--ccd-muted); font-size: .76rem; }
.ccd-containment { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1rem; }
.ccd-clock, .ccd-benchmark { padding: 1.4rem; border: 1px solid var(--ccd-line); border-radius: 18px; background: var(--ccd-white); }
.ccd-clock h4, .ccd-benchmark h4 { margin: 0 0 1.1rem; font-size: 1.25rem; }
.ccd-clock-row { display: grid; grid-template-columns: minmax(150px, 1fr) auto; gap: .8rem; padding: .72rem 0; border-top: 1px solid var(--ccd-line); }
.ccd-clock-row:first-of-type { border-top: 0; }
.ccd-clock-row span { color: var(--ccd-muted); }
.ccd-clock-row b { color: var(--ccd-green); font-family: ui-monospace, monospace; }
.ccd-family { display: grid; grid-template-columns: 1fr auto; gap: .8rem; padding: .7rem 0; border-top: 1px solid var(--ccd-line); }
.ccd-family:first-of-type { border-top: 0; }
.ccd-family span { text-transform: capitalize; }
.ccd-family b { color: var(--ccd-green); font-family: ui-monospace, monospace; }
.ccd-workbench { overflow: hidden; border: 1px solid var(--ccd-line); border-radius: 18px; background: var(--ccd-white); }
.ccd-workbench header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.25rem 1.4rem; color: #fff; background: #17231f; }
.ccd-workbench header h4 { margin: 0; font-size: 1.2rem; }
.ccd-workbench header small { display: block; margin-top: .35rem; color: #aebcb6; }
.ccd-file-actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.ccd-file-actions label, .ccd-file-actions button { min-height: 40px; padding: .6rem .8rem; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; color: #fff; background: transparent; font-weight: 700; cursor: pointer; }
.ccd-file-actions input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ccd-file-actions button.primary { color: #17231f; border-color: #91c7b8; background: #91c7b8; }
.ccd-workbench-body { padding: 1.3rem 1.4rem 1.5rem; }
.ccd-local-note { display: flex; align-items: start; gap: .7rem; margin: 0 0 1rem; padding: .85rem 1rem; color: #43534d; background: var(--ccd-green-soft); border-radius: 12px; line-height: 1.5; }
.ccd-local-note b { white-space: nowrap; color: var(--ccd-green); font: 700 .7rem ui-monospace, monospace; }
.ccd-plan-summary { display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem; margin-bottom: 1rem; }
.ccd-plan-summary span { padding: .8rem; border: 1px solid var(--ccd-line); border-radius: 11px; }
.ccd-plan-summary b { display: block; font-size: 1.25rem; }
.ccd-plan-summary small { color: var(--ccd-muted); }
.ccd-table-wrap { overflow-x: auto; }
.ccd-plan-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: .82rem; }
.ccd-plan-table th { padding: .65rem; color: var(--ccd-muted); text-align: left; border-bottom: 1px solid var(--ccd-line); font: 700 .68rem ui-monospace, monospace; text-transform: uppercase; }
.ccd-plan-table td { padding: .75rem .65rem; border-bottom: 1px solid #e7ebe9; }
.ccd-pass { color: var(--ccd-green); font-weight: 800; }
.ccd-fail { color: var(--ccd-red); font-weight: 800; }
.ccd-empty { margin: 0; padding: 1.5rem; text-align: center; color: var(--ccd-muted); border: 1px dashed #bbc6c1; border-radius: 12px; }
.ccd-evidence { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.ccd-mesh, .ccd-outcomes { padding: 1.4rem; border-radius: 18px; }
.ccd-mesh { color: #fff; background: #17231f; }
.ccd-outcomes { border: 1px solid var(--ccd-line); background: #ebe9e2; }
.ccd-mesh > span, .ccd-outcomes > span { font: 700 .69rem ui-monospace, monospace; letter-spacing: .1em; }
.ccd-mesh > span { color: #91c7b8; }
.ccd-outcomes > span { color: var(--ccd-gold); }
.ccd-mesh h4, .ccd-outcomes h4 { margin: .8rem 0 .5rem; font-size: 1.3rem; }
.ccd-mesh p { color: #bac5c0; line-height: 1.55; }
.ccd-outcomes p { color: #635e51; line-height: 1.55; }
.ccd-levels { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.ccd-levels span { padding: .45rem .6rem; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; color: #d4ded9; font: 700 .68rem ui-monospace, monospace; }
.ccd-gap { margin-top: 1rem; padding: .8rem; border-left: 3px solid var(--ccd-red); background: rgba(255,255,255,.45); }
.ccd-repro-head { margin-top: 2.8rem; }
.ccd-reproduction { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: 1rem; }
.ccd-repro-flow, .ccd-repro-desk { overflow: hidden; border: 1px solid var(--ccd-line); border-radius: 18px; background: var(--ccd-white); }
.ccd-repro-flow > header, .ccd-repro-desk > header { padding: 1.3rem 1.4rem 1rem; }
.ccd-repro-flow header span, .ccd-repro-desk header span { color: var(--ccd-green); font: 700 .68rem ui-monospace, monospace; letter-spacing: .11em; }
.ccd-repro-flow h4, .ccd-repro-desk h4 { margin: .55rem 0 0; font-size: 1.3rem; }
.ccd-repro-desk header p { margin: .65rem 0 0; color: var(--ccd-muted); font-size: .82rem; line-height: 1.55; }
.ccd-repro-pipeline { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0 1.4rem; border: 1px solid var(--ccd-line); border-radius: 13px; }
.ccd-repro-pipeline article { min-height: 155px; padding: .9rem; border-right: 1px solid var(--ccd-line); }
.ccd-repro-pipeline article:last-child { border-right: 0; }
.ccd-repro-pipeline span { color: var(--ccd-gold); font: 700 .62rem ui-monospace, monospace; text-transform: uppercase; }
.ccd-repro-pipeline b { display: block; margin-top: .85rem; font-size: 1rem; }
.ccd-repro-pipeline p { margin: .45rem 0 0; color: var(--ccd-muted); font-size: .75rem; line-height: 1.5; }
.ccd-repro-truth { display: grid; grid-template-columns: 1.3fr 1fr 1fr; margin: 1rem 1.4rem 0; border-top: 1px solid var(--ccd-line); border-bottom: 1px solid var(--ccd-line); }
.ccd-repro-truth span { padding: .85rem .55rem; border-right: 1px solid var(--ccd-line); }
.ccd-repro-truth span:last-child { border-right: 0; }
.ccd-repro-truth b { display: block; color: var(--ccd-green); font: 800 .8rem ui-monospace, monospace; text-transform: uppercase; }
.ccd-repro-truth small { display: block; margin-top: .35rem; color: var(--ccd-muted); font-size: .65rem; line-height: 1.35; text-transform: uppercase; }
.ccd-repro-demo-note { margin: 1rem 1.4rem 1.35rem; color: var(--ccd-muted); font-size: .8rem; line-height: 1.55; }
.ccd-repro-file { display: block; margin: 0 1.4rem; padding: .8rem; color: #fff; border-radius: 10px; background: #17231f; font-size: .82rem; font-weight: 750; text-align: center; cursor: pointer; }
.ccd-repro-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ccd-repro-local-status { margin: .9rem 1.4rem; color: var(--ccd-muted); font-size: .8rem; line-height: 1.5; }
.ccd-repro-checks { display: grid; gap: 1px; margin: 0 1.4rem; background: var(--ccd-line); border: 1px solid var(--ccd-line); border-radius: 10px; overflow: hidden; }
.ccd-repro-checks div { display: grid; grid-template-columns: 46px 1fr; gap: .55rem; padding: .55rem .65rem; background: #fff; font-size: .72rem; line-height: 1.4; }
.ccd-repro-checks b { font: 800 .62rem ui-monospace, monospace; }
.ccd-repro-pass b { color: var(--ccd-green); }.ccd-repro-fail b { color: var(--ccd-red); }
.ccd-repro-desk details { margin: 1rem 1.4rem 0; padding-top: .8rem; border-top: 1px solid var(--ccd-line); color: var(--ccd-muted); font-size: .78rem; }
.ccd-repro-desk summary { color: var(--ccd-ink); font-weight: 750; cursor: pointer; }
.ccd-repro-desk ol { padding-left: 1.2rem; line-height: 1.55; }
.ccd-repro-open { display: block; margin: 1rem 1.4rem 1.35rem; color: var(--ccd-green); font-size: .78rem; font-weight: 800; text-decoration: none; }
.ccd-sources { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.2rem; }
.ccd-sources a { padding: .48rem .65rem; color: var(--ccd-green); border: 1px solid var(--ccd-line); border-radius: 999px; font-size: .74rem; font-weight: 700; text-decoration: none; background: var(--ccd-white); }
.ccd-error { color: var(--ccd-red); }
.collective-cyber-defense button:focus-visible, .collective-cyber-defense a:focus-visible, .collective-cyber-defense label:focus-within { outline: 3px solid #d4b46f; outline-offset: 3px; }

@media (max-width: 1000px) {
  .ccd-masthead { grid-template-columns: 1fr; }
  .ccd-routes { grid-template-columns: repeat(2, 1fr); }
  .ccd-reproduction { grid-template-columns: 1fr; }
  .ccd-proof { grid-template-columns: repeat(3, 1fr); }
  .ccd-fix-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .collective-cyber-defense { border-radius: 20px; }
  .ccd-masthead, .ccd-body { padding: 1.5rem; }
  .ccd-proof, .ccd-routes, .ccd-containment, .ccd-evidence { grid-template-columns: 1fr; }
  .ccd-repro-pipeline { grid-template-columns: 1fr 1fr; }
  .ccd-repro-pipeline article:nth-child(2) { border-right: 0; }
  .ccd-repro-pipeline article { border-bottom: 1px solid var(--ccd-line); }
  .ccd-repro-pipeline article:nth-child(n+3) { border-bottom: 0; }
  .ccd-proof span { border-right: 0; border-bottom: 1px solid var(--ccd-line); }
  .ccd-section-head, .ccd-workbench header { display: block; }
  .ccd-section-head p { margin-top: .75rem; }
  .ccd-file-actions { margin-top: 1rem; }
  .ccd-plan-summary { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .collective-cyber-defense *, .collective-cyber-defense *::before, .collective-cyber-defense *::after { transition: none !important; }
}
