/* ============================================================
   HUSBAROMETERN - WIZARD
   ============================================================ */

/* ── Generera-wizard new design ── */
.gw-page {
  max-width: 520px;
  margin: 0 auto;
  padding: calc(76px + 32px) 20px 100px;
}

.gw-hero {
  text-align: center;
  margin-bottom: 28px;
}

.gw-logo {
  width: min(320px, 92%);
  max-height: 56px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 16px;
}

.gw-title {
  font-family: "Inter", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #3d464c;
  line-height: 1.15;
  margin: 0 0 10px;
}

.gw-subtitle {
  font-size: 0.95rem;
  color: #6b7280;
  margin: 0;
}

/* Progress dots */
.gw-progress {
  text-align: center;
  margin-bottom: 32px;
}

.gw-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 8px;
}

.gw-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #d1d5db;
  transition: background 0.2s, width 0.2s, border-radius 0.2s;
}

.gw-dot--done {
  background: #75af61;
}

.gw-dot--active {
  background: #75af61;
  width: 36px;
  border-radius: 7px;
}

.gw-step-label {
  font-size: 0.82rem;
  color: #9ca3af;
  margin: 0;
}

/* Section heading */
.gw-section-head {
  margin-bottom: 20px;
}

.gw-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #3d464c;
  margin: 0 0 4px;
}

.gw-section-desc {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
}

/* Content area */
.gw-content {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Option cards (step 1) */
.gw-option-card {
  display: flex;
  align-items: stretch;
  width: 100%;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0;
  margin-bottom: 14px;
  cursor: pointer;
  text-align: left;
  gap: 0;
  transition: transform 0.15s, box-shadow 0.15s;
  background: #fff;
  overflow: hidden;
}

.gw-option-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12);
}

.gw-option-card--selected {
  opacity: 0.72;
  border-color: #c8d0d8;
  box-shadow: inset 0 2px 8px rgba(15, 23, 42, 0.1);
  transform: none;
  filter: grayscale(0.2);
}

.gw-option-card--selected:hover {
  opacity: 0.8;
  transform: translateY(-1px);
  box-shadow: inset 0 2px 8px rgba(15, 23, 42, 0.1),
    0 4px 12px rgba(15, 23, 42, 0.08);
}

.gw-option-card--selected .gw-option-title {
  color: #6b7280;
}

.gw-option-card--selected .gw-option-desc {
  color: #9ca3af;
}

.gw-option-card--selected .gw-option-icon {
  color: #9ca3af;
}

.gw-option-card--selected .gw-option-media {
  background: rgba(255, 255, 255, 0.5);
}

.gw-option-card--rose {
  background: #f8ebee;
}
.gw-option-card--sand {
  background: #f5f1ea;
}
.gw-option-card--mint {
  background: #eaf4f3;
}
.gw-option-card--default {
  background: #f3f4f6;
}

.gw-option-media {
  width: 104px;
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid rgba(17, 24, 39, 0.08);
  background: rgba(255, 255, 255, 0.34);
  flex-shrink: 0;
}

.gw-option-icon {
  font-size: 44px;
  color: #3f4b59;
}

.gw-option-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 16px 16px 16px 14px;
  min-height: 112px;
}

.gw-option-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #202830;
  line-height: 1.3;
}

.gw-option-desc {
  font-size: 0.86rem;
  color: #4b5563;
  line-height: 1.35;
}

/* Nav buttons */
.gw-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
}

