.cat-container {
    max-width: 900px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1f2937;
}

.cat-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 16px;
}

.cat-section h2 {
    margin: 0 0 12px;
    font-size: 1.4em;
}

.cat-section label {
    display: block;
    font-weight: 600;
    margin-top: 12px;
    font-size: 0.9em;
}

.cat-section input[type="text"],
.cat-section input[type="password"],
.cat-section select,
.cat-section textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    margin-top: 4px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.95em;
    font-family: inherit;
}

.cat-section textarea {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.85em;
}

.cat-section button {
    margin-top: 14px;
    background: #2563eb;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 9px 18px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.95em;
}

.cat-section button:hover {
    background: #1d4ed8;
}

#cat-logout {
    background: #6b7280;
    margin: 0;
    padding: 6px 12px;
    font-size: 0.85em;
}

#cat-logout:hover {
    background: #4b5563;
}

.cat-error {
    color: #b91c1c;
    margin-top: 10px;
    font-size: 0.9em;
}

.cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 16px;
    font-size: 0.9em;
}

.cat-muted {
    color: #6b7280;
    font-size: 0.85em;
}

.cat-base {
    background: #f3f4f6;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    margin-bottom: 16px;
}

.cat-base code,
.cat-header code {
    background: transparent;
    padding: 0;
    color: #374151;
}

.cat-row {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.cat-row select {
    flex: 0 0 110px;
    margin-top: 0;
}

.cat-row input {
    flex: 1;
    margin-top: 0;
}

.cat-resp-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9em;
    margin-bottom: 12px;
}

#cat-response pre {
    background: #0f172a;
    color: #e2e8f0;
    padding: 12px;
    border-radius: 6px;
    overflow-x: auto;
    font-size: 0.8em;
    line-height: 1.4;
    white-space: pre-wrap;
    word-break: break-word;
    max-height: 500px;
}

#cat-response h3,
#cat-response h4 {
    margin: 16px 0 6px;
}
