:root {
      --city-blue: #2a768d;
      --city-blue-accent: #009dc2;
      --city-green: #66a785;
      --city-green-dark: #00763e;
      --city-yellow: #ffb715;
      --city-text: #203040;
      --city-muted: #5d6771;
      --city-bg: #f4f4f4;
      --city-panel: #ffffff;
      --city-border: #d2d6d9;
      --city-border-dark: #8e9aa6;
      --city-table-head: #707070;
    }

    body {
      margin: 0;
      background: var(--city-bg);
      color: var(--city-text);
    }

    .page-wrap {
      max-width: 1120px;
      margin: 0 auto;
      padding: 8px 16px 24px;
    }

    .print-header {
      display: none;
    }

    .estimator-shell {
      background: var(--city-panel);
      border-top: 6px solid var(--city-blue);
      box-shadow: 0 8px 24px rgba(32, 48, 64, 0.08);
    }

    .estimator-header {
      padding: 18px 28px 12px;
      border-bottom: 1px solid var(--city-border);
      background: linear-gradient(135deg, rgba(42, 118, 141, 0.08), rgba(255, 255, 255, 0.98));
    }

    .estimator-header p {
      margin: 0;
      max-width: 48rem;
      color: var(--city-muted);
      font-size: 0.95rem;
      font-weight: 500;
      line-height: 1.5;
    }

    .estimator-header h2 {
      margin: 0 0 0.3rem;
      color: var(--city-blue);
      font-size: 1.35rem;
      font-weight: 700;
      line-height: 1.2;
    }

    .estimator-body {
      padding: 24px 28px 28px;
    }

    .division-toolbar {
      gap: 0.75rem;
    }

    .division-button,
    .action-button {
      border-radius: 0;
      font-weight: 700;
      letter-spacing: 0.04em;
      text-transform: uppercase;
      transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    }

    .division-button {
      border: 1px solid var(--city-border-dark);
      background: #fff;
      color: var(--city-text);
      padding: 0.9rem 1rem;
    }

    .division-button:hover,
    .division-button:focus {
      background: #fff;
      border-color: var(--city-blue);
      color: var(--city-blue);
      box-shadow: inset 0 -3px 0 var(--city-blue);
    }

    #divisionButtons .division-button.active,
    #divisionButtons .division-button.active:hover,
    #divisionButtons .division-button.active:focus {
      background: var(--city-blue);
      border-color: var(--city-blue);
      color: #fff;
      box-shadow: inset 0 -3px 0 var(--city-blue-accent);
    }

    .input-group-text {
      border-radius: 0;
      background: var(--city-blue);
      color: #fff;
      border-color: var(--city-blue);
      text-transform: uppercase;
      letter-spacing: 0.04em;
      font-size: 0.82rem;
    }

    .form-select,
    .form-control {
      border-radius: 0;
      border-color: var(--city-border-dark);
      min-height: 3rem;
    }

    .form-select:focus,
    .form-control:focus {
      border-color: var(--city-blue-accent);
      box-shadow: 0 0 0 0.18rem rgba(0, 157, 194, 0.18);
    }

    .form-label {
      margin-bottom: 0.5rem;
      font-weight: 700;
      color: var(--city-text);
      letter-spacing: 0.02em;
    }

    .tab-content {
      margin-top: 20px;
      padding: 24px;
      border: 1px solid var(--city-border);
      border-top: 4px solid var(--city-blue);
      border-radius: 0;
      background: var(--city-panel);
    }

    .tab-content h3 {
      margin-bottom: 1.25rem;
      color: var(--city-blue);
      font-size: 1.35rem;
      font-weight: 700;
    }

    .results { margin-top: 20px; }
    .footer {
      margin-top: 30px;
      padding: 24px 28px 10px;
      border-top: 1px solid var(--city-border);
      background: linear-gradient(180deg, rgba(42, 118, 141, 0.04), rgba(255, 255, 255, 0));
      text-align: center;
    }

    .footer a {
      color: var(--city-blue);
      font-weight: 700;
      text-decoration: none;
    }

    .footer a:hover,
    .footer a:focus {
      color: var(--city-blue-accent);
      text-decoration: underline;
    }

    .error {
      color: #fff;
      background: #bd1921;
      border: 1px solid #de5c5c;
      padding: 0.9rem 1rem;
      font-weight: 600;
      margin-top: 12px;
    }

    .table-fixed { table-layout: fixed; width: 100%; }
    .table-fixed th, .table-fixed td {
      width: 1%;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .result-card {
      border: 1px solid var(--city-border);
      border-radius: 0;
      background: #fff;
      overflow: hidden;
    }
    .result-card .card-header {
      font-weight: 700;
      color: #fff;
      background: var(--city-blue);
      border-bottom: 0;
      padding: 1rem 1.25rem;
    }
    .result-card .card-body { background: #fff; padding: 1.25rem; }
    .result-card .table { margin-bottom: 0; background: #fff; }
    .result-card .table th, .result-card .table td { vertical-align: middle; }
    .result-footnote { font-size: 0.875rem; margin-top: 0.5rem; }

    .result-card .table tr:first-child th {
      background: var(--city-table-head);
      color: #fff;
      border-color: var(--city-table-head);
    }

    .table-active th,
    .table-active td {
      background: rgba(102, 167, 133, 0.18) !important;
    }

    .action-button {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 50%;
      min-width: 12.5rem;
      max-width: none;
      margin: 0 auto;
      position: relative;
      overflow: hidden;
      background: linear-gradient(90deg, var(--city-green) 0 80%, var(--city-green-dark) 80% 100%);
      border: 1px solid var(--city-green-dark);
      color: #fff;
      padding: 0.8rem 3.9rem 0.8rem 1rem;
      text-align: left;
      box-shadow: none;
    }

    .action-button:hover,
    .action-button:focus {
      background: linear-gradient(90deg, #4f9674 0 80%, var(--city-text) 80% 100%);
      border-color: var(--city-text);
      color: #fff;
    }

    .action-button::before {
      content: "";
      position: absolute;
      top: 0;
      right: 3.2rem;
      width: 1px;
      height: 100%;
      background: rgba(255, 255, 255, 0.28);
    }

    .action-button::after {
      content: "";
      position: absolute;
      right: 1.35rem;
      top: 50%;
      width: 0.7rem;
      height: 0.7rem;
      border-top: 2px solid currentColor;
      border-right: 2px solid currentColor;
      transform: translateY(-50%) rotate(45deg);
    }

    .alert-warning {
      color: var(--city-text);
      background: #fff8dd;
      border: 1px solid #f2ca68;
      border-left: 4px solid var(--city-yellow);
      border-radius: 0;
    }

    .text-info {
      color: var(--city-blue) !important;
      font-weight: 600;
    }

    .text-muted {
      color: var(--city-muted) !important;
    }

    .meta-note {
      padding: 0 28px 24px;
      text-align: center;
      color: var(--city-muted);
    }

    .private-provider-toggle {
      margin: 1.25rem 0;
      border: 1px solid var(--city-border);
      background: #fafbfc;
      padding: 0.65rem 0.9rem;
    }

    .private-provider-toggle[open] {
      background: #fff;
    }

    .private-provider-toggle summary {
      cursor: pointer;
      font-weight: 700;
      font-size: 0.85rem;
      color: var(--city-blue);
      letter-spacing: 0.02em;
    }

    .private-provider-toggle summary:hover,
    .private-provider-toggle summary:focus {
      color: var(--city-blue-accent);
    }

    .private-provider-toggle .private-provider-body {
      margin-top: 0.85rem;
    }

    .private-provider-toggle small {
      display: block;
      margin-top: 0.4rem;
    }

    .print-divider {
      border-top: 1px solid #000;
      height: 0;
      margin-top: 8px;
    }

    @media (max-width: 767.98px) {
      .page-wrap {
        padding: 0;
      }

      .estimator-header,
      .estimator-body,
      .footer,
      .meta-note,
      .tab-content {
        padding-left: 18px;
        padding-right: 18px;
      }

      .estimator-header {
        padding-top: 16px;
      }

      .estimator-body {
        padding-top: 18px;
      }

      .action-button {
        width: 100%;
        max-width: none;
      }
    }

    @media print {
      @page {
        size: letter;
        margin: 0.4in;
      }

      html,
      body {
        margin: 0 !important;
        padding: 0 !important;
        background: #fff !important;
        color: #000 !important;
        font-size: 12px;
        line-height: 1.3;
      }

      .page-wrap {
        max-width: none;
        padding: 0 !important;
      }

      .print-header {
        display: block !important;
        margin-bottom: 12px;
        page-break-after: avoid;
        break-after: avoid;
        border-bottom: 1px solid #000;
        padding-bottom: 8px;
      }

      .print-header-top {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        border-bottom: 1px solid #000;
        padding-bottom: 8px;
      }

      .print-header-brand {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        min-width: 0;
      }

      .print-header-brand img {
        display: block;
        height: 48px;
        width: auto;
      }

      .print-header-brand-title {
        font-weight: 700;
        font-size: 1.1rem;
        line-height: 1.2;
      }

      .print-header-brand-subtitle,
      .print-header-contact {
        color: #555 !important;
        font-size: 0.8rem;
        line-height: 1.35;
      }

      .print-header-title {
        padding-top: 10px;
        font-size: 1.55rem;
        font-weight: 600;
        color: #000 !important;
      }

      .estimator-header,
      #divisionButtons,
      #divisionSelect,
      .input-group,
      .action-button,
      .footer,
      .meta-note,
      .private-provider-toggle {
        display: none !important;
      }

      .estimator-shell,
      .tab-content,
      .result-card,
      .result-card .card-body,
      .result-card .table {
        background: #fff !important;
        box-shadow: none !important;
      }

      .estimator-shell {
        border-top: 0 !important;
      }

      .estimator-body {
        padding: 0 !important;
      }

      .tab-content {
        margin-top: 0 !important;
        padding: 0 !important;
        border: 0 !important;
      }

      .tab-content h3 {
        margin-bottom: 8px;
        color: #000 !important;
        font-size: 1.1rem;
      }

      .results {
        margin-top: 12px;
      }

      .result-card {
        border: 1px solid #999 !important;
        border-radius: 0 !important;
        overflow: visible;
        break-inside: avoid;
        page-break-inside: avoid;
      }

      .result-card .card-header {
        background: #fff !important;
        color: #000 !important;
        border-bottom: 1px solid #999 !important;
        padding: 0 0 8px !important;
      }

      .result-card .card-body {
        padding: 10px 0 0 !important;
      }

      .table {
        --bs-table-bg: #fff;
        margin-bottom: 0 !important;
      }

      .table th,
      .table td {
        color: #000 !important;
        border-color: #999 !important;
        white-space: normal !important;
      }

      .result-card .table tr:first-child th,
      .table-active th,
      .table-active td {
        background: #fff !important;
        color: #000 !important;
      }

      a {
        color: #2563eb !important;
        text-decoration: underline !important;
        text-underline-offset: 2px;
        text-decoration-thickness: 1px;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
      }
    }