.qhero-wrap {
  background: linear-gradient(180deg, #f8faf8 0%, #f1f6ef 100%);
  border-bottom: 1px solid #e2e8de;
}

.qhero-kicker {
  color: #75af61;
  letter-spacing: 0.18rem;
  font-weight: 700;
}

.qhero-title {
  color: #121212;
  font-weight: 700;
  line-height: 1.12;
  max-width: 20ch;
}

.qhero-copy {
  color: #2f3a2e;
  max-width: 58ch;
}

.qhero-card {
  background: #fff;
  border: 1px solid #dbe5d7;
  border-radius: 16px;
}

.qtimeline {
  border: 1px solid #dbe5d7;
  border-radius: 20px;
  background: #fff;
}

.qtimeline-line-wrap {
  position: relative;
  height: 40px;
}

.qtimeline-line {
  position: absolute;
  left: 4%;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  height: 4px;
  background: linear-gradient(90deg, #75af61 0%, #8bc877 100%);
  border-radius: 999px;
}

.qtimeline-points {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2%;
}

.qtimeline-point {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #75af61;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 0 0 4px #eef5eb;
}

.qtimeline-step-title {
  color: #1f2a1d;
  font-weight: 700;
}

@media (max-width: 900px) {
  .qtimeline-line-wrap {
    display: none;
  }
}

.qprotokoll-shell {
  background: linear-gradient(180deg, #f8fbf7 0%, #edf5ea 100%);
  border: 1px solid #d9e7d2;
  border-radius: 18px;
}

.qprotokoll-copy {
  color: #32412d;
  max-width: 72ch;
}

.qflow {
  position: relative;
  padding-top: 10px;
}

.qflow-line {
  position: absolute;
  top: 26px;
  left: 6%;
  right: 6%;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #75af61 0%, #90ca7b 100%);
}

.qflow-steps {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.qflow-step {
  width: 20%;
  text-align: center;
}

.qflow-dot {
  width: 42px;
  height: 42px;
  margin: 0 auto;
  border-radius: 50%;
  border: 2px solid #a5c998;
  background: #fff;
  color: #5e8550;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  box-shadow: 0 0 0 6px #eef6ea;
}

.qflow-dot.is-active {
  background: #75af61;
  border-color: #75af61;
  color: #fff;
}

.qflow-label {
  margin-top: 8px;
  font-size: 0.88rem;
  color: #53664b;
  font-weight: 600;
}

.qflow-label.is-active {
  color: #1d2b17;
}

@media (max-width: 920px) {
  .qflow-line {
    display: none;
  }

  .qflow-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .qflow-step {
    width: auto;
  }
}

.qentry-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.qentry-main-btn {
  min-height: 68px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.08rem;
}

.qchoice-shell {
  border: 1px solid #d9e7d2;
  border-radius: 18px;
  background: #ffffff;
}

.qproto-hero {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #d9e7d2;
  background: #f2f8ef;
}

.qreco-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0;
  background: #f3f3f3;
  border-bottom: 1px solid #dde2db;
}

.qreco-widget .qreco-cell {
  width: 100%;
  border-bottom: 1px solid #dde2db;
  border-right: 0;
  color: #3f4a3d;
}

.qreco-widget .qreco-last {
  justify-content: space-between;
}

.qreco-logo {
  height: 20px;
  width: auto;
}

.qreco-widget .flex {
  display: flex;
}

.qreco-widget .items-center {
  align-items: center;
}

.qreco-widget .justify-center {
  justify-content: center;
}

.qreco-widget .gap-x-2 {
  column-gap: 0.5rem;
}

.qreco-widget .gap-2 {
  gap: 0.5rem;
}

.qreco-widget .gap-px {
  gap: 1px;
}

.qreco-widget .shrink-0 {
  flex-shrink: 0;
}

.qreco-widget .flex-col {
  flex-direction: column;
}

.qreco-widget .text-sm {
  font-size: 0.875rem;
}

.qreco-widget .text-xl {
  font-size: 1.25rem;
}

.qreco-widget .font-bold {
  font-weight: 700;
}

.qreco-widget .font-medium {
  font-weight: 500;
}

.qreco-widget .leading-5 {
  line-height: 1.25rem;
}

.qreco-widget .text-grey-500 {
  color: #6b7280;
}

.qreco-widget .text-black {
  color: #111827;
}

.qreco-widget .h-\[1lh\] {
  height: 1lh;
}

.qreco-widget .overflow-hidden {
  overflow: hidden;
}

.qreco-widget .border-r-2 {
  border-right: 2px solid #e5e7eb;
}

.qreco-widget .border-grey-100 {
  border-color: #e5e7eb;
}

.qreco-widget .px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.qreco-widget .py-1\.5 {
  padding-top: 0.375rem;
  padding-bottom: 0.375rem;
}

.qreco-widget .h-3 {
  height: 0.75rem;
}

.qreco-widget .w-12 {
  width: 3rem;
}

.qreco-widget .rounded-full {
  border-radius: 999px;
}

.qreco-widget .flex-1 {
  flex: 1 1 0%;
}

.qreco-widget .bg-green-500 {
  background-color: #4caf50;
}

.qreco-widget .bg-grey-300 {
  background-color: #d1d5db;
}

.qreco-widget .size-5 {
  width: 20px;
  height: 20px;
}

.qreco-widget .hidden {
  display: none;
}

.qproto-hero-image {
  height: 140px;
  background-image: linear-gradient(
      90deg,
      rgba(30, 50, 20, 0.5),
      rgba(30, 50, 20, 0.15)
    ),
    url("/images/qicon-banner.webp");
  background-size: cover;
  background-position: center;
}

.qproto-hero-content {
  padding: 14px 16px 16px;
  background: #f2f8ef;
}

.qproto-title {
  color: #1b2916;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.qproto-subtitle {
  color: #455541;
  margin-top: 4px;
}

.qwizard-shell {
  border: 1px solid #d9e7d2;
  border-radius: 18px;
  background: #fff;
}

.qwizard-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.qwizard-track {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.qwizard-node {
  height: 36px;
  border-radius: 999px;
  border: 2px solid #b6d4aa;
  color: #618654;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: #fff;
}

.qwizard-node.is-done {
  background: #75af61;
  border-color: #75af61;
  color: #fff;
}

.qwizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.qchoice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.qchoice-btn {
  min-height: 68px;
  border-radius: 14px;
  font-weight: 700;
  justify-content: center;
  text-align: center;
  padding: 8px 14px;
}

.qchoice-btn-green {
  border-width: 2px !important;
  border-color: #75af61 !important;
  color: #2c5a1f !important;
  background: #fff !important;
}

.qbtn-content {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.qbtn-content-with-desc {
  align-items: flex-start;
  text-align: left;
}

.qbtn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 auto;
  min-width: 0;
  gap: 2px;
}

.qbtn-content:not(.qbtn-content-with-desc) .qbtn-text {
  align-items: center;
  flex-direction: row;
  flex: 0 1 auto;
}

.qbtn-label {
  font-weight: 700;
  line-height: 1.2;
  white-space: normal;
}

.qbtn-description {
  font-size: 0.82em;
  font-weight: 400;
  color: #5c6e51;
  line-height: 1.3;
  white-space: normal;
  text-transform: none;
}

.qbtn-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  font-weight: 700;
  font-size: 0.95em;
  flex-shrink: 0;
}

.qbtn-icon-right {
  margin-left: auto;
}

.qupload-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  justify-content: center;
  min-height: 72px;
  border-radius: 14px;
  border: 2px solid #75af61;
  background: #fff;
  color: #2c5a1f;
  font-weight: 700;
  cursor: pointer;
}

.qsection-card {
  border: 1px solid #d8e6d2;
  padding: 0;
  border-radius: 14px;
  margin-bottom: 14px;
  background: #fff;
  overflow: hidden;
}

.qsection-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  background: #75af61;
  border-bottom: 1px solid #5f9a4e;
}

.qsection-title {
  margin: 0;
  color: #fff;
  font-weight: 800;
}

.qsection-count {
  font-weight: 700;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.2) !important;
}

