
/* Vital SEO — animated calculator hero artwork */
.service-vector-hero .avc-hero-art {
  overflow: visible;
}
.service-vector-hero .avc-hero-art::before {
  display: none;
}
.avc-hero-scene {
  position: absolute;
  right: 4%;
  top: 50%;
  width: min(88%,480px);
  aspect-ratio: 1.55;
  transform: translateY(-50%);
  pointer-events: none;
  color: #287fdb;
}
.avc-node {
  position: absolute;
  left: 4%;
  width: 17%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 2px solid #438ff1;
  border-radius: 14px;
  background: rgba(235,246,255,.9);
  font-size: clamp(12px,2vw,22px);
  font-weight: 700;
  animation: avc-pulse 4s ease-in-out infinite;
}
.avc-node-one {top:4%}
.avc-node-two {top:38%;animation-delay:-.8s}
.avc-node-three {top:72%;animation-delay:-1.6s}

.avc-path {
  position:absolute;
  left:22%;
  width:28%;
  height:2px;
  background:rgba(67,143,241,.35);
  transform-origin:left center;
}
.avc-path-one {top:18%;transform:rotate(25deg)}
.avc-path-two {top:51%}
.avc-path-three {top:84%;transform:rotate(-25deg)}

.avc-path::after {
  content:"";
  position:absolute;
  width:10px;
  height:10px;
  top:-4px;
  border-radius:50%;
  background:#38bdf8;
  box-shadow:0 0 12px #38bdf8;
  animation:avc-flow 2.5s linear infinite;
}
.avc-path-two::after {animation-delay:-.8s}
.avc-path-three::after {animation-delay:-1.6s}

.avc-dashboard {
  position:absolute;
  top:10%;
  right:3%;
  width:53%;
  height:80%;
  box-sizing:border-box;
  padding:5%;
  border:2px solid #438ff1;
  border-radius:20px;
  background:rgba(235,246,255,.85);
  box-shadow:0 16px 35px rgba(32,104,185,.12);
  animation:avc-float 6s ease-in-out infinite;
}
.avc-art-label {
  font-size:clamp(10px,1.3vw,15px);
  font-weight:600;
}
.avc-art-value {
  font-size:clamp(20px,3vw,36px);
  font-weight:800;
}
.avc-chart {
  display:flex;
  align-items:end;
  gap:9%;
  height:39%;
}
.avc-chart i {
  flex:1;
  background:linear-gradient(#38bdf8,#3478ef);
  border-radius:4px 4px 0 0;
  transform-origin:bottom;
  animation:avc-bar 4s ease-in-out infinite;
}
.avc-chart i:nth-child(1) {height:30%}
.avc-chart i:nth-child(2) {height:52%;animation-delay:-.5s}
.avc-chart i:nth-child(3) {height:43%;animation-delay:-1s}
.avc-chart i:nth-child(4) {height:76%;animation-delay:-1.5s}
.avc-chart i:nth-child(5) {height:95%;animation-delay:-2s}

.avc-art-lines {
  display:grid;
  gap:8px;
  margin-top:12%;
}
.avc-art-lines i {
  height:3px;
  background:#6aa8ee;
  border-radius:4px;
}
.avc-art-lines i:last-child {width:65%}

@keyframes avc-flow {
  from {left:0;opacity:0}
  20%,80% {opacity:1}
  to {left:100%;opacity:0}
}
@keyframes avc-float {
  0%,100% {transform:translateY(0)}
  50% {transform:translateY(-8px)}
}
@keyframes avc-bar {
  0%,100% {transform:scaleY(.75)}
  50% {transform:scaleY(1)}
}
@keyframes avc-pulse {
  0%,100% {opacity:.7}
  50% {opacity:1}
}

html[data-theme="dark"] .avc-hero-scene {
  color:#83bdff;
}
html[data-theme="dark"] .avc-node,
html[data-theme="dark"] .avc-dashboard {
  background:rgba(20,43,67,.92);
  border-color:#579be8;
}

.avc-panel {
  position:relative;
  width:100%;
  box-sizing:border-box;
}
.avc-workspace {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:28px;
  padding-top:32px;
}
.avc-controls,.avc-results {
  min-width:0;
}
.avc-controls h3 {
  margin-top:24px;
}
.avc-controls label {
  display:block;
  margin:15px 0 6px;
  font-weight:600;
  font-size:.9rem;
}
.avc-controls input,.avc-controls select {
  width:100%;
  min-width:0;
  box-sizing:border-box;
  padding:12px;
  border:1px solid #b8cde2;
  border-radius:8px;
  background:#fff;
  color:#18344e;
  font:inherit;
}
.avc-field-grid {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 14px;
}
.avc-actions {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:24px;
}
.avc-results {
  align-self:start;
  border:1px solid #cbdff5;
  border-radius:12px;
  padding:24px;
  background:rgba(230,241,253,.35);
}
.avc-result {
  padding:16px 0;
  border-bottom:1px solid #cbdff5;
}
.avc-result span {
  display:block;
  font-size:.88rem;
}
.avc-result strong {
  display:block;
  margin-top:6px;
  font-size:1.35rem;
  overflow-wrap:anywhere;
  font-variant-numeric:tabular-nums;
}
.avc-result-primary strong {
  font-size:clamp(2rem,4vw,3rem);
  color:#287fdb;
}
.avc-metrics {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:0 18px;
}
.avc-budget-track {
  margin-top:20px;
  height:8px;
  border-radius:8px;
  background:#cbdff5;
  overflow:hidden;
}
#avc-budget-bar {
  height:100%;
  background:#287fdb;
  width:0;
}
.avc-note {
  margin-top:24px;
  font-size:.88rem;
  line-height:1.6;
}
.avc-results .marketing-journey-watermark {
  position:static;
  transform:none;
  text-align:right;
  margin-top:20px;
  font-size:.75rem;
  opacity:.65;
  pointer-events:none;
}
.avc-panel [hidden] {
  display:none !important;
}
#avc-error {color:#b42318}

