#sccTool{
  /* Uses the global .tool-shell container styling.
     Keep only tool-specific overrides scoped to this tool. */
  --scc-green: #3e5c4b;
  --scc-red: #b8543a;
  --scc-amber: #8a6320;
  --scc-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

/* Tool container (same visual language as other tools using .tool-shell) */
#sccTool.tool-shell{
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px;
  border-radius: 4px;
  border: 1px solid var(--berry-black-60-opacity10);
  background: #fbf8f1;
  box-shadow: 0 1px 2px rgba(30, 27, 21, 0.04), 0 10px 28px rgba(30, 27, 21, 0.07);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

#sccTool [hidden]{
  display:none !important;
}

#sccTool *,
#sccTool *::before,
#sccTool *::after{ box-sizing:border-box; }

#sccTool .section-title{
  font-weight: 700;
  color: var(--berry-black-60);
  margin: 2px 0 10px;
  font-size: 18px;
}

#sccTool .scc-pane-label{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--berry-black-60);
  margin-bottom: 6px;
  cursor: pointer;
}

#sccTool .scc-count{
  font-size: 12px;
  font-weight: 600;
  color: var(--berry-black-60-opacity60);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#sccTool .scc-input{
  width: 100%;
  min-height: 240px;
  border-radius: 4px;
  border: 1px solid var(--berry-black-60-opacity33);
  background: var(--white);
  padding: 14px;
  font-family: var(--scc-mono);
  font-size: 13px;
  line-height: 1.6;
  color: var(--berry-black-60);
  white-space: pre;
  overflow: auto;
  resize: vertical;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

#sccTool .scc-input:focus{
  border-color: rgba(166, 67, 31, 0.55);
  box-shadow: 0 0 0 4px rgba(166, 67, 31, 0.12);
}

#sccTool .scc-hint{
  font-size: 12px;
  color: var(--berry-black-60-opacity60);
  margin: 8px 0 0;
  line-height: 1.45;
}

#sccTool .scc-field{
  margin-top: 16px;
  min-width: 0;
}

#sccTool .scc-field-label{
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--berry-black-60);
  margin-bottom: 6px;
}

#sccTool .scc-file-row{
  margin-top: 16px;
}

#sccTool .scc-file{
  display: block;
  width: 100%;
  max-width: 420px;
  font-family: inherit;
  font-size: 13px;
  color: var(--berry-black-60-opacity80);
  cursor: pointer;
}

#sccTool .scc-file::file-selector-button{
  height: 38px;
  padding: 0 16px;
  margin-right: 10px;
  border: 1px solid var(--berry-black-60-opacity33);
  border-radius: 999px;
  background: var(--white);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--berry-black-60);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}

#sccTool .scc-file::file-selector-button:hover{
  border-color: rgba(166, 67, 31, 0.55);
  background: var(--clay-50);
}

#sccTool .scc-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

#sccTool .scc-text,
#sccTool .scc-select{
  width: 100%;
  height: 50px;
  border-radius: 4px;
  border: 1px solid var(--berry-black-60-opacity33);
  background: var(--white);
  padding: 0 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--berry-black-60);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

#sccTool .scc-select{ cursor: pointer; }

#sccTool .scc-text:focus,
#sccTool .scc-select:focus{
  border-color: rgba(166, 67, 31, 0.55);
  box-shadow: 0 0 0 4px rgba(166, 67, 31, 0.12);
}

#sccTool .scc-actions{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

#sccTool .tool-btn{
  width: auto;
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  gap: 10px;
  white-space: nowrap;
  border: 0;
  background: var(--clay-600);
  color: var(--white);
  box-shadow: 0 1px 2px rgba(30, 27, 21, 0.04), 0 10px 28px rgba(30, 27, 21, 0.07);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#sccTool .tool-btn:hover{
  transform: translateY(-1px);
  filter: brightness(0.96) saturate(1.05);
}

#sccTool .tool-btn:active{
  transform: translateY(0);
  filter: brightness(0.94) saturate(1.05);
}

#sccTool .tool-btn:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(208, 138, 99, 0.20), 0 20px 38px rgba(30, 27, 21, 0.18);
}

#sccTool .tool-btn .icon{
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#sccTool .tool-btn .icon svg{ display: block; width: 18px; height: 18px; }

#sccTool .btn-ghost{
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  background: var(--ink-2);
  color: var(--white);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(30, 27, 21, 0.04), 0 10px 28px rgba(30, 27, 21, 0.07);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#sccTool .btn-ghost:hover{
  transform: translateY(-1px);
  filter: brightness(0.96) saturate(1.05);
}

#sccTool .btn-ghost:active{
  transform: translateY(0);
  filter: brightness(0.94) saturate(1.05);
}

#sccTool .btn-ghost:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px rgba(207, 138, 114, 0.24), 0 20px 38px rgba(30, 27, 21, 0.18);
}