.qquestion-row {
  padding: 10px 0;
  border-top: 1px dashed #e4ece0;
}

.qquestion-card {
  margin: 12px;
  border-radius: 12px;
  border-color: #dce8d7 !important;
  background: #fcfefd;
}

.qquestion-title {
  font-weight: 800;
  line-height: 1.3;
  color: #1d2f19;
}

.qquestion-code {
  color: #4b5d44;
}

.qquestion-meta {
  flex-wrap: wrap;
}

.qfilled-chip {
  white-space: normal;
}

.qquestion-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.qquestion-copy {
  min-width: 0;
}

.qquestion-inputs {
  min-width: 0;
}

.qfield {
  border-radius: 10px;
  border: 1px solid #c9d8c1;
  width: 100%;
}

.qmulti-box {
  padding: 8px;
  max-height: 220px;
  overflow: auto;
  background: #fdfefe;
}

.qsection-card .mud-input-control,
.qsection-card .mud-select,
.qsection-card .mud-input {
  width: 100%;
}

/* Native selects used in the questions side sheet.
   Keep these visually aligned with the Mud outlined inputs. */
.qa-sheet .form-select.qfield {
  width: 100%;
  min-height: 40px;
  border: 1px solid #c9d8c1;
  border-radius: 10px;
  background-color: #fff;
  color: #2f3a2e;
  font-size: 0.95rem;
  line-height: 1.4;
  padding: 8px 36px 8px 12px;
  box-shadow: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236e7f68' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.qa-sheet .form-select.qfield:focus {
  border-color: #75af61;
  box-shadow: 0 0 0 0.15rem rgba(117, 175, 97, 0.2);
}

