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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    background: #f0f2f5;
    color: #1a1a1a;
}

header {
    background: #1b2a3b;
    padding: 16px 24px;
}

header h1 {
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

main {
    max-width: 680px;
    margin: 24px auto;
    padding: 0 16px 40px;
}

.card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

h2 {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

label {
    display: block;
    font-weight: 500;
    color: #444;
    margin-bottom: 6px;
}

input[type="text"],
input[type="password"],
input[type="number"] {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d0d5dd;
    border-radius: 6px;
    font-size: 14px;
    color: #1a1a1a;
    background: #fff;
    transition: border-color 0.15s;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="number"]:focus {
    outline: none;
    border-color: #1b6ec2;
    box-shadow: 0 0 0 3px rgba(27,110,194,0.12);
}

.toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    margin-top: 4px;
    border-top: 1px solid #eee;
    font-weight: 500;
    color: #444;
}

.toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.toggle input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s;
}

.slider:before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.toggle input:checked + .slider { background: #1b6ec2; }
.toggle input:checked + .slider:before { transform: translateX(20px); }

.group-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    color: #999;
    margin: 20px 0 8px;
}

.group-label:first-of-type { margin-top: 0; }

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid #e8eaed;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    font-weight: 400;
    color: #1a1a1a;
    margin-bottom: 0;
}

.check-item:hover { border-color: #1b6ec2; background: #f5f9ff; }

.check-item input[type="checkbox"] {
    width: 15px; height: 15px;
    accent-color: #1b6ec2;
    cursor: pointer;
    flex-shrink: 0;
}

.check-item span { line-height: 1.3; }

.actions {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

.btn:active { transform: scale(0.98); }

.btn.primary { background: #1b6ec2; color: #fff; }
.btn.primary:hover { background: #1558a0; }

.btn.secondary { background: #fff; color: #1a1a1a; border: 1px solid #d0d5dd; }
.btn.secondary:hover { background: #f5f5f5; }

.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    white-space: nowrap;
    z-index: 100;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { background: #1a7f4b; color: #fff; }
.toast.error   { background: #c0392b; color: #fff; }
.toast.info    { background: #1b2a3b; color: #fff; }
