/*
 * Devspool portal components.
 *
 * The classes here are the Devspool visual language taken from the design source: flush-left
 * modernist structure, hard 1px and 2px rules instead of shadows, zero radius, Archivo at heavy
 * weights for anything structural, and orange used only for actions and match emphasis.
 *
 * Written as global classes rather than per-component scoped CSS because the same handful of
 * primitives — the rule, the stat cell, the tag, the match score — appear on every screen, and a
 * scoped copy per component is how a design language stops being one language.
 */

/* ─────────────────────────────────────────────── reset and base */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
    background: var(--scynett-surface-background);
    color: var(--dp-ink);
    font-family: var(--scynett-font-ui);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-wrap: anywhere;
}

/* Blazor reveals this only when an unhandled renderer error occurs. */
#blazor-error-ui {
    display: none;
    position: fixed;
    inset: auto 0 0;
    z-index: 100;
    padding: 12px 48px 12px 16px;
    background: var(--scynett-error-bg);
    border-top: 2px solid var(--scynett-error);
    color: var(--scynett-error-dark);
}

#blazor-error-ui .dismiss {
    position: absolute;
    top: 8px;
    right: 16px;
    cursor: pointer;
}

a {
    color: var(--dp-accent);
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--scynett-font-display);
    letter-spacing: -.02em;
    color: var(--dp-ink);
    margin: 0;
}

:focus-visible {
    outline: 3px solid rgba(245, 124, 0, .45);
    outline-offset: 2px;
}

/* Anything that only exists for assistive technology. */
.dp-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ─────────────────────────────────────────────── typography helpers */

.dp-eyebrow {
    display: block;
    font-size: 10px;
    letter-spacing: .11em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--dp-muted-2);
}

.dp-eyebrow--accent {
    color: var(--dp-accent);
}

.dp-muted {
    color: var(--dp-muted);
}

.dp-strong {
    font-family: var(--scynett-font-display);
    font-weight: 800;
}

/* ─────────────────────────────────────────────── app shell */

.dp-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    background: #fff;
}

.dp-shell__body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
}

.dp-shell__main {
    flex: 1;
    min-width: 0;
    padding-bottom: calc(var(--dp-bottom-nav-height) + env(safe-area-inset-bottom, 0px));
}

/* ── mobile header ── */

.dp-mobile-header {
    position: sticky;
    top: 0;
    z-index: 30;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #fff;
    border-bottom: 2px solid var(--dp-divider);
}

.dp-mobile-header__mark {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex: none;
}

.dp-mobile-header__word {
    font: 800 17px/1 var(--scynett-font-display);
    letter-spacing: -.02em;
    color: var(--dp-ink);
    margin-right: auto;
}

.dp-mobile-header__back {
    width: 44px;
    height: 44px;
    margin-left: -12px;
    display: grid;
    place-items: center;
    background: none;
    border: 0;
    color: var(--dp-ink);
    cursor: pointer;
}

.dp-mobile-header__title {
    font: 800 14px var(--scynett-font-display);
    color: var(--dp-ink);
    margin-right: auto;
}

.dp-icon-button {
    position: relative;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: none;
    border: 0;
    color: var(--dp-ink);
    cursor: pointer;
}

.dp-icon-button__dot {
    position: absolute;
    top: 11px;
    right: 12px;
    width: 7px;
    height: 7px;
    background: var(--dp-accent);
}

.dp-avatar {
    width: 34px;
    height: 34px;
    flex: none;
    display: grid;
    place-items: center;
    background: var(--dp-ink);
    color: #fff;
    font: 800 12px var(--scynett-font-display);
}

.dp-avatar--lg {
    width: 64px;
    height: 64px;
    font-size: 22px;
}

/* ── bottom navigation ── */

.dp-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #fff;
    border-top: 2px solid var(--dp-divider);
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.dp-bottom-nav__item {
    height: var(--dp-bottom-nav-height);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--dp-muted);
    border-top: 3px solid transparent;
    margin-top: -2px;
}

.dp-bottom-nav__item span {
    font: 800 9.5px var(--scynett-font-display);
}

