/*
  assess.css — styles for the practical starter kit: "Start my assessment" (profile form, plan tabs,
  environment diagram, prompts, manual commands) and "Import evidence" (drop zone, results, detail).
  Reuses the tokens in base.css so the new screens match the existing demo.
*/
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-tested { background: var(--evidence-soft); color: var(--evidence); }
.st-documented { background: #e9f0ff; color: #3256b8; }
.st-manual { background: var(--manual-soft); color: var(--manual); }
.st-provider { background: #f2f3f7; color: #5b6478; }
.st-unsupported { background: #fdecec; color: #b42f2f; }
.pill-private { background: var(--evidence-soft); color: var(--evidence); border: 1px solid #bfe5df; }

/* Start hero strip */
.start-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; margin-bottom: 18px; }
.start-hero .card { background: linear-gradient(135deg, #ffffff 0%, #f3f2ff 100%); }
.steps-mini { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.steps-mini span { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); }
.steps-mini b { color: var(--accent); margin-right: 4px; }
.privacy { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.privacy i { font-style: normal; width: 26px; height: 26px; border-radius: 8px; background: var(--evidence); color: #fff; display: grid; place-items: center; flex: none; font-size: 12px; }

/* Profile form */
.profile { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.q { padding: 16px; }
.q h3 { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.q h3 .n { width: 22px; height: 22px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 12px; }
.q p.hint { font-size: 12.5px; color: var(--muted); margin: 4px 0 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); padding: 6px 11px; border-radius: 999px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: .12s; }
.chip:hover { border-color: var(--accent); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.q select { width: 100%; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 13px; background: var(--surface); margin-top: 6px; }
.q label.sm { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 8px; }
.gen-bar { position: sticky; bottom: 12px; z-index: 4; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.gen-bar .summary { flex: 1; min-width: 200px; font-size: 13px; color: var(--ink-2); }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.examples { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--muted); }

/* Plan */
.plan { margin-top: 26px; scroll-margin-top: 80px; }
.plan-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.plan-tabs { margin-bottom: 14px; flex-wrap: wrap; }
.legend-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 0; }
.matrix td:first-child { min-width: 180px; }
.matrix td { font-size: 13px; }
.matrix .prov-cell { color: var(--muted); }
pre.code { background: #0f1430; color: #e6e8f5; border-radius: 12px; padding: 14px 16px; overflow-x: auto; white-space: pre-wrap; word-break: break-word; font-size: 12px; line-height: 1.55; margin: 8px 0 0; max-height: 460px; }
.cmd { position: relative; }
.cmd .copy { position: absolute; top: 8px; right: 8px; }
.copy { font-size: 11.5px; padding: 4px 9px; border-radius: 7px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #e6e8f5; cursor: pointer; font: inherit; font-weight: 600; }
.manual-step { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.manual-step:last-child { border-bottom: 0; }
.manual-step .n { width: 28px; height: 28px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; font-size: 13px; }
.agent-run { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 960px) { .agent-run, .start-hero { grid-template-columns: 1fr; } }

/* Environment diagram */
.env-wrap { display: grid; grid-template-columns: 1fr 270px; gap: 16px; align-items: start; }
@media (max-width: 1280px) { .env-wrap { grid-template-columns: 1fr; } }
.env-svg { width: 100%; height: auto; display: block; }
.env-svg .node.st-tested rect { stroke: var(--evidence); }
.env-svg .node.st-documented rect { stroke: #7f9be0; }
.env-svg .node.st-manual rect { stroke: var(--manual); stroke-dasharray: 5 3; }
.env-svg .node.st-provider rect { stroke: #b6bccb; stroke-dasharray: 2 3; fill: #fafbfd; }
.env-svg .node.st-unsupported rect { stroke: #e7a1a1; fill: #fff7f7; }
.env-svg .node.k-env rect { fill: #f3f2ff; stroke: #c9c5ff; }
.env-svg .node.k-out rect { fill: #f2fbf9; stroke: #9fd9d0; }

/* Import */
.drop { border: 2px dashed #c9cfe0; border-radius: 16px; padding: 26px; text-align: center; background: var(--surface); transition: .15s; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop h3 { margin-bottom: 4px; }
.drop input { display: none; }
.files { display: flex; flex-direction: column; gap: 8px; }
.file-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 13px; }
.file-row b { font-family: var(--mono); font-size: 12.5px; }
.ev-tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; text-transform: uppercase; letter-spacing: .04em; }
.ev-tag.detected, .ev-tag.declared, .ev-tag.observed { background: var(--evidence-soft); color: var(--evidence); }
.ev-tag.agent-reported { background: var(--ai-soft); color: var(--ai); }
.warn { padding: 10px 12px; border-radius: 10px; background: #fff7e6; border: 1px solid #f6dfb5; color: #7a4a00; font-size: 12.5px; }
.err { padding: 10px 12px; border-radius: 10px; background: #fdecec; border: 1px solid #f3c2c2; color: #962626; font-size: 12.5px; }
.sumstrip { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.sumstrip div { padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.sumstrip b { display: block; font-size: 22px; }
.sumstrip span { font-size: 11.5px; color: var(--muted); font-weight: 600; }
@media (max-width: 1100px) { .sumstrip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.imp-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .imp-grid { grid-template-columns: 1fr; } }
.imp-detail { position: sticky; top: 78px; }
.imp-detail dl { margin: 10px 0 0; display: grid; grid-template-columns: 1fr; gap: 10px; }
.imp-detail dt { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 650; }
.imp-detail dd { margin: 2px 0 0; font-size: 13.5px; }
.loc { font-family: var(--mono); font-size: 12px; color: var(--ink-2); word-break: break-all; }
textarea.paste { width: 100%; min-height: 90px; border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-family: var(--mono); font-size: 12px; }
details.na summary { cursor: pointer; font-weight: 650; font-size: 13.5px; }
@media (max-width: 760px) { .sumstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gen-bar { position: static; } }
.cmd pre.code { padding-right: 72px; }
.imp-grid .table td:first-child { white-space: nowrap; }
.imp-grid .table td:nth-child(2) { white-space: nowrap; }
.kit-links { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
@media (max-width: 1100px) { .imp-grid { grid-template-columns: minmax(0, 1fr); } .imp-detail { position: static; } }
.env-wrap .map-card { overflow-x: auto; }
@media (max-width: 760px) { .env-svg { min-width: 720px; } #run-btn { display: none; } .topbar .org { display: none; } }
/* Small-screen fixes for demo screens touched by the starter-kit header changes */
@media (max-width: 760px) { .view-head .row-gap, .hero-trust, .hero-cta { flex-wrap: wrap; } #lens { flex-wrap: wrap; } }
@media (max-width: 760px) {
  .tabs { flex-wrap: wrap; }
  .tl-zone span { white-space: normal; max-width: 150px; }
  .stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-layout, .ctx-layout, .ai-layout, .cbom-grid, .dash-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) { .dl { grid-template-columns: minmax(0, 1fr); } .dl dd { overflow-wrap: anywhere; } }
