.jwt-ev-layout {
    display: grid;
    grid-template-columns: minmax(300px, 420px) 1fr;
    gap: 20px;
    align-items: start;
}

.jwt-ev-panel {
    background: #fff;
    border: 1px solid #e8e4dc;
    border-radius: 12px;
    padding: 16px;
}

.jwt-ev-result-panel {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jwt-ev-input-panel {
    position: sticky;
    top: 20px;
}

.jwt-ev-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.jwt-ev-row label {
    font-size: 13px;
    font-weight: 600;
    color: #3a3733;
}

.jwt-ev-two-col,
.jwt-ev-verify-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.jwt-ev-verify-grid {
    grid-template-columns: 1fr;
}

.jwt-ev-input,
.jwt-ev-textarea {
    width: 100%;
    border: 1px solid #e2ddd4;
    border-radius: 8px;
    padding: 10px 12px;
    background: #fcfbf8;
    color: #2d2a26;
    font-size: 13px;
}

.jwt-ev-textarea {
    min-height: 100px;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.jwt-ev-half {
    min-height: 120px;
}

.jwt-ev-input:focus,
.jwt-ev-textarea:focus {
    outline: none;
    border-color: #d4af37;
    box-shadow: 0 0 0 2px rgba(212, 175, 55, 0.12);
    background: #fff;
}

.jwt-ev-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 10px 0 14px;
}

.jwt-ev-btn {
    border: 1px solid #d9d2c5;
    background: #fff;
    color: #3f3a34;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.jwt-ev-btn:hover { border-color: #c6a02a; }

.jwt-ev-btn-primary { background: #f8f2df; }
.jwt-ev-btn-success { background: #edf8ef; }
.jwt-ev-btn-muted { background: #f8f8f8; }
.jwt-ev-btn-sm { padding: 7px 10px; font-size: 12px; }

.jwt-ev-security-note {
    background: #fbfaf6;
    border: 1px dashed #d9cfb7;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 12px;
    color: #59544e;
}

.jwt-ev-security-note p { margin: 0 0 6px; }
.jwt-ev-security-note p:last-child { margin-bottom: 0; }

.jwt-ev-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.jwt-ev-card {
    border: 1px solid #e8e4dc;
    border-radius: 10px;
    padding: 12px;
    background: #fff;
}

.jwt-ev-card h3 {
    margin: 0 0 6px;
    font-size: 12px;
    color: #746e67;
}

.jwt-ev-card p {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: #2e2b27;
}

.jwt-ev-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.jwt-ev-check-card {
    border: 1px solid #e8e4dc;
    border-radius: 10px;
    padding: 10px 12px;
    background: #fff;
}

.jwt-ev-check-status {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 2px 8px;
    margin-bottom: 6px;
}

.jwt-ev-pass .jwt-ev-check-status {
    background: #e8f6ec;
    color: #1f7a3a;
}

.jwt-ev-fail .jwt-ev-check-status {
    background: #fde9ea;
    color: #b3261e;
}

.jwt-ev-check-card h4 {
    margin: 0 0 6px;
    font-size: 13px;
    color: #2f2b27;
}

.jwt-ev-check-card p {
    margin: 0;
    font-size: 12px;
    color: #5f5953;
}

.jwt-ev-table-wrap {
    border: 1px solid #e8e4dc;
    border-radius: 10px;
    overflow: hidden;
}

.jwt-ev-table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #faf9f7;
    border-bottom: 1px solid #e8e4dc;
}

.jwt-ev-table-header h3 {
    margin: 0;
    font-size: 14px;
}

.jwt-ev-downloads {
    display: flex;
    gap: 8px;
}

.jwt-ev-claims-table {
    width: 100%;
    border-collapse: collapse;
}

.jwt-ev-claims-table th,
.jwt-ev-claims-table td {
    border-bottom: 1px solid #f0ece4;
    padding: 9px 12px;
    text-align: left;
    font-size: 12px;
    vertical-align: top;
}

.jwt-ev-claims-table th {
    background: #fff;
    color: #6c665f;
    font-weight: 700;
}

.jwt-ev-waiting,
.jwt-ev-chart-fallback {
    margin-bottom: 10px;
    font-size: 12px;
    color: #6f6861;
}

@media (max-width: 1024px) {
    .jwt-ev-layout,
    .jwt-ev-summary,
    .jwt-ev-checklist,
    .jwt-ev-two-col {
        grid-template-columns: 1fr;
    }

    .jwt-ev-input-panel {
        position: static;
    }

    .jwt-ev-table-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
