/*
|--------------------------------------------------------------------------
| Woniva Pro
| Path: /assets/css/pro.css
|
| Shared professional presentation.
| Legacy Livigo classes remain compatible.
|--------------------------------------------------------------------------
*/

/* ==========================================================================
   Shared tokens
   ========================================================================== */

.livigo-pro,
body.livigo-pro-mobile,
body.woniva-pro-mobile {
    --pro-purple: #6200a5;
    --pro-purple-deep: #420064;
    --pro-gold: #ffc928;
    --pro-deep: #280e3f;

    --pro-bg: #faf7f3;
    --pro-surface: #ffffff;
    --pro-surface-strong: #f2eaf7;
    --pro-soft: #f2eaf7;
    --pro-text: #280e3f;
    --pro-text-soft: #51415e;
    --pro-muted: #594a65;
    --pro-border: #d9cde1;
    --pro-white: #ffffff;
    --pro-accent-readable: #6200a5;

    --pro-success: #17633d;
    --pro-danger: #a12238;
    --pro-warning: #725000;

    --pro-success-bg: #edf8f0;
    --pro-success-border: #b5d8c1;
    --pro-danger-bg: #fff0f2;
    --pro-danger-border: #e7b5bf;
    --pro-warning-bg: #fff6de;
    --pro-warning-border: #dfc77f;

    --pro-radius-sm: 12px;
    --pro-radius-md: 22px;
    --pro-radius-lg: 26px;
    --pro-shadow: 0 5px 20px rgba(40, 14, 63, .06);

    /* Legacy compatibility aliases. */
    --pro-navy-950: var(--pro-deep);
    --pro-navy-900: var(--pro-purple);
    --pro-navy-800: #520087;
    --pro-navy-700: #7400b5;
    --pro-lime: var(--pro-gold);
    --pro-lime-strong: #edb600;

    --pro-mobile-bg: var(--pro-bg);
    --pro-mobile-bg-deep: var(--pro-bg);
    --pro-mobile-surface: var(--pro-surface);
    --pro-mobile-surface-soft: var(--pro-soft);
    --pro-mobile-surface-strong: var(--pro-surface-strong);
    --pro-mobile-border: var(--pro-border);
    --pro-mobile-border-strong: #baa2c8;
    --pro-mobile-text: var(--pro-text);
    --pro-mobile-text-soft: var(--pro-text-soft);
    --pro-mobile-text-muted: var(--pro-muted);

    --pro-mobile-lemon: var(--pro-gold);
    --pro-mobile-lemon-strong: var(--pro-lime-strong);
    --pro-mobile-lemon-soft: var(--pro-warning-bg);
    --pro-mobile-danger: var(--pro-danger);
    --pro-mobile-warning: var(--pro-warning);
    --pro-mobile-info: var(--pro-accent-readable);

    --pro-mobile-radius-sm: var(--pro-radius-sm);
    --pro-mobile-radius-md: var(--pro-radius-md);
    --pro-mobile-radius-lg: var(--pro-radius-lg);
    --pro-mobile-shell-max: 560px;
    --pro-mobile-header-height: 76px;
    --pro-mobile-dock-height: 88px;

    margin: 0;
    background: var(--pro-bg);
    color: var(--pro-text);
    font-family:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-text-size-adjust: 100%;
    color-scheme: light;
}

/*
 * Explicit theme selection.
 * Keep these selectors aligned with the existing theme switcher.
 */
html[data-theme="dark"] :is(
    .livigo-pro,
    body.livigo-pro-mobile,
    body.woniva-pro-mobile
),
body.livigo-pro-mobile[data-theme="dark"],
body.woniva-pro-mobile[data-theme="dark"] {
    --pro-bg: #151019;
    --pro-surface: #231b2b;
    --pro-surface-strong: #35243f;
    --pro-soft: #35243f;
    --pro-text: #faf5ff;
    --pro-text-soft: #e0d3e9;
    --pro-muted: #cbbbd6;
    --pro-border: #594464;
    --pro-accent-readable: #e3baff;

    --pro-success: #91e0b1;
    --pro-danger: #ffabb9;
    --pro-warning: #ffdf86;

    --pro-success-bg: #173426;
    --pro-success-border: #3d7254;
    --pro-danger-bg: #3b1e28;
    --pro-danger-border: #80505e;
    --pro-warning-bg: #352b17;
    --pro-warning-border: #79673b;

    --pro-mobile-border-strong: #846493;
    --pro-shadow: 0 5px 20px rgba(0, 0, 0, .2);

    color-scheme: dark;
}

/* Follow the device when no explicit theme is selected. */
@media (prefers-color-scheme: dark) {
    html:not([data-theme]) :is(
        .livigo-pro,
        body.livigo-pro-mobile,
        body.woniva-pro-mobile
    ):not([data-theme="light"]),
    html[data-theme="system"] :is(
        .livigo-pro,
        body.livigo-pro-mobile,
        body.woniva-pro-mobile
    ):not([data-theme="light"]) {
        --pro-bg: #151019;
        --pro-surface: #231b2b;
        --pro-surface-strong: #35243f;
        --pro-soft: #35243f;
        --pro-text: #faf5ff;
        --pro-text-soft: #e0d3e9;
        --pro-muted: #cbbbd6;
        --pro-border: #594464;
        --pro-accent-readable: #e3baff;

        --pro-success: #91e0b1;
        --pro-danger: #ffabb9;
        --pro-warning: #ffdf86;

        --pro-success-bg: #173426;
        --pro-success-border: #3d7254;
        --pro-danger-bg: #3b1e28;
        --pro-danger-border: #80505e;
        --pro-warning-bg: #352b17;
        --pro-warning-border: #79673b;

        --pro-mobile-border-strong: #846493;
        --pro-shadow: 0 5px 20px rgba(0, 0, 0, .2);

        color-scheme: dark;
    }
}

/* ==========================================================================
   Base
   ========================================================================== */

