﻿.tool-shell {
        max-width: 1100px;
        margin: 0 auto;
        padding: 18px;
        border-radius: 16px;
        border: 1px solid var(--berry-black-60-opacity10);
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 18px 40px rgba(10, 5, 35, 0.08);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
      }

      .tool-grid {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 12px;
      }
      @media (max-width: 920px) {
        .tool-grid {
          grid-template-columns: 1fr;
        }
      }

      .tool-shell label {
        display: block;
        margin: 12px 0 6px;
        font-weight: 600;
        color: var(--berry-black-60);
      }

      .tool-shell input[type="text"],
      .tool-shell select,
      .tool-shell textarea {
        width: 100%;
        padding: 12px;
        border-radius: 12px;
        border: 1px solid rgba(10, 5, 35, 0.18);
        background: #fff;
        color: var(--berry-black-60);
        font-size: 16px;
      }

      .tool-shell textarea {
        min-height: 180px;
        resize: vertical;
        margin-top: 10px;
      }

      .tool-shell input:focus,
      .tool-shell select:focus,
      .tool-shell textarea:focus {
        outline: none;
        border-color: rgba(0, 106, 255, 0.55);
        box-shadow: 0 0 0 4px rgba(0, 106, 255, 0.12);
      }

      .tool-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
        margin-top: 12px;
      }

      .tool-btn {
        border: 0;
        border-radius: 12px;
        padding: 12px 16px;
        font-weight: 700;
        background: rgba(0, 106, 255, 0.12);
        color: var(--berry-black-60);
        border: 1px solid rgba(10, 5, 35, 0.12);
        cursor: pointer;
        transition: transform 0.15s ease, background 0.15s ease;
      }
      .tool-btn:hover {
        background: rgba(0, 106, 255, 0.2);
        transform: translateY(-1px);
      }
      .tool-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
      }

      .tool-meta {
        color: var(--dark-berry-40-60);
        font-size: 14px;
      }

      .tool-status {
        margin-top: 10px;
        font-size: 14px;
      }
      .tool-status .ok {
        color: #0f7a3d;
        font-weight: 700;
      }
      .tool-status .warn {
        color: #9a5b00;
        font-weight: 700;
      }

      .tool-checks {
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
        margin-top: 10px;
      }
      .tool-checks label {
        margin: 0;
        display: inline-flex;
        gap: 10px;
        align-items: center;
        font-weight: 600;
      }
      .tool-checks input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: var(--blue-100);
      }

      /* Themed custom select (replaces the unstyleable native dropdown menu) */
      .nst-select {
        position: relative;
        width: 100%;
      }

      .nst-select.is-enhanced select {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
      }

      .nst-select-toggle {
        width: 100%;
        padding: 12px;
        border-radius: 12px;
        border: 1px solid rgba(10, 5, 35, 0.18);
        background: #fff;
        color: var(--berry-black-60);
        font-size: 16px;
        display: inline-flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        cursor: pointer;
        transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
      }

      .nst-select-toggle:hover {
        transform: translateY(-1px);
        border-color: rgba(0, 106, 255, 0.45);
        box-shadow: 0 10px 22px rgba(10, 5, 35, 0.08);
      }

      .nst-select-toggle:focus-visible {
        outline: none;
        border-color: rgba(0, 106, 255, 0.55);
        box-shadow: 0 0 0 4px rgba(0, 106, 255, 0.12);
      }

      .nst-select-value {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .nst-select-chevron {
        opacity: 0.9;
        transition: transform 0.15s ease;
        flex: 0 0 auto;
      }

      .nst-select.is-open .nst-select-chevron {
        transform: rotate(180deg);
      }

      .nst-select-list {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: calc(100% + 8px);
        z-index: 9999;
        padding: 6px;
        max-height: 280px;
        overflow: auto;
        border-radius: 14px;
        border: 1px solid rgba(10, 5, 35, 0.12);
        background: rgba(255, 255, 255, 0.98);
        box-shadow: 0 18px 40px rgba(10, 5, 35, 0.12);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
      }

      .nst-select.is-open .nst-select-list {
        display: block;
      }

      .nst-select-option {
        width: 100%;
        border: 0;
        background: transparent;
        color: var(--berry-black-60);
        font-size: 15px;
        text-align: left;
        padding: 10px 10px;
        border-radius: 12px;
        cursor: pointer;
        transition: background 0.15s ease, color 0.15s ease;
      }

      .nst-select-option:hover,
      .nst-select-option:focus {
        outline: none;
        background: rgba(0, 106, 255, 0.12);
      }

      .nst-select-option.is-selected {
        background: rgba(0, 106, 255, 0.18);
        font-weight: 700;
      }

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

      /* --- Content section (match SERP Preview Tool content-card styling) --- */
      .content-card{
        margin-top: 100px; /* gap after tool section */
        padding: 0;
        background: transparent;
        border: 0;
        box-shadow: none;
      }
      .content-card h2{
        margin: 0 0 12px 0;
        color: black;
        font-size: 30px;
        line-height: 1.25;
        font-weight: 700;
      }
      .content-card h3{
        margin: 18px 0 8px;
        color: black;
        font-size: 22px;
        line-height: 1.3;
        font-weight: 600;
      }
      .content-card p{
        margin: 0 0 12px;
        color: black;
        font-size: 16px;
        line-height: 1.55;
        font-weight: 400;
      }
      .content-card ol,
      .content-card ul{
        margin: 0 0 12px;
        padding-left: 26px;
        list-style-position: outside;
        color: black;
        line-height: 1.55;
      }
      .content-card ul{ list-style: disc; }
      .content-card ol{ list-style: decimal; }
      .content-card li{
        margin: 0 0 8px;
        color: black;
        font-size: 16px;
        line-height: 1.55;
        font-weight: 400;
        display: list-item;
        padding-left: 6px;
      }

