* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: #f0f2f5;
    color: #1a1a2e;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
}

.container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 32px;
    width: 100%;
    max-width: 960px;
}

.container.narrow { max-width: 420px; margin-top: 80px; }

h1 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

h2 {
    font-size: 1.1rem;
    color: #555;
    font-weight: 400;
    margin-bottom: 24px;
}

.summary {
    background: #f7f8fa;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 24px;
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.summary .item { font-size: 0.9rem; }
.summary .item strong { display: block; font-size: 1.1rem; }

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #333;
}

input[type="text"],
input[type="password"],
input[type="file"],
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 0.95rem;
    margin-bottom: 16px;
    transition: border-color 0.15s;
    background: #fff;
}

input:focus {
    outline: none;
    border-color: #4687f0;
    box-shadow: 0 0 0 3px rgba(70,135,240,0.1);
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.checkbox-row input[type="checkbox"] { width: auto; margin: 0; }
.checkbox-row label { margin: 0; font-weight: 400; }

.btn {
    display: inline-block;
    padding: 10px 20px;
    background: #4687f0;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}

.btn:hover { background: #3570d4; }
.btn:disabled { background: #a0b4d8; cursor: not-allowed; }
.btn-secondary { background: #6c757d; }
.btn-secondary:hover { background: #5a6268; }

.error {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.success {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 0.9rem;
}

th {
    text-align: left;
    padding: 10px 12px;
    background: #f7f8fa;
    border-bottom: 2px solid #e5e7eb;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #555;
}

td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
}

td input[type="text"],
td select {
    margin-bottom: 0;
    padding: 6px 8px;
    font-size: 0.85rem;
}

tr:hover { background: #fafbfc; }

.apply-all-row {
    background: #f0f4ff;
    border: 1px solid #d0dcf0;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 16px;
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.apply-all-row label { margin-bottom: 0; white-space: nowrap; }
.apply-all-row input[type="text"],
.apply-all-row select { margin-bottom: 0; width: 180px; }

.actions {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 8px;
}

.back-link {
    color: #4687f0;
    text-decoration: none;
    font-size: 0.9rem;
}

.back-link:hover { text-decoration: underline; }

.spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ccc;
    border-top-color: #4687f0;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 8px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.logout-link {
    position: fixed;
    top: 16px;
    right: 24px;
    color: #888;
    font-size: 0.85rem;
    text-decoration: none;
}

.logout-link:hover { color: #333; }

.privacy-note {
    font-size: 0.8rem;
    color: #888;
    margin-top: 16px;
    text-align: center;
}

.antenna-warning {
    color: #dc2626;
    font-weight: 700;
}

.antenna-note {
    font-size: 0.8rem;
    color: #888;
    font-style: italic;
    margin-top: -16px;
    margin-bottom: 16px;
}

.import-steps {
    margin-top: 12px;
    text-align: left;
    font-size: 0.9rem;
}

.import-steps ol,
.import-steps ul {
    margin: 6px 0 12px 20px;
    padding: 0;
}

.import-steps li {
    margin-bottom: 4px;
}

.antenna-auto-label {
    display: block;
    font-size: 0.75rem;
    color: #888;
    margin-top: 2px;
}

.antenna-info {
    background: #f0f4ff;
    border: 1px solid #d0dcf0;
    border-radius: 4px;
    padding: 8px 12px;
    margin-bottom: 12px;
    font-size: 0.85rem;
    color: #555;
}
