/* VettifyIQ v4.7 product simplification layer.
   This file intentionally changes presentation only; core workflow, audit,
   evidence, permissions, and export logic remain in v40-workflow.js. */

.v40-topbar .v44-header-brand {
  display: none !important;
}

.v47-hidden-navigation {
  display: none !important;
}

body.v47-demo-mode .v45-billing-banner {
  display: none !important;
}

body.v47-page-workspace .v45-slate-panel {
  display: none !important;
}

body.v47-page-calibration .v43-assessment-mini > span:first-child,
body.v47-page-manager .v43-assessment-mini > span:first-child {
  display: none !important;
}

.v47-methodology-detail {
  opacity: .72;
  font-size: .82rem;
}

.v47-internal-trust-detail {
  display: none !important;
}

body.v47-page-controls:not(.v47-internal-mode) .v40-main > section.v40-panel:first-of-type .v40-metrics {
  display: none !important;
}

.v47-trust-summary {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(150px, .34fr) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid rgba(49, 88, 212, .24);
  border-radius: 18px;
  background: rgba(49, 88, 212, .07);
}

.v47-trust-summary strong {
  color: var(--ink);
}

.v47-trust-summary span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.v47-trust-summary a {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.v47-demo-upload-note {
  margin: 12px 0 0;
  padding: 11px 13px;
  border-radius: 10px;
  background: rgba(49, 88, 212, .08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.v47-mobile-bar {
  display: none;
}

@media (max-width: 760px) {
  .v40-shell {
    display: block !important;
  }

  .v40-sidebar {
    position: sticky !important;
    top: 0;
    z-index: 90;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 10px 12px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line);
    background: rgba(252, 253, 252, .98) !important;
    backdrop-filter: blur(18px);
  }

  :root[data-theme="dark"] .v40-sidebar {
    background: rgba(19, 27, 30, .98) !important;
  }

  .v40-sidebar > .v40-logo,
  .v40-sidebar > .v40-role-card,
  .v40-sidebar > .v40-sidebar-note {
    display: none !important;
  }

  .v47-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
  }

  .v47-mobile-bar > div {
    min-width: 0;
  }

  .v47-mobile-bar span {
    display: block;
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .v47-mobile-bar strong {
    display: block;
    max-width: 245px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--ink);
    font-size: 13px;
    line-height: 1.3;
  }

  .v47-mobile-nav-toggle {
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 12px;
    font-weight: 900;
  }

  .v40-sidebar .v40-nav {
    display: none !important;
    grid-template-columns: 1fr !important;
    gap: 6px;
    padding: 8px 0 4px;
    max-height: calc(100vh - 82px);
    overflow-y: auto;
  }

  body.v47-mobile-menu-open .v40-sidebar .v40-nav {
    display: grid !important;
  }

  .v40-sidebar .v40-nav button {
    min-height: 46px;
  }

  .v40-main {
    padding: 14px 14px 32px !important;
  }

  .v40-topbar {
    position: relative !important;
    margin: 0 0 12px !important;
    padding: 4px 0 12px !important;
    border-bottom: 1px solid var(--line);
    background: transparent !important;
    backdrop-filter: none !important;
  }

  .v40-topbar-left {
    width: 100%;
  }

  .v44-topbar-context {
    width: 100%;
  }

  .v44-topbar-pills {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .v40-sync-pill,
  .v40-user-pill {
    min-width: 0;
  }

  .v46-demo-banner {
    margin-bottom: 12px !important;
    padding: 12px 13px !important;
    gap: 10px !important;
  }

  .v46-demo-badge {
    display: none !important;
  }

  .v40-hero {
    gap: 16px !important;
  }

  .v40-hero-main,
  .v40-hero-side,
  .v40-panel,
  .v40-command-panel,
  .v45-decision-gate {
    border-radius: 16px !important;
  }

  body.v47-page-manager .v47-manager-slate {
    display: none !important;
  }

  body.v47-page-manager .v43-manager-review-card {
    padding: 16px !important;
  }

  body.v47-page-manager .v43-manager-list {
    gap: 12px !important;
  }

  .v47-trust-summary {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .v47-trust-summary a {
    white-space: normal;
  }
}
