@scope (#original-content) {

  #csat-calculator-section {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1e293b;
    line-height: 1.6;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px
  }

  #csat-calculator-section * { box-sizing: border-box }

  #csat-calculator-section h1 {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px
  }

  #csat-calculator-section h2 {
    font-size: clamp(1.15rem, 2.5vw, 1.45rem);
    font-weight: 700;
    color: #1e293b;
    margin: 36px 0 12px
  }

  #csat-calculator-section h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1e293b;
    margin: 22px 0 8px
  }

  #csat-calculator-section p {
    margin: 0 0 14px;
    color: #374151
  }

  #csat-calculator-section ul,
  #csat-calculator-section ol {
    margin: 0 0 14px;
    padding-left: 22px;
    color: #374151
  }

  #csat-calculator-section li { margin-bottom: 5px }

  #csat-calculator-section .csat-subtitle {
    color: #64748b;
    font-size: 1rem;
    margin: 0 0 24px
  }

  /* Card */
  #csat-calculator-section .csat-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06)
  }

  /* Mode Tabs */
  #csat-calculator-section .csat-mode-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px
  }

  #csat-calculator-section .csat-mode-tab {
    background: #f1f5f9;
    color: #64748b;
    border: none;
    padding: 9px 16px;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    transition: .15s;
    white-space: nowrap
  }

  #csat-calculator-section .csat-mode-tab:hover {
    background: #e2e8f0;
    color: #1e293b
  }

  #csat-calculator-section .csat-mode-tab.active {
    background: #0ea5e9;
    color: #fff
  }

  /* Panels */
  #csat-calculator-section .csat-panel { display: none }
  #csat-calculator-section .csat-panel.active { display: block }

  #csat-calculator-section .csat-mode-desc {
    color: #64748b;
    font-size: .9rem;
    margin-bottom: 14px
  }

  /* Inputs */
  #csat-calculator-section .csat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 16px
  }

  #csat-calculator-section .csat-row.single {
    grid-template-columns: 1fr
  }

  #csat-calculator-section .csat-field label {
    display: block;
    font-size: .82rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 5px
  }

  #csat-calculator-section .csat-field input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    color: #1e293b;
    outline: none;
    transition: .15s;
    background: #fafafa
  }

  #csat-calculator-section .csat-field input:focus {
    border-color: #0ea5e9;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(14,165,233,.12)
  }

  /* Rating band inputs */
  #csat-calculator-section .csat-band-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 14px
  }

  #csat-calculator-section .csat-band-field {
    flex: 1;
    min-width: 68px;
    max-width: 90px
  }

  #csat-calculator-section .csat-band-field label {
    display: block;
    font-size: .78rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 4px;
    text-align: center
  }

  #csat-calculator-section .csat-band-field input {
    width: 100%;
    padding: 8px 6px;
    border: 1.5px solid #e2e8f0;
    border-radius: 7px;
    font-size: .9rem;
    text-align: center;
    color: #1e293b;
    outline: none;
    background: #fafafa;
    transition: .15s
  }

  #csat-calculator-section .csat-band-field input:focus {
    border-color: #0ea5e9;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(14,165,233,.12)
  }

  #csat-calculator-section .csat-band-field.csat-satisfied label {
    color: #0369a1;
    font-weight: 700
  }

  #csat-calculator-section .csat-band-field.csat-satisfied input {
    border-color: #bae6fd;
    background: #f0f9ff
  }

  #csat-calculator-section .csat-band-field.csat-satisfied input:focus {
    border-color: #0ea5e9;
    background: #fff
  }

  /* Toggle advanced row */
  #csat-calculator-section .csat-toggle-advanced-row {
    margin-bottom: 14px
  }

  #csat-calculator-section .csat-toggle-adv {
    background: none;
    border: none;
    color: #0369a1;
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-decoration-style: dotted
  }

  /* Action row */
  #csat-calculator-section .csat-action-row {
    display: flex;
    gap: 10px;
    margin-top: 4px
  }

  #csat-calculator-section .csat-calc-btn {
    flex: 1;
    background: #0ea5e9;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s
  }

  #csat-calculator-section .csat-calc-btn:hover { background: #0284c7 }

  #csat-calculator-section .csat-reset-btn {
    background: #f1f5f9;
    color: #64748b;
    border: none;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s
  }

  #csat-calculator-section .csat-reset-btn:hover { background: #e2e8f0 }

  /* Results box */
  #csat-calculator-section .csat-result-box {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border: 1.5px solid #7dd3fc;
    border-radius: 14px;
    padding: 22px;
    margin-top: 20px
  }

  #csat-calculator-section .csat-result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap
  }

  #csat-calculator-section .csat-result-label {
    font-size: .75rem;
    font-weight: 700;
    color: #0369a1;
    letter-spacing: .07em;
    text-transform: uppercase;
    margin-bottom: 4px
  }

  #csat-calculator-section .csat-result-pct {
    font-size: 3rem;
    font-weight: 800;
    color: #0c4a6e;
    line-height: 1;
    transition: color .2s
  }

  #csat-calculator-section .csat-interp-badge {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 700;
    white-space: nowrap
  }

  #csat-calculator-section .csat-badge-excellent {
    background: #dcfce7;
    color: #166534
  }

  #csat-calculator-section .csat-badge-good {
    background: #dbeafe;
    color: #1e40af
  }

  #csat-calculator-section .csat-badge-fair {
    background: #fef9c3;
    color: #854d0e
  }

  #csat-calculator-section .csat-badge-poor {
    background: #fee2e2;
    color: #991b1b
  }

  #csat-calculator-section .csat-result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px
  }

  #csat-calculator-section .csat-result-meta {
    background: rgba(255,255,255,.7);
    border-radius: 8px;
    padding: 10px 12px;
    border: 1px solid #bae6fd
  }

  #csat-calculator-section .csat-meta-label {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    color: #0369a1;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 3px
  }

  #csat-calculator-section .csat-meta-val {
    display: block;
    font-size: .95rem;
    font-weight: 700;
    color: #0c4a6e
  }

  #csat-calculator-section .csat-formula-used {
    background: rgba(255,255,255,.8);
    border-radius: 8px;
    padding: 10px 14px;
    font-family: 'Courier New', monospace;
    font-size: .9rem;
    color: #1e293b;
    border: 1px solid #bae6fd;
    margin-bottom: 10px
  }

  #csat-calculator-section .csat-threshold-note {
    font-size: .82rem;
    color: #475569;
    background: rgba(255,255,255,.6);
    border-radius: 7px;
    padding: 7px 12px;
    border: 1px solid #bae6fd;
    margin-bottom: 10px
  }

  #csat-calculator-section .csat-result-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap
  }

  #csat-calculator-section .csat-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #0ea5e9;
    color: #fff;
    border: none;
    padding: 7px 16px;
    border-radius: 7px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: .15s
  }

  #csat-calculator-section .csat-copy-btn:hover { background: #0284c7 }
  #csat-calculator-section .csat-copy-btn.copied { background: #059669 }

  /* Formula block */
  #csat-calculator-section .csat-formula-block {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #0ea5e9;
    border-radius: 0 10px 10px 0;
    padding: 14px 18px;
    margin: 14px 0;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: #1e293b
  }

  #csat-calculator-section .csat-formula-block strong {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: block;
    font-size: .78rem;
    font-weight: 700;
    color: #0369a1;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 5px
  }

  /* Step list */
  #csat-calculator-section .csat-step-list {
    counter-reset: csat-step;
    list-style: none;
    padding: 0;
    margin: 14px 0
  }

  #csat-calculator-section .csat-step-list li {
    counter-increment: csat-step;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 12px
  }

  #csat-calculator-section .csat-step-list li::before {
    content: counter(csat-step);
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: #0ea5e9;
    color: #fff;
    border-radius: 50%;
    font-size: .82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px
  }

  /* Example cards */
  #csat-calculator-section .csat-examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    margin: 16px 0
  }

  #csat-calculator-section .csat-example-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    border-top: 3px solid #0ea5e9
  }

  #csat-calculator-section .csat-example-card .csat-ex-label {
    font-size: .72rem;
    font-weight: 700;
    color: #0369a1;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 8px
  }

  #csat-calculator-section .csat-example-card .csat-ex-pct {
    font-size: 2rem;
    font-weight: 800;
    color: #0c4a6e;
    line-height: 1;
    margin-bottom: 8px
  }

  #csat-calculator-section .csat-example-card .csat-ex-detail {
    font-size: .85rem;
    color: #475569;
    margin-bottom: 6px
  }

  #csat-calculator-section .csat-example-card .csat-ex-formula {
    font-family: 'Courier New', monospace;
    font-size: .78rem;
    color: #64748b;
    background: #fff;
    border-radius: 5px;
    padding: 5px 8px;
    border: 1px solid #e2e8f0;
    margin: 8px 0
  }

  #csat-calculator-section .csat-example-card .csat-ex-interp {
    font-size: .82rem;
    font-weight: 600;
    color: #374151
  }

  /* Use cases grid */
  #csat-calculator-section .csat-usecase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin: 14px 0
  }

  #csat-calculator-section .csat-usecase-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px
  }

  #csat-calculator-section .csat-usecase-title {
    font-size: .9rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px
  }

  #csat-calculator-section .csat-usecase-desc {
    font-size: .82rem;
    color: #64748b;
    line-height: 1.4
  }

  /* Comparison table */
  #csat-calculator-section .csat-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0;
    font-size: .9rem
  }

  #csat-calculator-section .csat-table th {
    background: #f0f9ff;
    color: #0369a1;
    font-weight: 700;
    padding: 10px 14px;
    text-align: left;
    border: 1px solid #bae6fd
  }

  #csat-calculator-section .csat-table td {
    padding: 9px 14px;
    border: 1px solid #e2e8f0;
    color: #374151;
    vertical-align: top
  }

  #csat-calculator-section .csat-table tr:nth-child(even) td {
    background: #fafafa
  }

  /* Survey questions */
  #csat-calculator-section .csat-q-list {
    list-style: none;
    padding: 0;
    margin: 14px 0
  }

  #csat-calculator-section .csat-q-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 8px;
    font-size: .92rem;
    color: #1e293b
  }

  #csat-calculator-section .csat-q-list li::before {
    content: '?';
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    background: #0ea5e9;
    color: #fff;
    border-radius: 50%;
    font-size: .75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px
  }

  /* FAQ */
  #csat-calculator-section .csat-faq-item {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden
  }

  #csat-calculator-section .csat-faq-q {
    padding: 14px 16px;
    font-weight: 600;
    font-size: .94rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    color: #1e293b;
    user-select: none
  }

  #csat-calculator-section .csat-faq-q::after {
    content: '▸';
    font-size: .75rem;
    color: #94a3b8;
    transition: transform .2s;
    flex-shrink: 0;
    margin-left: 8px
  }

  #csat-calculator-section .csat-faq-q.open::after { transform: rotate(90deg) }

  #csat-calculator-section .csat-faq-q:hover { background: #f8fafc }

  #csat-calculator-section .csat-faq-a {
    display: none;
    padding: 0 16px 14px;
    font-size: .9rem;
    color: #374151;
    border-top: 1px solid #f1f5f9;
    background: #fff
  }

  #csat-calculator-section .csat-faq-a.open { display: block }

  /* Related links */
  #csat-calculator-section .csat-related {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 24px
  }

  #csat-calculator-section .csat-related a {
    background: #f0f9ff;
    color: #0369a1;
    border: 1px solid #bae6fd;
    padding: 7px 14px;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none;
    transition: .15s
  }

  #csat-calculator-section .csat-related a:hover {
    background: #e0f2fe;
    color: #0c4a6e
  }

  /* Disclaimer */
  #csat-calculator-section .csat-disclaimer {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    font-size: .82rem;
    color: #64748b;
    margin: 20px 0
  }

  /* Info box */
  #csat-calculator-section .csat-info-box {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 14px 18px;
    margin: 14px 0;
    font-size: .9rem;
    color: #0c4a6e
  }

  #csat-calculator-section .csat-info-box strong { color: #0369a1 }

  /* Callout */
  #csat-calculator-section .csat-callout {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-left: 4px solid #f97316;
    border-radius: 0 10px 10px 0;
    padding: 12px 16px;
    margin: 14px 0;
    font-size: .9rem;
    color: #7c2d12
  }

  /* Interp table */
  #csat-calculator-section .csat-interp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    margin: 14px 0
  }

  #csat-calculator-section .csat-interp-card {
    border-radius: 10px;
    padding: 12px 16px;
    text-align: center
  }

  #csat-calculator-section .csat-interp-card .csat-ic-range {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 4px
  }

  #csat-calculator-section .csat-interp-card .csat-ic-label {
    font-size: .82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em
  }

  #csat-calculator-section .csat-ic-poor { background: #fee2e2; color: #991b1b }
  #csat-calculator-section .csat-ic-fair { background: #fef9c3; color: #854d0e }
  #csat-calculator-section .csat-ic-good { background: #dbeafe; color: #1e40af }
  #csat-calculator-section .csat-ic-excellent { background: #dcfce7; color: #166534 }

  /* Responsive */
  @media (max-width: 600px) {
    #csat-calculator-section .csat-row {
      grid-template-columns: 1fr
    }

    #csat-calculator-section .csat-result-grid {
      grid-template-columns: 1fr 1fr
    }

    #csat-calculator-section .csat-result-pct {
      font-size: 2.4rem
    }

    #csat-calculator-section .csat-band-field {
      min-width: 54px
    }

    #csat-calculator-section .csat-mode-tab {
      font-size: .78rem;
      padding: 8px 12px
    }

    #csat-calculator-section .csat-examples-grid {
      grid-template-columns: 1fr
    }
  }

}