.dp-bottom-nav__item.dp-is-active {
    color: var(--dp-accent);
    border-top-color: var(--dp-accent);
}

.dp-bottom-nav__badge {
    position: absolute;
    margin: -18px 0 0 18px;
    width: 6px;
    height: 6px;
    background: var(--dp-accent);
}

/* ── desktop sidebar ── */

.dp-sidebar {
    display: none;
}

.dp-desktop-header {
    display: none;
}

/* ─────────────────────────────────────────────── page structure */

.dp-page {
    width: 100%;
    padding: 0 0 24px;
}

.dp-page__head {
    padding: 22px 16px 18px;
}

.dp-page__title {
    font-size: 27px;
    line-height: 1.1;
    letter-spacing: -.02em;
}

.dp-page__subtitle {
    margin: 6px 0 0;
    font-size: 13px;
    color: var(--dp-muted);
}

.dp-section {
    border-top: 2px solid var(--dp-divider);
}

.dp-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 16px 8px;
}

.dp-section__link {
    font: 800 11px var(--scynett-font-display);
    color: var(--dp-accent);
    background: none;
    border: 0;
    cursor: pointer;
}

.dp-rule {
    border: 0;
    border-top: 1px solid var(--dp-hair);
    margin: 0;
}

.dp-rule--strong {
    border-top: 2px solid var(--dp-divider);
}

/* ─────────────────────────────────────────────── stat grid */

.dp-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--dp-hair);
}

.dp-stat {
    padding: 14px 16px;
    border-bottom: 1px solid var(--dp-hair);
    min-width: 0;
}

.dp-stat:nth-child(odd) {
    border-right: 1px solid var(--dp-hair);
}

.dp-stat:nth-last-child(-n+2) {
    border-bottom: 2px solid var(--dp-divider);
}

.dp-stat__value {
    font: 800 20px/1.1 var(--scynett-font-display);
    margin-top: 7px;
    color: var(--dp-ink);
}

.dp-stat__value--accent {
    color: var(--dp-accent);
}

.dp-stat__note {
    font-size: 11px;
    color: var(--dp-muted);
    margin-top: 2px;
}

.dp-stat__status {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 9px;
}

.dp-stat__dot {
    width: 8px;
    height: 8px;
    flex: none;
    background: var(--dp-accent);
}

.dp-stat__status-text {
    font: 800 15px/1.1 var(--scynett-font-display);
    color: var(--dp-ink);
}

/* ── progress ── */

.dp-progress {
    height: 3px;
    background: var(--dp-surface-2);
    margin-top: 9px;
}

.dp-progress--lg {
    height: 6px;
}

.dp-progress__fill {
    height: 100%;
    background: var(--dp-accent);
}

/* ─────────────────────────────────────────────── cards */

.dp-card {
    background: #fff;
    border: 1px solid var(--dp-hair);
}

.dp-card--emphasis {
    margin: 0 16px 18px;
    border: 2px solid var(--dp-ink);
    background: var(--dp-surface);
}

.dp-card__head {
    display: flex;
    gap: 12px;
    padding: 16px 16px 14px;
    border-bottom: 1px solid var(--dp-hair);
}