.qextra-btn {
  background: #e8851e !important;
  color: #ffffff !important;
}

.qextra-btn:hover {
  background: #cc7318 !important;
}

/* ── Question class bård (visual dividers) ── */
.qclass-bard {
  margin: 14px 12px 0;
  padding: 10px 14px;
  border-radius: 10px 10px 0 0;
  border-bottom: none;
}

.qclass-bard-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.qclass-bard-count {
  font-size: 0.75em;
  margin-left: auto;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.qclass-bard-value {
  background: #75af61;
  border: 1px solid #5f9a4e;
  border-bottom: none;
}

.qclass-bard-value .qclass-bard-header {
  color: #fff;
}

.qclass-bard-extra {
  background: #e8851e;
  border: 1px solid #cc7318;
  border-bottom: none;
}

.qclass-bard-extra .qclass-bard-header {
  color: #fff;
}

.qquestion-card-value {
  border-left: 3px solid #75af61 !important;
}

.qquestion-card-extra {
  border-left: 3px solid #e8851e !important;
}

.qconfidence-wrap {
  margin-top: 6px;
}

.qconfidence-label {
  font-size: 0.9em;
  margin-bottom: 4px;
}

.qconfidence-track {
  width: min(360px, 100%);
  height: 10px;
  border-radius: 999px;
  background: #ececec;
  overflow: hidden;
}

.qconfidence-bar {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #d32f2f 0%, #fbc02d 50%, #2e7d32 100%);
}

.qconfidence-bar-missing {
  background: #d32f2f !important;
}

.q-ai-missing-text {
  color: #b3261e;
  font-weight: 600;
}

@media (min-width: 700px) {
  .qreco-widget .xs\:flex-row {
    flex-direction: row;
  }

  .qreco-widget .xs\:items-center {
    align-items: center;
  }

  .qreco-widget .xs\:px-8 {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  .qreco-widget .xs\:text-2xl {
    font-size: 1.5rem;
  }

  .qreco-widget .xs\:leading-6 {
    line-height: 1.5rem;
  }

  .qreco-widget .xs\:hidden {
    display: none;
  }

  .qreco-widget .xs\:block {
    display: block;
  }

  .qreco-widget .xs\:size-6 {
    width: 24px;
    height: 24px;
  }

  .qreco-widget .qreco-cell {
    width: auto;
    border-right: 1px solid #dde2db;
    border-bottom: 0;
  }

  .qreco-widget .qreco-last {
    border-right: 0;
  }

  .qreco-logo {
    margin-left: 12px;
    height: 22px;
  }

  .qchoice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qquestion-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 14px;
  }
}

@media (min-width: 420px) {
  .qreco-widget .\32xs\:h-auto {
    height: auto;
  }

  .qreco-widget .\32xs\:text-left {
    text-align: left;
  }
}

.admin-shell {
  background: #fff;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  padding: 16px;
}

.admin-shell-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-shell-title {
  margin: 0;
  color: #1d2a39;
}

.admin-shell-subtitle {
  margin: 6px 0 0;
  color: #576375;
}

.admin-shell-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-quick-nav {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.admin-nav-group {
  border: 1px solid #dbe3ef;
  border-radius: 10px;
  background: #fbfdff;
  padding: 8px;
}

.admin-nav-heading {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #4c5d74;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.admin-nav-items {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-shell-body {
  min-width: 0;
}

.admin-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 560px);
  gap: 20px;
  align-items: start;
}

