html {
    background: #f4f7fb;
}

body.nwmd-profile-app-body {
    min-width: 320px;
    margin: 0;
    background: #f4f7fb;
    color: #172033;
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
    line-height: 1.5;
}

.nwmd-profile-app,
.nwmd-profile-app * {
    box-sizing: border-box;
}

.nwmd-profile-app {
    min-height: 100svh;
    padding:
        max(22px, env(safe-area-inset-top))
        18px
        max(34px, env(safe-area-inset-bottom));
}

.nwmd-profile-app__panel {
    width: min(
        var(--nwmd-page-shell-max-width),
        100%
    );
    margin: 0 auto;
}

.nwmd-profile-bar {
    display: flex;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 34px;
}

.nwmd-profile-bar__brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #172033;
    font-size: 0.94rem;
    font-weight: 800;
    text-decoration: none;
}

.nwmd-profile-bar__back {
    color: #2563eb;
    font-size: 0.9rem;
    font-weight: 800;
    text-align: right;
    text-decoration: none;
}

.nwmd-profile-bar__back:hover,
.nwmd-profile-bar__back:focus {
    color: #1d4ed8;
    text-decoration: underline;
}

.nwmd-profile-app__panel > :not(.nwmd-profile-bar) {
    width: min(760px, 100%);
    margin-right: auto;
    margin-left: auto;
}

.nwmd-profile-bar__mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: #172033;
    color: #ffffff;
    font-size: 0.72rem;
}

.nwmd-profile-heading {
    margin-bottom: 26px;
}

.nwmd-profile-heading__eyebrow {
    margin: 0 0 8px;
    color: #2563eb;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.nwmd-profile-heading h1 {
    margin: 0;
    color: #172033;
    font-size: clamp(2.15rem, 8vw, 4rem);
    font-weight: 900;
    letter-spacing: -0.055em;
    line-height: 1;
}

.nwmd-profile-heading__location {
    margin: 14px 0 0;
    color: #526078;
    font-size: 1rem;
    font-weight: 800;
}

.nwmd-profile-heading__legal {
    margin: 6px 0 0;
    color: #748197;
    font-size: 0.92rem;
}

.nwmd-profile-image {
    margin: 0 0 22px;
    overflow: hidden;
    border-radius: 20px;
    background: #e8eef7;
}

.nwmd-profile-image img {
    display: block;
    width: 100%;
    height: auto;
}

.nwmd-profile-actions {
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(110px, 1fr)
    );
    gap: 10px;
    margin-bottom: 22px;
}

.nwmd-profile-actions a {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    border: 1px solid #2563eb;
    border-radius: 14px;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.nwmd-profile-description,
.nwmd-profile-deals,
.nwmd-profile-details,
.nwmd-profile-manage {
    margin-top: 16px;
    padding: 22px;
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    background: #ffffff;
}

.nwmd-profile-deal-list {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.nwmd-profile-deal {
    padding: 18px;
    border: 1px solid #bbf7d0;
    border-radius: 15px;
    background: #f0fdf4;
}

.nwmd-profile-deal__label {
    margin: 0 0 5px;
    color: #047857;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nwmd-profile-deal h3 {
    margin: 0;
    color: #172033;
    font-size: 1.15rem;
    line-height: 1.3;
}

.nwmd-profile-deal__description {
    margin: 10px 0 0;
    color: #34435b;
}

.nwmd-profile-deal__code {
    margin: 12px 0 0;
    color: #172033;
}

.nwmd-profile-deal__code code {
    display: inline-block;
    margin-left: 5px;
    padding: 3px 7px;
    border-radius: 6px;
    background: #ffffff;
    color: #166534;
    font-weight: 800;
}

.nwmd-profile-deal__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 13px;
    color: #526078;
    font-size: 0.82rem;
}

.nwmd-profile-deal__source {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
    padding: 8px 13px;
    border: 1px solid #047857;
    border-radius: 999px;
    background: #ffffff;
    color: #047857;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
}

.nwmd-profile-deal__source:hover,
.nwmd-profile-deal__source:focus-visible {
    background: #dcfce7;
    color: #065f46;
}
.nwmd-profile-description > :first-child {
    margin-top: 0;
}

.nwmd-profile-description > :last-child {
    margin-bottom: 0;
}

.nwmd-profile-deals h2,
.nwmd-profile-details h2,
.nwmd-profile-manage h2 {
    margin: 0;
    font-size: 1.3rem;
}

.nwmd-profile-details dl {
    display: grid;
    grid-template-columns: repeat(
        2,
        minmax(0, 1fr)
    );
    gap: 0 24px;
    margin: 18px 0 0;
}

.nwmd-profile-details dl div {
    min-width: 0;
    padding: 15px 0;
    border-top: 1px solid #e2e8f0;
}

.nwmd-profile-details dt {
    color: #172033;
    font-size: 0.86rem;
    font-weight: 900;
}

.nwmd-profile-details dd {
    margin: 5px 0 0;
    overflow-wrap: anywhere;
    color: #65738a;
}

.nwmd-profile-details a {
    color: #2563eb;
    font-weight: 700;
}

.nwmd-profile-manage {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.nwmd-profile-manage p {
    margin: 8px 0 0;
    color: #65738a;
}

.nwmd-profile-manage > a {
    display: inline-flex;
    min-height: 46px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 10px 17px;
    border-radius: 13px;
    background: #2563eb;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.nwmd-ad {
    margin: 20px 0 0;
}

.nwmd-ad__link {
    display: grid;
    overflow: hidden;
    border: 1px dashed #93c5fd;
    border-radius: 18px;
    background: #ffffff;
    color: #172033;
    text-decoration: none;
}

.nwmd-ad__media {
    max-height: 240px;
    overflow: hidden;
}

.nwmd-ad__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nwmd-ad__content {
    display: grid;
    gap: 5px;
    padding: 18px;
}

.nwmd-ad__label {
    color: #2563eb;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nwmd-ad__advertiser {
    color: #65738a;
    font-size: 0.88rem;
}

.nwmd-ad__action {
    color: #2563eb;
    font-size: 0.88rem;
    font-weight: 800;
}

@media (max-width: 620px) {
    .nwmd-profile-app {
        padding-top: 18px;
    }

    .nwmd-profile-bar {
        margin-bottom: 26px;
    }

    .nwmd-profile-details dl {
        grid-template-columns: 1fr;
    }

    .nwmd-profile-manage {
        align-items: stretch;
        flex-direction: column;
    }

    .nwmd-profile-manage > a {
        width: 100%;
    }
}
/* Compact profile actions */
.nwmd-profile-actions {
    display: flex;
    grid-template-columns: none;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 22px;
}

.nwmd-profile-actions a {
    min-height: 40px;
    padding: 7px 14px;
    border: 1px solid #cbd9ea;
    border-radius: 999px;
    background: #ffffff;
    color: #2563eb;
    font-size: 0.86rem;
    font-weight: 800;
    box-shadow: 0 1px 2px rgba(23, 32, 51, 0.04);
}

.nwmd-profile-actions a:hover,
.nwmd-profile-actions a:focus-visible {
    border-color: #2563eb;
    background: #eff6ff;
    color: #1d4ed8;
}
/* Light blue business management card */
.nwmd-profile-manage {
    border-color: #bfdbfe;
    background: #eff6ff;
}
