/* ═══════════════════════════════════════════════════════════════════════════
   freelansir 2026 — СТРАНИЦА /diagnost — Диагностика фрилансера
   Только специфика страницы. Общее — в /css/2026/app.css
   (tokens.css + base.css + components.css).
   ═══════════════════════════════════════════════════════════════════════════ */

.dg-main {
    max-width: 880px;
    padding-bottom: 80px;
}

/* ───────── Шапка ───────── */
.page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.page-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.page-actions .btn i,
.dg-actions .btn i {
    font-size: 12px;
}

.page-actions .btn i:first-child,
.dg-actions .btn i:first-child {
    margin-right: 8px;
}

.dg-actions .btn i:last-child {
    margin-left: 8px;
}

.dg-subtitle {
    margin-top: 6px;
    max-width: 560px;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.55;
}

/* ───────── Карточки ───────── */
.dg-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    padding: 24px 26px;
}

.dg-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line-soft);
}

.dg-card-icon {
    flex: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--accent-soft);
    font-size: 20px;
}

.dg-card-title {
    font-family: var(--heading-font);
    font-size: 20px;
    font-weight: 700;
    color: var(--ink);
}

/* ───────── Уведомления (гость / ранг / готово) ───────── */
.dg-notice {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--muted);
}

.dg-notice-icon {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: var(--gold-soft);
    color: var(--gold);
    font-size: 18px;
}

.dg-notice-icon--ok {
    background: var(--grow-soft);
    color: var(--grow);
}

.dg-notice-title {
    font-family: var(--heading-font);
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
}

.dg-done {
    border-color: color-mix(in oklab, var(--grow) 35%, var(--line));
    background: color-mix(in oklab, var(--grow-soft) 55%, var(--surface));
}

/* ───────── Прогресс ───────── */
.dg-progress-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.dg-progress-label {
    font-weight: 600;
    font-size: 14px;
    color: var(--ink);
}

.dg-progress-percent {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
}

.dg-progress {
    height: 8px;
    border-radius: 999px;
    background: var(--bg);
    border: 1px solid var(--line-soft);
    overflow: hidden;
}

.dg-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--accent-dark));
    transition: width .35s ease;
}

.dg-steps {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 6px;
    margin-top: 18px;
}

.dg-step {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 8px 4px;
    border-radius: var(--radius-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    color: var(--muted);
    font-family: var(--body-font);
    font-size: 12px;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.dg-step:hover {
    background: var(--bg);
    color: var(--ink);
}

.dg-step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12.5px;
    font-weight: 700;
    background: var(--bg);
    border: 1.5px solid var(--line);
    color: var(--muted);
    transition: all .2s ease;
}

.dg-step.done .dg-step-dot {
    background: var(--grow-soft);
    border-color: var(--grow);
    color: var(--grow);
}

.dg-step.active {
    color: var(--ink);
    font-weight: 600;
}

.dg-step.active .dg-step-dot {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 0 0 4px var(--accent-soft);
}

/* ───────── Поля ───────── */
.dg-field {
    margin-bottom: 22px;
}

.dg-field:last-child {
    margin-bottom: 0;
}

.dg-label {
    display: block;
    font-weight: 600;
    font-size: 15px;
    color: var(--ink);
    margin-bottom: 4px;
}

.dg-hint {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
}

/* Summernote в палитре 2026 */
.note-editor.note-frame {
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--surface);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.note-editor.note-frame:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.note-editor.note-frame .note-toolbar {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 6px 8px;
}

.note-editor.note-frame .note-editing-area .note-editable {
    background: var(--surface);
    color: var(--ink);
    font-family: var(--body-font);
    font-size: 14.5px;
    line-height: 1.55;
    min-height: 120px;
}

.note-editor.note-frame .note-placeholder {
    color: var(--faint);
    font-family: var(--body-font);
}

.note-editor.note-frame .note-statusbar {
    background: var(--bg);
    border-top: 1px solid var(--line-soft);
}

.note-btn {
    background: var(--surface) !important;
    border-color: var(--line) !important;
    color: var(--muted) !important;
}

.note-btn:hover,
.note-btn.active {
    color: var(--ink) !important;
    background: var(--bg) !important;
}

/* Dropzone */
.dg-field .dmx-dropzone,
.dg-field input[type="file"] {
    display: block;
    width: 100%;
    min-height: 120px;
    padding: 26px 18px;
    border: 1.5px dashed color-mix(in oklab, var(--accent) 45%, var(--line));
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 13.5px;
    text-align: center;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.dg-field .dmx-dropzone:hover,
.dg-field .dmx-dropzone.dz-drag-hover {
    border-color: var(--accent);
    background: color-mix(in oklab, var(--accent-soft) 70%, var(--surface));
}

.dg-field .dmx-dropzone .dz-message {
    margin: 0;
    font-weight: 600;
}

.dg-field .dmx-dropzone .dz-preview {
    margin: 10px;
}

.dg-field .dmx-dropzone .dz-preview .dz-image {
    border-radius: 10px;
}

.dg-field .dmx-dropzone .dz-error-message {
    font-size: 12px;
}

/* ───────── Навигация по шагам ───────── */
.dg-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 18px 0 0;
}

.dg-actions-hint {
    margin-left: auto;
    font-size: 12.5px;
    color: var(--faint);
}

.dg-finish {
    background: var(--grow);
    border-color: var(--grow);
    box-shadow: 0 10px 22px -14px var(--grow);
}

.dg-finish:hover,
.dg-finish:focus {
    background: color-mix(in oklab, var(--grow) 85%, #000);
    border-color: color-mix(in oklab, var(--grow) 85%, #000);
    color: #fff;
}

/* ───────── Адаптив ───────── */
@media (max-width: 767px) {
    .dg-card {
        padding: 18px 16px;
        border-radius: var(--radius);
    }

    .dg-card-title {
        font-size: 17px;
    }

    .dg-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dg-step-name {
        font-size: 11px;
    }

    .dg-notice {
        flex-direction: column;
        gap: 12px;
    }

    .dg-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .dg-actions-hint {
        margin-left: 0;
        order: 3;
        text-align: center;
    }

    .dg-actions .btn {
        width: 100%;
    }
}
