@media (min-width: 761px) {
  body[data-page="resources"]:not(.is-mobile-app-shell) {
    --resource-workspace-width: 1180px;
    --resource-workspace-line: rgba(18, 56, 76, 0.16);
    --resource-workspace-paper: #fbfaf7;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-library-single {
    padding-top: 48px !important;
    padding-bottom: 52px !important;
    background:
      linear-gradient(112deg, rgba(200, 164, 95, 0.08), transparent 31%),
      linear-gradient(300deg, rgba(11, 128, 111, 0.14), transparent 45%),
      linear-gradient(100deg, #082e41 0%, #0a4551 58%, #0a5556 100%) !important;
    border-top: 1px solid rgba(232, 217, 184, 0.72) !important;
    border-bottom: 1px solid rgba(11, 128, 111, 0.88) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-library-single
    > section {
    grid-template-columns: minmax(300px, 0.78fr) minmax(0, 2.22fr) !important;
    grid-template-rows: auto auto auto minmax(154px, 1fr) !important;
    column-gap: clamp(42px, 4vw, 66px) !important;
    width: min(100%, 1410px) !important;
    padding-inline: clamp(36px, 5vw, 72px) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-library-single
    > section
    > h3 {
    max-width: 390px;
    margin-top: 10px !important;
    font-size: clamp(36px, 2.8vw, 42px) !important;
    line-height: 1.04 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-library-note {
    max-width: 390px;
    margin-top: 14px !important;
    color: rgba(255, 255, 255, 0.74) !important;
    font-size: 14px !important;
    line-height: 1.58 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .resource-selected-photo--organization {
    min-height: 154px !important;
    margin-top: 18px !important;
    background:
      linear-gradient(105deg, rgba(8, 46, 65, 0.02), rgba(8, 46, 65, 0.34)),
      url("assets/resource-photo-selections/02-modern-file-organization.jpg")
        left 53% / 175% auto no-repeat !important;
    border: 0 !important;
    border-left: 3px solid var(--resource-gold) !important;
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.1),
      0 18px 38px rgba(4, 29, 41, 0.22) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-groups {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.16fr) minmax(0, 0.92fr) !important;
    align-self: stretch;
    overflow: hidden;
    background:
      linear-gradient(135deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
      rgba(6, 38, 54, 0.24) !important;
    border: 1px solid rgba(232, 217, 184, 0.28) !important;
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.05),
      0 22px 46px rgba(4, 29, 41, 0.16) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-group,
  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-group:first-child,
  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-group:last-child {
    position: relative;
    padding: 22px 20px 16px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 46%) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-group
    + .worksheet-group {
    border-left-color: rgba(232, 217, 184, 0.18) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-group-label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px !important;
    font-size: 10px !important;
    letter-spacing: 0;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-group-label::after {
    content: "";
    flex: 1 1 auto;
    height: 1px;
    background: linear-gradient(90deg, rgba(232, 217, 184, 0.38), transparent);
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-list
    a {
    min-height: 84px !important;
    padding-top: 14px !important;
    padding-bottom: 14px !important;
    border-top-color: rgba(232, 217, 184, 0.12) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-list
    a
    strong {
    font-size: 14.5px !important;
    line-height: 1.28 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-list
    a
    span {
    color: rgba(255, 255, 255, 0.72) !important;
    font-size: 12px !important;
    line-height: 1.42 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    :is(.financial-calculators, .worksheet-builder) {
    position: relative;
    isolation: isolate;
    padding:
      36px
      max(40px, calc((100vw - 1320px) / 2))
      42px !important;
    background:
      linear-gradient(
        90deg,
        rgba(200, 164, 95, 0.09) 0%,
        transparent 21%,
        transparent 79%,
        rgba(11, 105, 105, 0.085) 100%
      ),
      linear-gradient(125deg, rgba(200, 164, 95, 0.07), transparent 34%),
      linear-gradient(305deg, rgba(11, 105, 105, 0.07), transparent 40%),
      linear-gradient(180deg, #f8f6f0 0%, #fcfbf8 52%, #f1f3ef 100%) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    :is(.financial-calculators, .worksheet-builder)
    > * {
    position: relative;
    z-index: 1;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    :is(.financial-calculators-heading, .worksheet-builder > div:first-child) {
    width: min(100%, var(--resource-workspace-width)) !important;
    max-width: var(--resource-workspace-width) !important;
    padding: 26px 82px 28px 32px !important;
    border-color: rgba(200, 164, 95, 0.72) !important;
    box-shadow:
      0 16px 36px rgba(8, 46, 65, 0.11),
      inset 4px 0 var(--resource-gold),
      inset 0 -1px rgba(232, 217, 184, 0.15) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    > div:first-child {
    border: 1px solid rgba(200, 164, 95, 0.88) !important;
    box-shadow:
      0 16px 36px rgba(8, 46, 65, 0.11),
      inset 0 -1px rgba(232, 217, 184, 0.15) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    :is(
      .financial-calculators-heading h3,
      .worksheet-builder > div:first-child h3
    ) {
    font-size: clamp(34px, 2.7vw, 42px) !important;
    line-height: 1.03 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    :is(.financial-calculators .calculator-close, .worksheet-builder .worksheet-close) {
    right: 24px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(232, 217, 184, 0.5) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .calculator-tabs {
    width: min(100%, var(--resource-workspace-width)) !important;
    margin: 0 auto !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .financial-calculators
    .calculator-tabs
    button {
    min-height: 56px !important;
    font-size: 11.5px !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .financial-calculators
    .calculator-tabs
    button[aria-selected="true"] {
    background:
      linear-gradient(180deg, #fff 0%, #f8f6ef 100%) !important;
    box-shadow:
      inset 0 3px var(--resource-gold),
      inset 0 -1px rgba(18, 56, 76, 0.12) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .financial-calculators
    .calculator-tabs
    button[aria-selected="true"]::after {
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    border-radius: 0;
    background: linear-gradient(90deg, var(--resource-gold), var(--resource-teal-bright));
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .calculator-panel {
    width: min(100%, var(--resource-workspace-width)) !important;
    margin: 0 auto !important;
    border-top: 1px solid rgba(200, 164, 95, 0.72) !important;
    border-radius: 0 0 2px 2px !important;
    box-shadow: 0 24px 48px rgba(8, 46, 65, 0.12) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .calculator-fields {
    gap: 16px !important;
    padding: 30px !important;
    background:
      linear-gradient(135deg, rgba(200, 164, 95, 0.06), transparent 44%),
      var(--resource-workspace-paper) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .calculator-input {
    min-height: 56px !important;
    background: #fff !important;
    border-color: rgba(18, 56, 76, 0.19) !important;
    box-shadow:
      inset 3px 0 var(--resource-gold-soft),
      inset 0 1px rgba(255, 255, 255, 0.92),
      0 6px 14px rgba(8, 46, 65, 0.035) !important;
    transition:
      border-color 160ms ease,
      box-shadow 160ms ease,
      background-color 160ms ease !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .calculator-results {
    isolation: isolate;
    background:
      linear-gradient(145deg, rgba(11, 105, 105, 0.82), rgba(8, 46, 65, 0.99)) !important;
    border-left-color: rgba(200, 164, 95, 0.74) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .calculator-results
    > div {
    min-height: 98px !important;
    padding: 20px 24px !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .calculator-results
    span {
    color: rgba(255, 255, 255, 0.72) !important;
    letter-spacing: 0;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .calculator-results
    strong {
    color: #fff !important;
    font-size: 28px !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .calculator-guidance {
    width: min(100%, var(--resource-workspace-width)) !important;
    margin: 0 auto !important;
    padding: 16px 18px !important;
    background: rgba(255, 255, 255, 0.78) !important;
    border-top: 0 !important;
    border-left: 1px solid var(--resource-workspace-line) !important;
    box-shadow: 0 14px 30px rgba(8, 46, 65, 0.06) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .calculator-guidance
    a::after {
    border-radius: 2px;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .calculator-bottom-close {
    display: block !important;
    width: auto !important;
    min-width: 190px !important;
    min-height: 42px !important;
    margin:
      14px
      max(40px, calc((100vw - var(--resource-workspace-width)) / 2))
      0
      auto !important;
    padding: 10px 20px !important;
    color: var(--resource-teal) !important;
    -webkit-text-fill-color: var(--resource-teal) !important;
    background: transparent !important;
    border: 1px solid rgba(18, 56, 76, 0.22) !important;
    border-left: 3px solid var(--resource-gold) !important;
    box-shadow: none !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .calculator-bottom-close:is(:hover, :focus-visible) {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: var(--resource-teal) !important;
    border-color: var(--resource-gold) !important;
    box-shadow: inset 3px 0 var(--resource-gold) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-form {
    width: min(100%, var(--resource-workspace-width)) !important;
    margin: 0 auto !important;
    padding: 26px 28px 28px !important;
    background:
      linear-gradient(135deg, rgba(200, 164, 95, 0.035), transparent 32%),
      rgba(255, 255, 255, 0.96) !important;
    border-top: 1px solid rgba(200, 164, 95, 0.72) !important;
    box-shadow: 0 24px 48px rgba(8, 46, 65, 0.11) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-fields {
    gap: 12px !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-document-row {
    padding: 20px !important;
    background: rgba(252, 251, 248, 0.98) !important;
    border-color: rgba(18, 56, 76, 0.13) !important;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.92) !important;
    transition:
      background-color 160ms ease,
      border-color 160ms ease,
      box-shadow 160ms ease !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-document-row:nth-of-type(even) {
    background: rgba(241, 247, 245, 0.82) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-document-row:focus-within {
    background: #fff !important;
    border-color: rgba(11, 105, 105, 0.38) !important;
    box-shadow:
      inset 3px 0 var(--resource-gold),
      0 10px 24px rgba(8, 46, 65, 0.08) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-document-row
    legend {
    font-size: 18px !important;
    line-height: 1.18 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-document-hint {
    color: #516776 !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-document-row
    .worksheet-status-options {
    gap: 2px !important;
    padding: 3px !important;
    background: #f1f3f0 !important;
    border-color: rgba(18, 56, 76, 0.16) !important;
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.92),
      0 5px 12px rgba(8, 46, 65, 0.035) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-fields
    .worksheet-status-option
    > span {
    min-height: 44px !important;
    border: 0 !important;
    font-size: 10.5px !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-status-option:is(:hover, :focus-within)
    > span {
    color: var(--resource-ink-deep) !important;
    background: rgba(232, 217, 184, 0.28) !important;
    box-shadow: inset 0 -2px rgba(200, 164, 95, 0.52) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-document-detail {
    font-size: 10.5px !important;
    line-height: 1.35 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-custom-trigger {
    min-height: 50px !important;
    background: #fff !important;
    border-color: rgba(18, 56, 76, 0.18) !important;
    box-shadow:
      inset 3px 0 var(--resource-gold-soft),
      0 5px 12px rgba(8, 46, 65, 0.035) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-fields
    > label:not(.worksheet-status-option) {
    padding: 20px !important;
    background: var(--resource-workspace-paper) !important;
    border-color: rgba(18, 56, 76, 0.13) !important;
    border-top-color: rgba(200, 164, 95, 0.6) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-status-summary {
    margin-top: 14px !important;
    background: rgba(200, 164, 95, 0.11) !important;
    border-color: rgba(200, 164, 95, 0.3) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-actions {
    margin-top: 12px !important;
    padding: 18px !important;
    background:
      linear-gradient(108deg, #082e41 0%, #0a4f59 62%, #0b6969 100%) !important;
    box-shadow:
      inset 3px 0 var(--resource-gold),
      0 14px 30px rgba(8, 46, 65, 0.11) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #attachWorksheetButton:disabled {
    color: #687b86 !important;
    background: #e8ece9 !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    cursor: not-allowed;
    opacity: 0.76;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-bottom-close {
    display: block !important;
    width: auto !important;
    min-width: 190px !important;
    min-height: 42px !important;
    margin: 10px 0 0 auto !important;
    padding: 10px 20px !important;
    color: var(--resource-teal) !important;
    -webkit-text-fill-color: var(--resource-teal) !important;
    background: transparent !important;
    border: 1px solid rgba(18, 56, 76, 0.2) !important;
    border-left: 3px solid var(--resource-gold) !important;
    box-shadow: none !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-bottom-close:is(:hover, :focus-visible) {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: var(--resource-teal) !important;
    border-color: var(--resource-gold) !important;
    box-shadow: inset 3px 0 var(--resource-gold) !important;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-library-single
    > section {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    row-gap: 24px !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-library-single
    :is(.eyebrow, h3, .worksheet-library-note, .resource-selected-photo--organization, .worksheet-groups) {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-library-note {
    margin-bottom: 0 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .resource-selected-photo--organization {
    display: none !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .calculator-panel {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .calculator-results {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    border-top: 1px solid rgba(200, 164, 95, 0.62) !important;
    border-left: 0 !important;
  }
}

@media (min-width: 761px) and (max-width: 1040px) {
  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-groups {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    .worksheet-group
    + .worksheet-group {
    border-top: 1px solid rgba(232, 217, 184, 0.18) !important;
    border-left: 0 !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="resources"]
    :is(
      .calculator-input,
      .worksheet-document-row,
      .worksheet-status-option > span
    ) {
    transition: none !important;
  }
}

@media (min-width: 761px) {
  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-tabs {
    margin: 0 auto !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-panel:not([hidden]) {
    margin: 0 auto !important;
    border-radius: 0 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-guidance {
    margin: 0 auto !important;
    border-top: 1px solid rgba(18, 56, 76, 0.12) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-bottom-close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: max-content !important;
    max-width: calc(100% - 80px) !important;
    margin:
      8px
      max(0px, calc((100% - var(--resource-workspace-width)) / 2))
      0
      auto !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-form {
    margin: 0 auto !important;
    border-radius: 0 0 2px 2px !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-bottom-close {
    display: flex !important;
    align-self: flex-end !important;
    align-items: center !important;
    justify-content: center !important;
    width: max-content !important;
    max-width: 100% !important;
    margin: 12px 0 0 auto !important;
  }
}

@media (min-width: 761px) {
  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-form {
    padding: 18px 20px 20px !important;
    background:
      linear-gradient(135deg, rgba(200, 164, 95, 0.025), transparent 34%),
      #f5f7f4 !important;
    border-color: rgba(18, 56, 76, 0.14) !important;
    border-top-color: rgba(200, 164, 95, 0.68) !important;
    box-shadow: 0 22px 46px rgba(8, 46, 65, 0.09) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-fields {
    gap: 10px !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-document-row {
    min-height: 116px;
    align-items: center;
    gap: 6px 24px !important;
    padding: 18px 20px !important;
    overflow: visible;
    background: rgba(255, 255, 255, 0.98) !important;
    border: 0 !important;
    border-radius: 2px !important;
    box-shadow:
      inset 4px 0 var(--resource-gold),
      inset 0 0 0 1px rgba(18, 56, 76, 0.13),
      0 6px 16px rgba(8, 46, 65, 0.035) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-document-row:nth-of-type(even) {
    background: rgba(247, 250, 248, 0.98) !important;
    border-left-color: transparent !important;
    box-shadow:
      inset 4px 0 var(--resource-teal),
      inset 0 0 0 1px rgba(18, 56, 76, 0.13),
      0 6px 16px rgba(8, 46, 65, 0.035) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-document-row:focus-within {
    background: #fff !important;
    border-color: transparent !important;
    box-shadow:
      inset 4px 0 var(--resource-gold),
      inset 0 0 0 1px rgba(11, 105, 105, 0.42),
      0 12px 26px rgba(8, 46, 65, 0.075) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-document-row
    legend {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0 0 0 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-document-row::before {
    content: attr(data-label);
    grid-column: 1 !important;
    grid-row: 1 !important;
    align-self: end;
    min-width: 0;
    color: var(--resource-ink-deep) !important;
    font-family: var(--resource-display) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.24 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-document-hint {
    max-width: 38ch;
    margin-top: 4px !important;
    color: #526976 !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.5 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-options {
    min-height: 56px;
    gap: 3px !important;
    padding: 3px !important;
    overflow: hidden;
    background: #f1f4f1 !important;
    border: 1px solid rgba(18, 56, 76, 0.14) !important;
    border-radius: 2px !important;
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.94),
      0 4px 12px rgba(8, 46, 65, 0.035) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-option
    > span {
    min-height: 48px !important;
    padding: 8px 12px !important;
    color: #4f6572 !important;
    font-family: "Inter", Arial, sans-serif !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 1px !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-option
    > span::before {
    flex-basis: 6px;
    width: 6px;
    height: 6px;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-option[data-status="ready"]
    input:checked
    + span {
    color: #fff !important;
    background: var(--resource-teal) !important;
    box-shadow: inset 0 -3px var(--resource-gold) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-option[data-status="waiting"]
    input:checked
    + span {
    color: var(--resource-ink-deep) !important;
    background: #e5cf9e !important;
    box-shadow: inset 0 -3px #aa7b2c !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-option[data-status="not-needed"]
    input:checked
    + span {
    color: #fff !important;
    background: #4c6572 !important;
    box-shadow: inset 0 -3px rgba(200, 164, 95, 0.9) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-document-detail {
    position: relative;
    display: block !important;
    align-self: center;
    min-height: 56px;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
    color: #4f6572 !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 2px !important;
    box-shadow: none !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-document-detail[hidden] {
    display: none !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-document-detail
    > span {
    position: absolute;
    top: 7px;
    left: 17px;
    z-index: 4;
    color: var(--resource-ink-deep) !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    pointer-events: none;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-document-detail
    > :is(input, textarea) {
    width: 100% !important;
    min-height: 56px !important;
    margin: 0 !important;
    padding: 21px 16px 6px !important;
    color: var(--resource-ink-deep) !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
    background: #fff !important;
    border: 1px solid rgba(18, 56, 76, 0.17) !important;
    border-left: 3px solid var(--resource-gold-soft) !important;
    border-radius: 2px !important;
    box-shadow: 0 5px 12px rgba(8, 46, 65, 0.04) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-document-detail
    > textarea {
    min-height: 72px !important;
    resize: vertical;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-document-detail
    > :is(input, textarea)::placeholder {
    color: #6d7f88 !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-weight: 500 !important;
    opacity: 1;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-document-detail:focus-within
    > :is(input, textarea) {
    border-color: var(--resource-teal) !important;
    border-left-color: var(--resource-gold) !important;
    outline: 0 !important;
    box-shadow:
      0 0 0 3px rgba(11, 105, 105, 0.1),
      0 8px 18px rgba(8, 46, 65, 0.07) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-document-detail:focus-within
    > span {
    color: var(--resource-teal) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-document-row:has(.worksheet-document-detail[hidden])
    .worksheet-status-options {
    grid-column: 2 / -1 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-custom-trigger {
    min-height: 56px !important;
    padding: 20px 15px 6px 17px !important;
    justify-content: space-between !important;
    gap: 12px !important;
    text-align: left !important;
    color: var(--resource-ink-deep) !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    background: #fff !important;
    border-color: rgba(18, 56, 76, 0.16) !important;
    box-shadow:
      inset 3px 0 var(--resource-gold-soft),
      0 5px 12px rgba(8, 46, 65, 0.035) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-custom-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-custom-select.is-open
    .worksheet-custom-trigger {
    color: #fff !important;
    background:
      linear-gradient(105deg, var(--resource-ink) 0%, var(--resource-teal) 100%) !important;
    border-color: var(--resource-gold) !important;
    border-radius: 2px 2px 0 0 !important;
    box-shadow:
      inset 3px 0 var(--resource-gold),
      0 0 0 3px rgba(11, 105, 105, 0.1) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-document-detail:has(.worksheet-custom-select.is-open)
    > span {
    color: #f5dfad !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-custom-menu {
    top: calc(100% - 1px) !important;
    max-height: 250px !important;
    padding: 5px !important;
    overflow-y: auto !important;
    background: #fff !important;
    border: 1px solid rgba(18, 56, 76, 0.2) !important;
    border-top: 2px solid var(--resource-gold) !important;
    border-radius: 0 0 2px 2px !important;
    box-shadow: 0 20px 36px rgba(8, 46, 65, 0.18) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-custom-select.opens-upward
    .worksheet-custom-trigger {
    border-radius: 0 0 2px 2px !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-custom-select.opens-upward
    .worksheet-custom-menu {
    top: auto !important;
    bottom: calc(100% - 1px) !important;
    border-top: 1px solid rgba(18, 56, 76, 0.2) !important;
    border-bottom: 2px solid var(--resource-gold) !important;
    border-radius: 2px 2px 0 0 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-custom-option {
    min-height: 42px !important;
    padding: 10px 14px !important;
    justify-content: flex-start !important;
    color: var(--resource-copy) !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    text-align: left !important;
    border-radius: 1px !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-custom-option:is(:hover, :focus-visible) {
    color: var(--resource-ink-deep) !important;
    background: rgba(232, 217, 184, 0.28) !important;
    box-shadow: inset 3px 0 rgba(200, 164, 95, 0.72) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-custom-option.is-selected {
    color: #fff !important;
    background: var(--resource-teal) !important;
    box-shadow: inset 3px 0 var(--resource-gold) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-fields
    > label:not(.worksheet-status-option):not(.worksheet-document-detail) {
    position: relative;
    display: block !important;
    min-height: 56px;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 2px !important;
    box-shadow: none !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-field
    > span {
    position: absolute;
    top: 8px;
    left: 17px;
    z-index: 4;
    color: var(--resource-ink-deep) !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 10.5px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    pointer-events: none;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-field
    > :is(input, textarea) {
    width: 100% !important;
    min-height: 56px !important;
    margin: 0 !important;
    padding: 21px 16px 6px !important;
    color: var(--resource-ink-deep) !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
    background: #fff !important;
    border: 1px solid rgba(18, 56, 76, 0.17) !important;
    border-left: 3px solid var(--resource-gold-soft) !important;
    border-radius: 2px !important;
    box-shadow: 0 5px 12px rgba(8, 46, 65, 0.04) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-field
    > textarea {
    min-height: 104px !important;
    padding-top: 24px !important;
    resize: vertical;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-field
    > :is(input, textarea)::placeholder {
    color: #6d7f88 !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-weight: 500 !important;
    opacity: 1;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-field:focus-within
    > :is(input, textarea) {
    border-color: var(--resource-teal) !important;
    border-left-color: var(--resource-gold) !important;
    outline: 0 !important;
    box-shadow:
      0 0 0 3px rgba(11, 105, 105, 0.1),
      0 8px 18px rgba(8, 46, 65, 0.07) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-field:focus-within
    > span {
    color: var(--resource-teal) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-field:has(.worksheet-custom-select.is-open)
    > span {
    color: #f5dfad !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-summary {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 !important;
    margin-top: 14px !important;
    padding: 0 !important;
    overflow: hidden;
    background: #fff !important;
    border: 1px solid rgba(18, 56, 76, 0.13) !important;
    border-left: 4px solid var(--resource-gold) !important;
    border-radius: 2px !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-summary-item {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    padding: 12px 14px;
    border-right: 1px solid rgba(18, 56, 76, 0.1);
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-summary-item:last-child {
    border-right: 0;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-summary-item
    strong {
    color: var(--resource-teal) !important;
    font-size: 18px !important;
    font-variant-numeric: tabular-nums;
    line-height: 1 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-summary-item
    > span {
    color: #526976 !important;
    font-size: 11.5px !important;
    font-weight: 750 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-actions {
    grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr) !important;
    gap: 8px 26px !important;
    margin-top: 12px !important;
    padding: 18px 20px !important;
    border: 0 !important;
    border-left: 4px solid var(--resource-gold) !important;
    box-shadow: 0 12px 28px rgba(8, 46, 65, 0.09) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    #attachWorksheetButton {
    min-height: 48px !important;
    font-size: 13px !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-handoff-note {
    color: rgba(255, 255, 255, 0.78) !important;
    font-size: 12.5px !important;
    line-height: 1.5 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-bottom-close,
  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-bottom-close {
    min-width: 164px !important;
    min-height: 40px !important;
    padding: 9px 2px !important;
    color: var(--resource-teal) !important;
    -webkit-text-fill-color: var(--resource-teal) !important;
    background: transparent !important;
    border: 0 !important;
    border-bottom: 2px solid var(--resource-gold) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-bottom-close:is(:hover, :focus-visible),
  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-bottom-close:is(:hover, :focus-visible) {
    color: var(--resource-ink-deep) !important;
    -webkit-text-fill-color: var(--resource-ink-deep) !important;
    background: transparent !important;
    border-bottom-color: var(--resource-teal) !important;
    box-shadow: none !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-tabs
    button {
    min-height: 54px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: var(--resource-display) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-tabs
    button::before {
    color: rgba(232, 217, 184, 0.74);
    font-family: "Inter", Arial, sans-serif;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-tabs
    button:nth-child(1)::before {
    content: "01";
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-tabs
    button:nth-child(2)::before {
    content: "02";
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-tabs
    button:nth-child(3)::before {
    content: "03";
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-tabs
    button[aria-selected="true"]::before {
    color: var(--resource-teal);
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-panel {
    grid-template-columns: minmax(0, 1.68fr) minmax(300px, 0.72fr) !important;
    background: #fff !important;
    box-shadow: 0 20px 42px rgba(8, 46, 65, 0.09) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-fields {
    align-content: center !important;
    gap: 18px !important;
    padding: 20px 24px !important;
    background:
      linear-gradient(135deg, rgba(200, 164, 95, 0.035), transparent 44%),
      #fbfaf7 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-field {
    gap: 9px !important;
    color: var(--resource-ink-deep) !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    text-transform: none !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-input {
    min-height: 52px !important;
    background: #fff !important;
    border-color: rgba(18, 56, 76, 0.16) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-input
    input {
    height: 48px !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 15.5px !important;
    font-weight: 650 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-results
    > div {
    min-height: 76px !important;
    padding: 12px 18px !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-results
    span {
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-results
    strong {
    font-family: var(--resource-display) !important;
    font-size: 30px !important;
    font-weight: 700 !important;
    line-height: 1.05 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-guidance {
    min-height: 56px;
    padding: 13px 18px !important;
    background: rgba(255, 255, 255, 0.84) !important;
    border-color: rgba(18, 56, 76, 0.12) !important;
    box-shadow: 0 12px 26px rgba(8, 46, 65, 0.05) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-guidance
    :is(p, a) {
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 12.5px !important;
  }
}

@media (min-width: 1181px) {
  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-document-row {
    grid-template-columns:
      minmax(250px, 0.94fr)
      minmax(320px, 1.03fr)
      minmax(320px, 1.03fr) !important;
  }
}

@media (min-width: 1450px) {
  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder::before,
  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder::after,
  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators::after {
    content: "";
    position: absolute;
    z-index: 0;
    width: 152px;
    height: 152px;
    aspect-ratio: 1;
    min-height: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
    border: 1px solid rgba(200, 164, 95, 0.22);
    background:
      linear-gradient(135deg, rgba(200, 164, 95, 0.075), transparent 64%),
      rgba(255, 255, 255, 0.1) !important;
    transform: rotate(12deg);
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder::before {
    top: 290px;
    right: auto;
    bottom: auto;
    left: 34px;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder::after {
    top: 720px;
    right: 38px;
    width: 126px;
    height: 126px;
    border-color: rgba(11, 105, 105, 0.19);
    background:
      linear-gradient(135deg, rgba(11, 105, 105, 0.065), transparent 64%),
      rgba(255, 255, 255, 0.08) !important;
    transform: rotate(-9deg);
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators::after {
    top: auto;
    right: 42px;
    bottom: 92px;
    left: auto;
    border-color: rgba(11, 105, 105, 0.19);
    background:
      linear-gradient(135deg, rgba(11, 105, 105, 0.065), transparent 64%),
      rgba(255, 255, 255, 0.08) !important;
    transform: rotate(-9deg);
  }
}

@keyframes worksheet-menu-enter {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes worksheet-menu-enter-up {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Final desktop workspace pass: one control rhythm across every worksheet and calculator. */
@media (min-width: 761px) {
  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-fields {
    gap: 10px !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-document-row {
    position: relative;
    isolation: isolate;
    min-height: 110px;
    gap: 8px 20px !important;
    padding: 14px 16px !important;
    box-sizing: border-box;
    background:
      linear-gradient(100deg, rgba(200, 164, 95, 0.085), transparent 25%),
      linear-gradient(180deg, #fff 0%, #f9fbf9 100%) !important;
    border: 1px solid rgba(18, 56, 76, 0.17) !important;
    border-radius: 3px !important;
    box-shadow:
      inset 4px 0 var(--resource-gold),
      inset 0 1px rgba(255, 255, 255, 0.96),
      0 12px 26px rgba(8, 46, 65, 0.075) !important;
    transition:
      background-color 160ms ease,
      border-color 160ms ease,
      box-shadow 160ms ease !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-document-row:nth-of-type(even) {
    background:
      linear-gradient(100deg, rgba(11, 105, 105, 0.08), transparent 25%),
      linear-gradient(180deg, #fcfefd 0%, #f5f9f7 100%) !important;
    border-color: rgba(18, 56, 76, 0.17) !important;
    box-shadow:
      inset 4px 0 var(--resource-teal),
      inset 0 1px rgba(255, 255, 255, 0.96),
      0 12px 26px rgba(8, 46, 65, 0.075) !important;
  }

  @media (hover: hover) {
    body[data-page="resources"]:not(.is-mobile-app-shell)
      #worksheet-builder
      .worksheet-document-row:hover {
      background:
        linear-gradient(100deg, rgba(200, 164, 95, 0.11), transparent 28%),
        #fff !important;
      border-color: rgba(11, 105, 105, 0.34) !important;
      box-shadow:
        inset 4px 0 var(--resource-gold),
        0 13px 28px rgba(8, 46, 65, 0.085) !important;
    }
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-document-row:focus-within {
    background:
      linear-gradient(100deg, rgba(200, 164, 95, 0.12), transparent 28%),
      #fff !important;
    border-color: rgba(11, 105, 105, 0.45) !important;
    box-shadow:
      inset 4px 0 var(--resource-gold),
      0 0 0 3px rgba(11, 105, 105, 0.07),
      0 14px 30px rgba(8, 46, 65, 0.095) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-document-row
    legend {
    color: var(--resource-ink-deep) !important;
    font-family: var(--resource-display) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.16 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-document-hint {
    max-width: 35ch;
    margin-top: 3px !important;
    color: #546b77 !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 500 !important;
    line-height: 1.48 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-options {
    width: 100%;
    height: 56px !important;
    min-height: 56px !important;
    box-sizing: border-box;
    background:
      linear-gradient(180deg, #f8faf8 0%, #eef2ef 100%) !important;
    border-color: rgba(18, 56, 76, 0.18) !important;
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.96),
      0 6px 14px rgba(8, 46, 65, 0.045) !important;
    transition:
      border-color 150ms ease,
      box-shadow 150ms ease !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-options:is(:hover, :focus-within) {
    border-color: rgba(11, 105, 105, 0.38) !important;
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.96),
      0 8px 18px rgba(8, 46, 65, 0.075) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-option
    > span {
    height: 48px !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 12px !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
    text-align: center !important;
    transition:
      color 140ms ease,
      background-color 140ms ease,
      box-shadow 140ms ease !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-option
    > span::before {
    width: 7px !important;
    height: 7px !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-option
    input:not(:checked)
    + span:hover {
    color: var(--resource-ink-deep) !important;
    background: rgba(232, 217, 184, 0.3) !important;
    box-shadow: inset 0 -2px var(--resource-gold) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-option
    input:focus-visible
    + span {
    outline: 2px solid rgba(11, 105, 105, 0.46) !important;
    outline-offset: -2px;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-document-detail {
    width: 100%;
    min-height: 56px !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-custom-select {
    position: relative;
    width: 100% !important;
    height: 56px !important;
    min-height: 56px !important;
    box-sizing: border-box;
    background: #fff !important;
    border-color: rgba(18, 56, 76, 0.18) !important;
    border-radius: 2px !important;
    box-shadow:
      inset 3px 0 var(--resource-gold-soft),
      0 6px 14px rgba(8, 46, 65, 0.045) !important;
    transition:
      border-color 150ms ease,
      box-shadow 150ms ease;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-custom-select:not(.is-open):hover {
    border-color: rgba(11, 105, 105, 0.46) !important;
    box-shadow:
      inset 3px 0 var(--resource-gold),
      0 8px 18px rgba(8, 46, 65, 0.075) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-custom-trigger {
    width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    box-sizing: border-box;
    padding: 19px 14px 5px 16px !important;
    color: var(--resource-ink-deep) !important;
    background: linear-gradient(90deg, #fff 0%, #fdfcf8 100%) !important;
    border: 0 !important;
    border-radius: 1px !important;
    box-shadow: none !important;
    transform: none !important;
    transition:
      color 150ms ease,
      background-color 150ms ease !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-custom-trigger:focus-visible {
    outline: 2px solid rgba(11, 105, 105, 0.42) !important;
    outline-offset: 2px !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-custom-chevron {
    width: 10px !important;
    height: 6px !important;
    margin: 0 !important;
    background: currentColor !important;
    border: 0 !important;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
    transform: none !important;
    transform-origin: 50% 50%;
    transition: transform 160ms ease !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-custom-select.is-open {
    z-index: 14;
    border-color: var(--resource-gold) !important;
    box-shadow:
      inset 3px 0 var(--resource-gold),
      0 0 0 2px rgba(11, 105, 105, 0.12),
      0 16px 30px rgba(8, 46, 65, 0.12) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-custom-select.is-open
    .worksheet-custom-trigger {
    color: #fff !important;
    background: linear-gradient(
      100deg,
      var(--resource-ink-deep) 0%,
      #0b6765 100%
    ) !important;
    border-radius: 1px 1px 0 0 !important;
    box-shadow: none !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-custom-select.is-open
    .worksheet-custom-chevron {
    transform: rotate(180deg) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-custom-menu {
    top: calc(100% - 1px) !important;
    max-height: min(250px, 42vh) !important;
    padding: 5px !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    background: rgba(255, 255, 255, 0.995) !important;
    border: 1px solid rgba(18, 56, 76, 0.18) !important;
    border-top: 2px solid var(--resource-gold) !important;
    border-radius: 0 0 2px 2px !important;
    box-shadow: 0 20px 38px rgba(8, 46, 65, 0.18) !important;
    scrollbar-color: var(--resource-teal) rgba(200, 164, 95, 0.13);
    scrollbar-width: thin;
    animation: worksheet-menu-enter 150ms ease-out both;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-custom-select.opens-upward
    .worksheet-custom-menu {
    animation-name: worksheet-menu-enter-up;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-custom-option {
    position: relative;
    min-height: 40px !important;
    padding: 9px 34px 9px 13px !important;
    color: #385361 !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    line-height: 1.25 !important;
    text-align: left !important;
    background: transparent !important;
    border-radius: 1px !important;
    transition:
      color 130ms ease,
      background-color 130ms ease,
      box-shadow 130ms ease !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-custom-option:is(:hover, :focus-visible) {
    color: var(--resource-ink-deep) !important;
    background: rgba(232, 217, 184, 0.25) !important;
    box-shadow: inset 3px 0 var(--resource-gold) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-custom-option.is-selected {
    color: #fff !important;
    background: var(--resource-teal) !important;
    box-shadow:
      inset 3px 0 var(--resource-gold),
      inset 0 -1px rgba(255, 255, 255, 0.14) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-custom-option.is-selected::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 15px;
    width: 8px;
    height: 4px;
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: translateY(-65%) rotate(-45deg);
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-document-detail.is-note-detail
    > input {
    background:
      linear-gradient(90deg, rgba(200, 164, 95, 0.045), transparent 28%),
      #fff !important;
    transition:
      border-color 150ms ease,
      box-shadow 150ms ease,
      background-color 150ms ease !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-document-detail.is-note-detail:hover
    > input {
    border-color: rgba(11, 105, 105, 0.35) !important;
    border-left-color: var(--resource-gold) !important;
    box-shadow: 0 8px 18px rgba(8, 46, 65, 0.065) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-fields
    > label.worksheet-field-note:not(.worksheet-status-option):not(.worksheet-document-detail) {
    position: relative;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px !important;
    min-height: 0 !important;
    padding: 12px 14px 14px !important;
    background:
      linear-gradient(105deg, rgba(200, 164, 95, 0.05), transparent 30%),
      rgba(250, 251, 249, 0.98) !important;
    border: 1px solid rgba(18, 56, 76, 0.14) !important;
    border-left: 3px solid var(--resource-gold-soft) !important;
    border-radius: 2px !important;
    box-shadow: 0 7px 16px rgba(8, 46, 65, 0.035) !important;
    transition:
      background-color 150ms ease,
      border-color 150ms ease,
      box-shadow 150ms ease !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-field-note
    > span {
    position: static !important;
    color: var(--resource-ink-deep) !important;
    font-family: var(--resource-display) !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    pointer-events: auto;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-field-note
    > textarea {
    height: 72px !important;
    min-height: 72px !important;
    padding: 12px 14px !important;
    color: #294858 !important;
    background: #fff !important;
    border: 1px solid rgba(18, 56, 76, 0.16) !important;
    border-left: 2px solid var(--resource-gold-soft) !important;
    border-radius: 1px !important;
    box-shadow: inset 0 1px 3px rgba(8, 46, 65, 0.025) !important;
    transition:
      background-color 150ms ease,
      border-color 150ms ease,
      box-shadow 150ms ease !important;
  }

  @media (hover: hover) {
    body[data-page="resources"]:not(.is-mobile-app-shell)
      #worksheet-builder
      .worksheet-fields
      > label.worksheet-field-note:not(.worksheet-status-option):not(.worksheet-document-detail):hover {
      background:
        linear-gradient(105deg, rgba(200, 164, 95, 0.09), transparent 34%),
        #fff !important;
      border-color: rgba(11, 105, 105, 0.3) !important;
      border-left-color: var(--resource-gold) !important;
      box-shadow: 0 11px 24px rgba(8, 46, 65, 0.07) !important;
    }

    body[data-page="resources"]:not(.is-mobile-app-shell)
      #worksheet-builder
      .worksheet-fields
      > label.worksheet-field-note:not(.worksheet-status-option):not(.worksheet-document-detail):hover
      > textarea {
      background: #fffefb !important;
      border-color: rgba(11, 105, 105, 0.28) !important;
    }
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-fields
    > label.worksheet-field-note:not(.worksheet-status-option):not(.worksheet-document-detail):focus-within {
    border-color: rgba(11, 105, 105, 0.4) !important;
    border-left-color: var(--resource-gold) !important;
    box-shadow:
      0 0 0 3px rgba(11, 105, 105, 0.08),
      0 10px 22px rgba(8, 46, 65, 0.06) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-fields
    > label.worksheet-field-note:not(.worksheet-status-option):not(.worksheet-document-detail):focus-within
    > textarea {
    border-color: var(--resource-teal) !important;
    border-left-color: var(--resource-gold) !important;
    box-shadow: none !important;
  }

  @media (hover: hover) {
    body[data-page="resources"]:not(.is-mobile-app-shell)
      #worksheet-builder
      .worksheet-field:not(.worksheet-field-note):hover
      > :is(input, textarea) {
      border-color: rgba(11, 105, 105, 0.34) !important;
      border-left-color: var(--resource-gold) !important;
      box-shadow: 0 9px 20px rgba(8, 46, 65, 0.07) !important;
    }
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-fields
    > label.worksheet-field-note:not(.worksheet-status-option):not(.worksheet-document-detail):has(textarea[name="other_tax_documents"]) {
    background:
      linear-gradient(100deg, rgba(200, 164, 95, 0.11), transparent 38%),
      linear-gradient(180deg, #fbfcf9 0%, #f5f9f7 100%) !important;
    border-top: 2px solid rgba(200, 164, 95, 0.72) !important;
    border-left-color: var(--resource-teal) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-field-currency::after {
    content: "$";
    position: absolute;
    top: 30px;
    left: 17px;
    z-index: 4;
    color: var(--resource-teal) !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-field-currency
    > input {
    padding-left: 32px !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-summary {
    min-height: 44px;
    margin-top: 14px !important;
    background: linear-gradient(90deg, #fff 0%, #f8faf8 100%) !important;
    border: 1px solid rgba(18, 56, 76, 0.15) !important;
    border-top-color: rgba(200, 164, 95, 0.7) !important;
    border-radius: 3px 3px 0 0 !important;
    box-shadow: 0 7px 18px rgba(8, 46, 65, 0.045) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-summary[hidden] {
    display: none !important;
    min-height: 0;
    margin: 0 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-summary-item {
    min-height: 42px;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    padding: 7px 12px;
    text-align: center;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-summary-item
    strong {
    font-size: 16px !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-summary-item.is-ready {
    background: rgba(11, 105, 105, 0.045);
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-summary-item.is-waiting {
    background: rgba(200, 164, 95, 0.085);
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-summary-item.is-not-needed {
    background: rgba(76, 101, 114, 0.05);
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-summary-item.is-unanswered {
    background: rgba(232, 217, 184, 0.12);
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-summary-item.is-waiting
    strong {
    color: #9a6f27 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-summary-item.is-not-needed
    strong {
    color: #4c6572 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-summary-item.is-unanswered
    strong {
    color: #7a6752 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-actions {
    position: relative;
    isolation: isolate;
    display: grid !important;
    grid-template-columns: minmax(230px, 0.65fr) minmax(430px, 1.35fr) !important;
    align-items: center;
    gap: 10px 22px !important;
    margin-top: 12px !important;
    padding: 10px 14px !important;
    overflow: hidden;
    background:
      linear-gradient(102deg, rgba(200, 164, 95, 0.07), transparent 30%),
      linear-gradient(180deg, #fff 0%, #f5f8f6 100%) !important;
    border: 1px solid rgba(18, 56, 76, 0.17) !important;
    border-radius: 3px !important;
    box-shadow:
      0 12px 26px rgba(8, 46, 65, 0.07),
      inset 0 1px rgba(255, 255, 255, 0.9) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-summary:not([hidden])
    + .worksheet-actions {
    margin-top: 0 !important;
    border-top: 0 !important;
    border-radius: 0 0 3px 3px !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-actions::after {
    display: none;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    #attachWorksheetButton {
    grid-column: 2;
    grid-row: 1;
    width: 100% !important;
    min-height: 56px !important;
    margin: 0 !important;
    padding: 13px 20px !important;
    color: #fff !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    background: linear-gradient(
      100deg,
      var(--resource-ink-deep) 0%,
      var(--resource-teal) 100%
    ) !important;
    border: 1px solid var(--resource-gold) !important;
    border-radius: 3px !important;
    box-shadow:
      inset 0 -2px rgba(200, 164, 95, 0.72),
      0 11px 22px rgba(8, 46, 65, 0.16) !important;
    transform: none !important;
    transition:
      background-color 150ms ease,
      box-shadow 150ms ease,
      color 150ms ease !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    #attachWorksheetButton::after {
    content: "→";
    display: inline-block;
    margin-left: 12px;
    color: #f5dfad;
    font-size: 17px;
    line-height: 1;
    transition: transform 150ms ease;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    #attachWorksheetButton:is(:hover, :focus-visible) {
    color: #fff !important;
    background: linear-gradient(
      100deg,
      #0a3c50 0%,
      #0c7774 100%
    ) !important;
    outline: 2px solid rgba(200, 164, 95, 0.36) !important;
    outline-offset: 2px;
    box-shadow:
      inset 0 -2px var(--resource-gold),
      0 14px 28px rgba(8, 46, 65, 0.2) !important;
    transform: none !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    #attachWorksheetButton:is(:hover, :focus-visible)::after {
    transform: translateX(3px);
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    #attachWorksheetButton:active {
    box-shadow:
      inset 0 2px 5px rgba(8, 46, 65, 0.24),
      inset 0 -2px var(--resource-gold),
      0 7px 15px rgba(8, 46, 65, 0.14) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    #attachWorksheetButton:disabled,
  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    #attachWorksheetButton:disabled:is(:hover, :focus-visible) {
    color: #6b7c85 !important;
    background: linear-gradient(180deg, #eef1ef, #e4e9e6) !important;
    border-color: rgba(18, 56, 76, 0.18) !important;
    outline: 0 !important;
    box-shadow: inset 0 -2px rgba(200, 164, 95, 0.35) !important;
    cursor: not-allowed;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    #attachWorksheetButton:disabled::after {
    color: #7c8c93;
    opacity: 0.55;
    transform: none;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-handoff-note {
    position: relative;
    grid-column: 1;
    grid-row: 1;
    min-height: 48px;
    display: flex;
    align-items: center;
    margin: 0 !important;
    padding: 0 4px !important;
    color: #445d69 !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    text-align: left !important;
    border-left: 0;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-handoff-note::before {
    display: none;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-actions
    #worksheetMessage {
    grid-column: 1 / -1;
    margin: 0 !important;
    text-align: center !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-actions
    #worksheetMessage:empty {
    display: none !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-actions
    #worksheetMessage:not(:empty) {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px !important;
    color: #6d5537 !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 750 !important;
    line-height: 1.4 !important;
    background: rgba(232, 217, 184, 0.24) !important;
    border: 1px solid rgba(200, 164, 95, 0.42) !important;
    border-left: 3px solid var(--resource-gold) !important;
    border-radius: 2px !important;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.78) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-bottom-close {
    margin: 10px auto 0 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators::before {
    height: 2px !important;
    background: var(--resource-gold) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-tabs {
    min-height: 56px;
    background: var(--resource-ink-deep) !important;
    border-top: 1px solid rgba(200, 164, 95, 0.48) !important;
    border-bottom: 1px solid rgba(200, 164, 95, 0.58) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-tabs
    button {
    min-height: 56px !important;
    padding: 12px 18px !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 13.5px !important;
    font-weight: 750 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    border-radius: 0 !important;
    transform: none !important;
    transition:
      color 150ms ease,
      background-color 150ms ease,
      box-shadow 150ms ease !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-tabs
    button[aria-selected="false"]:is(:hover, :focus-visible) {
    color: #fff !important;
    background: rgba(11, 105, 105, 0.58) !important;
    box-shadow: inset 0 -2px var(--resource-gold) !important;
    outline: 0 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-tabs
    button[aria-selected="true"] {
    color: var(--resource-ink-deep) !important;
    background: linear-gradient(180deg, #fff 0%, #faf8f1 100%) !important;
    box-shadow:
      inset 0 3px var(--resource-gold),
      inset 1px 0 rgba(18, 56, 76, 0.1),
      inset -1px 0 rgba(18, 56, 76, 0.1) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-panel {
    background: #fafaf7 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-field
    > span:first-child {
    color: var(--resource-ink-deep) !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 12.5px !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-input {
    min-height: 52px !important;
    background: #fff !important;
    border: 1px solid rgba(18, 56, 76, 0.16) !important;
    border-left: 3px solid var(--resource-gold-soft) !important;
    border-radius: 2px !important;
    box-shadow: 0 6px 14px rgba(8, 46, 65, 0.045) !important;
    transition:
      border-color 150ms ease,
      box-shadow 150ms ease !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-field:focus-within
    .calculator-input {
    border-color: var(--resource-teal) !important;
    border-left-color: var(--resource-gold) !important;
    box-shadow:
      0 0 0 3px rgba(11, 105, 105, 0.09),
      0 9px 18px rgba(8, 46, 65, 0.07) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-input
    input {
    min-height: 50px !important;
    color: var(--resource-ink-deep) !important;
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-results {
    background: linear-gradient(
      145deg,
      var(--resource-teal) 0%,
      var(--resource-ink-deep) 100%
    ) !important;
    border-left: 1px solid var(--resource-gold) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-results
    > div {
    min-height: 76px;
    padding: 12px 18px !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-results
    span {
    font-family: "Inter", Arial, sans-serif !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-guidance {
    min-height: 54px;
    padding: 10px 16px !important;
    background: #fff !important;
    border-top: 1px solid rgba(18, 56, 76, 0.12) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-guidance
    a[hidden] {
    display: none !important;
  }
}

@media (min-width: 761px) and (max-width: 900px) {
  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-actions {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-handoff-note {
    grid-column: 1;
    grid-row: 1;
    padding: 0 0 0 64px !important;
    text-align: left !important;
    border-left: 0;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    #attachWorksheetButton {
    grid-column: 1;
    grid-row: 2;
  }
}

/* Desktop gold-frame finish: tighter rows and one continuous workspace edge. */
@media (min-width: 761px) {
  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-document-row {
    min-height: 96px;
    padding: 12px 14px !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .financial-calculators-heading {
    border: 1px solid rgba(200, 164, 95, 0.88) !important;
    box-shadow:
      0 16px 36px rgba(8, 46, 65, 0.11),
      inset 0 -1px rgba(232, 217, 184, 0.15) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-form {
    border: 1px solid rgba(200, 164, 95, 0.72) !important;
    border-top-color: rgba(200, 164, 95, 0.82) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-tabs {
    border-top: 1px solid rgba(200, 164, 95, 0.82) !important;
    border-right: 1px solid rgba(200, 164, 95, 0.72) !important;
    border-bottom: 1px solid rgba(200, 164, 95, 0.58) !important;
    border-left: 1px solid rgba(200, 164, 95, 0.72) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-panel {
    border-top: 0 !important;
    border-right: 1px solid rgba(200, 164, 95, 0.72) !important;
    border-bottom: 0 !important;
    border-left: 1px solid rgba(200, 164, 95, 0.72) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-guidance {
    min-height: 58px;
    gap: 18px !important;
    padding: 9px 12px !important;
    background:
      linear-gradient(90deg, rgba(232, 217, 184, 0.28), transparent 34%),
      #fff !important;
    border-top: 1px solid rgba(200, 164, 95, 0.42) !important;
    border-right: 1px solid rgba(200, 164, 95, 0.72) !important;
    border-bottom: 1px solid rgba(200, 164, 95, 0.72) !important;
    border-left: 1px solid rgba(200, 164, 95, 0.72) !important;
    box-shadow: 0 14px 30px rgba(8, 46, 65, 0.07) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-guidance
    p {
    position: relative;
    flex: 1 1 auto;
    padding-left: 14px;
    color: #4a626e !important;
    font-weight: 600 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-guidance
    p::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 2px;
    height: 26px;
    background: var(--resource-gold);
    transform: translateY(-50%);
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-guidance
    a {
    min-height: 38px !important;
    padding: 0 42px 0 14px !important;
    color: var(--resource-teal) !important;
    background:
      linear-gradient(180deg, #fff 0%, rgba(232, 217, 184, 0.2) 100%) !important;
    border: 1px solid rgba(200, 164, 95, 0.62) !important;
    border-radius: 2px !important;
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.92),
      0 5px 12px rgba(8, 46, 65, 0.055) !important;
    transition:
      color 150ms ease,
      background-color 150ms ease,
      border-color 150ms ease,
      box-shadow 150ms ease !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-guidance
    a::after {
    right: 7px !important;
    width: 28px !important;
    height: 24px !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-guidance
    a:is(:hover, :focus-visible) {
    color: var(--resource-ink-deep) !important;
    background:
      linear-gradient(180deg, #fff 0%, rgba(232, 217, 184, 0.42) 100%) !important;
    border-color: var(--resource-teal) !important;
    box-shadow:
      inset 0 -2px var(--resource-gold),
      0 8px 18px rgba(8, 46, 65, 0.085) !important;
    outline: none !important;
  }
}

/* Desktop workspace uniformity: shared headers, balanced grids, and a lighter handoff. */
@media (min-width: 761px) {
  body[data-page="resources"]:not(.is-mobile-app-shell)
    :is(
      #financial-calculators .financial-calculators-heading,
      #financial-calculators[data-resource-media] .financial-calculators-heading,
      #worksheet-builder > div:first-child,
      #worksheet-builder[data-resource-media] > div:first-child
    ) {
    background:
      linear-gradient(
        108deg,
        var(--resource-ink-deep) 0%,
        #0b4f59 66%,
        var(--resource-teal) 100%
      ) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    :is(
      #financial-calculators .financial-calculators-heading,
      #financial-calculators[data-resource-media] .financial-calculators-heading,
      #worksheet-builder > div:first-child,
      #worksheet-builder[data-resource-media] > div:first-child
    )::before {
    border-radius: 0 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-fields
    > label.worksheet-field-note:not(.worksheet-status-option):not(.worksheet-document-detail):has(textarea[name="other_tax_documents"]) {
    background:
      linear-gradient(100deg, rgba(11, 105, 105, 0.08), transparent 25%),
      linear-gradient(180deg, #fcfefd 0%, #f5f9f7 100%) !important;
    border-top: 1px solid rgba(18, 56, 76, 0.17) !important;
    border-right: 1px solid rgba(18, 56, 76, 0.17) !important;
    border-bottom: 1px solid rgba(18, 56, 76, 0.17) !important;
    border-left: 3px solid var(--resource-teal) !important;
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.96),
      0 8px 18px rgba(8, 46, 65, 0.05) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #calculatorPanelLoan
    .calculator-results
    > div:last-child
    span {
    color: rgba(245, 223, 173, 0.9) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #calculatorPanelLoan
    .calculator-results
    > div:last-child
    strong {
    max-width: 100%;
    color: #f5ead3 !important;
    font-size: clamp(22px, 2vw, 26px) !important;
    line-height: 1.08 !important;
    overflow-wrap: anywhere;
  }
}

@media (min-width: 901px) {
  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-field-centered-last {
    grid-column: 1 / -1 !important;
    width: calc((100% - 10px) / 2);
    justify-self: center;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-actions {
    grid-template-columns: minmax(300px, 0.9fr) minmax(380px, 1.1fr) !important;
    gap: 10px 20px !important;
    padding: 12px 14px !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    #attachWorksheetButton {
    width: min(100%, 600px) !important;
    min-height: 52px !important;
    justify-self: end;
    padding: 12px 18px !important;
    box-shadow:
      inset 0 -2px rgba(200, 164, 95, 0.72),
      0 8px 18px rgba(8, 46, 65, 0.14) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-handoff-note {
    min-height: 44px;
    padding: 0 4px 0 14px !important;
    border-left: 2px solid rgba(200, 164, 95, 0.72);
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="resources"]
    #worksheet-builder
    .worksheet-custom-menu {
    animation: none !important;
  }
}

/* Refined desktop selectors: reversible worksheet statuses and modern calculator tabs. */
@media (min-width: 761px) {
  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-options {
    gap: 5px !important;
    height: 56px !important;
    padding: 4px !important;
    overflow: visible !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 248, 246, 0.94)) !important;
    border: 1px solid rgba(18, 56, 76, 0.16) !important;
    border-radius: 7px !important;
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.98),
      0 5px 14px rgba(8, 46, 65, 0.055) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-fields
    .worksheet-status-option
    > span {
    height: 46px !important;
    min-height: 46px !important;
    padding: 8px 10px !important;
    color: var(--resource-copy) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    border-radius: 5px !important;
    box-shadow: none !important;
    cursor: pointer;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-option
    input:not(:checked)
    + span:is(:hover, :active) {
    color: var(--resource-ink-deep) !important;
    background: rgba(255, 255, 255, 0.94) !important;
    border-color: rgba(11, 105, 105, 0.24) !important;
    box-shadow:
      inset 0 -2px rgba(200, 164, 95, 0.7),
      0 4px 10px rgba(8, 46, 65, 0.07) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-option[data-status="ready"]
    input:checked
    + span {
    color: #0a5757 !important;
    background:
      linear-gradient(180deg, #f8fcfb 0%, #e6f2ef 100%) !important;
    border-color: rgba(11, 105, 105, 0.48) !important;
    box-shadow:
      inset 0 -2px var(--resource-teal),
      0 4px 10px rgba(8, 113, 109, 0.1) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-option[data-status="waiting"]
    input:checked
    + span {
    color: #74531f !important;
    background:
      linear-gradient(180deg, #fffdf8 0%, #f5ead2 100%) !important;
    border-color: rgba(184, 139, 68, 0.54) !important;
    box-shadow:
      inset 0 -2px var(--resource-gold),
      0 4px 10px rgba(184, 139, 68, 0.1) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-option[data-status="not-needed"]
    input:checked
    + span {
    color: #314f5c !important;
    background:
      linear-gradient(180deg, #fbfcfc 0%, #e9eef0 100%) !important;
    border-color: rgba(49, 79, 92, 0.4) !important;
    box-shadow:
      inset 0 -2px #526b78,
      0 4px 10px rgba(49, 79, 92, 0.09) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-option[data-status="ready"]
    input:checked
    + span::before {
    background: var(--resource-teal) !important;
    box-shadow: 0 0 0 3px rgba(11, 105, 105, 0.14) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-option[data-status="waiting"]
    input:checked
    + span::before {
    background: var(--resource-gold) !important;
    box-shadow: 0 0 0 3px rgba(200, 164, 95, 0.16) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-option[data-status="not-needed"]
    input:checked
    + span::before {
    background: #526b78 !important;
    box-shadow: 0 0 0 3px rgba(82, 107, 120, 0.14) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #worksheet-builder
    .worksheet-status-option
    input:focus-visible
    + span {
    outline: 2px solid rgba(11, 105, 105, 0.5) !important;
    outline-offset: 1px !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-tabs {
    width: min(calc(100% - 32px), 1180px) !important;
    min-height: 0 !important;
    margin: 0 auto !important;
    padding: 6px !important;
    gap: 8px !important;
    overflow: visible !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(238, 245, 242, 0.94)) !important;
    border: 1px solid rgba(18, 56, 76, 0.16) !important;
    border-radius: 0 !important;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.98) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-tabs
    button {
    min-height: 50px !important;
    padding: 10px 16px !important;
    color: var(--resource-ink-deep) !important;
    -webkit-text-fill-color: var(--resource-ink-deep) !important;
    background: rgba(255, 255, 255, 0.56) !important;
    border: 1px solid rgba(18, 56, 76, 0.08) !important;
    border-radius: 6px !important;
    box-shadow: none !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-tabs
    button[aria-selected="false"]:is(:hover, :focus-visible) {
    color: var(--resource-ink-deep) !important;
    -webkit-text-fill-color: var(--resource-ink-deep) !important;
    background: #fff !important;
    border-color: rgba(11, 105, 105, 0.3) !important;
    box-shadow:
      inset 0 -2px var(--resource-gold),
      0 5px 12px rgba(8, 46, 65, 0.08) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-tabs
    button[aria-selected="true"] {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background:
      linear-gradient(112deg, var(--resource-ink-deep) 0%, #0b595e 72%, var(--resource-teal) 100%) !important;
    border-color: rgba(200, 164, 95, 0.74) !important;
    box-shadow:
      inset 0 1px rgba(255, 255, 255, 0.14),
      inset 0 -3px var(--resource-gold),
      0 7px 16px rgba(8, 46, 65, 0.14) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-tabs
    button[aria-selected="true"]::before {
    color: #f2dcae !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-tabs
    button:focus-visible {
    outline: 2px solid var(--resource-gold) !important;
    outline-offset: 2px !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-tabs
    button:is(:hover, :active) {
    transform: none !important;
  }
}

/* One continuous calculator workspace: shared perimeter, internal seams, one outer shadow. */
@media (min-width: 761px) {
  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .financial-calculators-heading {
    margin: 0 auto !important;
    overflow: hidden !important;
    border-bottom: 0 !important;
    border-radius: 8px 8px 0 0 !important;
    box-shadow: none !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-tabs {
    border-top: 1px solid rgba(200, 164, 95, 0.88) !important;
    border-right: 1px solid rgba(200, 164, 95, 0.72) !important;
    border-bottom: 1px solid rgba(18, 56, 76, 0.14) !important;
    border-left: 1px solid rgba(200, 164, 95, 0.72) !important;
    background:
      linear-gradient(90deg, rgba(232, 217, 184, 0.28), transparent 34%),
      #fff !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-panel {
    margin: 0 auto !important;
    overflow: hidden !important;
    border-top: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-results {
    align-self: stretch !important;
    height: 100% !important;
    width: calc(100% + 1px) !important;
    margin: 0 !important;
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-results::before {
    content: none !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-guidance {
    margin: 0 auto !important;
    border-radius: 0 0 8px 8px !important;
    box-shadow: 0 20px 42px rgba(8, 46, 65, 0.11) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    :is(.calculator-tabs, .calculator-guidance) {
    background:
      linear-gradient(
        90deg,
        rgba(232, 217, 184, 0.4) 0%,
        rgba(255, 255, 255, 0.96) 52%,
        rgba(232, 217, 184, 0.16) 100%
      ),
      #fff !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-tabs
    button[aria-selected="false"] {
    background: transparent !important;
    border-color: rgba(18, 56, 76, 0.1) !important;
  }

  body[data-page="resources"]:not(.is-mobile-app-shell)
    #financial-calculators
    .calculator-tabs
    button[aria-selected="false"]:is(:hover, :focus-visible) {
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.78),
        rgba(232, 217, 184, 0.3)
      ) !important;
  }
}
