* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #111827;
}
.container {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 16px;
}
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.userbox {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 24px rgba(0,0,0,.08);
    margin-bottom: 16px;
}
label {
    display: block;
    margin: 10px 0 6px;
    font-weight: 700;
}
input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid #d1d5db;
}
.row-buttons {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}
.row-buttons.wrap {
    flex-wrap: wrap;
}
.btn {
    padding: 12px 16px;
    border: none;
    border-radius: 10px;
    background: #2563eb;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    font-weight: 700;
}
.btn-secondary { background: #475569; }
.btn-success { background: #16a34a; }
.btn-danger { background: #dc2626; }
.btn-warning { background: #f59e0b; color: #111827; }
#reader {
    width: 100%;
    min-height: 320px;
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
}
.hint {
    color: #6b7280;
    white-space: pre-line;
}
#resultTitle {
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 12px;
}
#resultInfo {
    white-space: pre-line;
    font-size: 17px;
    line-height: 1.5;
}
#rawResponse {
    margin-top: 16px;
    background: rgba(255,255,255,.35);
    padding: 12px;
    border-radius: 10px;
    white-space: pre-wrap;
    font-family: Consolas, monospace;
    font-size: 12px;
}
.result-neutral {
    background: #e5e7eb;
}
.result-success {
    background: #dcfce7;
    border: 3px solid #16a34a;
}
.result-error {
    background: #fee2e2;
    border: 3px solid #dc2626;
}
@media (max-width: 900px) {
    .grid { grid-template-columns: 1fr; }
    .row-buttons { flex-wrap: wrap; }
}
