body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}

.container {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 0 16px;
}

.auth-page {
    padding: 40px 0;
}

.auth-form {
    background: #ffffff;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}

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

.form-row label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-row input,
.form-row select {
    width: 100%;
    height: 44px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 0 12px;
    box-sizing: border-box;
}

.form-row button {
    height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    background: #2563eb;
    color: #ffffff;
    cursor: pointer;
    font-weight: 600;
}

.alert {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 8px;
}

.alert-error {
    background: #fee2e2;
    color: #991b1b;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.auth-links {
    margin-top: 16px;
}

.auth-links a {
    color: #2563eb;
    text-decoration: none;
}

textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
}

.cabinet-page {
    padding: 40px 0;
}

.profile-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 24px;
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    margin-bottom: 24px;
}

.profile-card__avatar img,
.profile-avatar-placeholder {
    width: 180px;
    height: 180px;
    border-radius: 16px;
    object-fit: cover;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 18px;
    background: #2563eb;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
}

.btn-light {
    background: #e5e7eb;
    color: #111827;
}

.avatar-crop-wrapper {
    max-width: 420px;
}

@media (max-width: 700px) {
    .profile-card {
        grid-template-columns: 1fr;
    }

    .profile-card__avatar img,
    .profile-avatar-placeholder {
        width: 140px;
        height: 140px;
    }
}

.history-table-wrap {
    overflow-x: auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    padding: 12px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.history-table th,
.history-table td {
    text-align: left;
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    vertical-align: top;
}

.history-table th {
    background: #f9fafb;
    font-weight: 700;
}

.resume-spec-category {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 16px;
    background: #fff;
}

.resume-spec-category__title {
    font-weight: 700;
    margin-bottom: 10px;
}

.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
}

.birth-grid {
    display: grid;
    grid-template-columns: 100px 120px 120px;
    gap: 12px;
}

@media (max-width: 700px) {
    .checkbox-grid,
    .birth-grid {
        grid-template-columns: 1fr;
    }
}

.education-block {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    background: #fff;
}

.education-block__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.skills-input-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.skills-input-row input {
    flex: 1 1 280px;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #eef2ff;
    color: #1e3a8a;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 14px;
}

.skill-tag__remove {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #1e3a8a;
    padding: 0;
}

.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.resume-view-block {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.resume-view-block:last-child {
    border-bottom: 0;
}