.page-tool--http-header-parser .tool-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.page-tool--http-header-parser .tool-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 16px;
    align-items: stretch;
}

.page-tool--http-header-parser .tool-pane {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.page-tool--http-header-parser .tool-pane__body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
}

.page-tool--http-header-parser .tool-textarea {
    display: block;
    flex: 1 1 auto;
    min-height: 22rem;
    padding: 14px 16px;
    border: 0;
    border-radius: 0;
    background: var(--surface);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    line-height: 1.6;
}

.page-tool--http-header-parser .tool-textarea:focus {
    box-shadow: none;
}

.page-tool--http-header-parser .tool-hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
}

.page-tool--http-header-parser .tool-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--http-header-parser .tool-hint--note {
    padding: 11px 16px;
    border-top: 1px solid var(--line);
    background: var(--surface-2);
}

.page-tool--http-header-parser .tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 11px 16px;
    border-top: 1px solid var(--line);
    background: var(--surface-2);
}

.page-tool--http-header-parser .tool-actions--footer {
    margin-top: auto;
}

.page-tool--http-header-parser .tool-example {
    display: inline-flex;
}

.page-tool--http-header-parser .tool-status {
    min-height: 0;
    margin: 0;
    padding: 11px 16px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--muted);
}

.page-tool--http-header-parser .tool-status.status {
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
}

.page-tool--http-header-parser .tool-status.status--error {
    background: var(--danger-soft, var(--surface-2));
    color: var(--danger);
}

.page-tool--http-header-parser .tool-status.status--warning {
    background: var(--warning-soft, var(--surface-2));
    color: var(--warning);
}

.page-tool--http-header-parser .tool-status.status--success {
    background: var(--success-soft);
    color: var(--success);
}

.page-tool--http-header-parser .tool-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
}

.page-tool--http-header-parser .search--filter {
    min-height: 38px;
    background: var(--surface);
}

.page-tool--http-header-parser .search--filter .search__input {
    font-size: 0.85rem;
}

.page-tool--http-header-parser .tool-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.page-tool--http-header-parser .tool-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-2);
    font-size: 0.8rem;
    cursor: pointer;
}

.page-tool--http-header-parser .tool-toggle input {
    margin: 0;
}

.page-tool--http-header-parser .tool-results {
    flex: 1 1 auto;
    min-height: 0;
    max-height: 30rem;
    overflow: auto;
    background: var(--surface);
}

.page-tool--http-header-parser .tool-results .empty-state {
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 2.5rem 1.25rem;
}

.page-tool--http-header-parser .header-startline {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--line);
    background: var(--surface-2);
}

.page-tool--http-header-parser .header-startline__value {
    min-width: 0;
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.page-tool--http-header-parser .header-notes {
    padding: 10px 16px;
    border-bottom: 1px solid var(--line);
}

.page-tool--http-header-parser .header-notes__title {
    margin: 0 0 6px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.page-tool--http-header-parser .header-notes__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.page-tool--http-header-parser .header-note {
    padding-left: 14px;
    font-size: 0.8rem;
    color: var(--ink-2);
    position: relative;
}

.page-tool--http-header-parser .header-note::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 0.5em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--line-strong, var(--muted));
}

.page-tool--http-header-parser .header-note--error {
    color: var(--danger);
}

.page-tool--http-header-parser .header-note--error::before {
    background: var(--danger);
}

.page-tool--http-header-parser .header-note--warning {
    color: var(--warning);
}

.page-tool--http-header-parser .header-note--warning::before {
    background: var(--warning);
}

.page-tool--http-header-parser .header-note--info::before {
    background: var(--accent);
}

.page-tool--http-header-parser .header-list {
    display: flex;
    flex-direction: column;
}

.page-tool--http-header-parser .header-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}

.page-tool--http-header-parser .header-row:last-child {
    border-bottom: 0;
}

.page-tool--http-header-parser .header-row__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.page-tool--http-header-parser .header-row__name {
    color: var(--accent);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.page-tool--http-header-parser .header-row__badges {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.page-tool--http-header-parser .badge--warn {
    border-color: var(--warning);
    color: var(--warning);
}

.page-tool--http-header-parser .badge--secret {
    border-color: var(--danger);
    color: var(--danger);
}

.page-tool--http-header-parser .header-row__values {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.page-tool--http-header-parser .header-row__value {
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.page-tool--http-header-parser .header-row__desc {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.page-tool--http-header-parser .header-row__detail {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.page-tool--http-header-parser .header-chip {
    padding: 0.08rem 0.45rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-xs);
    background: var(--surface-3);
    color: var(--ink-2);
    font-family: var(--font-mono);
    font-size: 0.74rem;
}

.page-tool--http-header-parser .header-security {
    padding: 12px 16px;
    border-top: 1px solid var(--line);
    background: var(--surface-2);
}

.page-tool--http-header-parser .header-security__title {
    margin: 0 0 8px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.page-tool--http-header-parser .header-security__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 4px 14px;
}

.page-tool--http-header-parser .header-security__item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.8rem;
}

.page-tool--http-header-parser .header-security__label {
    color: var(--ink-2);
    font-family: var(--font-mono);
}

.page-tool--http-header-parser .header-security__state {
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.page-tool--http-header-parser .header-security__item--present .header-security__state {
    color: var(--success);
}

.page-tool--http-header-parser .header-security__item--missing .header-security__state {
    color: var(--danger);
}

.page-tool--http-header-parser .tool-about__text {
    max-width: 80ch;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.page-tool--http-header-parser .tool-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);
}

@media (max-width: 860px) {
    .page-tool--http-header-parser .tool-workspace {
        grid-template-columns: 1fr;
    }

    .page-tool--http-header-parser .tool-textarea {
        min-height: 15rem;
    }

    .page-tool--http-header-parser .tool-results {
        max-height: 24rem;
    }
}

@media (max-width: 640px) {
    .page-tool--http-header-parser .header-row__head {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-tool--http-header-parser .header-security__list {
        grid-template-columns: 1fr;
    }
}
