* {
    box-sizing: border-box;
}

.controls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
    padding: 1rem;
    background: #26272d;
    border: 1px solid #33343a;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 14rem;
}

input {
    font-family: inherit;
    font-size: 0.85rem;
    padding: 0.4rem 0.6rem;
    border-radius: 6px;
    border: 1px solid #44454d;
    background: #1e1f24;
    color: #e6e6e6;
}

button {
    font-family: inherit;
    font-size: 0.85rem;
    padding: 0.45rem 0.8rem;
    border-radius: 6px;
    border: 1px solid #44454d;
    background: #33343a;
    color: #e6e6e6;
    cursor: pointer;
    white-space: nowrap;
}

button:hover {
    background: #3c3d44;
}

button:disabled {
    opacity: 0.6;
    cursor: default;
}

.reload-status {
    font-size: 0.78rem;
    color: #888;
    align-self: center;
}

.reload-status.error {
    color: #ff9c9c;
}

.reload-status.ok {
    color: #7ee0a3;
}

.stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0;
}

.stat {
    background: #1e1f24;
    border: 1px solid #33343a;
    border-radius: 8px;
    padding: 0.6rem 0.9rem;
}

.stat .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
}

.stat .value {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 0.1rem;
}

.lints {
    margin: 0 0 1.5rem;
}

.lint {
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    background: #24211a;
    border-left: 2px solid #6f5a1f;
    color: #ffe9b0;
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.rule {
    background: #26272d;
    border: 1px solid #33343a;
    border-radius: 8px;
    margin-bottom: 0.9rem;
    overflow: hidden;
}

.rule-head {
    display: flex;
    align-items: baseline;
    gap: 0.7rem;
    padding: 0.8rem 1rem;
    border-bottom: 1px solid #33343a;
    flex-wrap: wrap;
}

.rule-priority {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.72rem;
    color: #1e1f24;
    background: #7ee0a3;
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-weight: 700;
}

.rule-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.rule-description {
    color: #999;
    font-size: 0.8rem;
}

.rule-body {
    padding: 0.9rem 1rem;
}

.rule-section {
    margin-bottom: 0.7rem;
}

.rule-section:last-child {
    margin-bottom: 0;
}

.rule-section .label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
    margin-bottom: 0.3rem;
}

code, pre {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 0.82rem;
}

.code-box {
    background: #1e1f24;
    border: 1px solid #33343a;
    border-radius: 6px;
    padding: 0.55rem 0.7rem;
    color: #9ecbff;
    white-space: pre-wrap;
    word-break: break-word;
}

.action-list {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.na {
    font-style: italic;
}

.message {
    padding: 1rem;
    border-radius: 8px;
    font-size: 0.85rem;
}