:where(.livigo-pro, .livigo-pro-mobile, .woniva-pro-mobile) *,
:where(.livigo-pro, .livigo-pro-mobile, .woniva-pro-mobile) *::before,
:where(.livigo-pro, .livigo-pro-mobile, .woniva-pro-mobile) *::after {
    box-sizing: border-box;
}

:where(.livigo-pro, .livigo-pro-mobile, .woniva-pro-mobile) img {
    max-width: 100%;
}

:where(.livigo-pro, .livigo-pro-mobile, .woniva-pro-mobile)
:where(button, input, select, textarea) {
    font: inherit;
}

:where(.livigo-pro, .livigo-pro-mobile, .woniva-pro-mobile)
:where(a, button) {
    -webkit-tap-highlight-color: transparent;
}

:where(.livigo-pro, .livigo-pro-mobile, .woniva-pro-mobile)
:where(a, button, input, select, textarea):focus-visible {
    outline: 3px solid var(--pro-accent-readable);
    outline-offset: 4px;
}

.pro-shell-body,
.pro-shell {
    min-height: 100vh;
}

.pro-shell__main {
    min-height: calc(100vh - 78px);
}

/* ==========================================================================
   Gateway header
   ========================================================================== */

.pro-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, .25);
    background: var(--pro-purple);
    color: #ffffff;
}

.pro-header__inner {
    display: flex;
    align-items: center;
    gap: 28px;
    width: min(calc(100% - 32px), 1240px);
    min-height: 78px;
    margin: auto;
}

.pro-header__brand {
    flex: 0 0 auto;
}

.pro-header__brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
}

.pro-header__logo {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    color: var(--pro-gold);
}

.pro-header__logo svg {
    display: block;
    width: 100%;
    height: 100%;
}

.pro-header__brand-text {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
}

.pro-header__brand-name {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -.02em;
}

.pro-header__brand-pro {
    color: var(--pro-gold);
    font-size: .9rem;
    font-weight: 800;
}

.pro-header__workspace {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-right: auto;
}

.pro-header__workspace-label,
.pro-header__profile-role {
    color: #f0e3f7;
    font-size: .8rem;
    font-weight: 600;
}

.pro-header__workspace-label {
    text-transform: uppercase;
    letter-spacing: .08em;
}

.pro-header__workspace-name {
    color: #ffffff;
    font-size: 1rem;
    font-weight: 750;
}

.pro-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pro-header__switch,
.pro-header__notifications,
.pro-header__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    background: rgba(255, 255, 255, .12);
    color: #ffffff;
    text-decoration: none;
}

.pro-header__switch {
    min-height: 44px;
    padding: 0 14px;
    gap: 8px;
}

.pro-header__switch span {
    font-size: .9rem;
    font-weight: 750;
}

.pro-header__switch svg {
    width: 20px;
    height: 20px;
}

.pro-header__notifications,
.pro-header__avatar {
    width: 44px;
    height: 44px;
}

.pro-header__notifications svg,
.pro-header__avatar svg {
    width: 24px;
    height: 24px;
}

.pro-header__profile {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    text-decoration: none;
}

.pro-header__profile-copy {
    display: flex;
    flex-direction: column;
}

.pro-header__profile-name {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .95rem;
    font-weight: 750;
}

/* ==========================================================================
   Gateway / access pages
   ========================================================================== */

.pro-access,
.pro-access-state {
    padding: 40px 0 72px;
}

.pro-access__inner {
    width: min(calc(100% - 32px), 1120px);
    margin: auto;
}

.pro-access-state__inner {
    width: min(calc(100% - 32px), 760px);
    margin: auto;
}

.pro-access__hero {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    padding: 34px;
    border-radius: var(--pro-radius-lg);
    background: linear-gradient(135deg, #420064, #7400b5);
    color: #ffffff;
    box-shadow: var(--pro-shadow);
}

.pro-access__hero-copy {
    max-width: 720px;
}

.pro-access__eyebrow,
.pro-access__section-eyebrow,
.pro-access__entry-label,
.pro-access-state__eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--pro-accent-readable);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.pro-access__hero .pro-access__eyebrow {
    color: var(--pro-gold);
}

.pro-access__title {
    margin: 0;
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.12;
    letter-spacing: -.04em;
}

.pro-access__intro,
.pro-access-state__intro {
    margin: 18px 0 0;
    font-weight: 750;
}

.pro-access__description {
    max-width: 640px;
    margin: 8px 0 0;
    color: #f3e9fa;
    line-height: 1.65;
}

.pro-access__status {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 201, 40, .6);
    border-radius: 999px;
    background: rgba(255, 201, 40, .12);
    color: var(--pro-gold);
    font-size: .85rem;
    font-weight: 800;
}

.pro-access__status-dot,
.pro-workspace-card__status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: currentColor;
}

.pro-access__message {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid var(--pro-border);
    border-radius: 12px;
    font-size: .95rem;
    font-weight: 600;
}

.pro-access__message--success {
    border-color: var(--pro-success-border);
    background: var(--pro-success-bg);
    color: var(--pro-success);
}

.pro-access__message--error {
    border-color: var(--pro-danger-border);
    background: var(--pro-danger-bg);
    color: var(--pro-danger);
}

.pro-access__entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 24px;
    padding: 28px;
    border: 1px solid var(--pro-border);
    border-radius: 22px;
    background: var(--pro-surface);
    box-shadow: var(--pro-shadow);
}

.pro-access__entry-copy {
    max-width: 620px;
}

.pro-access__entry-title,
.pro-access__section-title,
.pro-workspace-card__title {
    margin: 0;
    color: var(--pro-text);
    letter-spacing: -.03em;
}

.pro-access__entry-title {
    font-size: 1.6rem;
}

.pro-access__entry-description,
.pro-access__section-description,
.pro-workspace-card__description,
.pro-access-state__text {
    margin: 8px 0 0;
    color: var(--pro-text-soft);
    font-weight: 500;
    line-height: 1.65;
}

.pro-access__entry-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pro-access__open,
.pro-access__install,
.pro-workspace-card__action,
.pro-access-state__primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 18px;
    border: 0;
    border-radius: 14px;
    font: inherit;
    font-size: .95rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.pro-access__open,
