/*
 * NALENIO Brand Foundation
 * Public brand: NALENIO
 * Product: NALENIO Estate
 *
 * Internal NovaEstate technical identifiers intentionally remain unchanged.
 */

/* -------------------------------------------------------------------------
   Login
   ------------------------------------------------------------------------- */

.login-body {
    background:
        radial-gradient(circle at top left, rgba(46, 125, 122, .15), transparent 34%),
        linear-gradient(135deg, #f7f9fa 0%, #e9eef1 100%);
}

.login-card .nalenio-login-mark {
    width: 68px;
    height: 68px;
    margin-bottom: 18px;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.login-card .nalenio-login-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.login-card h1 {
    color: #0f2d46;
}

/* -------------------------------------------------------------------------
   Public website
   ------------------------------------------------------------------------- */

.nalenio-site-brand {
    text-decoration: none;
}

.nalenio-site-logo {
    display: block;
    width: 205px;
    max-width: 42vw;
    height: auto;
}

@media (max-width: 640px) {
    .nalenio-site-logo {
        width: 150px;
        max-width: 54vw;
    }
}

/* -------------------------------------------------------------------------
   Application shell
   ------------------------------------------------------------------------- */

.sidebar-v2-brand-mark {
    width: 50px !important;
    height: 50px !important;
    min-width: 50px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 14px !important;
    background: transparent !important;
    box-shadow: none !important;
}

.sidebar-v2-brand-mark img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 14px !important;
}

.sidebar-v2-brand-copy strong {
    color: #ffffff !important;
}

.sidebar-v2-brand-copy span {
    color: rgba(233, 238, 241, .76) !important;
}

html[data-nova-sidebar="compact"] .sidebar-v2-brand-mark {
    width: 52px !important;
    height: 52px !important;
    min-width: 52px !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

html[data-nova-sidebar="compact"] .sidebar-v2-brand-mark img {
    object-fit: contain !important;
}

/* =========================================================================
   NALENIO PUBLIC PALETTE 105.4.63au.2
   Landingpage + Login only
   ========================================================================= */

/* -------------------------------------------------------------------------
   Public landing page
   ------------------------------------------------------------------------- */

.nalenio-public-site {
    --bg: #f6f8f9;
    --surface: #ffffff;

    --primary: #0f2d46;
    --primary-dark: #0a2236;

    --accent: #2e7d7a;

    --text: #172a3a;
    --muted: #6b7c93;

    --border: #dce5e8;
    --soft: rgba(46, 125, 122, .10);

    --shadow:
        0 24px 70px rgba(15, 45, 70, .13);
}

.nalenio-public-site .site-header {
    background: rgba(246, 248, 249, .92);
    border-bottom-color: rgba(220, 229, 232, .92);
}

.nalenio-public-site .eyebrow {
    color: #0f2d46;
    background: rgba(46, 125, 122, .11);
}

.nalenio-public-site .btn-primary {
    background: #0f2d46;
    border-color: #0f2d46;
    color: #ffffff;
    box-shadow:
        0 12px 28px rgba(15, 45, 70, .15);
}

.nalenio-public-site .btn-primary:hover {
    background: #123a59;
    border-color: #123a59;
}

.nalenio-public-site .btn-secondary,
.nalenio-public-site .btn-outline {
    color: #0f2d46;
    border-color: #cbd8dc;
    background: #ffffff;
}

.nalenio-public-site .btn-secondary:hover,
.nalenio-public-site .btn-outline:hover {
    color: #2e7d7a;
    border-color: #2e7d7a;
    background: rgba(46, 125, 122, .05);
}

.nalenio-public-site .preview-header {
    background: #0f2d46;
    color: #ffffff;
}

.nalenio-public-site .preview-header small {
    color: rgba(255, 255, 255, .72);
}

.nalenio-public-site .preview-header strong {
    color: #ffffff;
}

.nalenio-public-site .score {
    background: #2e7d7a;
    color: #ffffff;
}

.nalenio-public-site .ai-box {
    background:
        linear-gradient(
            135deg,
            rgba(46, 125, 122, .08),
            rgba(233, 238, 241, .78)
        );
    border-color: rgba(46, 125, 122, .18);
}

.nalenio-public-site .ai-box span {
    color: #0f2d46;
}

.nalenio-public-site .trust-row span {
    color: #6b7c93;
    background: #ffffff;
    border-color: #dce5e8;
}


/* -------------------------------------------------------------------------
   Login
   ------------------------------------------------------------------------- */

.login-body {
    --color-bg: #f6f8f9;
    --color-surface: #ffffff;

    --color-primary: #0f2d46;
    --color-primary-dark: #0a2236;

    --color-accent: #2e7d7a;

    --color-text: #172a3a;
    --color-muted: #6b7c93;
    --color-border: #dce5e8;

    --color-success: #2e7d7a;

    --shadow-soft:
        0 20px 52px rgba(15, 45, 70, .12);

    background:
        radial-gradient(
            circle at top left,
            rgba(46, 125, 122, .12),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            #f7f9fa 0%,
            #e9eef1 100%
        );
}

.login-card {
    border-color: #dce5e8;
    box-shadow:
        0 20px 52px rgba(15, 45, 70, .12);
}

.login-card h1 {
    color: #0f2d46;
}

.login-card .btn-primary {
    background: #0f2d46;
    border-color: #0f2d46;
    color: #ffffff;
}

.login-card .btn-primary:hover {
    background: #123a59;
    border-color: #123a59;
}

.login-card input:focus {
    border-color: #2e7d7a;
    outline: none;
    box-shadow:
        0 0 0 3px rgba(46, 125, 122, .12);
}

/* Abstand zwischen Login-Button und Passwort-Link */
.login-card form + p {
    margin-top: 15px;
    margin-bottom: 0;
}

.login-card form + p a {
    color: #6b7c93;
}

.login-card form + p a:hover {
    color: #2e7d7a;
}

/* =========================================================================
   NALENIO PUBLIC POLISH 105.4.63au.3
   ========================================================================= */

/* Section labels / badges */
.nalenio-public-site :is(
    .eyebrow,
    .section-kicker,
    .section-heading > span
) {
    background: rgba(46, 125, 122, .10);
    color: #0f2d46;
}

/* Feature number badges */
.nalenio-public-site .feature-card .icon {
    background: rgba(46, 125, 122, .10);
    color: #0f2d46;
}

/* CTA button must remain one line */
.nalenio-public-site .cta-box .btn-primary {
    min-width: 170px;
    white-space: nowrap;
    text-align: center;
    justify-content: center;
}

/* =========================================================================
   NALENIO WORKSPACE PALETTE 105.4.63au.3
   Logged-in application shell only.
   Historical NovaEstate technical selectors intentionally remain unchanged.
   ========================================================================= */

body.nova-workspace {
    /* Legacy shell variables mapped to NALENIO */
    --nova-indigo-950: #0a2236;
    --nova-indigo-900: #0f2d46;
    --nova-indigo-800: #17445f;

    --nova-copper: #2e7d7a;
    --nova-copper-dark: #256966;

    --nova-ivory: #f6f8f9;
    --nova-white: #ffffff;
    --nova-slate: #172a3a;
    --nova-muted: #6b7c93;
    --nova-border: #dce5e8;
    --nova-page: #f6f8f9;

    --nova-shadow:
        0 14px 40px rgba(15, 45, 70, .08);

    /* Theme-brand variables mapped to NALENIO */
    --nova-brand-950: #0a2236;
    --nova-brand-900: #0f2d46;
    --nova-brand-850: #123a59;
    --nova-brand-800: #17445f;
    --nova-brand-700: #246763;
    --nova-brand-600: #2e7d7a;
    --nova-brand-500: #4b9693;

    --nova-brand-cyan: #2e7d7a;
    --nova-brand-cyan-soft: #a8d2cf;

    --nova-page-bg: #f6f8f9;
    --nova-surface: #ffffff;
    --nova-surface-raised: #ffffff;
    --nova-surface-soft: #f3f7f7;

    --nova-border: #dce5e8;
    --nova-border-strong: #c8d6da;

    --nova-text: #172a3a;
    --nova-text-muted: #6b7c93;
    --nova-text-soft: #8b9aa8;

    --nova-shadow-sm:
        0 5px 16px rgba(15, 45, 70, .07);

    --nova-shadow-md:
        0 14px 36px rgba(15, 45, 70, .10);

    --nova-shadow-lg:
        0 24px 58px rgba(10, 34, 54, .16);

    --nova-brand-gradient:
        linear-gradient(
            135deg,
            #0f2d46 0%,
            #17516a 54%,
            #2e7d7a 100%
        );

    --nova-brand-gradient-deep:
        linear-gradient(
            150deg,
            #0a2236 0%,
            #0f2d46 58%,
            #256966 100%
        );
}

/* -------------------------------------------------------------------------
   Sidebar
   ------------------------------------------------------------------------- */

body.nova-workspace .sidebar-v2-link.active {
    background:
        linear-gradient(
            90deg,
            rgba(46, 125, 122, .30),
            rgba(255, 255, 255, .07)
        ) !important;

    color: #ffffff !important;

    box-shadow:
        inset 3px 0 0 #2e7d7a !important;
}

body.nova-workspace .sidebar-v2-link.active svg,
body.nova-workspace .sidebar-v2-link.active .sidebar-v2-link-icon {
    color: #a8d2cf !important;
}

body.nova-workspace .sidebar-v2-link small {
    background:
        rgba(46, 125, 122, .20) !important;

    color: #c3e3e1 !important;
}

/* -------------------------------------------------------------------------
   Topbar
   ------------------------------------------------------------------------- */

body.nova-workspace .topbar-v2 {
    border-bottom-color: #dce5e8 !important;

    box-shadow:
        0 5px 20px rgba(15, 45, 70, .055);
}

body.nova-workspace .topbar-v2-left {
    min-width: 0 !important;
}

body.nova-workspace .topbar-v2-actions {
    min-width: 0;
    flex: 0 0 auto;
    flex-wrap: nowrap;
}

body.nova-workspace .topbar-v2-search {
    min-width: 0 !important;
}

body.nova-workspace .topbar-v2-search span {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

body.nova-workspace .topbar-v2-new,
body.nova-workspace .topbar-v2-reset {
    flex: 0 0 auto;
    white-space: nowrap !important;
}

body.nova-workspace .topbar-v2-new span,
body.nova-workspace .topbar-v2-reset span {
    white-space: nowrap !important;
}

body.nova-workspace .topbar-v2-new > span:first-child {
    color: #2e7d7a !important;
}

body.nova-workspace .topbar-v2-user,
body.nova-workspace .topbar-worktime {
    flex: 0 0 auto;
}

/*
 * Intermediate widths:
 * preserve all actions, but collapse secondary labels before
 * allowing buttons to wrap or distort the toolbar.
 */
@media screen and (min-width: 721px) and (max-width: 1180px) {
    body.nova-workspace .topbar-v2 {
        gap: 10px;
    }

    body.nova-workspace .topbar-v2-left,
    body.nova-workspace .topbar-v2-actions {
        gap: 6px;
    }

    body.nova-workspace .topbar-v2-search kbd,
    body.nova-workspace .topbar-v2-reset span,
    body.nova-workspace .topbar-v2-user > div:last-child {
        display: none !important;
    }

    body.nova-workspace .topbar-v2-user {
        grid-template-columns: 36px;
        padding-left: 7px;
    }
}

/*
 * Existing <=720px behavior remains authoritative.
 * Only prevent surviving controls from wrapping internally.
 */
@media screen and (max-width: 720px) {
    body.nova-workspace .topbar-v2-actions {
        flex-wrap: nowrap;
    }

    body.nova-workspace .topbar-v2-reset {
        white-space: nowrap !important;
    }
}

/* =========================================================================
   NALENIO SHELL BRAND RESIDUALS 105.4.63au.4
   ========================================================================= */

/* Navigation badges such as "Neu" */
body.nova-workspace .sidebar-v2-link em {
    background: rgba(46, 125, 122, .22) !important;
    border: 1px solid rgba(168, 210, 207, .18) !important;
    color: #c3e3e1 !important;
    font-style: normal !important;
}

/* Platform phase badge */
body.nova-workspace .sidebar-v2-core-status em {
    background: rgba(46, 125, 122, .24) !important;
    border-color: rgba(168, 210, 207, .18) !important;
    color: #c3e3e1 !important;
    font-style: normal !important;
}

