/* Complete profile — clean typography & layout */

.cp-page {
    --cp-ink: #25213d;
    --cp-muted: #6b6f84;
    --cp-line: #e2dff3;
    --cp-accent: #6657e8;
    --cp-ok: #15966d;
    --cp-warn: #c47d1a;
    --cp-bad: #c53d4a;
    --cp-font: Samim, Vazirmatn, Tahoma, "Segoe UI", sans-serif;
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.15rem 1rem 2.75rem;
    font-family: var(--cp-font);
    color: var(--cp-ink);
    -webkit-font-smoothing: antialiased;
}

.cp-page * {
    font-family: inherit;
}

.cp-backbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: .75rem;
}

.cp-backbar .mud-button-root {
    min-height: 38px;
    padding-inline: 1rem;
    border-radius: 11px;
    border-color: #d9d4ff;
    color: #5546d8;
    background: #fff;
    font-size: .78rem;
    font-weight: 800;
    box-shadow: 0 5px 16px rgba(71, 58, 160, .07);
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.cp-backbar .mud-button-root:hover {
    transform: translateY(-1px);
    background: #f7f5ff;
    box-shadow: 0 8px 20px rgba(71, 58, 160, .12);
}

/* ── Hero ── */
.cp-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-height: 128px;
    margin-bottom: 1rem;
    padding: 1.15rem 1.35rem;
    color: var(--cp-ink);
    border: 1px solid var(--cp-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(48, 39, 110, .07);
}

.cp-hero::before {
    content: "";
    position: absolute;
    inset: 14px 0 14px auto;
    width: 5px;
    border-radius: 0 6px 6px 0;
    background: var(--cp-accent);
    pointer-events: none;
}

.cp-hero::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    inset: -72px auto auto -42px;
    border-radius: 50%;
    background: #f3f1ff;
    pointer-events: none;
    z-index: 0;
}

.cp-hero__text,
.cp-hero__progress {
    position: relative;
    z-index: 1;
}

.cp-hero__text {
    flex: 1 1 auto;
    min-width: 0;
}

.cp-hero__progress {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    align-self: center;
    margin-top: .35rem;
    margin-left: .35rem;
}

.cp-sub {
    margin: .5rem 0 0;
    max-width: 48rem;
    color: var(--cp-muted);
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.8;
}

.cp-hero__meta,
.cp-hero__meta-item {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    color: #7a7e92;
    font-size: .68rem;
    font-weight: 500;
    line-height: 1.35;
    white-space: nowrap;
}

.cp-hero__meta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: .3rem .85rem;
    margin-top: .35rem;
}

.cp-hero__meta .mud-icon-root,
.cp-hero__meta-item .mud-icon-root {
    color: #8175e7;
    font-size: .9rem !important;
}

.cp-kicker {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin: 0 0 .45rem;
    padding: .28rem .65rem;
    color: #6255d6;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.4;
    border-radius: 999px;
    background: #f3f1ff;
}

.cp-kicker .mud-icon-root {
    font-size: 1.05rem !important;
}

.cp-hero h1 {
    margin: 0;
    color: #25213d;
    font-size: clamp(1.25rem, 1.9vw, 1.5rem);
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: -.02em;
}

.cp-progress-ring {
    display: flex;
    align-items: center;
    gap: .7rem;
    min-width: 168px;
    min-height: 64px;
    padding: .65rem .75rem;
    color: #5447cb;
    text-align: right;
    border: 1px solid #dcd7fb;
    border-radius: 14px;
    background: #f6f4ff;
}

.cp-progress-ring__icon {
    display: grid;
    place-items: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    color: #6657e8;
    border-radius: 10px;
    background: #eae7ff;
}

.cp-progress-ring__icon .mud-icon-root {
    font-size: 1.2rem !important;
}

.cp-progress-ring__copy {
    display: flex;
    flex-direction: column;
    gap: .18rem;
}

.cp-progress-ring__copy strong {
    color: #4f42c5;
    font-size: .95rem;
    font-weight: 800;
    line-height: 1.35;
}

.cp-progress-ring__copy small {
    color: #7d7899;
    font-size: .75rem;
    font-weight: 800;
    line-height: 1.4;
}