.pro-access-state__primary {
    background: var(--pro-gold);
    color: var(--pro-deep);
}

.pro-access__install,
.pro-workspace-card__action {
    background: var(--pro-purple);
    color: #ffffff;
}

.pro-access__open svg,
.pro-access__install svg,
.pro-workspace-card__action svg {
    width: 20px;
    height: 20px;
}

.pro-access__workspaces {
    margin-top: 40px;
}

.pro-access__section-heading {
    max-width: 700px;
}

.pro-access__section-title {
    font-size: clamp(1.55rem, 3vw, 2.15rem);
}

.pro-access__workspace-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.pro-workspace-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--pro-border);
    border-radius: 22px;
    background: var(--pro-surface);
    box-shadow: var(--pro-shadow);
}

.pro-workspace-card__icon,
.pro-access__workspace-rule-icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 14px;
    background: var(--pro-soft);
    color: var(--pro-accent-readable);
}

.pro-workspace-card__icon {
    width: 48px;
    height: 48px;
}

.pro-workspace-card__icon svg {
    width: 28px;
    height: 28px;
}

.pro-workspace-card__body {
    margin-top: 22px;
}

.pro-workspace-card__brand {
    display: block;
    color: var(--pro-text-soft);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.pro-workspace-card__title {
    margin-top: 5px;
    font-size: 1.45rem;
}

.pro-workspace-card__identity {
    margin: 10px 0 0;
    color: var(--pro-accent-readable);
    font-size: .95rem;
    font-weight: 750;
}

.pro-workspace-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: auto;
    padding-top: 24px;
}

.pro-workspace-card__status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--pro-success);
    font-size: .85rem;
    font-weight: 750;
}

.pro-access__workspace-rule {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 22px;
    padding: 20px;
    border: 1px solid var(--pro-border);
    border-radius: 22px;
    background: var(--pro-soft);
}

.pro-access__workspace-rule-icon {
    width: 38px;
    height: 38px;
}

.pro-access__workspace-rule-icon svg {
    width: 24px;
    height: 24px;
}

.pro-access__workspace-rule-copy strong {
    display: block;
    color: var(--pro-text);
    font-size: 1rem;
}

.pro-access__workspace-rule-copy p {
    margin: 5px 0 0;
    color: var(--pro-text-soft);
    line-height: 1.6;
}

.pro-access__footer {
    margin-top: 32px;
    text-align: center;
}

.pro-access__account-link {
    color: var(--pro-accent-readable);
    font-size: .95rem;
    font-weight: 750;
    text-decoration: none;
}

.pro-access__account-link:hover {
    text-decoration: underline;
}

.pro-access-state__brand {
    display: inline-flex;
    align-items: baseline;
    gap: 7px;
    margin-bottom: 22px;
    font-size: 1.15rem;
    font-weight: 800;
}

.pro-access-state__brand-livigo {
    color: var(--pro-accent-readable);
}

.pro-access-state__brand-pro {
    color: var(--pro-warning);
}

.pro-access-state__content {
    padding: 32px;
    border: 1px solid var(--pro-border);
    border-radius: 26px;
    background: var(--pro-surface);
    box-shadow: var(--pro-shadow);
}

.pro-access-state__title {
    margin: 0;
    color: var(--pro-text);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
    letter-spacing: -.035em;
}

.pro-access-state__flow {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.pro-access-state__step {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border-radius: 12px;
    background: var(--pro-soft);
}

.pro-access-state__step-number {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--pro-purple);
    color: #ffffff;
    font-size: .85rem;
    font-weight: 800;
}

.pro-access-state__step strong {
    display: block;
    font-size: .95rem;
}

.pro-access-state__step span:not(.pro-access-state__step-number) {
    display: block;
    margin-top: 3px;
    color: var(--pro-text-soft);
    font-size: .9rem;
    line-height: 1.55;
}

.pro-access-state__actions {
    margin-top: 24px;
}

/* ==========================================================================
   Mobile shell
   ========================================================================== */

body:is(.livigo-pro-mobile, .woniva-pro-mobile) {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--pro-bg);
    color: var(--pro-text);
}

body:is(.livigo-pro-mobile, .woniva-pro-mobile) .pro-mobile-app {
    position: relative;
    width: 100%;
    max-width: var(--pro-mobile-shell-max);
    min-height: 100vh;
    min-height: 100dvh;
    margin: auto;
    border: 1px solid var(--pro-border);
    background: var(--pro-bg);
    color: var(--pro-text);
}

body:is(.livigo-pro-mobile, .woniva-pro-mobile) .pro-mobile-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: var(--pro-mobile-header-height);
    padding:
        calc(14px + env(safe-area-inset-top, 0px))
        18px
        14px;
    border-bottom: 1px solid rgba(255, 255, 255, .25);
    background: var(--pro-purple);
    color: #ffffff;
}

.pro-mobile-header__brand {
    min-width: 0;
}

.pro-mobile-header__actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
}

.pro-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    color: #ffffff;
    text-decoration: none;
}

.pro-mobile-brand__wordmark,
.pro-mobile-brand__logo,
.woniva-pro-wordmark {
    display: block;
    width: clamp(108px, 31vw, 152px);
    height: 38px;
    object-fit: contain;
    object-position: left center;
    opacity: 1;
    filter: none;
}

.pro-mobile-brand__mark {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 12px;
    background: transparent;
}