#sccTool .scc-status{
  min-height: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--berry-black-60-opacity80);
  margin-top: 10px;
  line-height: 1.45;
}

#sccTool .scc-status.is-ok{ color: var(--scc-green); }
#sccTool .scc-status.is-warn{ color: var(--scc-red); }

/* Results */
#sccTool .scc-results{
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--berry-black-60-opacity10);
}

#sccTool .scc-verdict{
  border-radius: 4px;
  border: 1px solid var(--berry-black-60-opacity33);
  background: var(--white);
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--berry-black-60);
}

#sccTool .scc-verdict.is-pass{
  border-color: rgba(62, 92, 75, 0.45);
  background: #f1f5f0;
  color: var(--scc-green);
}

#sccTool .scc-verdict.is-warn{
  border-color: rgba(138, 99, 32, 0.45);
  background: #faf3e6;
  color: var(--scc-amber);
}

#sccTool .scc-stats{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

#sccTool .scc-stat{
  border-radius: 4px;
  border: 1px solid var(--berry-black-60-opacity10);
  background: var(--white);
  padding: 12px 14px;
}

#sccTool .scc-stat-num{
  display: block;
  font-size: 26px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--berry-black-60);
  font-variant-numeric: tabular-nums;
}

#sccTool .scc-stat-label{
  display: block;
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--berry-black-60-opacity60);
}

#sccTool .scc-group-title{
  font-weight: 700;
  color: var(--berry-black-60);
  font-size: 15px;
  margin: 22px 0 10px;
}

#sccTool .scc-issues{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#sccTool .scc-issue{
  display: flex;
  gap: 12px;
  border-radius: 4px;
  border: 1px solid var(--berry-black-60-opacity10);
  border-left-width: 4px;
  background: var(--white);
  padding: 12px 14px;
}

#sccTool .scc-issue.is-error{ border-left-color: var(--scc-red); }
#sccTool .scc-issue.is-warn{ border-left-color: var(--scc-amber); }
#sccTool .scc-issue.is-info{ border-left-color: #4b6b8a; }
#sccTool .scc-issue.is-pass{ border-left-color: var(--scc-green); }

#sccTool .scc-badge{
  flex: 0 0 auto;
  align-self: flex-start;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}

#sccTool .is-error .scc-badge{ background: #f8ece5; color: var(--scc-red); }
#sccTool .is-warn .scc-badge{ background: #faf3e6; color: var(--scc-amber); }
#sccTool .is-info .scc-badge{ background: #eef2f6; color: #3d566e; }
#sccTool .is-pass .scc-badge{ background: #f1f5f0; color: var(--scc-green); }

#sccTool .scc-issue-body{ min-width: 0; }

#sccTool .scc-issue-title{
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--berry-black-60);
}

#sccTool .scc-issue-detail{
  margin: 5px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--berry-black-60-opacity80);
  overflow-wrap: anywhere;
}

/* Opportunity tables */
#sccTool .scc-table-wrap{
  margin-top: 10px;
  border-radius: 4px;
  border: 1px solid var(--berry-black-60-opacity10);
  background: var(--white);
  overflow-x: auto;
}

#sccTool .scc-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

#sccTool .scc-table th,
#sccTool .scc-table td{
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--berry-black-60-opacity10);
  vertical-align: top;
  line-height: 1.45;
}

#sccTool .scc-table thead th{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--berry-black-60-opacity60);
  background: rgba(30, 27, 21, 0.03);
  white-space: nowrap;
}

#sccTool .scc-table tbody tr:last-child td{ border-bottom: 0; }

#sccTool .scc-table .scc-col-num{
  width: 44px;
  color: var(--berry-black-60-opacity60);
  font-variant-numeric: tabular-nums;
}

#sccTool .scc-table .scc-col-text{
  min-width: 240px;
  color: var(--berry-black-60);
  overflow-wrap: anywhere;
}

#sccTool .scc-table .scc-col-fig{
  width: 84px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

#sccTool .scc-table tbody .scc-col-fig{ color: var(--berry-black-60); }

#sccTool .scc-table-note{
  font-size: 12px;
  color: var(--berry-black-60-opacity60);
  margin: 8px 0 0;
  line-height: 1.45;
}

#sccTool .scc-table-note-top{ margin: 0 0 2px; }

#sccTool .tool-meta{
  color: var(--berry-black-60-opacity60);
  font-size: 12px;
  margin-top: 14px;
}

@media (max-width: 860px){
  #sccTool .scc-grid{ grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px){
  #sccTool .scc-stats{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #sccTool .scc-table th,
  #sccTool .scc-table td{ padding: 8px 10px; }
  #sccTool .scc-input{ min-height: 180px; }
  #sccTool .scc-table .scc-col-text{ min-width: 180px; }
}

@media (max-width: 480px){
  #sccTool .tool-btn,
  #sccTool .btn-ghost{
    height: 48px;
    padding: 0 18px;
    font-size: 15px;
    flex: 1 1 0;
  }
  #sccTool .scc-issue{ flex-direction: column; gap: 8px; }
}