.cp-progress-ring.done {
    color: #16815d;
    border-color: #ccebdd;
    background: #effaf6;
}

.cp-progress-ring.done .cp-progress-ring__icon {
    color: #16815d;
    background: #daf4e9;
}

.cp-progress-ring.done .cp-progress-ring__copy strong {
    color: #16815d;
}

/* ── Status cards ── */
.cp-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .85rem;
    margin-bottom: 1.1rem;
}

.cp-status-card {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: .7rem;
    min-height: 0;
    padding: .7rem .85rem .8rem;
    border: 1px solid #e6e3f3;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(48, 39, 110, .04);
    transition: border-color .18s ease, box-shadow .18s ease;
}

.cp-status-card:hover {
    border-color: #cbc5f0;
    box-shadow: 0 8px 22px rgba(48, 39, 110, .07);
}

.cp-status-card::after {
    content: "";
    position: absolute;
    inset: auto 14px 0 14px;
    height: 2px;
    border-radius: 999px 999px 0 0;
    background: #dedbea;
}

.cp-status-card.ok::after { background: #4fc39b; }
.cp-status-card.warn::after { background: #e9aa55; }
.cp-status-card.bad::after { background: #e77c86; }
.cp-status-card.idle::after { background: #b8b4ca; }

.cp-status-card > div:last-child {
    flex: 1 1 auto;
    min-width: 0;
}

.cp-status-card__icon {
    display: grid;
    place-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    color: var(--cp-accent);
    border-radius: 12px;
    background: #f1efff;
}

.cp-status-card__icon .mud-icon-root {
    font-size: 1.35rem !important;
}

.cp-status-card h3 {
    margin: 0;
    color: #353149;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.45;
}

.cp-status-card p {
    margin: .28rem 0 .35rem;
    color: #7a7e92;
    font-size: .88rem;
    font-weight: 500;
    line-height: 1.6;
}

.cp-status-card code,
.cp-status-card .cp-status-value {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    padding: .18rem .45rem;
    color: #5a4bd1;
    font-family: Samim, Vazirmatn, Tahoma, "Segoe UI", sans-serif;
    font-size: .78rem;
    font-weight: 600;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: 8px;
    background: #f5f3ff;
    font-variant-numeric: normal;
}

.cp-status-card.ok {
    background: #fcfffd;
    border-color: #d7eee6;
}

.cp-status-card.ok .cp-status-card__icon {
    color: var(--cp-ok);
    background: #edfaf5;
    box-shadow: inset 0 0 0 1px #d8f0e6;
}

.cp-status-card.warn {
    background: #fffefa;
    border-color: #f0e5d4;
}

.cp-status-card.warn .cp-status-card__icon {
    color: var(--cp-warn);
    background: #fff8eb;
    box-shadow: inset 0 0 0 1px #f3e8d4;
}

.cp-status-card.bad {
    border-color: rgba(197, 61, 74, .28);
}

.cp-status-card.bad .cp-status-card__icon {
    color: var(--cp-bad);
    background: #fef2f2;
}

.cp-status-card.idle .cp-status-card__icon {
    color: #94a3b8;
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px #ebe9f2;
}

.cp-reject {
    display: block;
    margin-top: .35rem;
    color: var(--cp-bad);
    font-size: .82rem;
    line-height: 1.5;
}

/* ── Form sections ── */
.cp-validation-alert {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .75rem;
    padding: .7rem .85rem;
    color: #b42331;
    border: 1px solid rgba(197, 61, 74, .25);
    border-radius: 12px;
    background: rgba(197, 61, 74, .07);
    font-size: .82rem;
    font-weight: 650;
}

.cp-verify-box {
    height: 100%;
    padding: .7rem .85rem .75rem;
    border: 1px solid #ebe9f6;
    border-radius: 14px;
    background: #fafafe;
}

.cp-verify-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    margin-top: .45rem;
}

.cp-actions {
    position: sticky;
    bottom: 8px;
    z-index: 3;
    display: flex;
    justify-content: flex-end;
    margin-top: .65rem;
    padding: .75rem;
    border: 1px solid #e1def8;
    border-radius: 14px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 10px 26px rgba(48, 39, 110, .1);
    backdrop-filter: blur(10px);
}

.cp-actions .mud-button-root {
    min-width: 200px;
    border-radius: 10px;
    font-size: .9rem !important;
    font-weight: 700 !important;
}

.cp-form .user-form-shell {
    padding: 1.1rem;
    border-color: var(--cp-line);
    border-radius: 20px;
    background: #fbfaff;
    box-shadow: 0 10px 34px rgba(48, 39, 110, .06);
}

.cp-form .user-form-group {
    border-color: #e1def8;
    background: #fff;
}

.cp-form .user-form-group-header {
    border-bottom-color: #dedaf7;
}

.cp-form .user-form-group-title {
    font-size: 1rem;
    font-weight: 800;
}

.cp-form .mud-input-label,
.cp-form .mud-button-label {
    font-size: .88rem !important;
}

/* ── Documents ── */
.cp-docs {
    margin-top: 1.15rem;
    padding: 1.25rem 1.2rem 1.35rem;
    border: 1px solid var(--cp-line);
    border-radius: 20px;
    background: #fbfaff;
    box-shadow: 0 10px 34px rgba(48, 39, 110, .06);
}

.cp-docs__head {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    margin-bottom: 1.1rem;
    padding-bottom: .9rem;
    border-bottom: 1px dashed #dcd8f7;
}

.cp-docs__icon {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    color: var(--cp-accent);
    border: 1px solid #ddd8fb;
    border-radius: 12px;
    background: #f2f0ff;
}

.cp-docs__head h2 {
    margin: 0;
    color: var(--cp-ink);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.45;
}

.cp-docs__head p {
    margin: .35rem 0 0;
    color: var(--cp-muted);
    font-size: .78rem;
    font-weight: 400;
    line-height: 1.75;
}

.cp-req {
    color: #dc2626;
    font-size: .85rem;
    font-weight: 800;
    margin-inline-start: .25rem;
}

.cp-docs__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .9rem;
}

.cp-doc-card {
    overflow: visible;
    padding: 1rem;
    border: 1px solid #e1def8;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(48, 39, 110, .05);
    transition: box-shadow .18s ease, background .2s ease, border-color .2s ease;
}

.cp-doc-card:hover {
    box-shadow: 0 12px 30px rgba(48, 39, 110, .09);
}

.cp-doc-card--locked,
.cp-doc-card--approved {
    border-color: #b7e4cb;
    background: #fff;
    box-shadow: 0 8px 24px rgba(48, 39, 110, .05);
}

.cp-doc-card--approved:hover {
    box-shadow: 0 12px 30px rgba(48, 39, 110, .09);
}

.cp-doc-card--rejected {
    border-color: #f3c1c4;
    background: #fff;
    box-shadow: 0 8px 24px rgba(48, 39, 110, .05);
}

.cp-doc-card--rejected:hover {
    box-shadow: 0 12px 30px rgba(48, 39, 110, .09);
}

.cp-doc-card--missing {
    border-color: #e1def8;
    background: #fff;
}

.cp-doc-locked {
    display: none;
}

.cp-doc-uploader.is-locked {
    opacity: .94;
}

.cp-doc-replace {
    margin-top: .45rem;
    padding: .65rem .75rem;
    border: 1px dashed #e5e3ef;
    border-radius: 12px;
    background: #faf9ff;
}

.cp-doc-card__top {
    display: flex;
    justify-content: space-between;
    gap: .5rem;
    align-items: center;
    margin-bottom: .55rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid #efedf9;
}

.cp-doc-status-icon {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: 1px solid transparent;
    cursor: default;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.cp-doc-status-icon .mud-icon-root {
    font-size: 1rem !important;
    color: inherit !important;
}

.cp-doc-status-icon.is-idle {
    color: #8b879c;
    background: #f3f2f8;
    border-color: #e4e1ee;
}

.cp-doc-status-icon.is-info {
    color: #696cff;
    background: rgba(105, 108, 255, 0.1);
    border-color: rgba(105, 108, 255, 0.18);
}

.cp-doc-status-icon.is-warn {
    color: #d97706;
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.22);
}

.cp-doc-status-icon.is-ok {
    color: #16a34a;
    background: rgba(22, 163, 74, 0.1);
    border-color: rgba(22, 163, 74, 0.18);
}

.cp-doc-status-icon.is-bad {
    color: #dc2626;
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.18);
}

.cp-doc-card__top h3 {
    margin: 0;
    font-size: .85rem;
    font-weight: 700;
    line-height: 1.4;
}

.cp-doc-card__hint {
    display: none;
}

.cp-doc-note {
    display: flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .55rem;
    padding: .7rem .85rem;
    border-radius: 12px;
    border: 1px dashed transparent;
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.55;
}

.cp-doc-note .mud-icon-root {
    flex: 0 0 auto;
    font-size: 1.1rem !important;
}

.cp-doc-note.reject {
    background: rgba(234, 84, 85, 0.06);
    border-color: rgba(234, 84, 85, 0.4);
    color: #b42318;
}

.cp-doc-note.reject .mud-icon-root {
    color: #ea5455 !important;
}

.cp-doc-note.info {
    background: rgba(40, 199, 111, 0.06);
    border-color: rgba(40, 199, 111, 0.4);
    color: #157347;
}

.cp-doc-note.info .mud-icon-root {
    color: #28c76f !important;
}

.cp-doc-link {
    display: none;
}

.cp-doc-view {
    display: flex;
    align-items: center;
    gap: .55rem;
    width: 100%;
    margin: .1rem 0 .55rem;
    padding: .4rem .6rem;
    text-decoration: none;
    border: 1px solid rgba(105, 108, 255, 0.2);
    border-radius: 12px;
    background:
        radial-gradient(120% 120% at 100% 0%, rgba(105, 108, 255, 0.14), transparent 55%),
        linear-gradient(180deg, #f7f7ff, #fff);
    box-shadow: 0 6px 16px rgba(105, 108, 255, 0.07);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.cp-doc-view:hover {
    transform: translateY(-1px);
    border-color: rgba(105, 108, 255, 0.4);
    box-shadow: 0 10px 22px rgba(105, 108, 255, 0.12);
    text-decoration: none;
}

.cp-doc-view__body {
    display: flex;
    flex-direction: column;
    gap: .05rem;
    min-width: 0;
    flex: 1 1 auto;
}

.cp-doc-view__body strong {
    color: #2f3349;
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.25;
}

.cp-doc-view__body small {
    color: #8592a3;
    font-size: .68rem;
    font-weight: 400;
    line-height: 1.3;
}

.cp-doc-view__go {
    display: grid;
    place-items: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    color: #696cff;
    background: rgba(105, 108, 255, 0.1);
}

.cp-doc-card .nfu-title-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    margin: .05rem 0 .25rem;
}

.cp-doc-card .nfu-title-row > .mud-typography {
    margin: 0;
    color: #514d65;
    font-size: .88rem;
    font-weight: 700;
}

.cp-doc-card .nfu-ready-hint {
    display: none;
}

.cp-doc-card .nfu-preview-badge {
    display: none;
}

.cp-doc-card .nfu-eye-wrap {
    top: 6px;
    inset-inline-end: 6px;
}

.cp-doc-card .nfu-eye-btn {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(105, 108, 255, 0.22) !important;
    border-radius: 50% !important;
    color: #696cff !important;
    box-shadow: 0 2px 8px rgba(48, 39, 110, 0.08) !important;
}

.cp-doc-card .nfu-eye-btn:hover {
    background: #fff !important;
}

.cp-doc-card .nfu-eye-btn.is-approved {
    color: #16a34a !important;
    border-color: rgba(22, 163, 74, 0.22) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.08) !important;
}

.cp-doc-card .nfu-eye-btn.is-approved:hover {
    background: #fff !important;
}

.cp-doc-card .nfu-eye-btn.is-rejected {
    color: #dc2626 !important;
    border-color: rgba(220, 38, 38, 0.22) !important;
    background: rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.08) !important;
}

