.hero .hero-role { flex-wrap: wrap; gap: 5px 9px; text-transform: uppercase; }
.hero-specialty { color: var(--accent-text); }
.hero-specialty::before { content: "·"; margin-right: 9px; color: var(--muted); }

.art-ddos { background: #2a2034; color: #eec4d7; }
.art-ddos > svg { width: min(95%, 520px); }
.status-ddos { background: #f5dce8; color: #743351; }

.ddos-dialog { width: min(910px, calc(100% - 24px)); }
.ddos-dialog h2 { text-wrap: balance; }
.ddos-controls { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 12px; }
.ddos-controls .button { min-height: 39px; padding: 7px 12px; font-size: 12px; cursor: pointer; }
.ddos-controls .button-dark { border: 1px solid transparent; }
.ddos-controls .button-outline { background: transparent; }
.ddos-controls .button:disabled { opacity: .62; cursor: wait; }
.ddos-phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 5px; margin: 0 0 12px; padding: 0; list-style: none; }
.ddos-phases li { padding: 6px 4px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); text-align: center; font: 700 10px/1.3 var(--mono); }
.ddos-phases [aria-current] { border-color: var(--accent-text); color: var(--accent-text); }

.ddos-layout { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr); gap: 9px; }
.ddos-console, .ddos-preview { min-width: 0; border: 1px solid #3e4d61; border-radius: 8px; background: #161f2e; color: #e8eef6; overflow: hidden; }
.ddos-console { padding: 11px 12px; }
.ddos-panel-heading, .ddos-browser-bar { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.ddos-panel-heading h3 { font-size: 13px; }
.ddos-panel-heading span { color: #9ee5d3; text-align: right; font: 700 9px/1.2 var(--mono); }
.ddos-map { display: block; width: 100%; height: auto; max-height: 178px; margin: 5px 0; }
.ddos-flood-routes { fill: none; stroke: #7b506a; stroke-width: 1.7; }
.ddos-clean-route { fill: none; stroke: #78bfad; stroke-width: 1.7; }
.ddos-map-boxes rect { fill: #253146; stroke: #587085; }
.ddos-map-boxes .ddos-visitor-box { stroke: #7bbdab; }
.ddos-map-labels { fill: #e6edf5; font: 700 10px var(--mono); text-anchor: middle; dominant-baseline: middle; }
.ddos-dialog[data-phase="surge"] .ddos-flood-routes, .ddos-dialog[data-phase="outage"] .ddos-flood-routes { stroke: #ff829a; }
.ddos-dialog[data-phase="outage"] .ddos-origin-box { fill: #512b39; stroke: #ff829a; }
.ddos-dialog[data-phase="mitigate"] .ddos-edge-box, .ddos-dialog[data-phase="recovered"] .ddos-edge-box { fill: #22423f; stroke: #a0edda; }
.ddos-legend { display: flex; flex-wrap: wrap; gap: 4px 13px; color: #bccbde; font: 600 10px/1.4 var(--mono); }
.ddos-legend span::before { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: #a0edda; content: ""; }
.ddos-legend span:last-child::before { background: #ff829a; }
.ddos-browser-bar { padding: 8px 10px; border-bottom: 1px solid #3e4d61; background: #202c3d; color: #cad6e5; font: 650 clamp(9px, 1.3vw, 11px)/1.3 var(--mono); }
.ddos-browser-bar strong { color: #a0edda; text-align: right; }
.ddos-browser-dots { color: #92a4bc; font-size: 7px; white-space: nowrap; }
.ddos-dialog[data-phase="surge"] .ddos-browser-bar strong { color: #ffe09b; }
.ddos-dialog[data-phase="outage"] .ddos-browser-bar strong { color: #ffb6c5; }
.ddos-browser-body { display: grid; align-items: center; min-height: 152px; padding: 12px 15px; }
.ddos-preview-label { color: #b7c7da; font: 700 9px/1.3 var(--mono); letter-spacing: .05em; }
.ddos-preview-name { display: block; margin: 2px 0; color: #f5f7fc; font-size: clamp(20px, 3.7vw, 32px); line-height: 1.15; letter-spacing: -.04em; }
.ddos-preview-name span { color: #ff9a7e; }
.ddos-browser-body p { margin: 3px 0 0; color: #b7c7da; font-size: 12px; }
.ddos-ready { display: inline-block; margin-top: 10px; color: #a0edda; font: 650 10px/1.4 var(--mono); }
.ddos-interruption { display: grid; justify-items: center; gap: 4px; text-align: center; }
.ddos-interruption strong { font-size: 13px; }
.ddos-interruption .ddos-code { color: #ff9fb2; font: 750 34px/1.1 var(--mono); }
.ddos-spinner { width: 23px; height: 23px; margin: 1px 0 5px; border: 2px solid #445974; border-top-color: #ffe09b; border-radius: 50%; animation: ddos-spin .9s linear infinite; }
@keyframes ddos-spin { to { transform: rotate(1turn); } }
.ddos-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; margin: 10px 0; }
.ddos-metrics > div { padding: 8px; border: 1px solid var(--line); border-radius: 6px; }
.ddos-metrics dt { color: var(--muted); font: 600 10px/1.35 var(--mono); }
.ddos-metrics dd { margin: 3px 0 0; color: var(--ink); font: 750 clamp(14px, 2.4vw, 22px)/1.15 var(--mono); }

@media (max-width: 680px) {
  .ddos-layout { grid-template-columns: minmax(0, 1fr); }
  .ddos-browser-body { min-height: 132px; }
}
@media (prefers-reduced-motion: reduce) {
  .ddos-spinner { animation: none; }
  [data-ddos-packets] { display: none; }
}