html[data-theme="dark"] .avc-controls input,
html[data-theme="dark"] .avc-controls select {
  background:#152a40;
  border-color:#36506a;
  color:#e5effa;
}
html[data-theme="dark"] .avc-results {
  background:rgba(20,43,67,.55);
  border-color:#36506a;
}
html[data-theme="dark"] .avc-result {
  border-color:#36506a;
}
html[data-theme="dark"] .avc-result-primary strong {
  color:#83bdff;
}
html[data-theme="dark"] #avc-error {
  color:#ffb4ab;
}
@media (max-width:900px) {
  .avc-workspace {
    grid-template-columns:minmax(0,1fr);
  }
}
@media (max-width:760px) {
  .avc-hero-scene {
    right:8%;
    top:52%;
    width:min(80%,370px);
  }
}
@media (max-width:700px) {
  .service-vector-hero .avc-hero-art {
    display:none !important;
  }
}
@media (max-width:480px) {
  .avc-field-grid,.avc-metrics {
    grid-template-columns:minmax(0,1fr);
  }
  .avc-results {padding:16px}
}
@media (prefers-reduced-motion:reduce) {
  .avc-hero-scene *,
  .avc-hero-scene *::before,
  .avc-hero-scene *::after {
    animation:none !important;
    transition:none !important;
  }
}

/* STEP 36 — Inherit standard utility workspace spacing */

.avc-standard-workspace > .avc-workspace-heading {
    margin: 0 0 20px;
    padding-right: 160px;
    line-height: 1.25;
}

.avc-standard-workspace > .avc-workspace {
    padding: 20px 0 0;
    align-items: start;
    gap: 28px;
}

.avc-standard-workspace .avc-controls,
.avc-standard-workspace .avc-results {
    box-sizing: border-box;
    min-width: 0;
    margin: 0;
    padding: 20px;
}

.avc-standard-workspace .avc-controls {
    border: 1px solid transparent;
}

