.schema-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 20px 56px;
    color: var(--text-strong);
}

.schema-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 22px;
    align-items: stretch;
    margin-bottom: 24px;
}

.tool-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-bottom: 12px;
    padding: 7px 12px;
    border: 1px solid var(--header-border);
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.schema-hero h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.02;
    letter-spacing: 0;
}

.schema-hero p {
    max-width: 680px;
    margin: 14px 0 0;
    color: var(--text-soft);
    font-size: 1.05rem;
    line-height: 1.7;
}

.schema-hero-card,
.schema-panel {
    border: 1px solid var(--header-border);
    border-radius: 18px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.schema-hero-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 24px;
}

.schema-hero-card span {
    color: var(--accent);
    font-size: 2.4rem;
    font-weight: 900;
    line-height: 1;
}

.schema-hero-card strong {
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.schema-hero-card small {
    color: var(--text-muted);
    line-height: 1.5;
}

.schema-workspace {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.schema-panel {
    padding: 22px;
}

.panel-heading,
.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-heading {
    justify-content: flex-start;
}

.panel-icon {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--accent-soft);
    color: var(--accent);
    font-weight: 900;
}

.schema-panel h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0;
}

.schema-panel p {
    margin: 5px 0 0;
    color: var(--text-muted);
    font-size: 0.94rem;
    line-height: 1.55;
}

.schema-label,
.schema-fields label {
    display: block;
    margin: 15px 0 7px;
    color: var(--text-soft);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.schema-select,
.schema-fields input,
.schema-fields textarea,
.schema-fetch-row input {
    width: 100%;
    border: 1px solid var(--header-border);
    border-radius: 12px;
    background: var(--panel-soft);
    color: var(--text-strong);
    padding: 12px 14px;
    font: inherit;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.schema-fields textarea {
    min-height: 96px;
    resize: vertical;
}

.schema-select:focus,
.schema-fields input:focus,
.schema-fields textarea:focus,
.schema-fetch-row input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.schema-fetch-row input {
    border: 3px solid #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14), 0 14px 34px rgba(37, 99, 235, 0.14);
}

.schema-fetch-row input:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.24), 0 18px 38px rgba(37, 99, 235, 0.18);
}

.field-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
}

.required-pill {
    color: var(--accent);
    font-size: 0.74rem;
    font-weight: 800;
}

.schema-main {
    display: grid;
    gap: 18px;
}

.schema-preview {
    border: 1px solid var(--header-border);
    border-radius: 14px;
    background: var(--panel-soft);
    padding: 18px;
}

.google-url {
    color: var(--text-soft);
    font-size: 0.88rem;
    margin-bottom: 5px;
}

.google-title {
    color: #1a0dab;
    font-family: Arial, sans-serif;
    font-size: 1.18rem;
    line-height: 1.35;
    margin-bottom: 5px;
}

[data-theme="dark"] .google-title {
    color: #8ab4f8;
}

.google-desc,
.google-meta {
    color: var(--text-soft);
    font-size: 0.94rem;
    line-height: 1.55;
}

.faq-row {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--header-border);
    color: var(--text-strong);
    font-weight: 700;
}

.schema-status-panel {
    border-left: 5px solid var(--accent);
    background: var(--panel-soft);
}

.schema-status-panel ul {
    margin: 8px 0 0;
    padding-left: 18px;
    color: var(--text-soft);
}

.schema-status-panel li + li {
    margin-top: 4px;
}

.schema-status-panel strong {
    color: var(--text-strong);
}

.schema-output-panel {
    padding-bottom: 0;
    overflow: hidden;
}

.schema-code {
    margin: 0 -22px;
    padding: 22px;
    max-height: 460px;
    overflow: auto;
    background: #111827;
    color: #7dd3fc;
    font-size: 0.88rem;
    line-height: 1.65;
    white-space: pre-wrap;
}

.schema-code code {
    font-family: Consolas, Monaco, 'Courier New', monospace;
}

.schema-btn {
    border: 1px solid var(--header-border);
    border-radius: 12px;
    background: var(--panel-soft);
    color: var(--text-strong);
    padding: 11px 16px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.schema-btn:hover {
    background: var(--panel-hover);
    transform: translateY(-1px);
}

.schema-btn-primary {
    border-color: transparent;
    background: var(--accent);
    color: var(--accent-contrast);
}

.schema-btn-primary:hover {
    background: var(--accent-strong);
}

.schema-btn:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.schema-fetch-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 14px;
}

@media (max-width: 960px) {
    .schema-hero,
    .schema-workspace {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .schema-page {
        padding: 24px 14px 42px;
    }

    .schema-panel,
    .schema-hero-card {
        border-radius: 14px;
        padding: 18px;
    }

    .section-title-row,
    .schema-fetch-row {
        grid-template-columns: 1fr;
    }

    .section-title-row {
        display: grid;
    }

    .schema-btn {
        width: 100%;
    }

    .schema-code {
        margin: 0 -18px;
        padding: 18px;
        font-size: 0.8rem;
    }
}