.dp-card__title {
    font-size: 19px;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.dp-card__body {
    padding: 14px 16px;
}

.dp-card__footer {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dp-card__notice {
    padding: 13px 16px;
    background: var(--dp-accent-tint);
    border-bottom: 1px solid var(--dp-hair);
    font: 800 13px var(--scynett-font-display);
    color: var(--dp-accent-ink);
}

/* ── match score ── */

.dp-match {
    flex: none;
    text-align: right;
}

.dp-match__score {
    font: 800 30px/1 var(--scynett-font-display);
    letter-spacing: -.03em;
    color: var(--dp-accent);
}

.dp-match__label {
    margin-top: 4px;
}

.dp-match-badge {
    display: inline-block;
    padding: 7px 11px;
    background: var(--dp-accent);
    color: #fff;
    font: 800 14px var(--scynett-font-display);
    letter-spacing: .02em;
}

/* ── tags and badges ── */

.dp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.dp-tag {
    font-size: 12px;
    padding: 4px 9px;
    background: #fff;
    border: 1px solid var(--dp-hair);
    color: var(--dp-ink);
}

.dp-tag--muted {
    color: var(--dp-muted);
}

.dp-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border: 1px solid var(--dp-divider);
    color: var(--dp-ink);
    background: #fff;
}

.dp-badge--solid {
    background: var(--dp-ink);
    border-color: var(--dp-ink);
    color: #fff;
}

.dp-badge--accent {
    background: var(--dp-accent);
    border-color: var(--dp-accent);
    color: #fff;
}

.dp-badge--attention {
    background: var(--dp-accent-tint);
    border-color: var(--dp-accent);
    color: var(--dp-accent-ink);
}

.dp-badge--positive {
    background: var(--scynett-success-bg);
    border-color: var(--scynett-success);
    color: var(--scynett-success-dark);
}

/* ─────────────────────────────────────────────── definition rows */

.dp-rows {
    padding: 0 16px 16px;
}

.dp-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--dp-hair);
}

.dp-row:last-child {
    border-bottom: 0;
}

.dp-row__label {
    font-size: 12px;
    color: var(--dp-muted);
}

.dp-row__value {
    font: 800 13px var(--scynett-font-display);
    text-align: right;
    color: var(--dp-ink);
}

.dp-row__value--accent {
    color: var(--dp-accent);
}

/* ── three-up meta strip ── */

.dp-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--dp-hair);
}

.dp-meta__cell {
    padding: 11px 14px;
    border-right: 1px solid var(--dp-hair);
    min-width: 0;
}

.dp-meta__cell:last-child {
    border-right: 0;
}

.dp-meta__value {
    font: 800 13px var(--scynett-font-display);
    margin-top: 5px;
    color: var(--dp-ink);
}

.dp-meta__value--accent {
    color: var(--dp-accent);
}

/* ─────────────────────────────────────────────── buttons */

.dp-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 50px;
    padding: 0 16px;
    border: 0;
    font: 800 15px var(--scynett-font-display);
    text-align: left;
    cursor: pointer;
    background: var(--dp-accent);
    color: #fff;
    transition: background 120ms ease;
}

.dp-button:hover:not(:disabled) {
    background: var(--dp-accent-hover);
}

.dp-button:disabled {
    background: var(--dp-surface-2);
    color: var(--dp-muted-2);
    cursor: not-allowed;
}

.dp-button--secondary {
    min-height: 46px;
    background: none;
    border: 1px solid var(--dp-divider);
    color: var(--dp-ink);
    font-size: 14px;
    justify-content: flex-start;
}

.dp-button--secondary:hover:not(:disabled) {
    background: rgba(6, 46, 63, .06);
}

.dp-button--secondary:disabled {
    background: none;
    color: var(--dp-muted-2);
}

.dp-button--danger {
    background: none;
    border: 1px solid var(--scynett-error);
    color: var(--scynett-error);
    min-height: 46px;
    font-size: 14px;
    justify-content: flex-start;
}

.dp-button--danger:hover:not(:disabled) {
    background: var(--scynett-error-bg);
}

.dp-button--compact {
    min-height: 38px;
    font-size: 13px;
    width: auto;
    padding: 0 12px;
}

.dp-button-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ── sticky action bar ── */

.dp-sticky-actions {
    position: sticky;
    bottom: 0;
    z-index: 20;
    margin-top: auto;
    background: #fff;
    border-top: 2px solid var(--dp-divider);
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ─────────────────────────────────────────────── lists */

.dp-list {
    border-top: 1px solid var(--dp-hair);
}

.dp-list__item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border-bottom: 1px solid var(--dp-hair);
    background: none;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    text-align: left;
    color: inherit;
    cursor: pointer;
}

.dp-list__item:hover {
    background: var(--dp-surface);
}

.dp-list__body {
    flex: 1;
    min-width: 0;
}

.dp-list__title {
    font: 800 14px var(--scynett-font-display);
    color: var(--dp-ink);
}