.avc-standard-workspace .avc-controls > h3,
.avc-standard-workspace .avc-results > h3 {
    font-size: 1.15rem;
    line-height: 1.3;
    margin: 0 0 18px;
}

.avc-standard-workspace .avc-results {
    align-self: start;
}

@media (max-width: 900px) {
    .avc-standard-workspace > .avc-workspace {
        gap: 24px;
    }

    .avc-standard-workspace .avc-controls,
    .avc-standard-workspace .avc-results {
        padding: 16px;
    }
}

@media (max-width: 700px) {
    .avc-standard-workspace > .avc-workspace-heading {
        padding-right: 0;
    }
}

@media (max-width: 480px) {
    .avc-standard-workspace > .avc-workspace {
        gap: 20px;
    }

    .avc-standard-workspace .avc-controls {
        padding: 0;
        border: 0;
    }
}

/* STEP 39 — Sticky calculator expenditure panel */

/*
 * Inherit the QR Generator's sticky offset and
 * minimum viewport height.
 * Enable only while calculator columns are side by side.
 */

@media (min-width: 901px) and (min-height: 800px) {
    .avc-standard-workspace .avc-workspace > .avc-results {
        position: sticky;
        top: 110px;
        align-self: start;
    }
}

@media (max-width: 900px), (max-height: 799px) {
    .avc-standard-workspace .avc-workspace > .avc-results {
        position: static;
        top: auto;
    }
}

/* STEP 44 — Provider comparison workspace */

.avc-comparison {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #cbdff5;
    min-width: 0;
}

.avc-comparison > h3 {
    margin-top: 0;
}

.avc-comparison > .avc-controls {
    padding: 0;
    border: 0;
}

.avc-table-scroll {
    overflow-x: auto;
    max-width: 100%;
    margin-top: 20px;
}

.avc-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

.avc-comparison-table th,
.avc-comparison-table td {
    padding: 12px;
    border-bottom: 1px solid #cbdff5;
    text-align: left;
    vertical-align: middle;
}

.avc-comparison-table td {
    overflow-wrap: anywhere;
}

.avc-comparison-table th:not(:first-child),
.avc-comparison-table td:not(:first-child) {
    white-space: nowrap;
}

#avc-combined-summary {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid #cbdff5;
    border-radius: 12px;
}

html[data-theme="dark"] .avc-comparison,
html[data-theme="dark"] .avc-comparison-table th,
html[data-theme="dark"] .avc-comparison-table td,
html[data-theme="dark"] #avc-combined-summary {
    border-color: #36506a;
}

/* STEP 47 — Calculator export controls */

.avc-export-controls {
    margin-top: 20px;
}

.avc-export-controls .avc-actions {
    margin-top: 0;
    gap: 10px;
}

.avc-export-controls button {
    flex: 1 1 130px;
}

.avc-export-status {
    margin: 10px 0 0;
    font-size: .85rem;
    overflow-wrap: anywhere;
}

.avc-export-status:empty {
    display: none;
}

/* STEP 51 — Running service charge breakdown */

.avc-field-help {
    font-size: .85rem;
    line-height: 1.5;
    margin: 8px 0 12px;
}

.avc-cost-breakdown {
    margin-top: 18px;
    padding: 14px 0;
    border-bottom: 1px solid #cbdff5;
}

.avc-cost-breakdown h4 {
    margin: 0 0 12px;
    font-size: .95rem;
}

.avc-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 8px 0;
    font-size: .88rem;
}

.avc-breakdown-row strong {
    text-align: right;
    overflow-wrap: anywhere;
    font-variant-numeric: tabular-nums;
}

.avc-breakdown-track {
    display: flex;
    height: 10px;
    margin-top: 14px;
    border-radius: 6px;
    overflow: hidden;
    background: #cbdff5;
}

#avc-base-segment {
    background: #287fdb;
    width: 0;
}

#avc-service-segment {
    background: #86b6e5;
    width: 0;
}

html[data-theme="dark"] .avc-cost-breakdown {
    border-color: #36506a;
}

html[data-theme="dark"] .avc-breakdown-track {
    background: #36506a;
}