.pro-mobile-brand__mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pro-mobile-brand__text {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.pro-mobile-brand__livigo {
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.pro-mobile-brand__pro {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 8px;
    border: 1px solid rgba(255, 201, 40, .6);
    border-radius: 7px;
    background: rgba(255, 201, 40, .12);
    color: var(--pro-gold);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .08em;
}

.pro-mobile-icon-button,
.pro-mobile-profile-button {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: #ffffff;
    text-decoration: none;
}

.pro-mobile-icon-button svg {
    display: block;
    width: 24px;
    height: 24px;
}

.pro-mobile-icon-button__badge {
    position: absolute;
    top: -3px;
    right: -3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 4px;
    border: 2px solid var(--pro-purple);
    border-radius: 999px;
    background: var(--pro-gold);
    color: var(--pro-deep);
    font-size: 11px;
    font-weight: 900;
}

.pro-mobile-profile-button__avatar {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    overflow: hidden;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
}

.pro-mobile-profile-button__avatar.has-photo {
    padding: 0;
}

.pro-mobile-profile-button__photo {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    object-position: center;
}

body:is(.livigo-pro-mobile, .woniva-pro-mobile)
.pro-mobile-header :is(a, button):focus-visible {
    outline-color: var(--pro-gold);
}

/* ==========================================================================
   Current workspace
   ========================================================================== */

body:is(.livigo-pro-mobile, .woniva-pro-mobile) .pro-mobile-workspace {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 16px 16px 0;
    padding: 14px;
    border: 1px solid var(--pro-border);
    border-radius: 20px;
    background: var(--pro-surface);
    color: var(--pro-text);
    box-shadow: var(--pro-shadow);
}

.pro-mobile-workspace__identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

body:is(.livigo-pro-mobile, .woniva-pro-mobile)
.pro-mobile-workspace__icon {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--pro-border);
    border-radius: 14px;
    background: var(--pro-soft);
    color: var(--pro-accent-readable);
}

.pro-mobile-workspace__icon svg {
    width: 25px;
    height: 25px;
}

.pro-mobile-workspace__copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

body:is(.livigo-pro-mobile, .woniva-pro-mobile)
.pro-mobile-workspace__name {
    display: block;
    color: var(--pro-text);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

body:is(.livigo-pro-mobile, .woniva-pro-mobile)
.pro-mobile-workspace__subtitle {
    display: block;
    color: var(--pro-muted);
    font-size: 14px;
    font-weight: 550;
    line-height: 1.5;
}

body:is(.livigo-pro-mobile, .woniva-pro-mobile)
.pro-mobile-workspace__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 32px;
    padding: 6px 10px;
    border: 1px solid var(--pro-border);
    border-radius: 999px;
    background: var(--pro-soft);
    color: var(--pro-accent-readable);
    font-size: 12px;
    font-weight: 800;
}

body:is(.livigo-pro-mobile, .woniva-pro-mobile) .pro-mobile-main {
    width: 100%;
    padding-bottom: 0;
    background: var(--pro-bg);
    color: var(--pro-text);
}

body:is(.livigo-pro-mobile, .woniva-pro-mobile) .pro-mobile-content {
    width: 100%;
    padding:
        24px
        16px
        calc(
            var(--pro-mobile-dock-height)
            + 32px
            + env(safe-area-inset-bottom, 0px)
        );
}

/* ==========================================================================
   Headings
   ========================================================================== */

.pro-dashboard-welcome,
.pro-inventory-head,
.pro-bookings-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
}

.pro-dashboard-welcome__copy,
.pro-inventory-head__copy,
.pro-bookings-head__copy,
.pro-profile-head__copy,
.pro-residence-view-head__copy {
    min-width: 0;
}

body:is(.livigo-pro-mobile, .woniva-pro-mobile)
.pro-dashboard-welcome__eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--pro-muted);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.5;
}

body:is(.livigo-pro-mobile, .woniva-pro-mobile) :is(
    .pro-dashboard-welcome__title,
    .pro-inventory-head__title,
    .pro-bookings-head__title,
    .pro-profile-head__title,
    .pro-residence-view-head__title
) {
    margin: 3px 0 0;
    color: var(--pro-text);
    font-size: clamp(26px, 7vw, 32px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.03em;
    overflow-wrap: anywhere;
}

body:is(.livigo-pro-mobile, .woniva-pro-mobile) :is(
    .pro-dashboard-welcome__text,
    .pro-inventory-head__text,
    .pro-bookings-head__text,
    .pro-profile-head__text,
    .pro-residence-view-head__text
) {
    margin: 9px 0 0;
    color: var(--pro-muted);
    font-size: 15px;
    font-weight: 550;
    line-height: 1.65;
}

.pro-inventory-head__action {
    flex: 0 0 auto;
    margin-top: 22px;
}

.pro-dashboard-welcome__status {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 7px;
    margin-top: 6px;
    padding: 8px 11px;
    border: 1px solid var(--pro-border);
    border-radius: 999px;
    background: var(--pro-surface);
    color: var(--pro-text-soft);
    font-size: 13px;
    font-weight: 750;
}

.pro-status-dot {
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--pro-muted);
}

.pro-status-dot.is-active {
    background: var(--pro-success);
}

.pro-status-dot.is-warning {
    background: var(--pro-warning);
}

.pro-dashboard-section {
    margin-top: 26px;
}

.pro-dashboard-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

body:is(.livigo-pro-mobile, .woniva-pro-mobile)
.pro-dashboard-section__eyebrow {
    display: block;
    margin-bottom: 5px;
    color: var(--pro-accent-readable);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: .08em;
    text-transform: uppercase;
}

body:is(.livigo-pro-mobile, .woniva-pro-mobile)
.pro-dashboard-section__head h2 {
    margin: 0;
    color: var(--pro-text);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.02em;
}

/* ==========================================================================
   Shared cards
   ========================================================================== */

body:is(.livigo-pro-mobile, .woniva-pro-mobile) :is(
    .pro-metric,
    .pro-task,
    .pro-empty,
    .pro-action,
    .pro-settings-card,
    .pro-settings-detail,
    .pro-settings-menu,
    .pro-residence-view-summary__item,
    .pro-residence-detail-item,
    .pro-residence-detail-message,
    .pro-residence-view-notice,
    .pro-residence-feature-group,
    .pro-bookings-empty,
    .property-booking-card,
    .booking-card
) {
    min-width: 0;
    border: 1px solid var(--pro-border);
    border-radius: 22px;
    background: var(--pro-surface);
    color: var(--pro-text);
    box-shadow: var(--pro-shadow);
}

.pro-metrics,
.pro-actions,
.pro-actions--wide,
.pro-settings-details,
.pro-residence-view-summary,
.pro-residence-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pro-metric {
    display: flex;
    flex-direction: column;
    padding: 18px;
    text-decoration: none;
}