.dp-list__note {
    font-size: 11px;
    color: var(--dp-muted);
    margin-top: 4px;
}

.dp-list__score {
    font: 800 15px var(--scynett-font-display);
    color: var(--dp-accent);
    flex: none;
}

.dp-list__chevron {
    flex: none;
    color: var(--dp-muted-2);
}

/* ─────────────────────────────────────────────── requirement checks */

.dp-checks {
    display: flex;
    flex-direction: column;
}

.dp-check {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 0;
    border-bottom: 1px solid var(--dp-hair);
    font: 800 13px var(--scynett-font-display);
}

.dp-check:last-child {
    border-bottom: 0;
}

.dp-check--unmet {
    color: var(--dp-muted);
}

.dp-check__level {
    margin-left: auto;
    font: 400 11px var(--scynett-font-ui);
    color: var(--dp-muted);
}

/* ── quote block ── */

.dp-quote {
    border-left: 3px solid var(--dp-accent);
    padding-left: 14px;
}

.dp-quote p {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--dp-ink);
    text-wrap: pretty;
}

/* ─────────────────────────────────────────────── timeline */

.dp-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dp-timeline__step {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    align-items: start;
    gap: 10px;
    padding: 9px 0;
}

.dp-timeline__marker {
    display: grid;
    place-items: center;
    height: 20px;
    color: var(--dp-accent);
    font-size: 12px;
}

.dp-timeline__step--pending .dp-timeline__marker {
    color: var(--dp-muted-2);
}

.dp-timeline__label {
    font-size: 13px;
    color: var(--dp-ink);
}

.dp-timeline__step--pending .dp-timeline__label {
    color: var(--dp-muted);
}

.dp-timeline__when {
    font-size: 11px;
    color: var(--dp-muted);
    white-space: nowrap;
}

/* ─────────────────────────────────────────────── notices */

.dp-notice {
    padding: 16px;
    background: var(--dp-surface);
    border-bottom: 1px solid var(--dp-hair);
}

.dp-notice__head {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dp-notice p {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--dp-muted);
    text-wrap: pretty;
}

.dp-notice ul {
    margin: 8px 0 0;
    padding-left: 18px;
    font-size: 12px;
    line-height: 1.6;
    color: var(--dp-muted);
}

/* ─────────────────────────────────────────────── states */

.dp-state {
    padding: 48px 24px;
    text-align: center;
}

.dp-state__title {
    font-size: 18px;
    margin-bottom: 8px;
}

.dp-state__text {
    margin: 0 auto;
    max-width: 320px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--dp-muted);
    text-wrap: pretty;
}

.dp-state__actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.dp-state__actions .dp-button {
    max-width: 280px;
}

.dp-skeleton {
    background: var(--dp-surface-2);
    position: relative;
    overflow: hidden;
}

.dp-skeleton::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65), transparent);
    animation: dp-shimmer 1.4s infinite;
}

@keyframes dp-shimmer {
    100% {
        transform: translateX(100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .dp-skeleton::after {
        animation: none;
    }
}

.dp-skeleton--line {
    height: 12px;
    margin-bottom: 10px;
}

.dp-skeleton--title {
    height: 24px;
    margin-bottom: 14px;
}

.dp-skeleton--block {
    height: 120px;
    margin-bottom: 14px;
}

/* ─────────────────────────────────────────────── forms */

.dp-field {
    padding: 14px 16px;
    border-bottom: 1px solid var(--dp-hair);
}

.dp-field__label {
    display: block;
    font-size: 10px;
    letter-spacing: .11em;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--dp-muted-2);
    margin-bottom: 8px;
}

.dp-input,
.dp-textarea,
.dp-select {
    width: 100%;
    min-height: 46px;
    padding: 11px 12px;
    background: #fff;
    border: 1px solid var(--dp-divider);
    color: var(--dp-ink);
    font-size: 14px;
}

.dp-textarea {
    min-height: 120px;
    resize: vertical;
    line-height: 1.55;
}

.dp-field__error {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--scynett-error);
}