/* STEP 60B — Expandable provider configurations */

.avc-active-provider {
    padding: 18px;
    border: 1px solid #cbdff5;
    border-radius: 12px;
    min-width: 0;
}

.avc-active-provider > h4 {
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #cbdff5;
}

.avc-provider-summary {
    padding: 16px;
    margin-bottom: 12px;
    border: 1px solid #cbdff5;
    border-radius: 10px;
    overflow-wrap: anywhere;
}

.avc-provider-summary p {
    margin: 6px 0 12px;
    font-size: .85rem;
}

.avc-provider-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.avc-provider-card-actions button {
    padding: 7px 12px;
    font-size: .8rem;
}

.avc-add-provider {
    width: 100%;
    margin-top: 16px;
}

#avc-provider-status {
    font-size: .85rem;
    margin-top: 10px;
}

#avc-provider-status:empty {
    display: none;
}

html[data-theme="dark"] .avc-active-provider,
html[data-theme="dark"] .avc-active-provider > h4,
html[data-theme="dark"] .avc-provider-summary {
    border-color: #36506a;
}

@media (max-width: 480px) {
    .avc-active-provider {
        padding: 12px;
    }
}


/* STEP 60C — Combined provider expenditure */

.avc-active-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #cbdff5;
}

.avc-active-header h4 {
    margin: 0;
}

.avc-provider-breakdown {
    padding: 10px 0;
    border-bottom: 1px solid #cbdff5;
}

.avc-provider-breakdown .avc-breakdown-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

#avc-combined-status {
    font-size: .85rem;
    line-height: 1.5;
}

#avc-combined-status:empty {
    display: none;
}

.avc-results button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

html[data-theme="dark"] .avc-active-header,
html[data-theme="dark"] .avc-provider-breakdown {
    border-color: #36506a;
}


/* STEP 61 — Compact provider selector */

#avc-provider-cards {
    border: 1px solid #cbdff5;
    border-radius: 10px;
    overflow: hidden;
    margin: 0;
}

.avc-provider-selector-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 4px 10px 4px 4px;
}

.avc-provider-selector-row +
.avc-provider-selector-row {
    border-top: 1px solid #cbdff5;
}

.avc-provider-selector-row.is-selected {
    background: #eaf3ff;
    box-shadow: inset 3px 0 0 #287fdb;
}

.avc-provider-select {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    flex: 1;
    min-width: 0;
    width: auto;
    padding: 9px 12px;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: inherit;
    box-shadow: none;
    text-align: left;
    cursor: pointer;
    font: inherit;
}

.avc-provider-select strong {
    font-size: .92rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.avc-provider-select-detail {
    font-size: .78rem;
    line-height: 1.4;
    opacity: .85;
    overflow-wrap: anywhere;
}

.is-selected .avc-provider-select strong {
    color: #1764b5;
}

.avc-provider-remove {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    box-shadow: none;
    font-size: 1.3rem;
    cursor: pointer;
}

.avc-provider-remove:hover:not(:disabled) {
    background: rgba(180, 35, 24, .08);
    color: #b42318;
}

.avc-provider-remove:disabled {
    opacity: .25;
    cursor: default;
}

.avc-provider-select:focus-visible,
.avc-provider-remove:focus-visible {
    outline: 2px solid #287fdb;
    outline-offset: -2px;
}

#avc-new-provider {
    margin: 10px 0 22px;
    width: 100%;
    min-height: 40px;
}

.avc-active-provider {
    padding: 0;
    border: 0;
    border-radius: 0;
}

.avc-active-header {
    margin-bottom: 16px;
    padding-bottom: 10px;
}

.avc-active-header h4 {
    font-size: 1rem;
}

#avc-duplicate-active {
    padding: 5px 10px;
    min-height: 30px;
    font-size: .75rem;
    background: transparent;
    color: inherit;
    border: 1px solid #cbdff5;
    box-shadow: none;
}

#avc-remove-active {
    display: none !important;
}