body:is(.livigo-pro-mobile, .woniva-pro-mobile) .pro-metric__label {
    color: var(--pro-text-soft);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.5;
}

.pro-metric__value {
    display: block;
    margin-top: 10px;
    color: var(--pro-text);
    font-size: 34px;
    font-weight: 800;
    line-height: 1.15;
}

body:is(.livigo-pro-mobile, .woniva-pro-mobile) .pro-metric__detail {
    display: block;
    margin-top: 9px;
    color: var(--pro-muted);
    font-size: 13px;
    font-weight: 550;
    font-style: normal;
    line-height: 1.55;
}

/* ==========================================================================
   Notices / messages
   ========================================================================== */

.pro-gate,
.pro-settings-notice {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--pro-warning-border);
    border-radius: 22px;
    background: var(--pro-warning-bg);
    color: var(--pro-text);
}

.pro-gate__eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--pro-warning);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.pro-gate h2,
.pro-settings-notice strong {
    margin: 0;
    color: var(--pro-text);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.4;
}

.pro-gate p,
.pro-settings-notice p {
    margin: 7px 0 0;
    color: var(--pro-text-soft);
    font-size: 15px;
    font-weight: 550;
    line-height: 1.65;
}

.pro-flash {
    margin-bottom: 14px;
    padding: 14px 16px;
    border: 1px solid var(--pro-border);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
}

.pro-flash--ok {
    border-color: var(--pro-success-border);
    background: var(--pro-success-bg);
    color: var(--pro-success);
}

.pro-flash--err {
    border-color: var(--pro-danger-border);
    background: var(--pro-danger-bg);
    color: var(--pro-danger);
}

/* ==========================================================================
   Buttons / chips
   ========================================================================== */

.pro-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid var(--pro-border);
    border-radius: 14px;
    background: var(--pro-surface);
    color: var(--pro-accent-readable);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.pro-btn--lemon {
    border-color: var(--pro-gold);
    background: var(--pro-gold);
    color: var(--pro-deep);
}

.pro-btn--lemon:active {
    background: var(--pro-lime-strong);
}

.pro-btn[disabled] {
    border-color: var(--pro-border);
    background: var(--pro-soft);
    color: var(--pro-muted);
    cursor: not-allowed;
}

.pro-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 30px;
    padding: 6px 10px;
    border: 1px solid var(--pro-border);
    border-radius: 999px;
    background: var(--pro-soft);
    color: var(--pro-accent-readable);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
}

.pro-chip--ok {
    border-color: var(--pro-success-border);
    background: var(--pro-success-bg);
    color: var(--pro-success);
}

.pro-chip--off {
    border-color: var(--pro-border);
    background: var(--pro-soft);
    color: var(--pro-muted);
}

.pro-mini,
.pro-settings-link,
.pro-residence-view-action,
.pro-bookings-pagination__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 13px;
    border: 1px solid var(--pro-border);
    border-radius: 12px;
    background: var(--pro-surface);
    color: var(--pro-accent-readable);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    text-decoration: none;
}

.pro-mini--on {
    background: var(--pro-soft);
    color: var(--pro-accent-readable);
}

/* ==========================================================================
   Queue / quick actions
   ========================================================================== */

.pro-queue {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pro-task {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 82px;
    padding: 16px;
    text-decoration: none;
}

.pro-task__body,
.pro-action__copy,
.pro-settings-menu__copy {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

body:is(.livigo-pro-mobile, .woniva-pro-mobile) :is(
    .pro-task__body,
    .pro-action__copy,
    .pro-settings-menu__copy
) strong {
    color: var(--pro-text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

body:is(.livigo-pro-mobile, .woniva-pro-mobile) :is(
    .pro-task__body,
    .pro-action__copy,
    .pro-settings-menu__copy
) small {
    color: var(--pro-muted);
    font-size: 14px;
    font-weight: 550;
    line-height: 1.6;
}

.pro-task--block {
    border-left: 4px solid var(--pro-danger);
}

.pro-task--wait {
    border-left: 4px solid var(--pro-warning);
}

.pro-task--agenda,
.pro-task--new,
.pro-task--media {
    border-left: 4px solid var(--pro-accent-readable);
}

.pro-action {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 112px;
    padding: 16px;
    text-decoration: none;
}

.pro-action__ico,
.pro-settings-menu__icon,
.pro-bookings-empty__icon {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--pro-border);
    border-radius: 14px;
    background: var(--pro-soft);
    color: var(--pro-accent-readable);
    font-size: 22px;
    font-weight: 800;
}

.pro-empty {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px;
}

.pro-empty__icon {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--pro-soft);
    color: var(--pro-accent-readable);
    font-size: 20px;
    font-weight: 800;
}

.pro-empty > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

.pro-empty strong {
    color: var(--pro-text);
    font-size: 16px;
    font-weight: 800;
}

body:is(.livigo-pro-mobile, .woniva-pro-mobile)
.pro-empty > div > span {
    color: var(--pro-muted);
    font-size: 14px;
    font-weight: 550;
    line-height: 1.6;
}

/* ==========================================================================
   Finance
   ========================================================================== */

.pro-money {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 26px;
    padding: 20px;
    border: 1px solid var(--pro-warning-border);
    border-radius: 26px;
    background: var(--pro-warning-bg);
}

.pro-money__copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.pro-money__label,
.pro-money__detail {
    color: var(--pro-text-soft);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}

.pro-money__value {
    margin: 6px 0;
    color: var(--pro-text);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
}

/* ==========================================================================
   Bottom dock
   Full-width positioning; no inherited translate.
   ========================================================================== */

body:is(.livigo-pro-mobile, .woniva-pro-mobile) .pro-mobile-dock {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 120;
    width: 100%;
    max-width: var(--pro-mobile-shell-max);
    margin: 0 auto;
    transform: none;
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    border-top: 1px solid var(--pro-border);
    background: var(--pro-surface);
    color: var(--pro-text-soft);
    box-shadow: 0 -5px 20px rgba(40, 14, 63, .08);
    font-family: inherit;
}

body:is(.livigo-pro-mobile, .woniva-pro-mobile)
.pro-mobile-dock__inner {
    display: flex;
    align-items: stretch;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    gap: 3px;
    width: 100%;
    min-height: var(--pro-mobile-dock-height);
    padding: 6px 7px;
}

body:is(.livigo-pro-mobile, .woniva-pro-mobile)
.pro-mobile-dock__item {
    position: relative;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    min-height: 72px;
    padding: 9px 3px 7px;
    border-radius: 12px;
    color: var(--pro-text-soft);
    text-decoration: none;
}

body:is(.livigo-pro-mobile, .woniva-pro-mobile)
.pro-mobile-dock__item.is-active {
    background: var(--pro-soft);
    color: var(--pro-accent-readable);
}

.pro-mobile-dock__item.is-active::before {
    content: "";
    position: absolute;
    top: 0;
    width: 26px;
    height: 4px;
    border-radius: 999px;
    background: var(--pro-gold);
}

.pro-mobile-dock__icon {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
}

body:is(.livigo-pro-mobile, .woniva-pro-mobile)
.pro-mobile-dock__icon svg {
    display: block;
    width: 27px;
    height: 27px;
}

.pro-mobile-dock__icon svg [stroke],
.pro-mobile-dock__icon svg[stroke] {
    stroke-width: 2.1;
}

body:is(.livigo-pro-mobile, .woniva-pro-mobile)
.pro-mobile-dock__label {
    display: block;
    max-width: 100%;
    overflow: visible;
    color: inherit;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    overflow-wrap: anywhere;
    text-overflow: clip;
}

/* ==========================================================================
   Residence inventory
   ========================================================================== */

.pro-stock {
    display: grid;
    gap: 16px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pro-stock__item {
    min-width: 0;
    margin: 0;
    padding: 0;
}

.pro-unit {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    min-height: 180px;
    overflow: hidden;
    border: 1px solid var(--pro-border);
    border-radius: 22px;
    background: var(--pro-surface);
    box-shadow: var(--pro-shadow);
}

.pro-unit__media {
    position: relative;
    display: block;
    min-height: 180px;
    overflow: hidden;
    background: var(--pro-soft);
    text-decoration: none;
}

.pro-unit__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 180px;
    object-fit: cover;
    opacity: 1;
    filter: none;
}

.pro-unit__media--empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    background: var(--pro-soft);
    color: var(--pro-text-soft);
    font-size: 14px;
    font-weight: 750;
    line-height: 1.6;
    text-align: center;
}

.pro-unit__body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 16px;
}