.cp-doc-card .nfu-eye-btn.is-rejected:hover {
    background: #fff !important;
}

.cp-doc-card .nfu-eye-btn .mud-icon-root {
    color: inherit !important;
}

.cp-doc-view__icon {
    display: grid;
    place-items: center;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: #fff !important;
    background: #696cff !important;
    border: 1px solid rgba(105, 108, 255, 0.35);
    box-shadow: 0 4px 10px rgba(105, 108, 255, 0.22);
}

.cp-doc-view__icon .mud-icon-root {
    font-size: .95rem !important;
    color: #fff !important;
}

.cp-doc-card .file-drop.mud-paper {
    position: relative;
    height: 250px !important;
    min-height: 250px !important;
    margin-top: .35rem !important;
    margin-bottom: 0 !important;
    overflow: hidden;
    cursor: pointer;
    border: 1px dashed #cbc6ee !important;
    border-radius: 14px !important;
    background: #fcfbff;
    box-shadow: none !important;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.cp-doc-card .file-drop.mud-paper.has-preview {
    cursor: default;
    height: 250px !important;
    min-height: 250px !important;
    max-height: 250px !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    padding: 6px !important;
}

.cp-doc-card .preview-container {
    display: flex;
    width: 100%;
    height: 100% !important;
    min-height: 0;
    max-height: 100%;
    padding: 0;
    margin: 0;
    overflow: hidden;
    align-items: stretch;
    justify-content: stretch;
}

.cp-doc-card .preview-item {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    height: 100% !important;
    max-height: 100%;
    min-height: 0;
    box-shadow: none;
    border: none;
    background: transparent;
    padding: 0;
    gap: 6px;
}

.cp-doc-card .preview-image-box {
    width: 100%;
    flex: 1 1 auto !important;
    height: auto !important;
    min-height: 0;
    background: #f4f3fb;
    border-radius: 10px;
}

.cp-doc-card .preview-image-box img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cp-doc-card .nfu-file-meta {
    margin: 0 !important;
    padding: 5px 8px !important;
    flex: 0 0 auto;
}

.cp-doc-card .nfu-actions {
    position: relative;
    z-index: 2;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: .35rem;
    margin-top: .45rem;
}

.cp-doc-card .file-drop.mud-paper:hover {
    border-color: #8579e9 !important;
    background: #f8f6ff;
    box-shadow: inset 0 0 0 3px rgba(102, 87, 232, .05) !important;
}

.cp-doc-card .upload-placeholder {
    gap: .35rem;
    padding: .75rem .85rem;
    color: #777b8f;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.cp-doc-card .nfu-drop-meta {
    margin-top: .55rem;
}

.cp-doc-card .nfu-rules--inside {
    display: none;
}

.cp-doc-card .preview-item.is-uploaded {
    border: 1px solid rgba(105, 108, 255, 0.2);
}

.cp-doc-card--approved .preview-item.is-uploaded,
.cp-doc-card .preview-item.is-approved {
    border-color: rgba(22, 163, 74, 0.2);
}

.cp-doc-card--rejected .preview-item.is-uploaded,
.cp-doc-card .preview-item.is-rejected {
    border-color: rgba(220, 38, 38, 0.2);
}

.cp-doc-card .nfu-success-overlay strong {
    font-size: .72rem;
}

.cp-doc-card .nfu-success-banner {
    margin-top: 6px;
}

.cp-doc-card .nfu-file-meta {
    margin-top: 4px;
    padding: 3px 7px;
}

.cp-doc-card .nfu-file-meta.is-success {
    background: rgba(105, 108, 255, 0.1) !important;
    border-color: rgba(105, 108, 255, 0.28) !important;
}

.cp-doc-card .nfu-file-meta.is-approved {
    background: rgba(22, 163, 74, 0.1) !important;
    border-color: rgba(22, 163, 74, 0.28) !important;
}

.cp-doc-card .nfu-file-meta.is-rejected {
    background: rgba(220, 38, 38, 0.1) !important;
    border-color: rgba(220, 38, 38, 0.28) !important;
}

.cp-doc-card .nfu-file-meta__name {
    font-size: .66rem;
    font-weight: 400;
    color: #697a8d;
}

.cp-doc-card .nfu-upload-icon {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: .2rem;
    color: #6657e8;
    border: 1px solid #ddd8fb;
    border-radius: 10px;
    background: #f2f0ff;
}

.cp-doc-card .nfu-upload-icon .mud-icon-root {
    font-size: 1.2rem !important;
}

.cp-doc-card .nfu-drop-chips span {
    font-size: .58rem !important;
    padding: 2px 6px !important;
}

.cp-doc-card .nfu-drop-subtitle {
    font-size: .7rem;
    color: #8592a3;
}

.cp-doc-card .upload-placeholder .mud-typography-body2 {
    color: #4d4a61;
    font-size: .88rem;
    font-weight: 700;
}

.cp-doc-card .upload-placeholder .mud-typography-caption {
    margin-top: .15rem !important;
    color: #9699a9;
    font-size: .78rem;
    line-height: 1.55;
}

.cp-doc-card .nfu-actions .mud-button-root {
    height: 34px;
    padding-inline: .75rem;
    border-radius: 8px;
    font-size: .8rem;
}

.cp-doc-card .nfu-actions .nfu-btn-select {
    background: #fff !important;
    color: #5b5fc7 !important;
    border: 1.5px solid rgba(105, 108, 255, 0.55) !important;
    box-shadow: none !important;
}

.cp-doc-card .nfu-actions .nfu-btn-select:hover {
    background: rgba(105, 108, 255, 0.06) !important;
    border-color: #696cff !important;
}

.cp-doc-card .nfu-actions .nfu-btn-upload {
    background: #696cff !important;
    color: #fff !important;
}

.cp-doc-card .nfu-actions .nfu-btn-upload:disabled {
    background: #c5c6f5 !important;
    color: #fff !important;
    opacity: .75;
}

/* ── Responsive ── */
@media (max-width: 980px) {
    .cp-status-grid,
    .cp-docs__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .cp-page { padding-inline: .7rem; }

    .cp-hero {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        padding: 1rem 1.05rem;
    }

    .cp-hero h1 { font-size: .95rem; }
    .cp-sub { font-size: .9rem; }

    .cp-progress-ring {
        width: 100%;
        min-width: 0;
        min-height: 58px;
    }

    .cp-status-card {
        min-height: 92px;
    }

    .cp-status-card h3 { font-size: .95rem; }
    .cp-status-card p { font-size: .85rem; }

    .cp-actions { position: static; }
    .cp-actions .mud-button-root { width: 100%; }
    .cp-form .user-form-shell,
    .cp-docs { padding: .85rem; }
}

/* Minimal visual calibration — preserve the current structure. */
.cp-hero {
    border-color: #e5e3ef;
    box-shadow: 0 6px 20px rgba(42,36,82,.045);
}

.cp-kicker { font-size: .67rem; font-weight: 600; }
.cp-hero h1 { font-size: clamp(.98rem,1.45vw,1.14rem); font-weight: 800; line-height: 1.4; }
.cp-sub { font-size: .74rem; font-weight: 400; line-height: 1.65; margin-top: .28rem; }
.cp-hero__meta-item { font-size: .6rem; font-weight: 400; }

.cp-progress-ring {
    border-color: #e3e0f5;
    background: #faf9ff;
}

.cp-progress-ring__copy strong { font-size: .78rem; font-weight: 800; }
.cp-progress-ring__copy small { font-size: .59rem; font-weight: 800; }

.cp-status-card,
.cp-status-card.ok,
.cp-status-card.warn,
.cp-status-card.bad,
.cp-status-card.idle {
    min-height: 0;
    padding: .48rem .65rem .55rem;
    border-color: #e5e3ee;
    background: #fff;
    box-shadow: 0 3px 12px rgba(42,36,82,.025);
}

.cp-status-card::after { display: none; }
.cp-status-card:hover { border-color: #d8d4eb; box-shadow: 0 5px 16px rgba(42,36,82,.045); }
.cp-status-card__icon { width: 30px; height: 30px; border-radius: 8px; }
.cp-status-card h3 { font-size: .79rem; font-weight: 700; margin: 0; }
.cp-status-card p { display: none; }
.cp-status-card code,
.cp-status-card .cp-status-value {
    display: inline-block;
    margin-top: .18rem;
    padding: .08rem .36rem;
    font-size: .72rem;
    font-weight: 600;
    font-family: Samim, Vazirmatn, Tahoma, "Segoe UI", sans-serif;
    background: #f7f6fb;
}

@media (max-width: 760px) {
    .cp-hero h1 { font-size: .95rem; }
    .cp-sub { font-size: .7rem; }
    .cp-status-card h3 { font-size: .76rem; }
    .cp-status-card p { font-size: .65rem; }
}

/* Restore subtle semantic status colors while keeping the minimal cards. */
.cp-status-card.ok {
    border-color: #cfeadf;
    background: #fbfefc;
}

.cp-status-card.warn {
    border-color: #efdfc6;
    background: #fffdf9;
}

.cp-status-card.bad {
    border-color: #efd3d7;
    background: #fffafb;
}

.cp-status-card.idle {
    border-color: #e3e1ec;
    background: #fefeff;
}

.cp-progress-ring__copy strong {
    font-weight: 800 !important;
}

.cp-progress-ring__copy small {
    font-weight: 800 !important;
}

.cp-status-card::after {
    display: block;
    content: "";
    position: absolute;
    right: 12px;
    bottom: 0;
    left: 12px;
    height: 2px;
    border-radius: 999px 999px 0 0;
    background: #c5c2d1;
}

.cp-status-card.ok::after { background: #36c58e; }
.cp-status-card.warn::after { background: #f3aa3d; }
.cp-status-card.bad::after { background: #e66573; }
.cp-status-card.idle::after { background: #aaa6bb; }

.cp-status-card.ok { border-color: #8fd6bd; }
.cp-status-card.warn { border-color: #e8bd78; }
.cp-status-card.bad { border-color: #e7a0a9; }
.cp-status-card.idle { border-color: #cbc7d8; }

.cp-status-card__icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
}

.cp-status-card__icon .mud-icon-root {
    font-size: 1.28rem;
}

.cp-progress-ring__copy strong {
    font-size: .9rem;
    font-weight: 800 !important;
}

.cp-progress-ring__copy small {
    font-size: .67rem;
    font-weight: 800 !important;
    color: #5b5478;
}

.cp-progress-ring .cp-progress-ring__copy strong,
.cp-progress-ring .cp-progress-ring__copy small {
    font-weight: 800 !important;
}

.cp-status-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .55rem;
    margin-bottom: .08rem;
}

.cp-doc-summary-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: .3rem;
    max-width: min(100%, 280px);
}

.cp-status-card__head .mud-chip,
.cp-status-card__head .cp-status-chip {
    flex: 0 0 auto;
    height: 24px !important;
    min-height: 24px !important;
    padding-inline: .45rem .58rem !important;
    font-size: .66rem;
    border-radius: 999px;
    box-shadow: none;
    gap: .15rem;
}

.cp-status-card__head .mud-chip .mud-chip-icon,
.cp-status-card__head .mud-chip .mud-icon-root {
    font-size: .92rem !important;
    margin-inline: 0 .1rem 0 0 !important;
}

.cp-page .mud-chip,
.cp-page .mud-chip .mud-chip-content,
.cp-page .mud-chip .mud-chip-content *,
.cp-page .cp-chip-label,
.cp-status-card__head .mud-chip,
.cp-status-card__head .mud-chip .mud-chip-content,
.cp-status-card__head .mud-chip span,
.cp-status-card__head .cp-chip-label,
.cp-doc-card .mud-chip,
.cp-doc-card .mud-chip .mud-chip-content,
.cp-doc-card .mud-chip span {
    font-family: Samim, Vazirmatn, Tahoma, "Segoe UI", sans-serif !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    -webkit-font-smoothing: antialiased;
}

.cp-status-card__head .mud-chip-content,
.cp-status-card__head .cp-chip-label {
    font-size: .66rem !important;
    line-height: 1.2 !important;
}

.cp-hero {
    min-height: 0;
    padding: .55rem 1.05rem .65rem;
    align-items: center;
}

.cp-hero__meta-item {
    font-size: .6rem;
}

.cp-progress-ring__copy strong,
.cp-progress-ring__copy small {
    font-weight: 800 !important;
}