html[data-theme="dark"] #avc-provider-cards,
html[data-theme="dark"] .avc-provider-selector-row,
html[data-theme="dark"] #avc-duplicate-active {
    border-color: #36506a;
}

html[data-theme="dark"] .avc-provider-selector-row.is-selected {
    background: rgba(40, 127, 219, .16);
}

html[data-theme="dark"] .is-selected .avc-provider-select strong {
    color: #8ec5ff;
}

@media (max-width: 480px) {
    .avc-active-provider {
        padding: 0;
    }

    .avc-provider-select {
        padding: 8px 10px;
    }
}


/* STEP 62B — Live workload and partial expenditure */

.avc-provider-select-detail {
    line-height: 1.6;
}

.avc-breakdown-workload {
    display: block;
    margin-top: 3px;
    font-size: .75rem;
    font-weight: 400;
    opacity: .8;
}

.avc-provider-breakdown .avc-breakdown-row {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 10px;
}

.avc-provider-breakdown .avc-breakdown-row strong {
    flex-shrink: 0;
}

.avc-pricing-required {
    font-size: .78rem;
    font-weight: 500;
    opacity: .8;
}

#avc-combined-status.avc-partial-notice {
    padding: 10px 12px;
    border-left: 3px solid #b7791f;
    border-radius: 4px;
    background: rgba(183, 121, 31, .07);
    font-size: .8rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

html[data-theme="dark"]
#avc-combined-status.avc-partial-notice {
    background: rgba(183, 121, 31, .13);
}

#avc-workload-status {
    font-size: .8rem;
}


/* STEP 64 — Global reporting currency */

.avc-primary-amount-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    flex-wrap: wrap;
}

.avc-result-primary .avc-primary-amount-row
#avc-monthly {
    flex: 1 1 120px;
    min-width: 0;
    font-size: clamp(1.35rem, 2.1vw, 1.85rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
    margin: 0;
}

.avc-reporting-currency {
    flex: 0 0 100px;
    width: 100px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.avc-reporting-currency label {
    font-size: .7rem;
    line-height: 1.3;
    font-weight: 500;
}

.avc-reporting-currency select {
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding: 6px 8px;
    border: 1px solid #b9cbd9;
    border-radius: 6px;
    background: #fff;
    color: #172331;
    font: inherit;
    font-size: .75rem;
    cursor: pointer;
}

.avc-reporting-currency select:focus-visible {
    outline: 2px solid #287fdb;
    outline-offset: 2px;
}

html[data-theme="dark"]
.avc-reporting-currency select {
    background: #182536;
    border-color: #46586c;
    color: #e8eef6;
}

@media (max-width: 480px) {
    .avc-primary-amount-row {
        gap: 8px;
    }

    .avc-result-primary .avc-primary-amount-row
    #avc-monthly {
        font-size: 1.5rem;
    }

    .avc-reporting-currency {
        flex-basis: 94px;
        width: 94px;
    }
}


/* STEP 66 — Shared currency conversion */

.avc-shared-exchange[hidden] {
    display: none !important;
}

.avc-shared-exchange {
    padding: 12px 0;
    border-bottom: 1px solid rgba(125, 153, 180, .35);
}

.avc-shared-exchange h4 {
    font-size: .85rem;
    margin: 0 0 6px;
}

.avc-shared-exchange .avc-field-help {
    font-size: .72rem;
    line-height: 1.5;
    margin: 6px 0;
}

.avc-shared-exchange-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 105px;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
}

.avc-shared-exchange-row label {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: .78rem;
}

.avc-shared-exchange-row small {
    font-size: .68rem;
    opacity: .8;
}

.avc-shared-exchange-row input {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 34px;
    padding: 7px 8px;
    border: 1px solid #b9cbd9;
    border-radius: 6px;
    background: #fff;
    color: #172331;
    font: inherit;
    font-size: .78rem;
}

.avc-shared-exchange-row input:focus-visible {
    outline: 2px solid #287fdb;
    outline-offset: 2px;
}

html[data-theme="dark"]
.avc-shared-exchange-row input {
    background: #182536;
    border-color: #46586c;
    color: #e8eef6;
}