.dp-field__hint {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    color: var(--dp-muted);
}

.dp-choice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--dp-hair);
    cursor: pointer;
}

.dp-choice.dp-is-selected {
    background: var(--dp-accent-tint);
    box-shadow: inset 3px 0 0 var(--dp-accent);
}

.dp-choice input {
    margin: 3px 0 0;
    width: 18px;
    height: 18px;
    accent-color: var(--dp-accent);
    flex: none;
}

.dp-choice__title {
    font: 800 14px var(--scynett-font-display);
    color: var(--dp-ink);
}

.dp-choice__note {
    display: block;
    font-size: 12px;
    color: var(--dp-muted);
    margin-top: 3px;
}

/* ─────────────────────────────────────────────── stepper */

.dp-stepper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-bottom: 2px solid var(--dp-divider);
}

.dp-stepper__step {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dp-muted-2);
    font: 800 11px var(--scynett-font-display);
}

.dp-stepper__index {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border: 2px solid var(--dp-hair);
    font-size: 11px;
}

.dp-stepper__step.dp-is-active {
    color: var(--dp-accent);
}

.dp-stepper__step.dp-is-active .dp-stepper__index {
    border-color: var(--dp-accent);
}

.dp-stepper__step.dp-is-done {
    color: var(--dp-ink);
}

.dp-stepper__step.dp-is-done .dp-stepper__index {
    background: var(--dp-ink);
    border-color: var(--dp-ink);
    color: #fff;
}

.dp-stepper__line {
    flex: 1;
    height: 1px;
    background: var(--dp-hair);
}

/* ─────────────────────────────────────────────── documents */

.dp-doc {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 16px;
    border-bottom: 1px solid var(--dp-hair);
}

.dp-doc__icon {
    width: 44px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid var(--dp-divider);
    font: 800 10px var(--scynett-font-display);
    color: var(--dp-ink);
}

.dp-doc__icon--accent {
    background: var(--dp-accent);
    border-color: var(--dp-accent);
    color: #fff;
}

.dp-doc__name {
    font: 800 15px var(--scynett-font-display);
    margin: 4px 0;
    word-break: break-word;
}

.dp-doc__meta {
    font-size: 11px;
    color: var(--dp-muted);
}

.dp-doc__actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 8px;
}

.dp-doc__actions .dp-button {
    flex: 1;
}

/* ─────────────────────────────────────────────── notifications */

.dp-notification {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    width: 100%;
    padding: 16px;
    border-bottom: 1px solid var(--dp-hair);
    background: none;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    text-align: left;
    color: inherit;
    cursor: pointer;
}

.dp-notification.dp-is-unread {
    background: var(--dp-accent-tint);
}

.dp-notification__subject {
    font: 800 14px var(--scynett-font-display);
    margin: 6px 0 4px;
}

.dp-notification__body {
    font-size: 12px;
    line-height: 1.5;
    color: var(--dp-muted);
    margin: 0;
}

.dp-notification__when {
    font-size: 11px;
    color: var(--dp-muted-2);
    white-space: nowrap;
}

/* ─────────────────────────────────────────────── toast */