.pro-unit__heading {
    min-width: 0;
}

.pro-unit__body h3 {
    margin: 0;
    color: var(--pro-text);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.4;
}

.pro-unit__body h3 a {
    display: block;
    color: var(--pro-text);
    text-decoration: none;
    overflow-wrap: anywhere;
}

.pro-unit__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.pro-unit__meta {
    margin: 10px 0 0;
    color: var(--pro-muted);
    font-size: 14px;
    font-weight: 550;
    line-height: 1.6;
}

.pro-unit__hint {
    margin: 7px 0 0;
    color: var(--pro-warning);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.6;
}

.pro-unit__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
    padding-top: 12px;
}

/* ==========================================================================
   Bookings
   ========================================================================== */

.pro-bookings-head__workspace {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 4px;
    margin-top: 22px;
    padding: 10px 12px;
    border: 1px solid var(--pro-border);
    border-radius: 14px;
    background: var(--pro-surface);
}

.pro-bookings-head__workspace span {
    color: var(--pro-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.pro-bookings-head__workspace strong {
    max-width: 140px;
    color: var(--pro-text);
    font-size: 14px;
    overflow-wrap: anywhere;
}

.pro-bookings-count {
    color: var(--pro-muted);
    font-size: 14px;
    font-weight: 750;
}

.pro-bookings-toolbar {
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
}

.pro-bookings-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 3px 0 7px;
    scrollbar-width: none;
}

.pro-bookings-filters::-webkit-scrollbar {
    display: none;
}

.pro-bookings-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid var(--pro-border);
    border-radius: 999px;
    background: var(--pro-surface);
    color: var(--pro-text-soft);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.pro-bookings-filter.is-active {
    border-color: var(--pro-purple);
    background: var(--pro-purple);
    color: #ffffff;
}

.pro-bookings-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.pro-bookings-search__field {
    position: relative;
    min-width: 0;
}

.pro-bookings-search__field svg {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    color: var(--pro-muted);
    pointer-events: none;
}

body:is(.livigo-pro-mobile, .woniva-pro-mobile)
.pro-bookings-search__field input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px 12px 44px;
    border: 1px solid var(--pro-border);
    border-radius: 14px;
    background: var(--pro-surface);
    color: var(--pro-text);
    font: inherit;
    font-size: 16px;
}

.pro-bookings-clear {
    justify-self: start;
    padding: 8px 0;
    color: var(--pro-accent-readable);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.pro-bookings-list {
    display: grid;
    gap: 14px;
    margin-top: 4px;
}

.property-booking-card,
.booking-card {
    overflow: hidden;
}

.pro-bookings-list svg,
.property-booking-card svg,
.booking-card svg {
    max-width: 26px;
    max-height: 26px;
}

.pro-bookings-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 20px;
}

.pro-bookings-pagination__button.is-disabled {
    background: var(--pro-soft);
    color: var(--pro-muted);
    cursor: default;
}

.pro-bookings-pagination__status {
    color: var(--pro-muted);
    font-size: 13px;
    font-weight: 600;
}

.pro-bookings-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
}

.pro-bookings-empty__icon svg {
    width: 25px;
    height: 25px;
}

.pro-bookings-empty h3 {
    margin: 14px 0 0;
    color: var(--pro-text);
    font-size: 19px;
    line-height: 1.4;
}

.pro-bookings-empty p {
    margin: 8px 0 0;
    color: var(--pro-muted);
    font-size: 15px;
    font-weight: 550;
    line-height: 1.65;
}