@media (max-width: 480px) {
    .avc-shared-exchange-row {
        grid-template-columns: minmax(0, 1fr) 94px;
        gap: 8px;
    }
}


/* STEP 69 — Combined forecast export controls */

.avc-export-controls .avc-export-button-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.avc-export-controls .avc-export-button-row button {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 10px 8px;
    justify-content: center;
    text-align: center;
    font-size: .82rem;
    white-space: normal;
}

#avc-combined-export-note {
    margin: 0 0 10px;
    font-size: .75rem;
    line-height: 1.5;
}

#avc-combined-export-note[hidden] {
    display: none !important;
}

@media (max-width: 360px) {
    .avc-export-controls .avc-export-button-row {
        gap: 6px;
    }

    .avc-export-controls .avc-export-button-row button {
        font-size: .75rem;
        padding: 9px 5px;
    }
}


/* STEP 72C — Combined forecast settings */

.avc-results .avc-global-settings {
    padding: 12px 0;
    margin: 0 0 12px;
    border: 0;
    background: transparent;
    box-shadow: none;
    min-width: 0;
}

.avc-global-settings h4 {
    margin: 0 0 10px;
    font-size: .88rem;
}

.avc-global-settings .avc-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.avc-global-settings label {
    font-size: .75rem;
}

.avc-global-settings input {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    font-size: .85rem;
}

.avc-global-settings .avc-field-help {
    font-size: .72rem;
    line-height: 1.5;
    margin: 8px 0 0;
}

#avc-budget-balance {
    overflow-wrap: anywhere;
}

@media (max-width: 360px) {
    .avc-global-settings .avc-field-grid {
        grid-template-columns: 1fr;
    }
}

/* Three-mode calculator interface */

.avc-standard-workspace > .avc-mode-selector {
    margin: 0 0 24px;
    padding: 16px;
    border: 1px solid rgba(128, 145, 165, .3);
    border-radius: 10px;
}

.avc-mode-selector select {
    width: 100%;
    max-width: 440px;
}

.avc-mode-selector .avc-field-help {
    margin-bottom: 0;
}

.avc-mode-budget-settings,
.avc-mode-client-settings,
.avc-mode-currency-settings,
.avc-quotation-results {
    margin: 0 0 18px;
}

.avc-mode-client-settings,
.avc-controls > section[aria-labelledby="avc-commercial-heading"] {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(128, 145, 165, .3);
}

.avc-mode-currency-settings .avc-reporting-currency {
    width: 100%;
    max-width: none;
}

.avc-mode-currency-settings select {
    width: 100%;
}

.avc-quotation-results {
    padding-top: 16px;
    border-top: 1px solid rgba(128, 145, 165, .3);
}

.avc-controls input[type="checkbox"] {
    width: auto;
    min-width: 0;
    margin-right: 7px;
    accent-color: #287bd0;
}

.avc-controls details > summary {
    cursor: pointer;
}

.avc-results[data-calculation-mode="manual"] .avc-budget-track,
.avc-results[data-calculation-mode="quotation"] .avc-budget-track {
    display: none !important;
}

.avc-panel [hidden] {
    display: none !important;
}

/* Step 26: progressive disclosure and result hierarchy */

.avc-mode-selector select {
    max-width: none;
}

.avc-pricing-details {
    margin: 20px 0;
}

.avc-pricing-details > summary,
.avc-optional-comparison > summary,
.avc-forecast-instructions > summary {
    cursor: pointer;
    font-weight: 600;
}

.avc-mode-client-settings {
    margin: 12px 0 18px;
    padding-top: 0;
    border-top: 0;
}

.avc-mode-client-settings .avc-field-help {
    margin-top: 6px;
}

.avc-optional-comparison,
.avc-forecast-instructions {
    margin-top: 24px;
}

.avc-optional-comparison > .avc-comparison {
    margin-top: 16px;
}

.avc-annual-control {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    margin: 16px 0;
    cursor: pointer;
}

.avc-annual-control input {
    accent-color: #287bd0;
}

