.page-tool--sql-identifier-converter .tool-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.page-tool--sql-identifier-converter .sic-options__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.page-tool--sql-identifier-converter .sic-options__body {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.page-tool--sql-identifier-converter .sic-option-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.page-tool--sql-identifier-converter .sic-fieldset {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 0;
}

.page-tool--sql-identifier-converter .sic-fieldset > .label {
    padding: 0;
}

.page-tool--sql-identifier-converter .sic-toggles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 8px;
}

.page-tool--sql-identifier-converter .sic-toggle {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 12px;
    border: 1px solid var(--line-2);
    border-radius: var(--radius-sm);
    background: var(--surface-2);
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--ink-2);
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.page-tool--sql-identifier-converter .sic-toggle:hover {
    border-color: var(--line-strong);
}

.page-tool--sql-identifier-converter .sic-toggle:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.page-tool--sql-identifier-converter .sic-toggle input {
    flex: 0 0 auto;
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: var(--accent);
}

.page-tool--sql-identifier-converter .sic-toggle__text {
    min-width: 0;
}

.page-tool--sql-identifier-converter .sic-toggle__text code {
    padding: 0.05rem 0.3rem;
    border-radius: var(--radius-xs);
    background: var(--surface-3);
    color: var(--ink-2);
    font-family: var(--font-mono);
    font-size: 0.92em;
}

.page-tool--sql-identifier-converter .sic-hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.55;
}

.page-tool--sql-identifier-converter .sic-hint code {
    padding: 0.05rem 0.35rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    background: var(--surface-3);
    color: var(--ink-2);
    font-family: var(--font-mono);
}

.page-tool--sql-identifier-converter .sic-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: stretch;
}

.page-tool--sql-identifier-converter .sic-pane {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.page-tool--sql-identifier-converter .sic-pane__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.page-tool--sql-identifier-converter .sic-textarea {
    display: block;
    flex: 1 1 auto;
    min-height: 24rem;
    padding: 14px 16px;
    border: 0;
    border-radius: 0;
    background: var(--surface);
}

.page-tool--sql-identifier-converter .sic-textarea:focus {
    box-shadow: none;
}

.page-tool--sql-identifier-converter .sic-hint--note {
    padding: 11px 16px;
    border-top: 1px solid var(--line);
    background: var(--surface-2);
}

.page-tool--sql-identifier-converter .sic-status {
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: var(--surface-2);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted);
}

.page-tool--sql-identifier-converter .sic-status.status--success {
    background: var(--success-soft);
    color: var(--success);
}

.page-tool--sql-identifier-converter .sic-status.status--warning {
    background: var(--warning-soft);
    color: var(--warning);
}

.page-tool--sql-identifier-converter .sic-status.status--error {
    background: var(--danger-soft);
    color: var(--danger);
}

.page-tool--sql-identifier-converter .sic-output {
    flex: 1 1 auto;
    min-height: 12rem;
    margin: 14px 16px;
    border-radius: var(--radius-sm);
    overflow-wrap: anywhere;
}

.page-tool--sql-identifier-converter .sic-output:empty::before {
    content: "Your converted identifiers will appear here.";
    color: var(--faint);
}

.page-tool--sql-identifier-converter .sic-stats {
    margin: 0;
    padding: 0 16px 12px;
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 0.76rem;
}

.page-tool--sql-identifier-converter .sic-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid var(--line);
    background: var(--surface-2);
}

.page-tool--sql-identifier-converter .sic-details__scroll {
    max-height: 24rem;
    overflow: auto;
}

.page-tool--sql-identifier-converter .sic-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.page-tool--sql-identifier-converter .sic-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 9px 16px;
    border-bottom: 1px solid var(--line-2);
    background: var(--surface-2);
    color: var(--faint);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
}

.page-tool--sql-identifier-converter .sic-table td {
    padding: 9px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.page-tool--sql-identifier-converter .sic-table tr:last-child td {
    border-bottom: 0;
}

.page-tool--sql-identifier-converter .sic-table code {
    font-family: var(--font-mono);
    color: var(--ink);
    overflow-wrap: anywhere;
}

.page-tool--sql-identifier-converter .sic-table__empty {
    color: var(--faint);
    text-align: center;
}

.page-tool--sql-identifier-converter .sic-empty-value {
    color: var(--faint);
}

.page-tool--sql-identifier-converter .sic-note {
    color: var(--muted);
}

.page-tool--sql-identifier-converter .sic-note--quote {
    color: var(--warning);
}

.page-tool--sql-identifier-converter .sic-note--skip {
    color: var(--danger);
}

.page-tool--sql-identifier-converter .sic-about__text {
    max-width: 80ch;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.page-tool--sql-identifier-converter .sic-about__text code {
    padding: 0.05rem 0.3rem;
    border-radius: var(--radius-xs);
    background: var(--surface-3);
    color: var(--ink-2);
    font-family: var(--font-mono);
}

.page-tool--sql-identifier-converter .sic-about__text em {
    color: var(--ink-2);
    font-style: italic;
}

@media (max-width: 860px) {
    .page-tool--sql-identifier-converter .sic-workspace,
    .page-tool--sql-identifier-converter .sic-option-grid {
        grid-template-columns: 1fr;
    }

    .page-tool--sql-identifier-converter .sic-textarea {
        min-height: 14rem;
    }

    .page-tool--sql-identifier-converter .sic-details__scroll {
        max-height: 20rem;
    }
}

@media (max-width: 640px) {
    .page-tool--sql-identifier-converter .sic-table th,
    .page-tool--sql-identifier-converter .sic-table td {
        padding: 8px 12px;
    }
}