.pro-bookings-empty .pro-btn {
    margin-top: 16px;
}

/* ==========================================================================
   Profile / settings
   ========================================================================== */

.pro-profile-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
}

.pro-profile-head__avatar {
    display: grid;
    place-items: center;
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    border: 1px solid var(--pro-border);
    border-radius: 18px;
    background: var(--pro-soft);
    color: var(--pro-accent-readable);
    font-size: 24px;
    font-weight: 800;
}

.pro-settings-card {
    padding: 20px;
}

.pro-settings-form {
    display: grid;
    gap: 18px;
}

.pro-settings-field {
    display: grid;
    gap: 8px;
}

.pro-settings-field__label {
    color: var(--pro-text);
    font-size: 15px;
    font-weight: 800;
}

.pro-settings-field input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--pro-border);
    border-radius: 14px;
    background: var(--pro-surface);
    color: var(--pro-text);
    font: inherit;
    font-size: 16px;
}

.pro-settings-field input[readonly] {
    background: var(--pro-soft);
    color: var(--pro-text-soft);
}

.pro-settings-field small {
    color: var(--pro-muted);
    font-size: 14px;
    font-weight: 550;
    line-height: 1.6;
}

.pro-settings-form .pro-btn {
    justify-self: start;
    min-width: 142px;
}

.pro-settings-detail {
    padding: 16px;
}

.pro-settings-detail span,
.pro-residence-view-summary__item span,
.pro-residence-detail-item span,
.pro-residence-detail-message > span {
    display: block;
    color: var(--pro-muted);
    font-size: 13px;
    font-weight: 750;
    line-height: 1.5;
}

.pro-settings-detail strong,
.pro-residence-view-summary__item strong,
.pro-residence-detail-item strong,
.pro-residence-detail-message strong {
    display: block;
    margin-top: 7px;
    color: var(--pro-text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.pro-settings-detail strong.is-positive {
    color: var(--pro-success);
}

.pro-settings-detail strong.is-warning {
    color: var(--pro-warning);
}

.pro-settings-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
}

.pro-settings-menu-list {
    display: grid;
    gap: 10px;
}

.pro-settings-menu {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    min-height: 80px;
    padding: 16px;
    text-decoration: none;
}

.pro-settings-menu__arrow {
    color: var(--pro-text-soft);
    font-size: 26px;
    line-height: 1;
}

/* ==========================================================================
   Residence details
   ========================================================================== */

.pro-residence-view-head {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    margin-bottom: 8px;
}

.pro-residence-view-head__back {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--pro-border);
    border-radius: 14px;
    background: var(--pro-surface);
    color: var(--pro-accent-readable);
    font-size: 24px;
    font-weight: 750;
    text-decoration: none;
}

.pro-residence-view-summary__item,
.pro-residence-detail-item,
.pro-residence-detail-message {
    padding: 16px;
}

.pro-residence-view-actions,
.pro-residence-view-bottom,
.pro-residence-view-section-action {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.pro-residence-detail-message,
.pro-residence-view-notice {
    margin-top: 12px;
}

.pro-residence-detail-message p {
    margin: 0;
    color: var(--pro-text-soft);
    font-size: 15px;
    font-weight: 550;
    line-height: 1.65;
}

.pro-residence-view-notice {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
}

.pro-residence-view-notice strong {
    color: var(--pro-text);
    font-size: 15px;
    line-height: 1.5;
}

.pro-residence-view-notice span {
    color: var(--pro-text-soft);
    font-size: 14px;
    font-weight: 550;
    line-height: 1.65;
}

.pro-residence-view-notice.is-positive {
    border-color: var(--pro-success-border);
    background: var(--pro-success-bg);
}

.pro-residence-view-notice.is-positive strong {
    color: var(--pro-success);
}

.pro-residence-view-notice.is-warning {
    border-color: var(--pro-warning-border);
    background: var(--pro-warning-bg);
}

.pro-residence-view-notice.is-warning strong {
    color: var(--pro-warning);
}

.pro-residence-feature-groups {
    display: grid;
    gap: 16px;
}

.pro-residence-feature-group {
    padding: 18px;
}

.pro-residence-feature-group h3 {
    margin: 0 0 12px;
    color: var(--pro-text);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.5;
}

.pro-residence-feature-list {
    display: grid;
    gap: 10px;
}

.pro-residence-feature {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--pro-border);
    border-radius: 14px;
    background: var(--pro-soft);
}

.pro-residence-feature strong {
    color: var(--pro-text);
    font-size: 15px;
    line-height: 1.5;
}

.pro-residence-feature small {
    color: var(--pro-muted);
    font-size: 14px;
    font-weight: 550;
    line-height: 1.6;
}

.pro-residence-feature > span {
    margin-top: 3px;
    color: var(--pro-accent-readable);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.5;
}

.pro-residence-view-head svg,
.pro-residence-view-summary svg,
.pro-residence-detail-grid svg,
.pro-residence-feature-groups svg {
    max-width: 26px;
    max-height: 26px;
}

.pro-residence-view-bottom {
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid var(--pro-border);
}

/* ==========================================================================
   Shared form readability
   Keep chained :not() selectors together.
   ========================================================================== */

body:is(.livigo-pro-mobile, .woniva-pro-mobile)
.pro-mobile-content input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),
body:is(.livigo-pro-mobile, .woniva-pro-mobile)
.pro-mobile-content select,
body:is(.livigo-pro-mobile, .woniva-pro-mobile)
.pro-mobile-content textarea {
    max-width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid var(--pro-border);
    border-radius: 14px;
    background: var(--pro-surface);
    color: var(--pro-text);
    font: inherit;
    font-size: 16px;
    font-weight: 550;
    line-height: 1.6;
}

body:is(.livigo-pro-mobile, .woniva-pro-mobile)
.pro-mobile-content .pro-bookings-search__field input {
    padding-left: 44px;
}

.pro-mobile-content textarea {
    min-height: 120px;
    resize: vertical;
}

.pro-mobile-content select option {
    background: var(--pro-surface);
    color: var(--pro-text);
}