.avc-quote-headline strong {
    display: block;
}

.avc-panel [hidden] {
    display: none !important;
}


/* Step 30 — established guidance and quotation hierarchy */

.avc-panel .avc-accessible-heading {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.avc-panel .avc-optional-comparison,
.avc-panel .avc-forecast-instructions {
    scroll-margin-top: 150px;
}

.avc-panel .avc-optional-comparison > .avc-comparison,
.avc-panel .avc-forecast-instructions > .avc-note {
    margin: 0;
    border-top: 0;
}

.avc-panel .avc-optional-comparison > .tool-seo-advice-content,
.avc-panel .avc-forecast-instructions > .tool-seo-advice-content {
    padding: 20px;
}

.avc-panel .avc-analysis-row {
    margin-top: 12px;
}

.avc-panel .avc-final-monthly-total {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(128, 145, 165, .4);
    font-weight: 700;
    align-items: center;
}

.avc-panel .avc-final-monthly-total strong {
    color: #287bd0;
    font-size: 1.25rem;
}

html[data-theme="dark"] .avc-panel
.avc-final-monthly-total strong {
    color: #8abfff;
}

#avc-analysis-segment {
    background: #64748b;
    width: 0;
}

.avc-panel .avc-quotation-results {
    margin-top: 16px;
    margin-bottom: 16px;
    padding: 16px 0;
    border-top: 1px solid rgba(128, 145, 165, .3);
}

.avc-panel .avc-quotation-results h4 {
    margin: 0 0 12px;
    font-size: .95rem;
}

@media (max-width: 600px) {
    .avc-panel .avc-optional-comparison,
    .avc-panel .avc-forecast-instructions {
        scroll-margin-top: 120px;
    }

    .avc-panel .avc-optional-comparison > .tool-seo-advice-content,
    .avc-panel .avc-forecast-instructions > .tool-seo-advice-content {
        padding: 14px;
    }
}


/* Step 33B — optional PDF report branding */

.avc-panel .avc-report-branding {
    margin: 16px 0;
}

.avc-panel .avc-branding-fields {
    min-width: 0;
}

.avc-branding-fields > label,
.avc-branding-fields > div > label {
    display: block;
    margin: 14px 0 6px;
    font-size: .9rem;
    font-weight: 600;
}

.avc-branding-fields input:not([type="checkbox"]) {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 10px;
    border: 1px solid #cbdff5;
    border-radius: 7px;
    background: #fff;
    color: #17344d;
    font: inherit;
    font-size: .9rem;
}

.avc-branding-fields input[type="range"] {
    padding: 0;
    border: 0;
    accent-color: #287bd0;
}

.avc-branding-fields input[type="file"] {
    font-size: .8rem;
}

.avc-branding-fields input[type="file"]::file-selector-button {
    padding: 7px 10px;
    margin-right: 8px;
    border: 0;
    border-radius: 5px;
    background: #e7f0fa;
    color: #17344d;
    cursor: pointer;
}

.avc-branding-fields .avc-report-date-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
}

.avc-report-date-toggle input {
    width: 17px;
    height: 17px;
    accent-color: #287bd0;
}

#avc-report-remove-logo {
    margin-top: 10px;
}

.avc-branding-preview {
    margin-top: 10px;
    padding: 16px;
    border: 1px solid #dce5ee;
    border-radius: 8px;
    background: #fff;
    color: #17344d;
    overflow-wrap: anywhere;
}

.avc-branding-preview-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid #dce5ee;
}

.avc-branding-identity {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    max-width: 100%;
    text-align: center;
}

.avc-branding-identity img {
    display: block;
    width: auto;
    height: auto;
    object-fit: contain;
}

.avc-branding-identity span,
#avc-report-preview-date,
#avc-report-preview-subtitle {
    font-size: .8rem;
    color: #536779;
}

#avc-report-preview-date {
    margin-left: auto;
}

#avc-report-preview-website {
    color: #176fc1;
}

#avc-report-preview-title {
    display: block;
    font-size: 1rem;
}

