:root {
    --lhv-text-primary: #0c0d0f;
    --lhv-text-secondary: #54525c;
    --lhv-text-tertiary: #78767f;
    --lhv-link: #346ab4;
    --lhv-success: #0d8155;
    --lhv-border: #edebeb;
    --lhv-surface-hover: #f9f8f6;
    --lhv-key: #346ab4;
    --lhv-string: #0d8155;
    --lhv-number: #9e6d0b;
    --lhv-literal: #7a3fb8;
    --font-sans: 'Helvetica Neue', Helvetica, Roboto, Arial, sans-serif;
    --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0 0 3rem;
    font-family: var(--font-sans);
    color: var(--lhv-text-primary);
    background: #fff;
}

.page-header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2rem;
    background: #fff;
    border-bottom: 1px solid var(--lhv-border);
}

.logo {
    height: 2rem;
    width: auto;
}

.page-header h1 {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 600;
}

.page-header-text #status {
    margin: 0.125rem 0 0;
    font-size: 0.875rem;
    color: var(--lhv-text-secondary);
}

.toolbar {
    max-width: 1100px;
    margin: 1.5rem auto 0;
    padding: 0 2rem;
}

#filter {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    font-family: var(--font-sans);
    color: var(--lhv-text-primary);
    background: var(--lhv-surface-hover);
    border: 1px solid var(--lhv-border);
    border-radius: 8px;
    outline: none;
}

#filter:focus {
    border-color: var(--lhv-link);
    background: #fff;
}

.tool-grid {
    max-width: 1100px;
    margin: 1.25rem auto 0;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(420px, 1fr));
    gap: 1rem;
}

.tool {
    border: 1px solid var(--lhv-border);
    border-radius: 10px;
    padding: 1.25rem 1.375rem;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.tool:hover {
    border-color: var(--lhv-link);
    box-shadow: 0 2px 10px rgba(12, 13, 15, 0.06);
}

.tool.is-hidden {
    display: none;
}

.tool h2 {
    margin: 0;
    font-size: 1rem;
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--lhv-text-primary);
}

.tool .title {
    margin-top: 0.2rem;
    font-size: 0.8125rem;
    color: var(--lhv-text-tertiary);
}

.tool p {
    margin: 0.75rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: var(--lhv-text-secondary);
    white-space: pre-wrap;
}

.tool details {
    margin-top: 0.875rem;
}

.tool summary {
    cursor: pointer;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--lhv-link);
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.tool summary::-webkit-details-marker {
    display: none;
}

.tool summary .copy-btn {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--lhv-text-secondary);
    background: var(--lhv-surface-hover);
    border: 1px solid var(--lhv-border);
    border-radius: 6px;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
}

.tool summary .copy-btn:hover {
    border-color: var(--lhv-link);
    color: var(--lhv-link);
}

.schema {
    margin: 0.625rem 0 0;
    padding: 0.875rem;
    background: var(--lhv-surface-hover);
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    line-height: 1.5;
    overflow-x: auto;
    white-space: pre;
}

.schema .json-key { color: var(--lhv-key); }
.schema .json-string { color: var(--lhv-string); }
.schema .json-number { color: var(--lhv-number); }
.schema .json-literal { color: var(--lhv-literal); }

.empty-state {
    padding: 2rem;
    text-align: center;
    color: var(--lhv-text-tertiary);
}