.pro-mobile-content input::placeholder,
.pro-mobile-content textarea::placeholder {
    color: var(--pro-muted);
    opacity: 1;
}

.pro-mobile-content input[type="checkbox"],
.pro-mobile-content input[type="radio"] {
    width: 22px;
    height: 22px;
    accent-color: var(--pro-purple);
    vertical-align: middle;
}

.pro-mobile-content :where(input, select, textarea):disabled {
    background: var(--pro-soft);
    color: var(--pro-muted);
    cursor: not-allowed;
}

/* ==========================================================================
   Dashboard compatibility
   Explicit component colors prevent faint inherited text.
   ========================================================================== */

body:is(.livigo-pro-mobile, .woniva-pro-mobile)
.pro-property-dashboard {
    --dashboard-bg: var(--pro-bg);
    --dashboard-surface: var(--pro-surface);
    --dashboard-text: var(--pro-text);
    --dashboard-muted: var(--pro-muted);
    --dashboard-border: var(--pro-border);
    --dashboard-accent: var(--pro-accent-readable);

    color: var(--pro-text);
}

body:is(.livigo-pro-mobile, .woniva-pro-mobile)
.pro-property-dashboard :is(
    .pro-dashboard-welcome__eyebrow,
    .pro-dashboard-welcome__text,
    .pro-metric__label,
    .pro-metric__detail,
    .pro-task__body small,
    .pro-action__copy small,
    .pro-money__detail,
    .pro-unit__meta
) {
    color: var(--pro-muted);
    opacity: 1;
}

body:is(.livigo-pro-mobile, .woniva-pro-mobile)
.pro-property-dashboard .pro-empty > div > span {
    color: var(--pro-muted);
    opacity: 1;
}

.pro-property-preview__media img,
.pro-properties-carousel img {
    opacity: 1;
    filter: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 900px) {
    .pro-header__inner {
        gap: 16px;
    }

    .pro-header__workspace,
    .pro-header__switch span,
    .pro-header__profile-copy {
        display: none;
    }

    .pro-access__hero {
        flex-direction: column;
    }

    .pro-access__status {
        align-self: flex-start;
    }

    .pro-access__workspace-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .pro-header__inner {
        min-height: 70px;
    }

    .pro-header__switch {
        width: 44px;
        padding: 0;
    }

    .pro-access,
    .pro-access-state {
        padding: 24px 0 56px;
    }

    .pro-access__hero,
    .pro-access-state__content {
        padding: 24px;
        border-radius: 22px;
    }

    .pro-access__entry {
        flex-direction: column;
        align-items: stretch;
        padding: 22px;
    }

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

    .pro-access__open,
    .pro-access__install,
    .pro-access-state__primary {
        width: 100%;
    }

    .pro-workspace-card {
        padding: 22px;
    }

    .pro-workspace-card__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .pro-workspace-card__action {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .pro-unit {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .pro-unit__body {
        padding: 13px;
    }

    .pro-bookings-head {
        flex-direction: column;
    }

    .pro-bookings-head__workspace {
        margin-top: 4px;
    }

    .pro-bookings-search,
    .pro-settings-details,
    .pro-residence-detail-grid,
    .pro-residence-view-summary {
        grid-template-columns: 1fr;
    }

    .pro-bookings-search .pro-btn,
    .pro-settings-form .pro-btn {
        width: 100%;
    }

    .pro-action {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 370px) {
    body:is(.livigo-pro-mobile, .woniva-pro-mobile)
    .pro-mobile-content {
        padding-left: 13px;
        padding-right: 13px;
    }

    body:is(.livigo-pro-mobile, .woniva-pro-mobile)
    .pro-mobile-workspace {
        margin-left: 13px;
        margin-right: 13px;
    }

    .pro-dashboard-welcome {
        flex-direction: column;
    }

    .pro-dashboard-welcome__status {
        margin-top: 0;
    }

    body:is(.livigo-pro-mobile, .woniva-pro-mobile)
    .pro-mobile-dock__label {
        font-size: 12px;
    }
}

@media (max-width: 340px) {
    .pro-mobile-brand__wordmark,
    .pro-mobile-brand__logo,
    .woniva-pro-wordmark {
        width: 100px;
    }

    .pro-inventory-head {
        flex-direction: column;
    }

    .pro-inventory-head__action {
        width: 100%;
        margin-top: 6px;
    }

    .pro-unit {
        grid-template-columns: 1fr;
    }

    .pro-unit__media,
    .pro-unit__media img {
        height: 190px;
        min-height: 190px;
    }

    .pro-actions,
    .pro-actions--wide {
        grid-template-columns: 1fr;
    }
}

/* Accommodate large text / very narrow viewports. */
@media (max-width: 300px) {
    .pro-metrics {
        grid-template-columns: 1fr;
    }

    .pro-task,
    .pro-money {
        flex-direction: column;
        align-items: flex-start;
    }

    .pro-mobile-workspace {
        flex-wrap: wrap;
    }
}

@media (min-width: 561px) {
    body:is(.livigo-pro-mobile, .woniva-pro-mobile) {
        padding: 18px 0;
    }

    body:is(.livigo-pro-mobile, .woniva-pro-mobile)
    .pro-mobile-app {
        min-height: calc(100dvh - 36px);
        border-radius: 26px;
    }

    body:is(.livigo-pro-mobile, .woniva-pro-mobile)
    .pro-mobile-header {
        border-radius: 26px 26px 0 0;
    }

    body:is(.livigo-pro-mobile, .woniva-pro-mobile)
    .pro-mobile-dock {
        right: 0;
        bottom: 18px;
        left: 0;
        width: calc(100% - 32px);
        max-width: calc(var(--pro-mobile-shell-max) - 2px);
        margin: 0 auto;
        transform: none;
        border-radius: 0 0 26px 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body:is(.livigo-pro-mobile, .woniva-pro-mobile) *,
    body:is(.livigo-pro-mobile, .woniva-pro-mobile) *::before,
    body:is(.livigo-pro-mobile, .woniva-pro-mobile) *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}