/* Workspace layout: the tool is the first action on every scanner page. */
:root {
  --ink: #19283f;
  --muted: #53647a;
  --line: #e1e6ef;
  --pale: #edf2ff;
  --surface: #fff;
  --radius: 12px;
}
body {
  background: #f6f8fc;
  color: var(--ink);
  font-size: 16px;
}
.page-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.page-shell > main {
  flex: 1;
}
.home-choice {
  max-width: 930px;
  margin: 0 auto 60px;
}
.home-choice .scanner-heading {
  margin: 65px auto 36px;
}
.home-tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.home-tool {
  border: 1px solid #dce4f0;
  background: white;
  border-radius: 18px;
  padding: 32px;
}
.home-tool-vt {
  background: #eef3ff;
  border-color: #d4dffa;
}
.home-tool-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  color: var(--blue);
  background: #edf2ff;
  margin-bottom: 26px;
}
.home-tool-mark .icon {
  width: 29px;
  height: 29px;
}
.home-tool-vt .home-tool-mark {
  background: white;
}
.home-tool h2 {
  font-size: 30px;
  font-weight: 750;
  margin: 0 0 13px;
  letter-spacing: -1px;
}
.home-tool p {
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 28px;
}
.home-tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.home-tool-actions .button {
  padding: 14px 16px;
}
.scanner-heading {
  margin-top: 34px;
  margin-bottom: 26px;
}
.scan-progress {
  padding: 18px;
  border: 1px solid #bbcafa;
  background: #f1f5ff;
  border-radius: 11px;
  margin: 0 0 20px;
}
.progress-heading {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.progress-heading > span:last-child {
  margin-left: auto;
}
.progress-spinner {
  width: 17px;
  height: 17px;
  border: 2px solid #c8d5f7;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: progress-turn 0.9s linear infinite;
}
.progress-meter {
  height: 6px;
  border-radius: 8px;
  background: #dce5fa;
  overflow: hidden;
  margin: 16px 0;
}
.progress-meter > span {
  display: block;
  width: var(--progress, 8%);
  height: 100%;
  background: var(--blue);
  border-radius: 8px;
  transition: width 0.25s;
}
.scan-progress[data-phase="analysis"] .progress-meter > span {
  width: 35%;
  animation: progress-slide 1.5s ease-in-out infinite alternate;
}
.progress-steps {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: #536580;
}
.scan-progress[data-phase="upload"] #progress-upload,
.scan-progress[data-phase="analysis"] #progress-analysis {
  color: #1b4cda;
  font-weight: 700;
}
.scan-progress p {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  margin: 12px 0 0;
}
@keyframes progress-turn {
  to {
    transform: rotate(360deg);
  }
}
@keyframes progress-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(185%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .progress-spinner,
  .scan-progress[data-phase="analysis"] .progress-meter > span {
    animation: none;
  }
  .progress-meter > span {
    transition: none;
  }
}
@media (max-width: 650px) {
  .home-choice .scanner-heading {
    margin: 32px auto 24px;
  }
  .home-tools {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .home-tool {
    padding: 24px;
  }
  .home-tool-mark {
    margin-bottom: 18px;
    width: 48px;
    height: 48px;
  }
  .home-tool h2 {
    font-size: 26px;
  }
  .home-tool p {
    margin-bottom: 22px;
  }
  .home-tool-actions .button {
    flex: 1;
    white-space: nowrap;
    font-size: 13px;
    padding: 13px 12px;
  }
  .scanner-heading {
    margin-top: 24px;
    margin-bottom: 22px;
  }
}
.page-shell {
  max-width: 1200px;
  padding: 0 40px;
}
.header {
  min-height: 88px;
  padding: 18px 0;
  gap: 28px;
  border-color: var(--line);
}
.header .wordmark {
  font-size: 28px;
}
.header nav {
  gap: 8px;
  padding: 4px;
  background: #e9edf5;
  border-radius: 12px;
}
.header nav a {
  padding: 10px 13px;
  border-radius: 8px;
  font-size: 14px;
  min-width: 130px;
  text-align: center;
}
.header nav a:hover {
  background: #eaf0fc;
}
.header nav .nav-active {
  background: white;
  color: #1646d6;
}
.nav-active:after {
  display: none;
}
.account-link {
  background: var(--surface);
  padding: 10px 18px;
  border-radius: 9px;
}
.scanner-heading {
  text-align: center;
  max-width: 800px;
  margin: 42px auto 30px;
}
.scanner-heading .eyebrow {
  color: #3f5e90;
  font-size: 14px;
  letter-spacing: 0;
  font-weight: 600;
  margin-bottom: 12px;
}
.scanner-heading h1 {
  font-size: 44px;
  font-weight: 750;
  line-height: 1.16;
  letter-spacing: -1.9px;
  margin: 0 0 16px;
}
.scanner-heading .lead {
  font-size: 16px;
  line-height: 1.7;
  max-width: 650px;
  margin: auto;
}
.tool-switch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 864px;
  margin: 0 auto 18px;
  padding: 6px;
  background: #e9edf5;
  border-radius: 14px;
}
.tool-switch a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 12px;
  border: 1px solid transparent;
  border-radius: 10px;
}
.tool-switch a:hover {
  background: #f5f7fc;
  color: var(--ink);
}
.tool-switch a[aria-current] {
  background: white;
  border-color: #dce4f4;
  color: #194bdc;
  box-shadow: 0 2px 5px #1f366009;
}
.tool-switch .icon {
  width: 23px;
  height: 23px;
}
.tool-switch strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}
.tool-switch small {
  display: block;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 2px;
}
.workbench {
  display: block;
  max-width: 864px;
  margin: 0 auto;
  border: 1px solid #dce3ef;
  border-radius: 18px;
  box-shadow: 0 12px 40px #24395707;
}
.workbench-main {
  padding: 26px 32px 28px;
}
.workspace-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 22px;
  font-size: 13px;
}
.provider-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
  color: #475b76;
}
.provider-tag .icon {
  color: var(--blue);
  width: 18px;
  height: 18px;
}
.quota-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #4c607b;
}
.quota-pill strong {
  font-size: 13px;
  font-weight: 600;
}
.quota-dots {
  margin: 0;
  gap: 3px;
}
.quota-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
}
.quota-dots i.used {
  background: #c6cfde;
}
.tab-list {
  display: flex;
  width: max-content;
  max-width: 100%;
  padding: 4px;
  gap: 4px;
  border: 0;
  margin-bottom: 20px;
  background: #f0f3f8;
  border-radius: 10px;
}
.tab-list button {
  border: 0;
  margin: 0;
  padding: 10px 20px;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.3;
  color: #4c607b;
}
.tab-list button[aria-selected="true"] {
  background: white;
  color: var(--blue);
  box-shadow: 0 1px 4px #24395712;
}
.drop-zone {
  border: 1.5px dashed #aabddb;
  background: #f9fbff;
  border-radius: 12px;
  min-height: 210px;
  gap: 3px;
  padding: 24px 16px;
}
.drop-zone .upload-symbol {
  width: 54px;
  height: 54px;
  background: #eaf0fe;
  border-radius: 14px;
  margin-bottom: 11px;
}
.drop-zone strong {
  font-size: 19px;
  font-weight: 700;
}
.drop-zone > span:not(.upload-symbol) {
  font-size: 14px;
  line-height: 1.6;
}
.drop-zone .file-spec {
  font-size: 13px;
  margin-top: 8px;
  letter-spacing: 0;
}
.consent-row {
  margin-top: 22px;
  padding: 16px;
  gap: 13px;
  background: #f1f5ff;
  border-color: #bdccf8;
  border-radius: 10px;
}
.consent-copy label {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.6;
}
.consent-copy p {
  font-size: 13px;
  line-height: 1.6;
  margin-top: 5px;
  color: #485e7a;
}
.consent-row input {
  margin-top: 2px;
  flex-shrink: 0;
}
.form-bottom {
  margin-top: 22px;
  gap: 20px;
}
.button {
  border-radius: 9px;
  min-height: 46px;
  font-size: 14px;
  font-weight: 700;
}
.button-primary {
  box-shadow: 0 3px 9px #2455ed18;
}
.button-primary:hover {
  background: #1745cf;
}
#submit-button {
  min-width: 210px;
  min-height: 50px;
}
.privacy-hint {
  font-size: 13px;
  line-height: 1.6;
  color: #53647a;
  gap: 8px;
}
.text-entry {
  padding: 12px 0 8px;
  min-height: 210px;
}
.entry-code {
  display: none;
}
.text-entry h2 {
  margin: 0 0 22px;
  font-size: 23px;
  letter-spacing: -0.6px;
}
.text-entry label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
}
.text-entry input {
  min-height: 55px;
  border-radius: 9px;
  background: #fbfcff;
  font-size: 16px;
  border-color: #bfcde0;
  padding: 14px 16px;
}
.text-entry p {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 0;
}
.workspace-support {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 864px;
  margin: 22px auto 0;
}
.workspace-support a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
}
.workspace-support a:hover {
  border-color: #aabfe9;
}
.workspace-support .icon {
  color: #4266ab;
}
.workspace-support a > .icon:last-child {
  margin-left: auto;
  width: 16px;
}
.workspace-support strong {
  display: block;
  font-size: 14px;
}
.workspace-support small {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 3px;
}
.compact-help,
body[data-scanner] .faq {
  max-width: 864px;
  display: block;
  margin: 40px auto 50px;
}
.compact-help h2,
body[data-scanner] .faq h2 {
  font-size: 22px;
  letter-spacing: -0.6px;
  margin-bottom: 20px;
}
.compact-help details {
  border-top: 1px solid var(--line);
}
.compact-help details:last-child {
  border-bottom: 1px solid var(--line);
}
.compact-help summary {
  font-size: 15px;
  padding: 19px 0;
  font-weight: 600;
  cursor: pointer;
}
.compact-help p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.8;
  padding: 0 0 20px;
  margin: 0;
  max-width: 740px;
}
.compact-help a,
.risk-details a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.report-section,
.history-section {
  max-width: 864px;
  margin: 32px auto;
  padding: 26px 28px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 16px;
}
.report-section .eyebrow,
.history-section .eyebrow {
  display: none;
}
.section-header h2 {
  font-size: 22px;
  letter-spacing: -0.6px;
}
.report-summary {
  border-radius: 12px;
  padding: 25px;
  gap: 23px;
  align-items: center;
  background: #f5f8fd;
  border: 1px solid var(--line);
}
.report-summary h3 {
  font-size: 23px;
  line-height: 1.35;
  letter-spacing: -0.6px;
}
.report-summary p {
  font-size: 14px;
  line-height: 1.75;
}
.report-summary .score {
  width: 86px;
  height: 86px;
  flex-shrink: 0;
}
.report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.report-meta span {
  padding: 6px 9px;
  font-size: 13px;
  border-radius: 6px;
  background: white;
}
.report-label {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.engine-controls {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin: 25px 0 14px;
}
.engine-controls h3 {
  font-size: 17px;
  margin: 0;
}
.engine-search {
  border: 1px solid #c7d2e2;
  padding: 10px 13px;
  border-radius: 8px;
  font-size: 14px;
  width: 250px;
  max-width: 100%;
}
.engine-table {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.engine-table table {
  width: 100%;
  min-width: 560px;
}
.engine-table td,
.engine-table td:last-child {
  font-size: 14px;
  padding: 14px 16px;
}
.engine-table th {
  font-family: var(--font);
  font-size: 13px;
  letter-spacing: 0;
  text-transform: none;
  background: #f2f5fa;
  padding: 12px 16px;
}
.engine-more {
  width: 100%;
  margin-top: 12px;
  background: #f5f7fc;
  border: 1px solid var(--line);
  min-height: 44px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}
.engine-empty {
  padding: 16px 0;
  color: var(--muted);
  font-size: 14px;
}
.risk-reasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 18px 0;
}
.risk-reason {
  padding: 17px 18px;
  background: #f7f9fd;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.risk-reason h3 {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 6px;
}
.risk-reason p {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}
.risk-reason.danger {
  border-left: 3px solid var(--red);
}
.risk-reason.warning {
  border-left: 3px solid #a66a07;
}
.risk-details {
  padding: 15px 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}
.risk-details summary {
  cursor: pointer;
  font-weight: 650;
  color: var(--ink);
}
.risk-details p {
  margin-bottom: 0;
}
.risk-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
}
.risk-band {
  display: flex;
  gap: 4px;
  margin: 16px 0;
}
.risk-band i {
  height: 6px;
  flex: 1;
  background: #e0e6f0;
  border-radius: 5px;
}
.risk-band.low i:first-child {
  background: #16825b;
}
.risk-band.elevated i:nth-child(-n + 2) {
  background: #b77a11;
}
.risk-band.high i {
  background: #cf3549;
}
.account-page,
.install-page,
.public-report {
  max-width: 920px;
  margin: auto;
  padding: 40px 0 60px;
}
.account-page h1,
.public-report h1,
.install-page h1 {
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -1.3px;
}
.login-panel,
.saved-section,
.install-instructions > section {
  background: white;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.saved-section {
  margin-top: 24px;
}
.saved-section h2 {
  font-size: 22px;
}
.install-page .lead {
  font-size: 16px;
}
.install-instructions li {
  font-size: 15px;
  line-height: 1.8;
}
.install-instructions {
  gap: 18px;
}
.install-instructions:has([data-install-platform]) {
  display: block;
}
.device-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin: 30px 0 9px;
}
.device-select {
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #bccbdd;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  margin-bottom: 18px;
}
.footer {
  margin-top: 45px;
  padding: 30px 0;
  font-size: 13px;
  gap: 24px;
}
.footer p {
  font-size: 13px;
}
.install-invite {
  border-radius: 14px;
  box-shadow: 0 8px 40px #19283f18;
}
@media (max-width: 900px) {
  .page-shell {
    padding: 0 24px;
  }
  .header {
    gap: 10px;
  }
  .header nav {
    gap: 0;
  }
  .header nav a {
    padding: 9px;
    font-size: 13px;
  }
  .header .wordmark {
    font-size: 25px;
  }
  .brand-icon {
    width: 28px;
    height: 28px;
    margin-right: 7px;
  }
  .scanner-heading {
    margin-top: 32px;
  }
  .scanner-heading h1 {
    font-size: 37px;
  }
}
@media (max-width: 650px) {
  .page-shell {
    padding: 0 16px;
  }
  .header {
    grid-template-columns: 1fr auto;
    padding: 16px 0 10px;
    min-height: 0;
    gap: 16px;
  }
  .header nav {
    grid-row: 2;
    grid-column: 1/-1;
    justify-self: start;
    width: 100%;
    justify-content: space-between;
  }
  .header nav a {
    padding: 8px 9px;
    font-size: 13px;
    flex: 1;
    min-width: 0;
  }
  .account-link {
    font-size: 13px;
    padding: 8px 13px;
    max-width: 145px;
  }
  .scanner-heading {
    margin: 28px auto 24px;
    text-align: left;
  }
  .scanner-heading h1 {
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -1.1px;
    margin-bottom: 12px;
  }
  .scanner-heading .eyebrow {
    font-size: 13px;
    margin-bottom: 10px;
  }
  .scanner-heading .lead {
    font-size: 15px;
    line-height: 1.65;
  }
  .tool-switch {
    gap: 3px;
    padding: 4px;
    border-radius: 12px;
    margin-bottom: 14px;
  }
  .tool-switch a {
    flex-direction: column;
    text-align: center;
    gap: 6px;
    padding: 10px 5px;
    border-radius: 9px;
  }
  .tool-switch strong {
    font-size: 13px;
    line-height: 1.4;
  }
  .tool-switch small {
    display: none;
  }
  .tool-switch .icon {
    width: 20px;
    height: 20px;
  }
  .workbench {
    border-radius: 14px;
  }
  .workbench-main {
    padding: 18px;
  }
  .workspace-top {
    gap: 8px;
    margin-bottom: 18px;
  }
  .provider-tag,
  .quota-pill strong {
    font-size: 12px;
  }
  .provider-tag {
    gap: 5px;
  }
  .provider-tag .icon {
    width: 15px;
    height: 15px;
  }
  .quota-pill {
    gap: 6px;
  }
  .quota-dots i {
    width: 5px;
    height: 5px;
  }
  .tab-list {
    width: 100%;
    margin-bottom: 16px;
  }
  .tab-list button {
    flex: 1;
    padding: 10px 8px;
    gap: 7px;
    font-size: 14px;
  }
  .drop-zone {
    min-height: 195px;
    padding: 20px 10px;
  }
  .drop-zone strong {
    font-size: 17px;
  }
  .drop-zone > span:not(.upload-symbol) {
    font-size: 13px;
    max-width: 240px;
    text-align: center;
  }
  .consent-row {
    padding: 13px 12px;
    margin-top: 18px;
    gap: 11px;
  }
  .consent-copy label {
    font-size: 14px;
  }
  .consent-copy p {
    font-size: 13px;
  }
  .form-bottom {
    display: flex;
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 14px;
    margin-top: 18px;
  }
  #submit-button {
    width: 100%;
    min-height: 50px;
  }
  .privacy-hint {
    font-size: 12px;
    justify-content: center;
    text-align: center;
  }
  .privacy-hint br {
    display: none;
  }
  .text-entry {
    min-height: 185px;
    padding: 8px 0;
  }
  .text-entry h2 {
    font-size: 21px;
    margin-bottom: 18px;
  }
  .text-entry input {
    font-size: 15px;
  }
  .workspace-support {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 16px;
  }
  .workspace-support a {
    padding: 15px 16px;
  }
  .compact-help,
  body[data-scanner] .faq {
    margin: 30px auto;
  }
  .compact-help h2 {
    font-size: 21px;
  }
  .report-section,
  .history-section {
    padding: 20px 16px;
    margin: 22px auto;
    border-radius: 14px;
  }
  .section-header {
    gap: 14px;
    align-items: center;
  }
  .section-header h2 {
    font-size: 20px;
  }
  .section-header .button {
    font-size: 12px;
    padding: 10px;
    min-width: 0;
  }
  .report-summary {
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 16px;
  }
  .report-summary .score {
    width: 74px;
    height: 74px;
  }
  .report-summary h3 {
    font-size: 21px;
  }
  .report-meta span {
    font-size: 12px;
  }
  .report-actions {
    gap: 8px;
  }
  .report-actions .button {
    font-size: 13px;
    flex-grow: 1;
  }
  .engine-search {
    width: 100%;
  }
  .engine-controls {
    display: grid;
    grid-template-columns: 1fr;
  }
  .risk-reasons {
    grid-template-columns: 1fr;
  }
  .account-page,
  .install-page,
  .public-report {
    padding: 28px 0 45px;
  }
  .account-page h1,
  .public-report h1,
  .install-page h1 {
    font-size: 30px;
  }
  .login-panel,
  .saved-section,
  .install-instructions > section {
    padding: 21px 18px;
  }
  .account-page .lead {
    font-size: 15px;
  }
  .footer {
    gap: 18px;
    margin-top: 30px;
    padding: 24px 0;
  }
  .footer p {
    margin: 0;
  }
}