.admin-panel {
  background: #fff;
  border: 2px solid #dbe3ef;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 2px 8px rgba(30, 60, 90, 0.04);
}

.admin-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.admin-panel-title {
  margin: 0;
  font-size: 1rem;
}

/* ============================================================
   QUESTIONS ACCORDION + PANEL (step 5)
   ============================================================ */

/* ── Accordion list wrapper ── */
.qa-list {
  width: 100%;
  margin: 0;
  padding: 0;
}

.qa-form-container {
  width: 100%;
  background: #fff;
  border: 1px solid #dbe5d7;
  border-radius: 16px;
  margin-bottom: 12px;
}

.gw-status-alert {
  margin-bottom: 12px;
}

.gw-ai-review,
.gw-ai-findings {
  width: 100%;
  background: #fff;
  border: 1px solid #dbe5d7;
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 14px;
}

.gw-ai-review-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.gw-ai-review-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #f3f4f6;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.gw-ai-review-title {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 700;
  color: #3d464c;
}

.gw-ai-review-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: #6b7280;
  line-height: 1.45;
}

.gw-ai-review-summary {
  background: #f9faf8;
  border: 1px solid #e2e8df;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.gw-ai-review-summary-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 6px;
}

.gw-ai-review-summary-text {
  margin: 0;
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.5;
}

.gw-ai-review-sections {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gw-ai-review-section {
  border: 1px solid #e2e8df;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fcfefd;
}

.gw-ai-review-section-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 8px;
}

.gw-ai-review-section-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #3d464c;
}

.gw-ai-review-section-count {
  font-size: 0.82rem;
  font-weight: 600;
  color: #6b7280;
}

.gw-ai-review-progress {
  height: 8px;
  border-radius: 999px;
  background: #eceff1;
  overflow: hidden;
}

.gw-ai-review-progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #d1d5db;
}

.gw-ai-review-progress--partial .gw-ai-review-progress-fill {
  background: #e5a830;
}

.gw-ai-review-progress--done .gw-ai-review-progress-fill {
  background: #75af61;
}

.gw-ai-findings {
  margin-top: 4px;
}

.gw-ai-finding-card {
  border: 1px solid #e2e8df;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fcfefd;
  margin-top: 10px;
}

.gw-ai-finding-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #3d464c;
  margin-bottom: 4px;
}

.gw-ai-finding-severity {
  font-weight: 500;
  color: #9ca3af;
}

.gw-ai-finding-meta,
.gw-ai-finding-evidence,
.gw-ai-finding-action {
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.45;
}

.gw-ai-finding-evidence,
.gw-ai-finding-action {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #e2e8df;
}

.pv2-page .gw-subtitle {
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}

.pv2-form-section {
  margin-bottom: 22px;
}

.pv2-form-section-title {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9ca3af;
}

.pv2-tabs .mud-tabs-toolbar {
  background: #f8fbf7;
  border: 1px solid #d9e7d2;
  border-radius: 12px;
  padding: 4px;
}

.pv2-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  border-radius: 14px;
  border: 2px dashed #b6d4aa;
  background: #fcfefd;
  color: #2c5a1f;
  font-weight: 700;
  cursor: pointer;
}

.pv2-file-chip {
  margin-top: 10px;
}

.pv2-submit-btn {
  min-height: 52px !important;
  border-radius: 14px !important;
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  text-transform: none !important;
}