/* --- Content + FAQ (match the other tool pages) --- */
#sccContent.content-card{
  margin-top: 100px; /* gap after tool section */
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

#sccContent h2{
  margin: 0 0 12px 0;
  color: #1e1b15;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
}

#sccContent h3{
  margin: 18px 0 8px;
  color: #1e1b15;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
}

#sccContent p{
  margin: 0 0 12px;
  color: #1e1b15;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
}

#sccContent ol,
#sccContent ul{
  margin: 0 0 12px;
  padding-left: 26px;
  list-style-position: outside;
  color: #1e1b15;
  line-height: 1.55;
}

#sccContent ul{ list-style: disc; }
#sccContent ol{ list-style: decimal; }

#sccContent li{
  margin: 0 0 8px;
  color: #1e1b15;
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  display: list-item;
  padding-left: 6px;
}

#sccContent .scc-code{
  font-family: var(--scc-mono, ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);
  font-size: 14px;
  background: rgba(30, 27, 21, 0.05);
  border-radius: 3px;
  padding: 1px 5px;
  overflow-wrap: anywhere;
}

/* FAQ styles (accordion, matching the other tool pages) */
#sccContent .serp-faq.FaqSection .FaqTitle h2 { margin-bottom: 30px; }

#sccContent .serp-faq.first-faq-block .accordian-wrapper {
  background: linear-gradient(138deg, #fff0 0%, #fff0 100%);
  padding: .15rem;
  border-radius: 4px;
  position: relative;
}

#sccContent .serp-faq.first-faq-block .faq-boxes {
  background-color: #fbf8f1;
  backdrop-filter: none;
  padding: 0;
  border-radius: 4px;
  border: 2px solid #b25f4438;
}

#sccContent .serp-faq.first-faq-block .faq-boxes.active {
  background-color: #f8ece5;
  border: 2px solid #a6431f;
}

#sccContent .serp-faq .accordion-body {
  padding: 0 15px 18px 22px;
  font-size: 20px;
  font-weight: 400;
  color: #1e1b15;
}

#sccContent .serp-faq .accordion-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  padding: 18px 15px 18px 22px;
  font-size: 1rem;
  color: #2a261d;
  text-align: left;
  background-color: #fff0;
  border: 0;
  border-radius: 0;
  overflow-anchor: none;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, border-radius .15s ease;
  cursor: pointer;
}

#sccContent .serp-faq .accordion-button h3 {
  font-weight: 600;
  font-size: 20px;
  margin: 0;
  line-height: 1.3;
  color: #1e1b15;
}

#sccContent .serp-faq.first-faq-block .get-started-faq-inner .accordion .accordion-item .accordion-button:not(.collapsed)::before {
  border: 6px solid #e3bda9;
  background-color: #a6431f;
  top: 28%;
}

#sccContent .serp-faq .accordion-button:not(.collapsed) {
  color: #2a261d;
  background-color: #fff0;
  transition: 0.2s ease-in all;
  padding-bottom: 12px;
  border: 0;
  box-shadow: none;
}

#sccContent .serp-faq .accordion-button:focus {
  z-index: 3;
  border-color: #c9bb9c;
  outline: 0;
  box-shadow: 0 0 0 .25rem #fff0;
}

#sccContent .serp-faq.first-faq-block .accordion-item {
  background-color: #fff0;
  border: 0 solid rgba(30, 27, 21, .125);
  margin-bottom: 20px;
}

#sccContent .serp-faq.first-faq-block .accordion-body p {
  font-size: 16px;
  color: #1e1b15;
  font-weight: 400;
  margin-bottom: 0;
  padding-right: 11%;
  line-height: 26px;
}

#sccContent .serp-faq.first-faq-block .accordion-body p a {
  color: #4a1e0d;
  font-size: 18px;
  line-height: 32px;
  text-decoration: none;
  font-weight: 400;
}

#sccContent .serp-faq.first-faq-block .accordion-button:not(.collapsed)::after {
  content: "–";
  transform: none;
}

#sccContent .serp-faq.first-faq-block .accordion-button::after {
  margin-left: auto;
  content: "+";
  width: 24px;
  height: 24px;
  min-width: 24px;
  flex: 0 0 24px;
  align-self: center;
  margin-right: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  color: #4a1e0d;
}

/* Collapse behavior (we implement via JS; keep same class names) */
#sccContent .serp-faq .accordion-collapse{ display: none; }
#sccContent .serp-faq .accordion-collapse.show{ display: block; }

@media (max-width: 480px){
  #sccContent .serp-faq.first-faq-block .faq-boxes{ padding-right: 18px; }
}

/* Remove the global container bottom gap for this tool page */
.main > .container{
  margin-bottom: 0;
}

/* The rule above also zeroed the gap above the footer, leaving the
   article flush against it. Restore the 96px the shared shell uses. */
.main {
  padding-bottom: 96px;
}
