:root{
    --brand-navy:#0D1B2A;
    --brand-navy-2:#1B263B;
    --brand-gold:#C9A227;
    --brand-gold-soft:#E6C76A;
    --brand-gold-deep:#8F6B18;
    --brand-ink:#111827;
    --brand-muted:#5F6977;
    --brand-bg:#F5F6F7;
    --brand-card:#FFFFFF;
    --brand-line:#DCE2EA;
    --brand-shadow:0 24px 70px rgba(13,27,42,.12);
    --brand-shadow-soft:0 16px 44px rgba(13,27,42,.08);
}

body{
    background:
        radial-gradient(circle at 12% 8%,rgba(201,162,39,.08),transparent 28%),
        linear-gradient(180deg,#fbfaf7 0%,var(--brand-bg) 58%,#f7f8fa 100%);
    color:var(--brand-ink);
    text-rendering:optimizeLegibility;
}

.topbar{
    min-height:82px;
    height:82px;
    align-items:center;
    background:#f8f8f6;
    border-bottom:1px solid rgba(13,27,42,.08);
    box-shadow:0 10px 28px rgba(13,27,42,.045);
}

.brand{
    position:relative;
    min-height:0;
    padding:0;
    border:0;
    border-radius:0;
    background:transparent;
    box-shadow:none;
    transform:none;
    transform-origin:left center;
    transition:filter .22s ease;
    isolation:isolate;
}

.brand:before{
    content:"";
    position:absolute;
    left:-10px;
    top:50%;
    width:82px;
    height:82px;
    border-radius:50%;
    background:
        radial-gradient(circle,rgba(255,206,61,.34) 0%,rgba(255,206,61,.16) 42%,transparent 72%);
    filter:blur(1px);
    transform:translateY(-50%);
    z-index:-1;
    pointer-events:none;
}

.brand:after{
    display:none;
}

.brand:hover{
    filter:drop-shadow(0 10px 18px rgba(13,27,42,.08));
}

.brand-logo{
    display:block;
    width:auto;
    height:86px;
    max-width:468px;
    object-fit:contain;
    filter:
        drop-shadow(0 12px 20px rgba(13,27,42,.13))
        drop-shadow(0 0 12px rgba(229,174,18,.16))
        contrast(1.12)
        saturate(1.22);
}

.brand-symbol{
    width:46px;
    height:46px;
    border-radius:50%;
    object-fit:contain;
    background:var(--brand-navy);
    box-shadow:0 10px 24px rgba(13,27,42,.18);
}

.brand-copy{
    display:block;
    min-width:0;
}

.brand-name{
    display:block;
    color:#061326;
    font-size:34px;
    font-weight:1000;
    line-height:1;
    letter-spacing:-.015em;
    text-shadow:0 1px 0 rgba(255,255,255,.88),0 10px 18px rgba(13,27,42,.09);
}

.brand-slogan{
    display:block;
    margin-top:5px;
    color:#c38a00;
    font-size:13px;
    font-weight:900;
    letter-spacing:.025em;
    text-shadow:0 1px 0 rgba(255,255,255,.94),0 8px 18px rgba(195,138,0,.16);
}

.brand-mark{
    display:none;
}

.hero{
    background:
        radial-gradient(circle at 78% 18%,rgba(230,199,106,.30),transparent 27%),
        radial-gradient(circle at 38% 70%,rgba(255,255,255,.08),transparent 34%),
        linear-gradient(135deg,#081627 0%,var(--brand-navy) 48%,#1b2f4d 100%);
    position:relative;
    overflow:hidden;
    isolation:isolate;
}

.hero:before{
    content:"";
    position:absolute;
    inset:0;
    background:
        linear-gradient(115deg,transparent 0 46%,rgba(230,199,106,.12) 46.3%,transparent 47%),
        radial-gradient(circle at 18% 24%,rgba(255,255,255,.10),transparent 2px);
    background-size:auto,42px 42px;
    opacity:.65;
    pointer-events:none;
    z-index:-1;
}

.hero:after{
    content:"✦";
    position:absolute;
    right:clamp(24px,7vw,118px);
    top:58px;
    color:rgba(230,199,106,.78);
    font-size:22px;
    text-shadow:0 0 28px rgba(230,199,106,.55);
    animation:lyonstar-pulse 4.8s ease-in-out infinite;
}

.hero h1{
    letter-spacing:-.035em;
    text-wrap:balance;
}

.hero p{
    color:rgba(255,255,255,.78);
}

.hero-copy{
    animation:brand-rise .72s ease-out both;
}

.btn.primary,.nav-cta{
    background:linear-gradient(135deg,#f3da80 0%,var(--brand-gold) 58%,#b88b20 100%);
    color:#101820;
    box-shadow:0 14px 30px rgba(201,162,39,.24),inset 0 1px 0 rgba(255,255,255,.48);
}

.btn,.nav-cta,.topbar nav a,.topbar button{
    transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease,background .22s ease,color .22s ease;
}

.btn:hover,.nav-cta:hover{
    transform:translateY(-2px);
    box-shadow:0 18px 36px rgba(201,162,39,.28),inset 0 1px 0 rgba(255,255,255,.52);
}

.btn:active,.nav-cta:active{
    transform:translateY(0) scale(.99);
}

.btn:focus-visible,.nav-cta:focus-visible,.topbar a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{
    outline:3px solid rgba(230,199,106,.45);
    outline-offset:3px;
}

.hero .btn.secondary{
    background:rgba(255,255,255,.10);
    color:#fff;
    border-color:rgba(230,199,106,.40);
    backdrop-filter:blur(10px);
}

.topbar nav > a:not(.nav-cta){
    color:var(--brand-ink);
}

.topbar nav > a:not(.nav-cta):hover,
.topbar button:hover{
    color:var(--brand-gold-deep);
}

.nav-toggle,.mobile-primary-cta,.menu-trigger{
    display:none;
}

.nav-outline{
    min-height:46px;
    padding:0 21px;
    border:1px solid rgba(201,162,39,.58);
    border-radius:12px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    font-weight:900;
    color:var(--brand-gold-deep)!important;
    background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(255,248,229,.88));
    box-shadow:0 12px 26px rgba(13,27,42,.06),inset 0 1px 0 rgba(255,255,255,.8);
}

.nav-outline:hover{
    border-color:rgba(201,162,39,.78);
    color:#101820!important;
    background:linear-gradient(135deg,#f8e09a,var(--brand-gold));
    box-shadow:0 16px 34px rgba(201,162,39,.18),inset 0 1px 0 rgba(255,255,255,.55);
    transform:translateY(-2px);
}

.topbar .nav-cta{
    min-height:46px;
    padding:0 22px;
}

.site-nav{
    align-items:center;
}

.auth-card-branded{
    border:1px solid rgba(212,175,55,.25);
    background:
        radial-gradient(circle at 100% 0,rgba(212,175,55,.12),transparent 34%),
        var(--brand-card);
}

.hero-signature{
    min-height:430px;
    display:grid;
    align-content:end;
    position:relative;
    overflow:hidden;
    border:1px solid rgba(230,199,106,.34);
    background:
        radial-gradient(circle at 50% 34%,rgba(230,199,106,.20),transparent 36%),
        linear-gradient(155deg,rgba(255,255,255,.96),rgba(244,248,252,.88));
    box-shadow:var(--brand-shadow);
    animation:brand-rise .82s ease-out .08s both;
}

.hero-signature:before{
    content:"";
    position:absolute;
    inset:18px;
    border-radius:24px;
    border:1px solid rgba(13,27,42,.07);
    background:
        linear-gradient(90deg,transparent 49%,rgba(13,27,42,.06) 49.5%,transparent 50.2%),
        linear-gradient(0deg,transparent 49%,rgba(13,27,42,.05) 49.5%,transparent 50.2%);
    background-size:92px 92px;
    opacity:.7;
}

.signature-orbit{
    position:absolute;
    inset:26px 24px 116px;
    display:grid;
    place-items:center;
}

.signature-star{
    width:210px;
    height:210px;
    clip-path:polygon(50% 0,61% 36%,98% 36%,68% 57%,79% 94%,50% 72%,21% 94%,32% 57%,2% 36%,39% 36%);
    background:linear-gradient(145deg,rgba(230,199,106,.95),rgba(143,107,24,.16));
    filter:drop-shadow(0 24px 34px rgba(143,107,24,.22));
    opacity:.68;
}

.signature-star:after{
    content:"";
    position:absolute;
}

.signature-line{
    position:absolute;
    width:280px;
    height:1px;
    background:linear-gradient(90deg,transparent,rgba(201,162,39,.70),transparent);
    transform-origin:center;
}

.line-a{transform:rotate(-18deg)}
.line-b{transform:rotate(24deg);width:230px}

.lion-mark{
    position:absolute;
    width:152px;
    height:152px;
    border-radius:44% 56% 48% 52%;
    display:grid;
    place-items:center;
    background:radial-gradient(circle at 38% 30%,#f7dc83 0 16%,#d2a63a 36%,#806019 78%);
    box-shadow:0 22px 46px rgba(13,27,42,.18),inset 0 2px 0 rgba(255,255,255,.35);
}

.lion-mane{
    position:absolute;
    inset:-18px;
    border-radius:45%;
    background:conic-gradient(from 18deg,#8d6817,#e4be58,#9c741d,#f2d97d,#725414,#c99a2e,#8d6817);
    clip-path:polygon(50% 0,60% 18%,78% 10%,77% 30%,98% 34%,82% 48%,96% 65%,73% 65%,71% 90%,55% 75%,38% 98%,35% 73%,12% 78%,24% 58%,0 47%,23% 35%,14% 14%,38% 23%);
    opacity:.86;
}

.lion-face{
    position:relative;
    width:88px;
    height:82px;
    border-radius:48% 52% 58% 42%;
    background:linear-gradient(145deg,#fff7d1,#d4af37);
    box-shadow:inset 0 -10px 20px rgba(87,61,10,.18);
}

.lion-face:before{
    content:"";
    position:absolute;
    left:22px;
    top:30px;
    width:44px;
    height:18px;
    border-top:5px solid #13213a;
    border-radius:50%;
    transform:skewX(-14deg);
    opacity:.9;
}

.lion-face:after{
    content:"";
    position:absolute;
    right:15px;
    top:42px;
    width:34px;
    height:24px;
    border-radius:0 60% 60% 0;
    border-right:6px solid #13213a;
    border-bottom:5px solid #13213a;
    transform:rotate(-12deg);
    opacity:.86;
}

.signature-copy{
    position:relative;
    z-index:1;
    padding-top:220px;
}

.signature-kicker{
    display:inline-flex;
    align-items:center;
    gap:8px;
    color:var(--brand-gold-deep);
    font-size:12px;
    font-weight:950;
    letter-spacing:1.2px;
    text-transform:uppercase;
}

.signature-kicker:before{
    content:"✦";
    color:var(--brand-gold);
}

.hero-signature h2{
    margin:10px 0 8px;
    color:var(--brand-navy);
    font-size:34px;
    letter-spacing:-.025em;
}

.hero-signature p{
    color:var(--brand-muted);
    margin-bottom:0;
}

.moment-section{
    padding-top:64px;
}

.moment-section .section-head{
    max-width:760px;
}

.moment-section .section-head p{
    color:var(--brand-muted);
    font-size:18px;
    line-height:1.7;
    margin-top:-10px;
}

.moment-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:18px;
}

.moment-grid article{
    position:relative;
    min-height:260px;
    padding:24px;
    border:1px solid rgba(13,27,42,.10);
    border-radius:24px;
    background:
        linear-gradient(180deg,rgba(255,255,255,.98),rgba(255,255,255,.88)),
        radial-gradient(circle at 92% 12%,rgba(201,162,39,.14),transparent 38%);
    box-shadow:var(--brand-shadow-soft);
    overflow:hidden;
    transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease;
}

.moment-grid article:after{
    content:"";
    position:absolute;
    right:-34px;
    bottom:-34px;
    width:116px;
    height:116px;
    border-radius:50%;
    border:1px solid rgba(201,162,39,.22);
}

.moment-grid article:hover{
    transform:translateY(-5px);
    border-color:rgba(201,162,39,.38);
    box-shadow:0 26px 64px rgba(13,27,42,.12);
}

.moment-icon{
    width:52px;
    height:52px;
    border-radius:18px;
    display:grid;
    place-items:center;
    color:var(--brand-navy);
    background:linear-gradient(135deg,#fff3c8,var(--brand-gold-soft));
    box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 12px 24px rgba(201,162,39,.16);
    font-size:22px;
    font-weight:950;
}

.moment-grid h3{
    margin:22px 0 10px;
    color:var(--brand-navy);
    font-size:22px;
    letter-spacing:-.02em;
}

.moment-grid p{
    color:var(--brand-muted);
    line-height:1.62;
}

.moment-grid a{
    position:absolute;
    left:24px;
    bottom:22px;
    color:var(--brand-gold-deep);
    font-weight:950;
}

.moment-grid a:after{
    content:" ->";
}

.reassurance-section{
    padding-top:40px;
}

.reassurance-card{
    display:grid;
    grid-template-columns:minmax(0,1.15fr) minmax(280px,.85fr);
    gap:28px;
    align-items:center;
    padding:38px;
    border:1px solid rgba(201,162,39,.28);
    border-radius:30px;
    background:
        radial-gradient(circle at 92% 20%,rgba(230,199,106,.24),transparent 30%),
        linear-gradient(135deg,#fff,#f7f3e7);
    box-shadow:var(--brand-shadow);
}

.reassurance-card h2,.profile-callout h2{
    font-size:clamp(32px,4vw,54px);
    line-height:1.06;
    letter-spacing:-.04em;
    margin:12px 0;
    color:var(--brand-navy);
}

.reassurance-card p,.profile-callout p{
    color:var(--brand-muted);
    font-size:18px;
    line-height:1.72;
}

.reassurance-card ul{
    display:grid;
    gap:12px;
    margin:0;
    padding:0;
    list-style:none;
}

.reassurance-card li{
    min-height:52px;
    display:flex;
    align-items:center;
    gap:12px;
    padding:12px 14px;
    border:1px solid rgba(13,27,42,.08);
    border-radius:16px;
    background:rgba(255,255,255,.78);
    color:var(--brand-navy);
    font-weight:900;
}

.reassurance-card li:before{
    content:"✓";
    width:28px;
    height:28px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:rgba(201,162,39,.14);
    color:var(--brand-gold-deep);
}

.profile-section{
    padding-top:28px;
}

.profile-callout{
    display:grid;
    grid-template-columns:auto minmax(0,1fr) auto;
    gap:22px;
    align-items:center;
    padding:30px;
    border:1px solid rgba(13,27,42,.10);
    border-radius:26px;
    background:
        radial-gradient(circle at 5% 10%,rgba(230,199,106,.18),transparent 22%),
        linear-gradient(135deg,#0d1b2a,#182c48);
    color:#fff;
    box-shadow:0 24px 70px rgba(13,27,42,.18);
}

.profile-callout h2{
    color:#fff;
    font-size:clamp(28px,3vw,42px);
}

.profile-callout p{
    color:rgba(255,255,255,.76);
    margin-bottom:0;
}

.profile-callout .btn.secondary{
    color:#fff;
    background:rgba(255,255,255,.08);
    border-color:rgba(230,199,106,.38);
}

.profile-star{
    width:76px;
    height:76px;
    display:grid;
    place-items:center;
    border-radius:24px;
    color:var(--brand-navy);
    background:linear-gradient(135deg,#f6dd83,var(--brand-gold));
    font-size:30px;
    box-shadow:0 18px 38px rgba(201,162,39,.22);
}

.cookie-banner{
    max-width:760px;
    left:auto!important;
    right:22px!important;
    bottom:22px!important;
    border:1px solid rgba(230,199,106,.22);
    background:rgba(13,27,42,.94)!important;
    backdrop-filter:blur(16px);
    box-shadow:0 22px 60px rgba(13,27,42,.28)!important;
}

.cookie-copy p{
    max-width:440px;
}

.cookie-actions{
    display:flex;
    gap:10px;
}

.section{
    position:relative;
}

.section:before{
    content:"";
    display:block;
    width:38px;
    height:2px;
    margin-bottom:18px;
    background:linear-gradient(90deg,var(--brand-gold),transparent);
}

.section-head h2{
    letter-spacing:-.03em;
    text-wrap:balance;
}

.service-grid article,.steps-grid article,.public-form,.auth-card,.panel,.cards article{
    transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease;
}

.service-grid article:hover,.steps-grid article:hover,.cards article:hover{
    transform:translateY(-4px);
    border-color:rgba(201,162,39,.35);
    box-shadow:var(--brand-shadow-soft);
}

.service-grid span{
    width:42px;
    height:42px;
    border-radius:14px;
    display:inline-grid;
    place-items:center;
    background:rgba(201,162,39,.10);
    border:1px solid rgba(201,162,39,.20);
    font-size:20px;
}

.band{
    border:1px solid rgba(230,199,106,.22);
    box-shadow:0 22px 54px rgba(13,27,42,.13);
}

.band h2{
    letter-spacing:-.03em;
}

@keyframes brand-rise{
    from{opacity:0;transform:translateY(16px)}
    to{opacity:1;transform:translateY(0)}
}

@keyframes lyonstar-pulse{
    0%,100%{opacity:.46;transform:scale(.96)}
    50%{opacity:1;transform:scale(1.06)}
}

.auth-brand{
    width:100%;
    display:flex;
    justify-content:center;
    margin-bottom:18px;
    padding:16px;
    border:1px solid rgba(13,27,42,.08);
    border-radius:18px;
    background:linear-gradient(135deg,#fff,rgba(233,201,106,.16));
}

.auth-brand .brand-slogan{
    text-align:center;
}

.brand-settings-form{
    display:grid;
    gap:22px;
}

.brand-panel{
    background:#fff;
    border:1px solid rgba(13,27,42,.10);
    box-shadow:0 18px 44px rgba(13,27,42,.08);
}

.panel-headline{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:16px;
    margin-bottom:18px;
}

.panel-headline h2{
    margin:4px 0 6px;
    color:var(--brand-navy);
}

.panel-headline p{
    margin:0;
    color:var(--brand-muted);
}

.settings-grid,.asset-grid,.color-grid{
    display:grid;
    gap:14px;
}

.settings-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
}

.asset-grid{
    grid-template-columns:repeat(3,minmax(0,1fr));
}

.color-grid{
    grid-template-columns:repeat(5,minmax(0,1fr));
}

.brand-settings-form label span,.asset-field span{
    display:block;
    font-weight:900;
    color:var(--brand-navy);
    margin-bottom:6px;
}

.asset-field{
    display:block;
    min-height:172px;
    padding:16px;
    border:1px solid rgba(13,27,42,.10);
    border-radius:18px;
    background:linear-gradient(180deg,#fff,#f9fafb);
}

.asset-field small,.asset-field em{
    display:block;
    color:var(--brand-muted);
    font-size:12px;
    margin-bottom:12px;
}

.asset-preview{
    display:block;
    padding:10px 12px;
    border-radius:12px;
    border:1px solid rgba(212,175,55,.28);
    background:rgba(212,175,55,.08);
    margin-bottom:12px;
}

.asset-preview span{
    margin:0;
    font-size:11px;
    color:var(--brand-muted);
}

.asset-preview strong{
    display:block;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:var(--brand-navy);
}

.toggle-field{
    display:flex;
    align-items:center;
    gap:10px;
    padding:13px 14px;
    border:1px solid rgba(13,27,42,.10);
    border-radius:14px;
    background:#fff;
}

.toggle-field span{
    margin:0;
}

.form-actions{
    display:flex;
    justify-content:flex-end;
    gap:12px;
}

@media(max-width:980px){
    .settings-grid,.asset-grid,.color-grid{
        grid-template-columns:1fr 1fr;
    }
}

@media(max-width:760px){
    .topbar{
        display:grid;
        grid-template-columns:1fr auto auto;
        align-items:center;
        gap:10px;
        padding:10px 14px;
        min-height:82px;
        height:82px;
        background:#f8f8f6;
    }

    .brand{
        min-height:0;
        padding:0;
        transform:none;
        max-width:min(58vw,300px);
    }

    .brand:hover{
        transform:none;
        filter:none;
    }

    .brand:after{
        display:none;
    }

    .brand-logo{
        height:70px;
        max-width:300px;
        filter:
            drop-shadow(0 8px 14px rgba(13,27,42,.12))
            drop-shadow(0 0 10px rgba(229,174,18,.14))
            contrast(1.11)
            saturate(1.2);
    }

    .brand-symbol{
        width:38px;
        height:38px;
        filter:contrast(1.08) saturate(1.1);
    }

    .brand-name{
        font-size:23px;
        font-weight:1000;
    }

    .brand-slogan{
        display:none;
    }

    .site-nav{
        position:absolute;
        left:12px;
        right:12px;
        top:calc(100% + 10px);
        display:grid!important;
        gap:8px;
        padding:14px;
        border:1px solid rgba(13,27,42,.10);
        border-radius:18px;
        background:rgba(255,255,255,.98);
        box-shadow:0 24px 70px rgba(13,27,42,.16);
        transform:translateY(-8px);
        opacity:0;
        pointer-events:none;
        transition:opacity .2s ease,transform .2s ease;
    }

    .site-nav a,.site-nav button{
        min-height:46px;
        padding:0 14px;
        border-radius:12px;
        display:flex;
        align-items:center;
        justify-content:center;
    }

    .site-nav .nav-cta{
        display:none;
    }

    .nav-toggle:checked ~ .site-nav{
        opacity:1;
        pointer-events:auto;
        transform:translateY(0);
    }

    .mobile-primary-cta{
        min-height:44px;
        padding:0 16px;
        border-radius:12px;
        display:inline-flex;
        align-items:center;
        justify-content:center;
        color:#101820;
        font-size:14px;
        font-weight:950;
        background:linear-gradient(135deg,#f3da80,var(--brand-gold));
        box-shadow:0 10px 22px rgba(201,162,39,.20);
    }

    .menu-trigger{
        width:44px;
        height:44px;
        border-radius:12px;
        display:grid;
        place-items:center;
        border:1px solid rgba(13,27,42,.12);
        background:#fff;
        cursor:pointer;
    }

    .menu-trigger span{
        width:20px;
        height:2px;
        border-radius:999px;
        background:var(--brand-navy);
        display:block;
        margin:2px 0;
        transition:transform .2s ease,opacity .2s ease;
    }

    .nav-toggle:checked ~ .menu-trigger span:nth-child(1){
        transform:translateY(6px) rotate(45deg);
    }

    .nav-toggle:checked ~ .menu-trigger span:nth-child(2){
        opacity:0;
    }

    .nav-toggle:checked ~ .menu-trigger span:nth-child(3){
        transform:translateY(-6px) rotate(-45deg);
    }

    .settings-grid,.asset-grid,.color-grid{
        grid-template-columns:1fr;
    }

    .panel-headline,.form-actions{
        display:grid;
    }

    .hero{
        gap:28px;
        padding-top:32px;
        padding-bottom:38px;
    }

    .hero h1{
        font-size:clamp(36px,11vw,48px);
    }

    .hero p{
        font-size:17px;
        line-height:1.58;
    }

    .hero-actions{
        display:grid;
        gap:10px;
    }

    .hero-actions .btn{
        width:100%;
    }

    .hero-signature{
        min-height:318px;
        padding:26px;
    }

    .signature-orbit{
        inset:16px 14px 116px;
    }

    .signature-star{
        width:168px;
        height:168px;
    }

    .lion-mark{
        width:118px;
        height:118px;
    }

    .lion-face{
        width:70px;
        height:66px;
    }

    .signature-copy{
        padding-top:188px;
    }

    .hero-signature h2{
        font-size:28px;
    }

    .moment-section{
        padding-top:42px;
    }

    .moment-grid{
        grid-template-columns:1fr;
    }

    .moment-grid article{
        min-height:210px;
    }

    .reassurance-card,.profile-callout{
        grid-template-columns:1fr;
        padding:24px;
    }

    .profile-star{
        width:58px;
        height:58px;
        border-radius:18px;
    }

    .cookie-banner{
        left:10px!important;
        right:10px!important;
        bottom:10px!important;
        max-width:none;
        padding:12px!important;
        display:grid!important;
        gap:10px!important;
    }

    .cookie-copy p{
        font-size:13px;
        line-height:1.35;
        margin:2px 0 0!important;
    }

    .cookie-actions{
        display:grid;
        grid-template-columns:1fr 1fr;
    }

    .cookie-actions .btn{
        min-height:40px;
        padding:0 12px;
    }
}

.discovery-profile-panel{
    margin:28px 0;
    padding:24px;
    border:1px solid rgba(201,162,39,.22);
    border-radius:22px;
    background:linear-gradient(145deg,#ffffff,#fffaf0);
    box-shadow:0 18px 44px rgba(13,27,42,.08);
}

.discovery-profile-panel h2{
    margin:6px 0 18px;
}

.discovery-grid{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:14px;
}

.discovery-grid article{
    padding:16px;
    border:1px solid rgba(13,27,42,.08);
    border-radius:16px;
    background:#fff;
}

.discovery-grid article h3{
    margin:0 0 10px;
    color:#07182d;
}

.discovery-grid article p{
    margin:.35rem 0;
    color:#344054;
}

.discovery-grid .span-2{
    grid-column:span 2;
}

.discovery-grid .highlight{
    border-color:rgba(201,162,39,.32);
    background:#fff8df;
}

.discovery-grid .ai-box{
    background:#f4f8ff;
    border-color:#cbd9ef;
}

.discovery-grid .ai-box small{
    display:block;
    margin-top:12px;
    color:#667085;
    font-weight:800;
}

@media(max-width:760px){
    .discovery-grid{
        grid-template-columns:1fr;
    }

    .discovery-grid .span-2{
        grid-column:auto;
    }
}

.password-field{
    position:relative;
    display:block;
    width:100%;
}

.password-field input{
    width:100%;
    padding-right:58px!important;
}

.password-field button{
    position:absolute;
    right:10px;
    top:50%;
    transform:translateY(-50%);
    width:38px;
    height:38px;
    border:1px solid #d7deea;
    border-radius:12px;
    background:#fff;
    color:#07182d;
    display:grid;
    place-items:center;
    cursor:pointer;
    font-size:17px;
    line-height:1;
    box-shadow:0 8px 18px rgba(13,27,42,.06);
}

.password-field button:hover{
    border-color:#d59d09;
    background:#fff8df;
}

.auth-social{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:12px;
    margin:18px 0;
}

.auth-social button{
    min-height:50px;
    border:1px solid #d7deea;
    border-radius:16px;
    background:#fbfcff;
    color:#07182d;
    font-weight:900;
    cursor:pointer;
}

.auth-social button:hover{
    border-color:#d59d09;
    background:#fff8df;
}

.auth-social .social-btn,
.social-entry .social-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    position:relative;
    overflow:hidden;
    min-height:52px;
    border-radius:16px;
    border:1px solid rgba(13,27,42,.12);
    font-weight:950;
    cursor:pointer;
    transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.auth-social .social-btn:hover,
.social-entry .social-btn:hover{
    transform:translateY(-1px);
    box-shadow:0 14px 28px rgba(13,27,42,.10);
}

.social-btn.google{
    background:
        linear-gradient(#fff,#fff) padding-box,
        linear-gradient(90deg,#4285f4,#34a853,#fbbc05,#ea4335) border-box;
    border:2px solid transparent;
    color:#1f2937;
}

.social-btn.google span{
    width:28px;
    height:28px;
    border-radius:50%;
    display:grid;
    place-items:center;
    background:conic-gradient(from -45deg,#4285f4 0 25%,#34a853 0 50%,#fbbc05 0 75%,#ea4335 0);
    color:#fff;
    font-weight:950;
    font-size:16px;
    box-shadow:inset 0 0 0 2px rgba(255,255,255,.35);
}

.social-btn.google:hover{
    background:
        linear-gradient(#f8fff9,#f8fff9) padding-box,
        linear-gradient(90deg,#4285f4,#34a853,#fbbc05,#ea4335) border-box;
}

.social-btn.microsoft{
    background:linear-gradient(135deg,#f4f9ff,#eaf3ff);
    border-color:#8dbbf3;
    color:#103f7a;
}

.social-btn.microsoft span{
    width:26px;
    height:26px;
    display:grid;
    grid-template-columns:1fr 1fr;
    grid-template-rows:1fr 1fr;
    gap:3px;
}

.social-btn.microsoft span:before,
.social-btn.microsoft span:after{
    content:"";
    display:block;
}

.social-btn.microsoft span{
    background:
        linear-gradient(#f25022,#f25022) 0 0/11px 11px no-repeat,
        linear-gradient(#7fba00,#7fba00) 15px 0/11px 11px no-repeat,
        linear-gradient(#00a4ef,#00a4ef) 0 15px/11px 11px no-repeat,
        linear-gradient(#ffb900,#ffb900) 15px 15px/11px 11px no-repeat;
}

.social-btn.microsoft:hover{
    background:linear-gradient(135deg,#eaf4ff,#dbeeff);
    border-color:#2563eb;
}

@media(max-width:720px){
    .auth-social{
        grid-template-columns:1fr;
    }
}

.app-shell{
    min-height:100vh;
    display:grid;
    grid-template-columns:280px minmax(0,1fr);
    background:
        radial-gradient(circle at top left,rgba(213,157,9,.14),transparent 34%),
        linear-gradient(135deg,#f8f8f6 0%,#f3f0e8 48%,#eef3f8 100%);
    color:#07182d;
}

.app-sidebar{
    position:sticky;
    top:0;
    height:100vh;
    display:flex;
    flex-direction:column;
    gap:18px;
    padding:22px;
    border-right:1px solid rgba(13,27,42,.08);
    background:rgba(255,255,255,.82);
    backdrop-filter:blur(18px);
    box-shadow:18px 0 44px rgba(13,27,42,.06);
    z-index:20;
}

.app-sidebar-brand{
    display:flex;
    align-items:center;
    text-decoration:none;
}

.app-sidebar-brand .brand-lockup{
    transform:scale(.92);
    transform-origin:left center;
}

.app-area-card{
    padding:16px;
    border:1px solid rgba(213,157,9,.24);
    border-radius:20px;
    background:linear-gradient(145deg,#fff,#fff7df);
    box-shadow:0 14px 28px rgba(13,27,42,.06);
}

.app-area-card span{
    display:block;
    color:#a66f00;
    font-size:12px;
    font-weight:900;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.app-area-card strong{
    display:block;
    margin-top:6px;
    color:#07182d;
    line-height:1.2;
}

.app-side-nav{
    display:grid;
    gap:8px;
}

.app-side-nav a,
.app-sidebar-footer a,
.app-sidebar-footer button{
    min-height:46px;
    padding:0 14px;
    border:1px solid transparent;
    border-radius:15px;
    display:flex;
    align-items:center;
    gap:12px;
    color:#344054;
    background:transparent;
    text-decoration:none;
    font-weight:900;
    cursor:pointer;
    width:100%;
}

.app-side-nav a span,
.app-sidebar-footer span{
    width:28px;
    height:28px;
    display:grid;
    place-items:center;
    border-radius:10px;
    color:#b57a00;
    background:#fff6dc;
}

.app-side-nav a:hover,
.app-side-nav a.active{
    border-color:rgba(213,157,9,.32);
    background:linear-gradient(135deg,#fff8df,#fff);
    color:#07182d;
    box-shadow:0 12px 26px rgba(13,27,42,.07);
}

.app-sidebar-footer{
    margin-top:auto;
    display:grid;
    gap:8px;
}

.app-sidebar-footer b{
    margin-left:auto;
    min-width:24px;
    height:24px;
    display:grid;
    place-items:center;
    border-radius:999px;
    background:#d92d20;
    color:#fff;
    font-size:12px;
}

.app-sidebar-footer button{
    font:inherit;
}

.app-workspace{
    min-width:0;
    display:grid;
    grid-template-rows:auto 1fr;
}

.app-topbar{
    position:sticky;
    top:0;
    z-index:15;
    min-height:78px;
    display:flex;
    align-items:center;
    gap:18px;
    padding:16px clamp(18px,3vw,34px);
    border-bottom:1px solid rgba(13,27,42,.08);
    background:rgba(248,248,246,.84);
    backdrop-filter:blur(18px);
}

.app-menu-button{
    display:none;
    width:44px;
    height:44px;
    border:1px solid rgba(13,27,42,.12);
    border-radius:14px;
    place-items:center;
    background:#fff;
    color:#07182d;
    font-size:22px;
    cursor:pointer;
}

.app-top-title{
    min-width:190px;
}

.app-top-title span{
    display:block;
    color:#a66f00;
    font-size:12px;
    font-weight:950;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.app-top-title strong{
    display:block;
    margin-top:3px;
    color:#07182d;
    font-size:18px;
}

.app-search{
    flex:1;
    max-width:720px;
}

.app-search input{
    width:100%;
    height:48px;
    border:1px solid rgba(13,27,42,.12);
    border-radius:16px;
    background:#fff;
    color:#07182d;
    padding:0 18px;
    font-weight:800;
    box-shadow:0 10px 24px rgba(13,27,42,.05);
}

.app-top-actions{
    display:flex;
    align-items:center;
    gap:10px;
    margin-left:auto;
}

.app-top-actions a,
.app-top-actions span{
    width:44px;
    height:44px;
    display:grid;
    place-items:center;
    border:1px solid rgba(13,27,42,.10);
    border-radius:15px;
    background:#fff;
    color:#07182d;
    text-decoration:none;
    font-weight:950;
    box-shadow:0 10px 24px rgba(13,27,42,.05);
}

.app-top-actions span{
    background:linear-gradient(135deg,#07182d,#17385d);
    color:#fff;
}

.app-main{
    padding:clamp(20px,3vw,38px);
}

.ui-page-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
    margin-bottom:24px;
}

.ui-page-head h1{
    margin:6px 0 8px;
    color:#07182d;
    font-size:clamp(30px,4vw,48px);
    letter-spacing:0;
}

.ui-page-head p{
    margin:0;
    max-width:680px;
    color:#475467;
    font-size:16px;
}

.ui-metric-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
    margin-bottom:24px;
}

.ui-metric-grid.compact{
    grid-template-columns:repeat(4,minmax(0,1fr));
}

.ui-metric-card{
    min-height:132px;
    padding:20px;
    border:1px solid rgba(213,157,9,.20);
    border-radius:22px;
    background:
        linear-gradient(145deg,rgba(255,255,255,.96),rgba(255,248,223,.82));
    box-shadow:0 18px 36px rgba(13,27,42,.08);
}

.ui-metric-card span{
    display:block;
    color:#475467;
    font-weight:900;
}

.ui-metric-card b{
    display:block;
    margin-top:14px;
    color:#07182d;
    font-size:34px;
    line-height:1;
}

.ui-metric-card.warning{
    border-color:rgba(217,45,32,.22);
    background:linear-gradient(145deg,#fff,#fff1ef);
}

.ui-panel{
    padding:24px;
    border:1px solid rgba(13,27,42,.08);
    border-radius:24px;
    background:rgba(255,255,255,.9);
    box-shadow:0 20px 50px rgba(13,27,42,.08);
}

.ui-panel-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    margin-bottom:16px;
}

.ui-panel h2{
    margin:4px 0 0;
    color:#07182d;
}

.ui-list-row{
    display:grid;
    grid-template-columns:150px minmax(0,1fr) auto;
    align-items:center;
    gap:16px;
    padding:16px 0;
    border-top:1px solid rgba(13,27,42,.08);
    color:#07182d;
    text-decoration:none;
}

.ui-list-row strong{
    color:#a66f00;
}

.ui-list-row span{
    min-width:0;
    font-weight:900;
}

.ui-list-row small{
    display:block;
    margin-top:4px;
    color:#667085;
    font-size:13px;
}

.ui-list-row em{
    padding:8px 12px;
    border-radius:999px;
    background:#f2f4f7;
    color:#344054;
    font-style:normal;
    font-weight:950;
    white-space:nowrap;
}

.ui-status-alert{
    display:inline-flex!important;
    width:max-content;
    padding:6px 10px;
    border-radius:999px;
    background:#fff1b8;
    color:#8a6100!important;
}

@media(max-width:1100px){
    .app-shell{
        grid-template-columns:1fr;
    }

    .app-sidebar{
        position:fixed;
        inset:0 auto 0 0;
        width:min(320px,86vw);
        transform:translateX(-105%);
        transition:transform .22s ease;
    }

    .app-sidebar-toggle:checked ~ .app-sidebar{
        transform:translateX(0);
    }

    .app-menu-button{
        display:grid;
    }

    .app-top-title{
        min-width:auto;
    }

    .app-search{
        max-width:none;
    }
}

@media(max-width:820px){
    .app-topbar{
        flex-wrap:wrap;
    }

    .app-search{
        order:5;
        flex-basis:100%;
    }

    .ui-page-head{
        align-items:flex-start;
        flex-direction:column;
    }

    .ui-metric-grid,
    .ui-metric-grid.compact{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .ui-list-row{
        grid-template-columns:1fr;
        gap:8px;
    }

    .ui-list-row em{
        width:max-content;
    }
}

@media(max-width:560px){
    .app-main{
        padding:18px 14px;
    }

    .app-top-actions a{
        display:none;
    }

    .ui-metric-grid,
    .ui-metric-grid.compact{
        grid-template-columns:1fr;
    }
}

.admin-user-card{
    display:grid;
    grid-template-columns:minmax(220px,1fr) minmax(360px,1.3fr) auto;
    align-items:center;
    gap:16px;
    padding:16px 0;
    border-top:1px solid rgba(13,27,42,.08);
}

.admin-user-info strong{
    display:block;
    color:#07182d;
    font-size:17px;
}

.admin-user-info span,
.admin-user-info small{
    display:block;
    margin-top:4px;
    color:#667085;
    font-weight:800;
}

.admin-user-inline{
    display:grid;
    grid-template-columns:1fr 1fr auto;
    gap:10px;
}

.admin-user-inline select,
.admin-edit-form input,
.admin-edit-form select{
    width:100%;
    min-height:46px;
    border:1px solid rgba(13,27,42,.12);
    border-radius:14px;
    background:#fff;
    color:#07182d;
    padding:0 14px;
    font-weight:850;
}

.admin-user-actions{
    display:flex;
    align-items:center;
    gap:8px;
}

.admin-user-actions form{
    margin:0;
}

.btn.danger{
    background:#fff1f0;
    border-color:#f5b9b5;
    color:#b42318;
}

.btn.danger:hover{
    background:#b42318;
    color:#fff;
}

.btn[disabled]{
    opacity:.48;
    cursor:not-allowed;
}

.admin-edit-form{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px;
}

.admin-edit-form label{
    display:grid;
    gap:8px;
    color:#344054;
    font-weight:950;
}

.admin-edit-form .btn{
    width:max-content;
    min-width:220px;
}

@media(max-width:980px){
    .admin-user-card{
        grid-template-columns:1fr;
        align-items:start;
    }

    .admin-user-actions{
        justify-content:flex-start;
    }
}

@media(max-width:680px){
    .admin-user-inline,
    .admin-edit-form{
        grid-template-columns:1fr;
    }
}

.user-management-panel{
    padding:20px;
}

.user-management-toolbar{
    display:grid;
    grid-template-columns:minmax(260px,1fr) 220px;
    gap:14px;
    align-items:center;
    margin-bottom:14px;
}

.user-search-box{
    height:48px;
    display:flex;
    align-items:center;
    gap:10px;
    padding:0 14px;
    border:1px solid rgba(13,27,42,.12);
    border-radius:16px;
    background:#fff;
    box-shadow:0 10px 24px rgba(13,27,42,.05);
}

.user-search-box span{
    width:28px;
    height:28px;
    display:grid;
    place-items:center;
    border-radius:10px;
    background:#fff6dc;
    color:#a66f00;
    font-weight:950;
}

.user-search-box input,
.user-sort-select{
    width:100%;
    height:46px;
    border:0;
    outline:0;
    background:transparent;
    color:#07182d;
    font-weight:850;
}

.user-sort-select{
    border:1px solid rgba(13,27,42,.12);
    border-radius:16px;
    background:#fff;
    padding:0 14px;
    box-shadow:0 10px 24px rgba(13,27,42,.05);
}

.user-filter-bar{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin:0 0 14px;
}

.user-filter-bar button{
    height:36px;
    padding:0 14px;
    border:1px solid rgba(213,157,9,.24);
    border-radius:999px;
    background:#fff;
    color:#344054;
    font-weight:950;
    cursor:pointer;
}

.user-filter-bar button:hover,
.user-filter-bar button.active{
    background:linear-gradient(135deg,#d59d09,#ffc94d);
    color:#07182d;
    box-shadow:0 10px 20px rgba(213,157,9,.18);
}

.user-bulk-bar{
    min-height:44px;
    display:flex;
    align-items:center;
    gap:12px;
    flex-wrap:wrap;
    padding:10px 12px;
    border:1px solid rgba(13,27,42,.08);
    border-radius:16px;
    background:#f8fafc;
    color:#475467;
    font-weight:850;
    margin-bottom:14px;
}

.user-bulk-bar label{
    display:flex;
    align-items:center;
    gap:8px;
}

.user-bulk-bar button{
    height:32px;
    border:1px solid rgba(13,27,42,.10);
    border-radius:999px;
    background:#fff;
    color:#667085;
    font-weight:900;
}

.user-table-shell{
    overflow-x:auto;
    border:1px solid rgba(13,27,42,.08);
    border-radius:18px;
    background:#fff;
}

.user-table-head,
.user-table-row{
    min-width:1120px;
    display:grid;
    grid-template-columns:44px minmax(210px,1.15fr) minmax(230px,1.1fr) minmax(210px,.95fr) 116px minmax(178px,.9fr) 250px;
    align-items:center;
    gap:12px;
}

.user-table-head{
    min-height:44px;
    padding:0 14px;
    background:linear-gradient(135deg,#f8f8f6,#fff8df);
    border-bottom:1px solid rgba(13,27,42,.08);
    color:#667085;
    font-size:12px;
    font-weight:950;
    text-transform:uppercase;
    letter-spacing:.06em;
}

.user-table-row{
    min-height:78px;
    padding:10px 14px;
    border-bottom:1px solid rgba(13,27,42,.07);
    transition:background .16s ease, box-shadow .16s ease;
}

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

.user-table-row:hover{
    background:#fffdf7;
    box-shadow:inset 3px 0 0 #d59d09;
}

.user-select-cell{
    display:grid;
    place-items:center;
}

.user-select-cell input{
    width:17px;
    height:17px;
    accent-color:#d59d09;
}

.user-main-cell strong,
.user-contact-cell span,
.user-access-cell span{
    display:block;
    color:#07182d;
    font-weight:950;
}

.user-main-cell small,
.user-contact-cell small,
.user-access-cell small{
    display:block;
    margin-top:3px;
    color:#667085;
    font-size:12px;
    font-weight:850;
}

.user-badge{
    display:inline-flex;
    align-items:center;
    gap:6px;
    width:max-content;
    min-height:30px;
    padding:0 11px;
    border-radius:999px;
    font-size:12px;
    font-weight:950;
    white-space:nowrap;
}

.user-badge:before{
    content:"";
    width:8px;
    height:8px;
    border-radius:50%;
    background:currentColor;
}

.status-active{
    background:#ecfdf3;
    color:#027a48;
}

.status-pending{
    background:#fff8db;
    color:#946200;
}

.status-blocked,
.status-inactive{
    background:#fff1f0;
    color:#b42318;
}

.role-client{
    background:#eef4ff;
    color:#175cd3;
}

.role-attendant{
    background:#f0f9ff;
    color:#026aa2;
}

.role-accounting{
    background:#f4f3ff;
    color:#5925dc;
}

.role-partner{
    background:#f0fdf4;
    color:#15803d;
}

.role-admin{
    background:#fff7ed;
    color:#c2410c;
}

.role-quick-form{
    display:flex;
    align-items:center;
    gap:6px;
    margin-top:8px;
}

.role-quick-form select{
    width:142px;
    height:34px;
    border:1px solid rgba(13,27,42,.12);
    border-radius:11px;
    background:#fff;
    color:#344054;
    font-size:12px;
    font-weight:900;
    padding:0 8px;
}

.user-actions-cell{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:7px;
}

.user-actions-cell form{
    margin:0;
}

.icon-action{
    position:relative;
    width:36px;
    height:36px;
    border:1px solid transparent;
    border-radius:12px;
    display:inline-grid;
    place-items:center;
    text-decoration:none;
    font-weight:950;
    font-size:15px;
    cursor:pointer;
    transition:transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}

.icon-action:hover{
    transform:translateY(-1px);
    box-shadow:0 10px 20px rgba(13,27,42,.12);
}

.icon-action[disabled]{
    opacity:.42;
    cursor:not-allowed;
    transform:none;
    box-shadow:none;
}

.icon-action.view{
    background:#f2f4f7;
    color:#344054;
    border-color:#d0d5dd;
}

.icon-action.edit{
    background:#eef4ff;
    color:#175cd3;
    border-color:#b2ccff;
}

.icon-action.profile{
    background:#fff8db;
    color:#946200;
    border-color:#fedf89;
}

.icon-action.approve{
    background:#ecfdf3;
    color:#027a48;
    border-color:#abefc6;
}

.icon-action.block{
    background:#fff4e5;
    color:#b54708;
    border-color:#fed7aa;
}

.icon-action.delete{
    background:#fff1f0;
    color:#b42318;
    border-color:#f5b9b5;
}

.icon-action[data-tooltip]:after{
    content:attr(data-tooltip);
    position:absolute;
    left:50%;
    bottom:calc(100% + 8px);
    transform:translateX(-50%) translateY(4px);
    opacity:0;
    pointer-events:none;
    padding:6px 9px;
    border-radius:9px;
    background:#07182d;
    color:#fff;
    font-size:11px;
    font-weight:900;
    white-space:nowrap;
    transition:opacity .14s ease, transform .14s ease;
    z-index:10;
}

.icon-action[data-tooltip]:hover:after{
    opacity:1;
    transform:translateX(-50%) translateY(0);
}

.user-empty-state{
    margin:18px 0 0;
    padding:18px;
    border:1px dashed rgba(213,157,9,.42);
    border-radius:16px;
    color:#667085;
    background:#fffdf7;
    font-weight:900;
    text-align:center;
}

@media(max-width:1040px){
    .user-management-toolbar{
        grid-template-columns:1fr;
    }

    .user-table-head{
        display:none;
    }

    .user-table-shell{
        overflow:visible;
        border:0;
        background:transparent;
    }

    .user-table-row{
        min-width:0;
        grid-template-columns:34px 1fr auto;
        gap:10px;
        margin-bottom:12px;
        padding:14px;
        border:1px solid rgba(13,27,42,.08);
        border-radius:18px;
        background:#fff;
        box-shadow:0 12px 26px rgba(13,27,42,.06);
    }

    .user-contact-cell,
    .user-role-cell,
    .user-status-cell,
    .user-access-cell{
        grid-column:2 / -1;
    }

    .user-actions-cell{
        grid-column:1 / -1;
        justify-content:flex-start;
        padding-top:8px;
        border-top:1px solid rgba(13,27,42,.07);
    }
}

@media(max-width:560px){
    .user-filter-bar{
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .user-filter-bar button{
        width:100%;
    }

    .user-table-row{
        grid-template-columns:28px 1fr;
    }

    .user-role-cell,
    .role-quick-form,
    .user-actions-cell{
        align-items:stretch;
        flex-wrap:wrap;
    }

    .role-quick-form select{
        width:100%;
        flex:1 1 160px;
    }
}

/* Lyonstar UX polish: shared premium workspace components */
.ui-breadcrumb{
    display:flex;
    align-items:center;
    gap:8px;
    margin:0 0 16px;
    color:#667085;
    font-size:.9rem;
    font-weight:800;
}

.ui-breadcrumb a{
    color:#9a6a06;
    text-decoration:none;
}

.ui-breadcrumb strong{
    color:#101828;
}

.premium-head{
    position:relative;
    overflow:hidden;
    padding:24px;
    border:1px solid rgba(213,157,9,.22);
    border-radius:22px;
    background:linear-gradient(135deg,#fff 0%,#fffaf0 58%,#f8eed1 100%);
    box-shadow:0 18px 45px rgba(13,27,42,.08);
}

.premium-head::after{
    content:"";
    position:absolute;
    right:-60px;
    top:-80px;
    width:220px;
    height:220px;
    border-radius:999px;
    background:radial-gradient(circle,rgba(213,157,9,.22),rgba(213,157,9,0) 68%);
    pointer-events:none;
}

.premium-head h1{
    margin:.18rem 0 .45rem;
    color:#101828;
    letter-spacing:0;
}

.premium-head p{
    max-width:760px;
    margin:0;
    color:#475467;
    line-height:1.65;
}

.smart-card-grid,
.document-center-grid,
.insight-grid,
.request-mini-grid{
    display:grid;
    gap:16px;
}

.smart-card-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
    margin:18px 0;
}

.smart-card,
.doc-center-card{
    min-height:132px;
    padding:18px;
    border:1px solid rgba(13,27,42,.08);
    border-radius:18px;
    background:#fff;
    box-shadow:0 14px 34px rgba(13,27,42,.07);
}

.smart-card.highlight,
.doc-center-card.pending{
    border-color:rgba(213,157,9,.42);
    background:linear-gradient(135deg,#fff8de,#fff);
}

.smart-card span,
.doc-center-card span,
.request-mini-grid span{
    display:block;
    margin-bottom:8px;
    color:#667085;
    font-size:.82rem;
    font-weight:900;
    text-transform:uppercase;
}

.smart-card strong,
.doc-center-card strong{
    display:block;
    color:#101828;
    font-size:1.45rem;
    line-height:1.18;
}

.smart-card p,
.doc-center-card p{
    margin:10px 0 0;
    color:#667085;
    line-height:1.45;
}

.journey-panel{
    margin:18px 0;
}

.journey-track{
    position:relative;
    display:grid;
    grid-template-columns:repeat(7,minmax(0,1fr));
    gap:14px;
    margin-top:22px;
}

.journey-track::before{
    content:"";
    position:absolute;
    left:3%;
    right:3%;
    top:22px;
    height:4px;
    border-radius:99px;
    background:linear-gradient(90deg,#d59d09 var(--journey-progress),#e5e7eb var(--journey-progress));
}

.journey-step{
    position:relative;
    z-index:1;
    display:flex;
    flex-direction:column;
    gap:8px;
    min-width:0;
    color:#667085;
}

.journey-step i,
.journey-step b{
    width:46px;
    height:46px;
    display:grid;
    place-items:center;
    border:2px solid #e5e7eb;
    border-radius:50%;
    background:#fff;
    color:#98a2b3;
    font-style:normal;
    font-weight:1000;
    box-shadow:0 8px 18px rgba(13,27,42,.08);
}

.journey-step.active i,
.journey-step.active b,
.journey-step.current i,
.journey-step.current b,
.journey-step.done i,
.journey-step.done b{
    border-color:#d59d09;
    background:linear-gradient(135deg,#ffd15c,#d59d09);
    color:#101828;
}

.journey-step strong{
    color:#101828;
    font-size:.92rem;
}

.journey-step span{
    font-size:.82rem;
    line-height:1.35;
}

.insight-grid{
    grid-template-columns:1.1fr .9fr;
    margin:18px 0;
}

.clean-dl{
    display:grid;
    gap:12px;
    margin:14px 0 0;
}

.clean-dl div{
    display:flex;
    justify-content:space-between;
    gap:14px;
    padding:10px 0;
    border-bottom:1px solid rgba(13,27,42,.07);
}

.clean-dl dt{
    color:#667085;
    font-weight:800;
}

.clean-dl dd{
    margin:0;
    color:#101828;
    font-weight:950;
    text-align:right;
}

.ai-summary-card{
    border-color:rgba(213,157,9,.25);
    background:linear-gradient(145deg,#101828,#1d2939);
    color:#fff;
}

.ai-summary-card h2,
.ai-summary-card .clean-dl dd{
    color:#fff;
}

.ai-summary-card .clean-dl dt,
.ai-summary-card p{
    color:#d0d5dd;
}

.document-center-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
    margin:18px 0;
}

.upload-details{
    margin:18px 0;
}

.upload-details summary,
.command-details summary{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    cursor:pointer;
    font-weight:950;
    color:#101828;
}

.upload-details summary b,
.command-details summary{
    color:#9a6a06;
}

.doc-form,
.modern-internal-form{
    display:grid;
    gap:12px;
    margin-top:18px;
}

.doc-form{
    grid-template-columns:repeat(2,minmax(0,1fr));
}

.doc-form textarea,
.doc-form input[type=file],
.doc-form button,
.modern-internal-form textarea,
.modern-internal-form button{
    grid-column:1 / -1;
}

.doc-form input,
.doc-form select,
.doc-form textarea,
.modern-internal-form input,
.modern-internal-form select,
.modern-internal-form textarea{
    width:100%;
    min-height:46px;
    border:1px solid rgba(13,27,42,.12);
    border-radius:14px;
    background:#fff;
    color:#101828;
    padding:12px 14px;
    font:inherit;
    font-weight:800;
}

.doc-form textarea,
.modern-internal-form textarea{
    min-height:96px;
    resize:vertical;
}

.row-actions{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
}

.inline-details{
    width:100%;
    margin-top:10px;
}

.inline-details summary{
    cursor:pointer;
    color:#9a6a06;
    font-weight:900;
}

.compact-stack{
    display:grid;
    gap:10px;
    margin-top:10px;
}

.request-command-grid{
    display:grid;
    gap:16px;
}

.request-detail-layout{
    display:grid;
    gap:18px;
}

.request-detail{
    padding:22px;
}

.request-detail > h1{
    margin:.3rem 0 .5rem;
    color:#101828;
}

.request-detail > p{
    color:#475467;
    line-height:1.65;
}

.request-command-card{
    padding:18px;
    border:1px solid rgba(13,27,42,.08);
    border-radius:20px;
    background:#fff;
    box-shadow:0 16px 36px rgba(13,27,42,.07);
}

.request-command-card header{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
}

.request-command-card h2{
    margin:6px 0;
    font-size:1.1rem;
}

.request-command-card a{
    color:#101828;
    text-decoration:none;
}

.request-command-card p{
    margin:0;
    color:#667085;
}

.request-protocol{
    color:#9a6a06;
    font-size:.78rem;
    font-weight:1000;
    letter-spacing:.08em;
}

.request-badges{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
    justify-content:flex-end;
}

.request-mini-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
    margin:16px 0;
}

.request-mini-grid div{
    padding:12px;
    border:1px solid rgba(13,27,42,.07);
    border-radius:14px;
    background:#f9fafb;
}

.request-mini-grid strong{
    color:#101828;
}

.command-details{
    border-top:1px solid rgba(13,27,42,.07);
    padding-top:14px;
}

.modern-internal-form{
    grid-template-columns:repeat(3,minmax(0,1fr));
}

.ui-pagination{
    margin-top:18px;
}

@keyframes premiumFadeUp{
    from{opacity:0; transform:translateY(8px);}
    to{opacity:1; transform:translateY(0);}
}

.app-main > *{
    animation:premiumFadeUp .32s ease both;
}

@media(max-width:1180px){
    .smart-card-grid,
    .document-center-grid,
    .request-mini-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .journey-track{
        grid-template-columns:repeat(4,minmax(150px,1fr));
        overflow-x:auto;
        padding-bottom:8px;
    }

    .journey-track::before{
        display:none;
    }
}

@media(max-width:760px){
    .premium-head,
    .request-command-card header{
        display:grid;
    }

    .smart-card-grid,
    .document-center-grid,
    .insight-grid,
    .request-mini-grid,
    .doc-form,
    .modern-internal-form{
        grid-template-columns:1fr;
    }

    .request-badges{
        justify-content:flex-start;
    }
}

/* CRM/ERP navigation separation and executive dashboards */
.app-sidebar{
    display:flex;
    flex-direction:column;
}

.app-side-nav{
    overflow:auto;
    padding-right:4px;
}

.app-side-nav a,
.app-sidebar-footer a,
.app-sidebar-footer button{
    min-height:42px;
}

.app-side-nav a span,
.app-sidebar-footer span{
    width:26px;
    height:26px;
    display:inline-grid;
    place-items:center;
    border-radius:9px;
    background:rgba(213,157,9,.12);
    color:#9a6a06;
    font-weight:1000;
}

.executive-widget-grid{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:16px;
    margin:18px 0;
}

.executive-widget{
    min-height:160px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    padding:18px;
    border:1px solid rgba(13,27,42,.08);
    border-radius:20px;
    background:linear-gradient(145deg,#fff,#fffaf1);
    box-shadow:0 16px 36px rgba(13,27,42,.07);
}

.executive-widget.warning{
    border-color:rgba(217,45,32,.22);
    background:linear-gradient(145deg,#fff,#fff3f1);
}

.executive-widget span{
    color:#667085;
    font-size:.82rem;
    font-weight:1000;
    text-transform:uppercase;
}

.executive-widget strong{
    display:block;
    margin:8px 0;
    color:#101828;
    font-size:2rem;
    line-height:1;
}

.executive-widget p{
    margin:0 0 14px;
    color:#667085;
    line-height:1.45;
}

.executive-widget a{
    color:#9a6a06;
    font-weight:950;
    text-decoration:none;
}

.executive-grid{
    display:grid;
    grid-template-columns:.85fr 1.15fr;
    gap:18px;
}

.mini-bars{
    display:grid;
    gap:16px;
}

.mini-bars div{
    position:relative;
    display:grid;
    grid-template-columns:1fr auto;
    gap:12px;
    align-items:center;
    min-height:54px;
    padding:12px 14px;
    overflow:hidden;
    border:1px solid rgba(13,27,42,.08);
    border-radius:15px;
    background:#fff;
}

.mini-bars div::before{
    content:"";
    position:absolute;
    inset:0 auto 0 0;
    width:var(--bar);
    background:linear-gradient(90deg,rgba(213,157,9,.22),rgba(213,157,9,.04));
}

.mini-bars span,
.mini-bars b{
    position:relative;
    z-index:1;
}

.mini-bars span{
    color:#475467;
    font-weight:900;
}

.mini-bars b{
    color:#101828;
    font-size:1.15rem;
}

.schedule-view-tabs{
    display:flex;
    gap:10px;
    overflow-x:auto;
    padding:6px 2px 12px;
    margin:18px 0 4px;
}

.schedule-view-tabs a{
    flex:0 0 auto;
    min-width:112px;
    padding:12px 16px;
    border:1px solid rgba(213,157,9,.28);
    border-radius:14px;
    background:#fff;
    color:#344054;
    font-weight:950;
    text-align:center;
    text-decoration:none;
    box-shadow:0 10px 22px rgba(13,27,42,.05);
}

.schedule-view-tabs a.active,
.schedule-view-tabs a:hover{
    background:linear-gradient(135deg,#ffd15c,#d59d09);
    color:#101828;
}

.agenda-board .ui-panel-head{
    align-items:flex-start;
}

.agenda-event-row{
    display:grid;
    grid-template-columns:78px 1fr auto;
    gap:16px;
    align-items:center;
    padding:16px 0;
    border-top:1px solid rgba(13,27,42,.08);
}

.agenda-time{
    display:grid;
    place-items:center;
    min-height:64px;
    border-radius:16px;
    background:#fff7df;
    color:#101828;
}

.agenda-time strong{
    font-size:1.25rem;
}

.agenda-time span{
    color:#9a6a06;
    font-weight:950;
}

.agenda-event-row h3{
    margin:0 0 4px;
    color:#101828;
}

.agenda-event-row p{
    margin:0;
    color:#667085;
}

.agenda-event-meta{
    display:flex;
    align-items:center;
    gap:8px;
    flex-wrap:wrap;
    justify-content:flex-end;
}

.agenda-event-meta span,
.agenda-event-meta b{
    padding:8px 10px;
    border-radius:999px;
    background:#f2f4f7;
    color:#344054;
    font-size:.82rem;
    font-weight:950;
}

.agenda-event-meta b{
    background:#fff7df;
    color:#9a6a06;
}

@media(max-width:1180px){
    .executive-widget-grid{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }

    .executive-grid{
        grid-template-columns:1fr;
    }
}

@media(max-width:720px){
    .executive-widget-grid,
    .schedule-widgets{
        grid-template-columns:1fr;
    }

    .agenda-event-row{
        grid-template-columns:1fr;
    }

    .agenda-event-meta{
        justify-content:flex-start;
    }
}

:root{
    --ly-bg:#f6f4ef;
    --ly-bg-soft:#f8f8f6;
    --ly-surface:#ffffff;
    --ly-surface-elevated:#fffaf0;
    --ly-text:#101828;
    --ly-heading:#0d1b2a;
    --ly-muted:#667085;
    --ly-border:rgba(13,27,42,.10);
    --ly-primary:#d59d09;
    --ly-primary-strong:#9a6a06;
    --ly-success:#15803d;
    --ly-warning:#d97706;
    --ly-danger:#d92d20;
    --ly-info:#2563eb;
    --ly-input-bg:#ffffff;
    --ly-shadow:0 18px 45px rgba(13,27,42,.08);
}

html[data-theme="dark"] body.theme-capable{
    --ly-bg:#0b1220;
    --ly-bg-soft:#101828;
    --ly-surface:#121b2b;
    --ly-surface-elevated:#172235;
    --ly-text:#eef2f6;
    --ly-heading:#ffffff;
    --ly-muted:#a5b4c5;
    --ly-border:rgba(226,232,240,.14);
    --ly-primary:#d6a622;
    --ly-primary-strong:#f2c94c;
    --ly-success:#4ade80;
    --ly-warning:#fbbf24;
    --ly-danger:#f87171;
    --ly-info:#60a5fa;
    --ly-input-bg:#0f172a;
    --ly-shadow:0 18px 42px rgba(0,0,0,.34);
}

body.theme-capable,
body.theme-capable .app-shell,
body.theme-capable .app-workspace,
body.theme-capable .app-main{
    background:var(--ly-bg);
    color:var(--ly-text);
}

body.theme-capable .app-sidebar,
body.theme-capable .app-topbar,
body.theme-capable .app-area-card,
body.theme-capable .ui-panel,
body.theme-capable .smart-card,
body.theme-capable .executive-widget,
body.theme-capable .executive-panel,
body.theme-capable .client-status-banner,
body.theme-capable .doc-center-card,
body.theme-capable .request-command-card,
body.theme-capable .user-table-shell,
body.theme-capable .user-table-row,
body.theme-capable .user-management-toolbar,
body.theme-capable .agenda-event-row,
body.theme-capable .schedule-view-tabs a,
body.theme-capable .form-card,
body.theme-capable .panel,
body.theme-capable .card,
body.theme-capable .notice{
    background:var(--ly-surface);
    color:var(--ly-text);
    border-color:var(--ly-border);
    box-shadow:var(--ly-shadow);
}

body.theme-capable .app-side-nav a,
body.theme-capable .app-sidebar-footer a,
body.theme-capable .app-sidebar-footer button,
body.theme-capable .app-search input,
body.theme-capable input,
body.theme-capable select,
body.theme-capable textarea,
body.theme-capable .password-field input{
    background:var(--ly-input-bg);
    color:var(--ly-text);
    border-color:var(--ly-border);
}

body.theme-capable h1,
body.theme-capable h2,
body.theme-capable h3,
body.theme-capable h4,
body.theme-capable .ui-panel-head h1,
body.theme-capable .ui-panel-head h2,
body.theme-capable .app-top-title strong,
body.theme-capable .agenda-event-row h3,
body.theme-capable .executive-widget strong{
    color:var(--ly-heading);
}

body.theme-capable p,
body.theme-capable small,
body.theme-capable .muted,
body.theme-capable .app-top-title span,
body.theme-capable .ui-panel-head p,
body.theme-capable .agenda-event-row p,
body.theme-capable .executive-widget span{
    color:var(--ly-muted);
}

body.theme-capable .app-side-nav a:hover,
body.theme-capable .app-side-nav a.active,
body.theme-capable .app-sidebar-footer a:hover,
body.theme-capable .app-sidebar-footer a.active{
    background:linear-gradient(135deg,rgba(214,166,34,.18),rgba(214,166,34,.08));
    color:var(--ly-heading);
    border-color:rgba(214,166,34,.35);
}

body.theme-capable .badge,
body.theme-capable .status-badge,
body.theme-capable .agenda-time,
body.theme-capable .agenda-event-meta b{
    background:var(--ly-surface-elevated);
    color:var(--ly-primary-strong);
}

html[data-theme="dark"] body.theme-capable img{
    color-scheme:dark;
}

html[data-theme="dark"] body.theme-capable input::placeholder,
html[data-theme="dark"] body.theme-capable textarea::placeholder{
    color:#7b8aa1;
}

html[data-theme="dark"] body.theme-capable input:-webkit-autofill{
    -webkit-text-fill-color:var(--ly-text);
    box-shadow:0 0 0 1000px var(--ly-input-bg) inset;
}

.theme-switcher{
    position:relative;
}

.theme-switcher summary{
    width:40px;
    height:40px;
    border-radius:12px;
    border:1px solid rgba(213,157,9,.28);
    background:var(--ly-surface);
    color:var(--ly-primary-strong);
    display:grid;
    place-items:center;
    cursor:pointer;
    box-shadow:0 8px 18px rgba(13,27,42,.08);
    list-style:none;
}

.theme-switcher summary::-webkit-details-marker{
    display:none;
}

.theme-switcher-menu{
    position:absolute;
    top:calc(100% + 10px);
    right:0;
    z-index:50;
    width:230px;
    padding:12px;
    border:1px solid var(--ly-border);
    border-radius:16px;
    background:var(--ly-surface);
    box-shadow:0 22px 50px rgba(13,27,42,.16);
}

.theme-switcher-menu strong{
    display:block;
    margin:0 0 8px;
    color:var(--ly-heading);
    font-size:.86rem;
}

.theme-switcher-menu button{
    width:100%;
    border:0;
    border-radius:12px;
    background:transparent;
    color:var(--ly-text);
    display:flex;
    align-items:center;
    gap:10px;
    padding:10px 12px;
    font-weight:850;
    cursor:pointer;
    text-align:left;
}

.theme-switcher-menu button:hover,
.theme-switcher-menu button.active{
    background:linear-gradient(135deg,rgba(213,157,9,.18),rgba(213,157,9,.08));
    color:var(--ly-primary-strong);
}

.appearance-page{
    display:grid;
    gap:20px;
}

.appearance-options{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:16px;
}

.appearance-option{
    min-height:170px;
    border:1px solid var(--ly-border);
    border-radius:18px;
    background:var(--ly-surface);
    color:var(--ly-text);
    padding:22px;
    text-align:left;
    display:grid;
    align-content:start;
    gap:10px;
    cursor:pointer;
    box-shadow:var(--ly-shadow);
}

.appearance-option span{
    width:44px;
    height:44px;
    border-radius:14px;
    background:var(--ly-surface-elevated);
    color:var(--ly-primary-strong);
    display:grid;
    place-items:center;
    font-size:1.25rem;
}

.appearance-option strong{
    color:var(--ly-heading);
    font-size:1.15rem;
}

.appearance-option small{
    color:var(--ly-muted);
    line-height:1.5;
}

.appearance-option:hover,
.appearance-option.active{
    border-color:rgba(213,157,9,.7);
    box-shadow:0 20px 50px rgba(213,157,9,.16);
}

body.theme-capable .app-shell,
body.theme-capable .app-sidebar,
body.theme-capable .app-topbar,
body.theme-capable .app-main,
body.theme-capable .ui-panel,
body.theme-capable input,
body.theme-capable select,
body.theme-capable textarea,
body.theme-capable button,
body.theme-capable a{
    transition:background-color .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease;
}

@media(max-width:820px){
    .appearance-options{
        grid-template-columns:1fr;
    }

    .theme-switcher-menu{
        right:-46px;
    }
}

.ops-page-head{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:18px;
    margin-bottom:20px;
}

.ops-page-head h1{
    margin:4px 0 6px;
    font-size:clamp(1.7rem,2.2vw,2.5rem);
}

.ops-page-head p{
    max-width:760px;
    margin:0;
}

.ops-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
    justify-content:flex-end;
}

.ops-metrics{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:14px;
    margin-bottom:18px;
}

.ops-metrics article,
.ops-metrics a{
    display:grid;
    gap:6px;
    padding:18px;
    border:1px solid var(--ly-border, rgba(13,27,42,.10));
    border-radius:18px;
    background:var(--ly-surface,#fff);
    color:var(--ly-text,#101828);
    text-decoration:none;
    box-shadow:var(--ly-shadow,0 18px 45px rgba(13,27,42,.08));
}

.ops-metrics span{
    color:var(--ly-muted,#667085);
    font-weight:900;
}

.ops-metrics strong{
    color:var(--ly-heading,#0d1b2a);
    font-size:2rem;
}

.ops-metrics small{
    color:var(--ly-muted,#667085);
}

.communication-workbench{
    display:grid;
    grid-template-columns:260px minmax(360px,1fr) 360px;
    gap:16px;
    min-height:620px;
}

.comm-folders,
.comm-list,
.comm-detail,
.document-table-panel,
.document-side-panel{
    border:1px solid var(--ly-border, rgba(13,27,42,.10));
    border-radius:22px;
    background:var(--ly-surface,#fff);
    box-shadow:var(--ly-shadow,0 18px 45px rgba(13,27,42,.08));
}

.comm-folders{
    padding:16px;
}

.comm-folders h2,
.document-side-panel h2{
    margin:0 0 12px;
    font-size:1rem;
}

.comm-folders a{
    display:flex;
    align-items:center;
    gap:10px;
    padding:12px;
    border-radius:14px;
    color:var(--ly-text,#101828);
    text-decoration:none;
    font-weight:850;
}

.comm-folders a.active,
.comm-folders a:hover{
    background:linear-gradient(135deg,rgba(213,157,9,.18),rgba(213,157,9,.08));
    color:var(--ly-primary-strong,#9a6a06);
}

.comm-folders b{
    margin-left:auto;
    padding:3px 8px;
    border-radius:999px;
    background:var(--ly-surface-elevated,#fff7df);
}

.module-toolbar{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    padding:16px;
    border-bottom:1px solid var(--ly-border, rgba(13,27,42,.10));
}

.module-toolbar div{
    display:grid;
    gap:3px;
}

.module-toolbar strong{
    color:var(--ly-heading,#0d1b2a);
}

.module-toolbar span{
    color:var(--ly-muted,#667085);
    font-size:.9rem;
}

.module-toolbar form{
    flex:1;
    max-width:420px;
}

.module-toolbar input{
    width:100%;
    min-height:42px;
    border:1px solid var(--ly-border, rgba(13,27,42,.10));
    border-radius:14px;
    padding:0 14px;
    background:var(--ly-input-bg,#fff);
    color:var(--ly-text,#101828);
}

.conversation-row{
    display:grid;
    gap:8px;
    padding:16px;
    border-bottom:1px solid var(--ly-border, rgba(13,27,42,.10));
    color:var(--ly-text,#101828);
    text-decoration:none;
}

.conversation-row.active,
.conversation-row:hover{
    background:linear-gradient(135deg,rgba(13,27,42,.04),rgba(213,157,9,.08));
}

.conversation-row div,
.conversation-row footer{
    display:flex;
    justify-content:space-between;
    gap:12px;
}

.conversation-row p{
    margin:0;
    color:var(--ly-muted,#667085);
}

.conversation-row b,
.doc-status{
    padding:5px 9px;
    border-radius:999px;
    background:var(--ly-surface-elevated,#fff7df);
    color:var(--ly-primary-strong,#9a6a06);
}

.comm-detail,
.document-side-panel{
    padding:18px;
}

.detail-card{
    display:grid;
    gap:14px;
}

.detail-card h2{
    margin:0;
}

.detail-card dl{
    display:grid;
    gap:10px;
}

.detail-card div{
    display:flex;
    justify-content:space-between;
    gap:12px;
    border-bottom:1px solid var(--ly-border, rgba(13,27,42,.10));
    padding-bottom:8px;
}

.detail-card dt{
    color:var(--ly-muted,#667085);
}

.detail-card dd{
    margin:0;
    font-weight:900;
}

.empty-workspace{
    display:grid;
    place-items:start;
    gap:10px;
    padding:28px;
    color:var(--ly-muted,#667085);
}

.empty-workspace strong{
    color:var(--ly-heading,#0d1b2a);
    font-size:1.15rem;
}

.module-tabs{
    display:flex;
    gap:10px;
    overflow-x:auto;
    margin:6px 0 18px;
    padding-bottom:6px;
}

.module-tabs a{
    flex:0 0 auto;
    padding:11px 14px;
    border:1px solid var(--ly-border, rgba(13,27,42,.10));
    border-radius:999px;
    background:var(--ly-surface,#fff);
    color:var(--ly-text,#101828);
    text-decoration:none;
    font-weight:900;
}

.module-tabs a.active,
.module-tabs a:hover{
    background:linear-gradient(135deg,#ffd15c,#d59d09);
    color:#101828;
}

.documents-workbench{
    display:grid;
    grid-template-columns:minmax(0,1fr) 320px;
    gap:16px;
}

.document-table{
    overflow:hidden;
}

.document-table-head,
.document-table-row{
    display:grid;
    grid-template-columns:1.4fr 1fr 1fr .8fr .7fr 90px;
    gap:12px;
    align-items:center;
    padding:14px 16px;
}

.document-table-head{
    color:var(--ly-muted,#667085);
    font-weight:950;
    border-bottom:1px solid var(--ly-border, rgba(13,27,42,.10));
}

.document-table-row{
    border-bottom:1px solid var(--ly-border, rgba(13,27,42,.10));
}

.document-table-row strong{
    color:var(--ly-heading,#0d1b2a);
}

.document-table-row span{
    color:var(--ly-muted,#667085);
}

.document-side-panel{
    display:grid;
    align-content:start;
    gap:10px;
}

.document-side-panel a{
    display:grid;
    gap:4px;
    padding:12px;
    border:1px solid var(--ly-border, rgba(13,27,42,.10));
    border-radius:14px;
    color:var(--ly-text,#101828);
    text-decoration:none;
}

.document-side-panel span,
.document-side-panel small{
    color:var(--ly-muted,#667085);
}

.user-filter-bar a{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:36px;
    padding:0 12px;
    border-radius:999px;
    border:1px solid var(--ly-border, rgba(13,27,42,.10));
    background:var(--ly-surface,#fff);
    color:var(--ly-text,#101828);
    text-decoration:none;
    font-weight:900;
}

.user-filter-bar a.active,
.user-filter-bar a:hover{
    background:linear-gradient(135deg,#ffd15c,#d59d09);
    color:#101828;
}

@media(max-width:1180px){
    .communication-workbench,
    .documents-workbench{
        grid-template-columns:1fr;
    }

    .comm-folders{
        display:grid;
        grid-template-columns:repeat(2,minmax(0,1fr));
        gap:8px;
    }

    .comm-folders h2{
        grid-column:1/-1;
    }

    .ops-metrics{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:720px){
    .ops-page-head,
    .module-toolbar,
    .conversation-row div,
    .conversation-row footer{
        display:grid;
        align-items:start;
        justify-content:stretch;
    }

    .ops-actions{
        justify-content:stretch;
    }

    .ops-actions .btn{
        width:100%;
    }

    .ops-metrics{
        grid-template-columns:1fr;
    }

    .comm-folders{
        grid-template-columns:1fr;
    }

    .document-table-head{
        display:none;
    }

    .document-table-row{
        grid-template-columns:1fr;
        gap:8px;
    }
}