.pv2-status-block {
  text-align: center;
}

.pv2-status-title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #3d464c;
}

.pv2-status-lead {
  margin: 0 auto;
  max-width: 40ch;
  font-size: 0.92rem;
  color: #6b7280;
  line-height: 1.5;
}

.pv2-info-banner {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #d9e7d2;
  background: linear-gradient(180deg, #f8fbf7 0%, #edf5ea 100%);
  text-align: left;
}

.pv2-info-banner-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #75af61;
  margin-bottom: 4px;
}

.pv2-info-banner-text {
  margin: 0;
  font-size: 0.9rem;
  color: #455541;
  line-height: 1.45;
}

.pv2-progress-card {
  margin-top: 20px;
  padding: 20px 18px;
  border: 1px solid #e2e8df;
  border-radius: 16px;
  background: #fcfefd;
}

.pv2-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 10px;
}

.pv2-progress-fraction {
  font-size: 0.95rem;
  font-weight: 700;
  color: #3d464c;
}

.pv2-progress-pct {
  font-size: 0.82rem;
  font-weight: 600;
  color: #75af61;
}

.pv2-progress-detail {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.45;
  text-align: center;
}

.pv2-queue-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0 12px;
}

.pv2-queue-stat {
  text-align: center;
  padding: 18px 12px;
  border-radius: 14px;
  border: 1px solid #d9e7d2;
  background: #fff;
}

.pv2-queue-stat-value {
  font-size: 2.1rem;
  font-weight: 800;
  color: #5e8550;
  line-height: 1;
}

.pv2-queue-stat-label {
  margin-top: 6px;
  font-size: 0.82rem;
  color: #6b7280;
  font-weight: 600;
}

.pv2-queue-hint {
  margin: 0;
  font-size: 0.85rem;
  color: #9ca3af;
  text-align: center;
  line-height: 1.45;
}

.pv2-footnote {
  margin: 18px 0 0;
  font-size: 0.82rem;
  color: #9ca3af;
  text-align: center;
}

.pv2-footnote::before {
  content: "↻ ";
  opacity: 0.7;
}

.pv2-result-alert {
  margin-bottom: 18px;
  border-radius: 12px !important;
}

.pv2-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 140px) minmax(0, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.pv2-score-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 16px 12px;
  border: 1px solid #e2e8df;
  border-radius: 14px;
  background: #fcfefd;
}

.pv2-score-value {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1;
}

.pv2-score-label {
  font-size: 0.82rem;
  color: #9ca3af;
  font-weight: 600;
}

.pv2-metrics {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 8px 4px;
}

.pv2-metric-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.92rem;
}

.pv2-metric-label {
  color: #6b7280;
}

.pv2-metric-value {
  color: #3d464c;
  font-weight: 700;
}

.pv2-secondary-action {
  margin-top: 20px;
  text-align: center;
}

@media (max-width: 640px) {
  .pv2-result-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Slide-in sheet backdrop ── */
.qa-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 150;
  pointer-events: auto;
  cursor: pointer;
  animation: qa-fade-in 0.2s ease;
}

/* ── Slide-in sheet ── */
.qa-sheet {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 480px;
  background: #fff;
  z-index: 151;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  animation: qa-slide-in 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.qa-sheet-inner {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 100px;
}

@keyframes qa-slide-in {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

@keyframes qa-slide-out {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(100%);
  }
}

.qa-sheet--closing {
  animation: qa-slide-out 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes qa-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.qa-backdrop--closing {
  animation: qa-fade-out 0.25s ease forwards;
}

@keyframes qa-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ── Category accordion ── */
.qa-category {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  margin-bottom: 16px;
}

.qa-category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  background: #75af61;
  color: #fff;
  border: none;
  padding: 14px 18px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
}

.qa-category-header:hover {
  background: #669e54;
}

.qa-category-name {
  flex: 1;
}

.qa-category-count {
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.85rem;
  font-weight: 700;
}

.qa-category-chevron {
  font-size: 1.2rem;
  line-height: 1;
  opacity: 0.85;
}

/* ── Questionnaire cards inside accordion ── */
.qa-cards {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #f9faf8;
  padding: 12px;
  gap: 10px;
}

.qa-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  background: #fff;
  border: 1.5px solid #e2e8df;
  border-radius: 14px;
  cursor: pointer;
  text-align: left;
  transition: box-shadow 0.15s, transform 0.1s;
  width: 100%;
}