.dp-toast {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(var(--dp-bottom-nav-height) + 16px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    padding: 14px 16px;
    background: var(--dp-ink);
    color: #fff;
    font: 800 13px var(--scynett-font-display);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dp-toast--error {
    background: var(--scynett-error);
}

.dp-toast__dismiss {
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
    padding: 4px;
}

/* ─────────────────────────────────────────────── tablet and up */

@media (min-width: 768px) {
    .dp-shell {
        flex-direction: row;
    }

    .dp-mobile-header,
    .dp-bottom-nav {
        display: none;
    }

    .dp-shell__main {
        padding-bottom: 0;
    }

    .dp-sidebar {
        position: sticky;
        top: 0;
        display: flex;
        flex-direction: column;
        flex: none;
        width: var(--scynett-sidebar-width);
        height: 100vh;
        height: 100dvh;
        background: var(--dp-ink);
        color: #fff;
        overflow-y: auto;
    }

    .dp-sidebar__brand {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 22px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, .14);
    }

    .dp-sidebar__brand img {
        width: 26px;
        height: 26px;
        object-fit: contain;
    }

    .dp-sidebar__word {
        font: 800 17px/1 var(--scynett-font-display);
        letter-spacing: -.02em;
        color: #fff;
    }

    .dp-sidebar__nav {
        display: flex;
        flex-direction: column;
        padding: 12px 0;
    }

    .dp-sidebar__link {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 20px;
        color: rgba(255, 255, 255, .72);
        font: 800 13px var(--scynett-font-display);
        border-left: 3px solid transparent;
    }

    .dp-sidebar__link:hover {
        color: #fff;
        background: rgba(255, 255, 255, .07);
    }

    .dp-sidebar__link.dp-is-active {
        color: #fff;
        border-left-color: var(--dp-accent);
        background: rgba(255, 255, 255, .09);
    }

    .dp-sidebar__badge {
        margin-left: auto;
        min-width: 20px;
        padding: 1px 6px;
        text-align: center;
        background: var(--dp-accent);
        color: #fff;
        font-size: 10px;
    }

    .dp-sidebar__foot {
        margin-top: auto;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 18px 20px;
        border-top: 1px solid rgba(255, 255, 255, .14);
    }

    .dp-sidebar__identity {
        min-width: 0;
    }

    .dp-sidebar__name {
        display: block;
        font: 800 12px var(--scynett-font-display);
        color: #fff;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dp-sidebar__number {
        display: block;
        font-size: 10px;
        color: rgba(255, 255, 255, .6);
        margin-top: 2px;
    }

    .dp-desktop-header {
        position: sticky;
        top: 0;
        z-index: 25;
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 0 28px;
        height: var(--scynett-topbar-height);
        background: #fff;
        border-bottom: 2px solid var(--dp-divider);
    }

    .dp-desktop-header__title {
        font: 800 15px var(--scynett-font-display);
        margin-right: auto;
    }

    .dp-desktop-header__back {
        width: 44px;
        height: 44px;
        display: grid;
        place-items: center;
        margin-left: -12px;
        background: none;
        border: 0;
        color: var(--dp-ink);
        cursor: pointer;
    }

    .dp-page {
        padding: 12px 28px 32px;
        max-width: 1100px;
        margin-inline: auto;
    }

    .dp-page__head {
        padding: 16px 0 20px;
    }

    .dp-stats {
        grid-template-columns: repeat(4, 1fr);
        border: 1px solid var(--dp-hair);
    }

    .dp-stat:nth-child(odd) {
        border-right: 1px solid var(--dp-hair);
    }

    .dp-stat {
        border-right: 1px solid var(--dp-hair);
        border-bottom: 0;
    }

    .dp-stat:last-child {
        border-right: 0;
    }

    .dp-stat:nth-last-child(-n+2) {
        border-bottom: 0;
    }

    .dp-card--emphasis {
        margin: 0 0 18px;
    }

    /* Editing stays comfortably scannable instead of stretching controls across wide screens. */
    .dp-section:has(.dp-field),
    .dp-section:has(.dp-choice) {
        width: min(100%, 760px);
    }

    .dp-section:has(.dp-choice) .dp-choice {
        padding-inline: 16px;
    }

    .dp-section__head {
        padding-left: 0;
        padding-right: 0;
    }

    .dp-rows,
    .dp-notice,
    .dp-field,
    .dp-choice,
    .dp-doc,
    .dp-notification,
    .dp-list__item {
        padding-left: 0;
        padding-right: 0;
    }

    .dp-card .dp-rows,
    .dp-card .dp-notice,
    .dp-card .dp-field,
    .dp-card .dp-choice,
    .dp-card .dp-doc,
    .dp-card .dp-notification,
    .dp-card .dp-list__item,
    .dp-card--emphasis .dp-rows {
        padding-left: 16px;
        padding-right: 16px;
    }

    .dp-button-row {
        flex-direction: row;
    }

    .dp-button-row .dp-button {
        width: auto;
        min-width: 200px;
    }

    .dp-sticky-actions {
        position: static;
        flex-direction: row;
        justify-content: flex-end;
        padding: 16px 0 0;
        border-top: 1px solid var(--dp-hair);
    }

    .dp-sticky-actions .dp-button {
        width: auto;
        min-width: 220px;
    }

    .dp-toast {
        left: auto;
        right: 28px;
        bottom: 28px;
        min-width: 320px;
    }

    .dp-doc {
        grid-template-columns: auto 1fr auto;
        align-items: center;
    }

    .dp-doc__actions {
        grid-column: auto;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .dp-doc__actions .dp-button {
        flex: none;
        width: auto;
        min-width: 112px;
    }
}

/* ─────────────────────────────────────────────── desktop density */

@media (min-width: 1280px) {
    .dp-page {
        padding: 16px 40px 40px;
        max-width: 1240px;
    }

    .dp-columns {
        display: grid;
        grid-template-columns: 1.2fr .8fr;
        gap: 28px;
        align-items: start;
    }

    .dp-grid-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }
}

/* ─────────────────────────────────────────────── very small phones */

@media (max-width: 360px) {
    .dp-page__head {
        padding: 18px 12px 16px;
    }

    .dp-page__title {
        font-size: 23px;
    }

    .dp-match__score {
        font-size: 26px;
    }

    .dp-bottom-nav__item span {
        font-size: 8.5px;
        letter-spacing: -.02em;
    }
}

/* ─────────────────────────────────────── Scynett verification */

/*
    The verification badge.

    Deliberately quieter than the design system's attention treatment. Not being verified yet is
    the normal state for a new developer, not a fault, and a screen that shouts about it every time
    would read as a reprimand rather than as an invitation. Only the verified state is coloured;
    everything else is a neutral outline with its meaning in the text.
*/

.dp-verify {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    padding: 4px 9px;
    border: 1px solid var(--dp-divider);
    color: var(--dp-muted);
    background: #fff;
    white-space: nowrap;
}

.dp-verify--verified {
    background: var(--scynett-success-bg);
    border-color: var(--scynett-success);
    color: var(--scynett-success-dark);
}

.dp-verify--pending {
    background: var(--dp-surface);
    border-color: var(--dp-divider);
    color: var(--dp-ink);
}

.dp-verify--attention {
    background: var(--dp-accent-tint);
    border-color: var(--dp-accent);
    color: var(--dp-accent-ink);
}

.dp-verify__glyph {
    display: inline-flex;
    font-size: 12px;
    line-height: 1;
}

/*
    The panel that explains why Apply is disabled, shown directly above the disabled button on the
    opportunity screen. It carries the reason and the way forward together: a disabled control with
    no explanation beside it is the single most common way a product loses somebody.
*/

.dp-verify-notice {
    border: 1px solid var(--dp-divider);
    background: var(--dp-surface);
    padding: 16px;
    margin: 0 0 12px;
}

.dp-verify-notice--attention {
    border-color: var(--dp-accent);
    background: var(--dp-accent-tint);
}

.dp-verify-notice__title {
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--dp-ink);
}

.dp-verify-notice__body {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--dp-ink);
    text-wrap: pretty;
}

.dp-verify-notice__hint {
    margin: 8px 0 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--dp-muted);
}

.dp-verify-notice__actions {
    margin-top: 12px;
}

/* The readiness checklist on the dashboard: four rows, four separate facts. */

.dp-readiness {
    display: grid;
    gap: 2px;
}

.dp-readiness__row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 0;
    font-size: 14px;
    color: var(--dp-ink);
    border-bottom: 1px solid var(--dp-hair);
}

.dp-readiness__row:last-child {
    border-bottom: 0;
}

.dp-readiness__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border: 1px solid var(--dp-divider);
    font-size: 11px;
    font-weight: 800;
    color: var(--dp-muted-2);
    flex: 0 0 auto;
}

.dp-readiness__mark--done {
    border-color: var(--scynett-success);
    background: var(--scynett-success-bg);
    color: var(--scynett-success-dark);
}
