* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f0f2f5;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 16px;
}

.container.narrow {
    max-width: 480px;
    padding-top: 60px;
}

.card {
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.card h1 {
    font-size: 22px;
    margin-bottom: 20px;
}

.card h2 {
    font-size: 16px;
    margin-bottom: 16px;
    color: #555;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.header-bar h1 {
    font-size: 22px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    color: #555;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4a90d9;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    color: #333;
    background: #e8e8e8;
    transition: background 0.2s;
}

.btn:hover {
    background: #ddd;
}

.btn-primary {
    background: #4a90d9;
    color: #fff;
}

.btn-primary:hover {
    background: #3a7bc8;
}

.btn-secondary {
    background: #f0f0f0;
    color: #555;
}

.btn-danger {
    background: #e74c3c;
    color: #fff;
}

.btn-danger:hover {
    background: #c0392b;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 12px;
}

.btn-block {
    width: 100%;
    text-align: center;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-error {
    background: #fde8e8;
    color: #c0392b;
}

.alert-success {
    background: #e8f8ef;
    color: #27ae60;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.table th,
.table td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.table th {
    background: #fafafa;
    font-weight: 600;
    color: #555;
}

.copy-input {
    width: 260px;
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}

.inline-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.inline-form input[type="text"] {
    flex: 1;
    min-width: 200px;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.inline {
    display: inline;
}

.actions {
    white-space: nowrap;
}

.actions form {
    display: inline;
}

.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.badge-success {
    background: #e8f8ef;
    color: #27ae60;
}

.badge-muted {
    background: #f0f0f0;
    color: #999;
}

.text-muted {
    color: #999;
}

.text-success {
    color: #27ae60;
}

.text-danger {
    color: #e74c3c;
}

.steps {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.steps span {
    padding: 4px 12px;
    border-radius: 20px;
    background: #f0f0f0;
    font-size: 13px;
    color: #999;
}

.steps span.active {
    background: #4a90d9;
    color: #fff;
}

.ua-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    color: #999;
}

code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 13px;
}

.install-page {
    background: #f0f2f5;
}

@media (max-width: 768px) {
    .table {
        font-size: 12px;
    }

    .copy-input {
        width: 160px;
    }

    .header-bar {
        flex-direction: column;
        align-items: flex-start;
    }
}