.qa-card:hover {
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.qa-card--done {
  background: #f0faf0;
  border-color: #75af61;
}

.qa-card--partial {
  background: #fffbf0;
  border-color: #e5a830;
}

.qa-card-progress {
  font-size: 0.78rem;
  color: #9ca3af;
  font-weight: 500;
}

.qa-card-number {
  font-size: 2rem;
  font-weight: 800;
  color: #3d464c;
  line-height: 1.1;
}

.qa-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #3d464c;
}

/* ── Detail panel ── */
.qa-panel-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  flex-shrink: 0;
}

.qa-panel-back {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: #3d464c;
  display: flex;
  align-items: center;
  border-radius: 8px;
  flex-shrink: 0;
}

.qa-panel-back:hover {
  background: #f0f0f0;
}

.qa-panel-title {
  flex: 1;
  font-size: 1.1rem;
  font-weight: 700;
  color: #3d464c;
  text-align: center;
}

.qa-panel-save-icon {
  padding: 6px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Info card at top of panel */
.qa-panel-info-card {
  background: #f3f4f6;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.qa-panel-info-stats {
  font-size: 0.78rem;
  color: #9ca3af;
  font-weight: 500;
}

.qa-panel-info-num {
  font-size: 2rem;
  font-weight: 800;
  color: #3d464c;
  line-height: 1.1;
}

.qa-panel-info-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #3d464c;
}

/* ── Tier groups inside panel ── */
.qa-tier {
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.qa-tier-header {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: #f0f4ee;
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 700;
  color: #3d464c;
}

.qa-tier-header:hover {
  background: #e6ede3;
}

.qa-tier-header--tier2 {
  background: #eef2ff;
  color: #2563c4;
}

.qa-tier-header--tier2:hover {
  background: #e0e8ff;
}

.qa-tier-header--tier3 {
  background: #f4eeff;
  color: #7b1fcc;
}

.qa-tier-header--tier3:hover {
  background: #ece0ff;
}

.qa-tier-star {
  color: #75af61;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.qa-tier-header--tier2 .qa-tier-star {
  color: #458df9;
}

.qa-tier-header--tier3 .qa-tier-star {
  color: #a545f9;
}

.qa-tier-label {
  flex: 1;
}

.qa-tier-chevron {
  font-size: 1.1rem;
  opacity: 0.6;
}

/* ── Individual questions inside tier ── */
.qa-question {
  padding: 14px 16px;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}

.qa-question-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.qa-question-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #75af61;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.qa-question-badge--tier2 {
  background: #458df9;
}

.qa-question-badge--tier3 {
  background: #a545f9;
}

/* ── Answered-by icon (top-right of each question) ── */
.qa-answer-by {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
}

.qa-answer-by--ai {
  background: #fff8e1;
  color: #f59e0b;
}

.qa-answer-by--user {
  background: #e8f5e9;
  color: #2e7d32;
}

.qa-question-info {
  flex: 1;
  min-width: 0;
}

.qa-question-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #3d464c;
  margin-bottom: 2px;
}

.qa-question-prompt {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.4;
}

.qa-question-help {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 2px;
}

.qa-question-answer {
  margin-top: 6px;
}

/* ── Photo button ── */
.qa-question-photo {
  margin-top: 8px;
}

.qa-photo-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: #75af61;
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
}

.qa-photo-btn:hover {
  background: #669e54;
}

/* ── Save button at panel bottom ── */
.qa-save-btn {
  display: block;
  width: 100%;
  padding: 15px;
  margin-top: 20px;
  background: #75af61;
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
}

.qa-save-btn:hover {
  background: #669e54;
}