html[data-theme="dark"]
.avc-branding-fields input:not([type="checkbox"]) {
    background: #152a40;
    color: #e5effa;
    border-color: #36506a;
}

@media (max-width: 480px) {
    .avc-branding-preview-header {
        flex-direction: column;
        align-items: center;
    }

    #avc-report-preview-date {
        margin-left: 0;
    }
}


/* Step 34C — optional contract costs */

.avc-contract-controls {
    display: grid;
    gap: 10px;
    margin: 12px 0;
}

.avc-contract-controls > label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .88rem;
    font-weight: 500;
    cursor: pointer;
}

.avc-contract-controls input[type="checkbox"] {
    width: 17px;
    height: 17px;
    min-width: 17px;
    margin: 0;
    accent-color: #287bd0;
}

.avc-contract-controls .avc-breakdown-row {
    margin: 0 0 4px;
    padding: 8px 0 8px 25px;
    border-bottom: 1px solid rgba(100, 140, 180, .2);
}

.avc-contract-controls .avc-breakdown-row strong {
    color: #287bd0;
}

html[data-theme="dark"]
.avc-contract-controls .avc-breakdown-row strong {
    color: #80baff;
}


/* Step 36B — affordable monitoring capacity */

.avc-budget-capacity {
    margin: 18px 0;
    padding: 16px 0;
    border-top: 1px solid rgba(100, 140, 180, .25);
    border-bottom: 1px solid rgba(100, 140, 180, .25);
}

.avc-budget-capacity h4 {
    margin: 0 0 10px;
}

.avc-capacity-primary {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 14px;
    margin: 12px 0;
    border: 1px solid rgba(100, 140, 180, .25);
    border-radius: 8px;
}

.avc-capacity-primary span {
    font-size: .85rem;
}

.avc-capacity-primary strong {
    font-size: 1.8rem;
    line-height: 1.2;
    color: #287bd0;
}

html[data-theme="dark"] .avc-capacity-primary strong {
    color: #80baff;
}

#avc-capacity-status {
    font-size: .85rem;
    line-height: 1.5;
}

.avc-budget-capacity [hidden],
.avc-budget-capacity[hidden] {
    display: none !important;
}


/* Step 37A — additional commercial services */

.avc-additional-services {
    margin: 16px 0;
}

.avc-additional-service {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(100, 140, 180, .25);
}

.avc-additional-service > label:first-child {
    grid-column: 1 / -1;
}

.avc-additional-service > label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.avc-additional-service input,
.avc-additional-service select {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.avc-additional-button,
.avc-additional-remove {
    padding: 8px 12px;
    border: 1px solid rgba(100, 140, 180, .35);
    border-radius: 6px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    font-size: .85rem;
}

.avc-additional-button {
    margin-top: 14px;
}

.avc-additional-remove {
    grid-column: 1 / -1;
    justify-self: end;
}

.avc-additional-button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

#avc-additional-segment {
    background: #168579;
}

#avc-additional-monthly-result[hidden],
#avc-additional-one-off-result[hidden],
#avc-additional-segment[hidden] {
    display: none !important;
}

@media (max-width: 480px) {
    .avc-additional-service {
        grid-template-columns: 1fr;
    }
}


/* Approved PDF header preview alignment. */

.avc-branding-preview .avc-branding-preview-header {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
    align-items: start;
    gap: 16px;
    margin-bottom: 0;
    padding-bottom: 14px;
}

.avc-branding-preview-heading {
    grid-column: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    min-width: 0;
    gap: 5px;
}

.avc-branding-preview .avc-branding-identity {
    grid-column: 1;
    grid-row: 1;
    text-align: center;
    min-width: 0;
}

.avc-branding-preview-heading p {
    margin: 0;
    text-align: right;
}

.avc-branding-preview-heading strong {
    display: block;
    text-align: right;
    line-height: 1.35;
}

@media (max-width: 480px) {
    .avc-branding-preview .avc-branding-preview-header {
        gap: 8px;
    }

    .avc-branding-preview-heading {
        font-size: .85rem;
    }
}
