.wb-shell { max-width: 81rem; margin-inline: auto; padding: clamp(1.15rem, 4vw, 3rem); color: #e5edf8; }
.wb-shell h1, .wb-shell h2, .wb-shell h3 { color: #f5f8ff; line-height: 1.15; }
.wb-shell h1 { font-size: clamp(2.45rem, 7vw, 5.5rem); letter-spacing: -.068em; font-weight: 740; }
.wb-shell h2 { font-size: clamp(1.45rem, 3vw, 1.95rem); font-weight: 680; letter-spacing: -.035em; }
.wb-shell h3 { font-size: 1.05rem; font-weight: 650; }
.wb-shell a { color: #96caff; text-underline-offset: .24em; }
.wb-shell a:hover { color: #dfedff; }
.wb-shell :focus-visible { outline: 2px solid #9ad0ff; outline-offset: 3px; }
.wb-kicker { color: #8cbfff; font: 600 .77rem/1.1 "Roboto Mono", monospace; letter-spacing: .09em; text-transform: uppercase; }
.wb-lede { max-width: 47rem; font-size: clamp(1.04rem, 2vw, 1.22rem); line-height: 1.58; color: #b5c6db; }
.wb-muted { color: #95a8c0; font-size: .88rem; }
.wb-stack > * + * { margin-top: .85rem; }
.wb-section { margin-top: clamp(2rem, 5vw, 3.8rem); }
.wb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr)); gap: .8rem; margin-top: 1rem; }
.wb-card { background: #151e2a; border: 1px solid #27374c; border-radius: 12px; padding: 1rem; min-width: 0; }
.wb-card p { color: #a8bbd1; line-height: 1.5; font-size: .92rem; }
.wb-card > * + * { margin-block-start: .5rem; }
.wb-card.wb-card-link { display: block; min-height: 7.3rem; }
.wb-card.wb-card-link:hover { background: #192737; border-color: #52799f; }
.wb-hero { background: radial-gradient(ellipse at 80% 20%, #193454 0%, #142131 44%, #111925 80%); padding: clamp(1.3rem, 5vw, 4.2rem); border: 1px solid #2a405b; border-radius: 20px; }
.wb-prompt { margin-top: 1.35rem; max-width: 47rem; }
.wb-field-row, .wb-actions, .wb-links { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.wb-field-row input { flex: 1 1 14rem; }
.wb-label { display: block; margin-bottom: .4rem; color: #d8e5f6; font-weight: 600; font-size: .9rem; }
.wb-shell textarea, .wb-shell input:not([type=checkbox]):not([type=file]), .wb-shell select { min-width: 0; background: #0d141e; color: #eaf2fc; border: 1px solid #3c516e; border-radius: 8px; padding: .65rem .75rem; }
.wb-shell textarea { display: block; width: 100%; min-height: 14rem; resize: vertical; font: .88rem/1.56 "Roboto Mono", monospace; }
.wb-button { background: #1c2a3e; color: #eaf2fc; border: 1px solid #455e7d; border-radius: 8px; padding: .61rem .8rem; font-weight: 650; font-size: .86rem; cursor: pointer; }
.wb-button:hover { background: #233854; }
.wb-button:disabled { opacity: .47; cursor: default; }
.wb-primary { background: #90c5ff; color: #0c243e; border-color: #90c5ff; }
.wb-primary:hover { background: #c5e1ff; }
.wb-panels { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .9rem; align-items: start; margin-top: 1.1rem; }
.wb-finding { border-top: 1px solid #374b64; padding: .8rem 0; overflow-wrap: anywhere; }
.wb-finding > * + * { margin-top: .45rem; }
.wb-status { font: 600 .74rem "Roboto Mono", monospace; color: #b8cce8; }
[data-status=pass] .wb-status { color: #86e5b4; }
[data-status=warning] .wb-status { color: #f2d799; }
[data-status=fail] .wb-status { color: #ffa9aa; }
.wb-remediation { color: #d6e7fa !important; }
.wb-finding pre { overflow: auto; background: #0d141e; padding: .7rem; border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .77rem; margin-top: .5rem; }
.wb-table-wrap { overflow: auto; max-width: 100%; margin-top: .45rem; }
.wb-table-wrap table { border-collapse: collapse; font: .75rem/1.4 "Roboto Mono", monospace; width: 100%; }
.wb-table-wrap th, .wb-table-wrap td { border-bottom: 1px solid #354861; padding: .35rem; text-align: left; }
.wb-evidence-label { text-transform: capitalize; margin-top: .5rem; }
.wb-shell details summary { cursor: pointer; color: #abcffa; }
.wb-shell ul { list-style: disc; padding-left: 1.15rem; }
.wb-counts { display: flex; gap: .5rem 1.2rem; flex-wrap: wrap; color: #becfe4; margin-top: 1.05rem; }
.wb-file { max-width: 100%; font-size: .82rem; }
.wb-small-title h1 { font-size: clamp(2.3rem, 5.6vw, 4.25rem); }
@media (max-width: 820px) { .wb-panels { grid-template-columns: minmax(0, 1fr); } }

.wb-hero-art { background-image: linear-gradient(90deg, #101923 5%, #101923 32%, #101923d8 52%, #10192335 82%), url(../images/workbench-network-hero.webp); background-position: center, right 42%; background-size: cover, 76% auto; background-repeat: no-repeat; }
.wb-hero-art .wb-lede { max-width: 38rem; }
.wb-hero-art .wb-prompt { max-width: 40rem; }
.wb-subnet-bar { display: flex; width: 100%; height: 1.25rem; gap: 2px; border-radius: 6px; overflow: hidden; margin-block: .5rem; }
.wb-subnet-bar span { flex-basis: 0; min-width: 1px; background: #8cbfff; }
.wb-subnet-bar [data-tone="1"] { background: #78dfc4; }
.wb-subnet-bar [data-tone="2"] { background: #c5a8f2; }
.wb-subnet-bar [data-tone="3"] { background: #f3cc93; }
.wb-subnet-map figcaption { font-size: .76rem; color: #abc6e1; }
.wb-timeline { margin-block: .9rem; border-left: 1px solid #578abd; padding-left: .8rem; max-height: 19rem; overflow: auto; }
.wb-timeline li { margin-block: .6rem; }
.wb-timeline time { color: #9fceff; font: .74rem "Roboto Mono", monospace; }
@media (max-width: 680px) {
  .wb-hero-art { background-image: linear-gradient(110deg, #101923 10%, #101923c9 95%), url(../images/workbench-network-hero.webp); background-size: cover; }
}

.wb-lede, .wb-card, .wb-shell h1 { overflow-wrap: anywhere; }
.wb-shell form { min-width: 0; }

@media (min-width: 960px) { .wb-home-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.wb-score { border: 1px solid #395474; background: #17283c; border-radius: 8px; padding: .65rem .75rem; }
.wb-score p { margin-top: .35rem; }
.wb-file::file-selector-button { background: #1c2a3e; border: 1px solid #455e7d; color: #eaf2fc; border-radius: 6px; padding: .35rem .6rem; margin-right: .5rem; }

.wb-topology { padding: .55rem; background: #0e1724; border-radius: 8px; }
.wb-topology svg { display: block; max-width: 100%; height: auto; margin-block-end: .5rem; }

.wb-prompt textarea { min-height: 0; flex: 1 1 100%; }
.wb-export-preview { max-height: 18rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.wb-cli-snippet { overflow-x: auto; background: #0d141e; border: 1px solid #27374c; border-radius: 8px; padding: .75rem .9rem; font: .82rem/1.5 "Roboto Mono", monospace; color: #dfedff; max-width: 100%; }
.wb-badge-row { display: flex; flex-wrap: wrap; gap: .45rem .8rem; align-items: center; margin-top: .4rem; font-size: .84rem; color: #b5c6db; }

/* Landing pages (tools, guides, about) share the workbench hero system:
   left-aligned, studio scale and rhythm. Long titles step down instead of
   wrapping into dangling fragments. */
.wb-landing-hero { max-width: 56rem; }
.wb-landing-hero > * + * { margin-top: .85rem; }
.wb-landing-title { color: #f5f8ff; font-weight: 740; letter-spacing: -.045em; line-height: 1.08; font-size: clamp(2.3rem, 5.6vw, 4.25rem); overflow-wrap: anywhere; }
.wb-landing-title.wb-title-mid { font-size: clamp(2rem, 4.6vw, 3.35rem); line-height: 1.12; }
.wb-landing-title.wb-title-long { font-size: clamp(1.72rem, 3.8vw, 2.7rem); line-height: 1.18; letter-spacing: -.03em; text-wrap: balance; }
.wb-landing-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.15rem; }
.wb-landing-actions a, .wb-landing-related a { text-decoration: none; display: inline-flex; align-items: center; }
.wb-landing-related { display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }

/* Landing hero on small screens: tighter scale and rhythm so the tool
   itself lands in the first screen. */
@media (max-width: 640px) {
  .wb-landing-title { font-size: clamp(1.95rem, 8.6vw, 2.5rem); }
  .wb-landing-title.wb-title-mid { font-size: clamp(1.8rem, 7.6vw, 2.25rem); }
  .wb-landing-title.wb-title-long { font-size: clamp(1.55rem, 6.4vw, 2rem); }
  .wb-landing-hero > * + * { margin-top: .6rem; }
}
