:root {
    --canvas: #f3f1eb;
    --canvas-2: #e8e6df;

    --ink: #171917;
    --ink-soft: #31342f;

    --surface: rgba(250, 249, 245, .76);
    --surface-solid: #fbfaf6;
    --surface-muted: rgba(226, 225, 218, .64);

    --line: rgba(29, 32, 28, .12);
    --line-strong: rgba(29, 32, 28, .22);

    --muted: #767a72;

    --lime: #b7f34a;
    --lime-deep: #7aa916;

    --coral: #ff715f;
    --violet: #7869ff;

    --shadow:
        0 24px 60px rgba(33, 35, 30, .10);

    --shadow-soft:
        0 12px 32px rgba(33, 35, 30, .06);

    --radius-xl: 38px;
    --radius-lg: 28px;
    --radius-md: 20px;

    --mx: 50%;
    --my: 50%;
}


html[data-theme="dark"] {
    --canvas: #11130f;
    --canvas-2: #181b16;

    --ink: #f1f3ec;
    --ink-soft: #d6dacd;

    --surface: rgba(24, 27, 22, .74);
    --surface-solid: #1b1e19;
    --surface-muted: rgba(40, 44, 36, .62);

    --line: rgba(235, 240, 225, .11);
    --line-strong: rgba(235, 240, 225, .18);

    --muted: #93998b;

    --lime: #c5ff59;
    --lime-deep: #a3db36;

    --coral: #ff806f;
    --violet: #9a8fff;

    --shadow:
        0 24px 70px rgba(0, 0, 0, .32);

    --shadow-soft:
        0 12px 32px rgba(0, 0, 0, .22);
}


* {
    box-sizing: border-box;
}


html {
    min-height: 100%;
    background: var(--canvas);
}


body {
    margin: 0;
    min-height: 100vh;

    font-family:
        "Segoe UI Variable",
        "Segoe UI",
        Inter,
        system-ui,
        sans-serif;

    color: var(--ink);
    background: var(--canvas);

    transition:
        background .28s ease,
        color .28s ease;
}


button,
input {
    font: inherit;
}


button {
    cursor: pointer;
}


a {
    color: inherit;
    text-decoration: none;
}



/* =====================================
   GLOBAL BACKGROUND
===================================== */

.ambient-layer {
    position: fixed;
    inset: 0;

    overflow: hidden;
    pointer-events: none;

    z-index: 0;
}


.ambient-blob {
    position: absolute;

    width: 520px;
    height: 520px;

    border-radius: 999px;

    filter: blur(5px);

    opacity: .22;

    transition: transform .8s ease;
}


.ambient-a {
    left: -220px;
    top: -240px;

    background:
        radial-gradient(
            circle,
            var(--lime),
            transparent 68%
        );

    transform:
        translate(
            calc((var(--mx) - 50%) * .02),
            calc((var(--my) - 50%) * .02)
        );
}


.ambient-b {
    right: -250px;
    bottom: -260px;

    background:
        radial-gradient(
            circle,
            var(--violet),
            transparent 68%
        );
}


.ambient-noise {
    position: absolute;
    inset: 0;

    opacity: .035;

    background-image:
        repeating-linear-gradient(
            45deg,
            var(--ink) 0,
            var(--ink) 1px,
            transparent 1px,
            transparent 6px
        );
}



/* =====================================
   TOP COMMAND BAR
===================================== */

.command-bar {
    position: fixed;

    top: 18px;
    left: 24px;
    right: 24px;

    height: 72px;

    z-index: 80;

    padding: 0 18px;

    display: grid;

    grid-template-columns:
        minmax(220px, 1fr)
        auto
        minmax(220px, 1fr);

    align-items: center;

    border: 1px solid var(--line);

    border-radius: 24px;

    background: var(--surface);

    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);

    box-shadow: var(--shadow-soft);
}


.command-brand {
    display: inline-flex;
    align-items: center;

    gap: 12px;

    width: fit-content;
}


.brand-orbit {
    position: relative;

    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border:
        1px solid var(--line-strong);

    border-radius: 50%;
}


.brand-orbit::before {
    content: "";

    position: absolute;

    inset: 5px;

    border-radius: 50%;

    border:
        1px dashed var(--line-strong);

    animation:
        spin 14s linear infinite;
}


.brand-core {
    position: relative;

    z-index: 2;

    width: 27px;
    height: 27px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--ink);
    color: var(--canvas);

    font-size: 10px;
    font-weight: 900;
}


.brand-text strong,
.brand-text small {
    display: block;
}


.brand-text strong {
    font-size: 14px;

    letter-spacing: .08em;
}


.brand-text small {
    margin-top: 2px;

    font-size: 11px;

    color: var(--muted);
}


.command-center {
    display: flex;
    align-items: center;

    gap: 14px;

    color: var(--muted);

    font-size: 12px;
}


.live-indicator {
    display: flex;
    align-items: center;

    gap: 8px;

    color: var(--ink);

    font-weight: 650;
}


.live-indicator > span {
    width: 8px;
    height: 8px;

    border-radius: 50%;

    background: var(--lime);

    box-shadow:
        0 0 0 5px rgba(0, 169, 254, .13);

    animation:
        pulseDot 2.6s ease infinite;
}


.command-separator {
    width: 1px;
    height: 22px;

    background: var(--line);
}


.command-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;

    gap: 10px;
}


.round-action {
    width: 42px;
    height: 42px;

    border: 1px solid var(--line);

    border-radius: 50%;

    background: var(--surface-solid);
    color: var(--ink);

    transition:
        transform .18s ease,
        background .18s ease;
}


.round-action:hover {
    transform:
        translateY(-2px)
        rotate(-7deg);
}


.profile-pill {
    min-width: 180px;

    height: 48px;

    padding: 5px 7px 5px 5px;

    display: flex;
    align-items: center;

    gap: 8px;

    border: 1px solid var(--line);

    border-radius: 999px;

    background: var(--surface-solid);
}


.profile-avatar {
    width: 36px;
    height: 36px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--lime);

    color: #18200e;

    font-weight: 900;

    flex: 0 0 auto;
}


.profile-copy {
    min-width: 0;

    flex: 1;
}


.profile-copy strong,
.profile-copy small {
    display: block;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;
}


.profile-copy strong {
    font-size: 11px;
}


.profile-copy small {
    color: var(--muted);

    font-size: 9px;
}


.profile-logout button {
    width: 30px;
    height: 30px;

    border: 0;

    border-radius: 50%;

    background: transparent;

    color: var(--muted);
}



/* =====================================
   WORKSPACE
===================================== */

.workspace {
    position: relative;

    z-index: 2;

    width:
        min(
            calc(100% - 48px),
            1500px
        );

    margin: 0 auto;

    padding:
        124px
        0
        138px;
}


.dashboard-intro {
    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    gap: 30px;

    padding:
        30px
        10px
        34px;
}


.micro-label {
    margin:
        0
        0
        9px;

    font-size: 10px;

    font-weight: 900;

    letter-spacing: .18em;

    text-transform: uppercase;

    color: var(--lime-deep);
}


.dashboard-intro h1 {
    margin: 0;

    font-size:
        clamp(
            42px,
            5vw,
            78px
        );

    line-height: .96;

    letter-spacing: -.065em;

    font-weight: 780;
}


.intro-description {
    max-width: 640px;

    margin:
        18px
        0
        0;

    color: var(--muted);

    font-size:
        clamp(
            14px,
            1.4vw,
            18px
        );
}


.today-chip {
    padding:
        13px
        17px;

    display: flex;
    align-items: center;

    gap: 11px;

    border-top:
        1px solid var(--line);

    border-bottom:
        1px solid var(--line);
}


.today-dot {
    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: var(--lime);

    box-shadow:
        0 0 0 6px
        rgba(183, 243, 74, .12);
}


.today-chip small,
.today-chip strong {
    display: block;
}


.today-chip small {
    color: var(--muted);

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .08em;
}


.today-chip strong {
    margin-top: 3px;

    font-size: 12px;
}



/* =====================================
   SIGNAL STRIP
===================================== */

.signal-strip {
    min-height: 112px;

    padding:
        22px
        28px;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 20px;

    border:
        1px solid var(--line);

    border-radius:
        var(--radius-xl);

    background:
        var(--surface);

    backdrop-filter:
        blur(18px);

    box-shadow:
        var(--shadow-soft);
}


.signal-item {
    flex: 1;

    min-width: 0;

    display: flex;

    align-items: center;

    gap: 16px;
}


.signal-number {
    font-size:
        clamp(
            38px,
            4vw,
            58px
        );

    line-height: 1;

    letter-spacing: -.06em;

    font-weight: 780;
}


.signal-number.coral {
    color: var(--coral);
}


.signal-number.violet {
    color: var(--violet);
}


.signal-number.lime {
    color: var(--lime-deep);
}


.signal-copy strong,
.signal-copy small {
    display: block;
}


.signal-copy strong {
    font-size: 13px;
}


.signal-copy small {
    margin-top: 3px;

    color: var(--muted);

    font-size: 10px;
}


.signal-divider {
    width: 1px;

    height: 52px;

    background:
        var(--line);
}



/* =====================================
   OPERATIONS GRID
===================================== */

.operations-grid {
    margin-top: 22px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(340px, .65fr);

    gap: 22px;
}


.renewal-radar,
.operations-feed {
    min-height: 520px;

    border:
        1px solid var(--line);

    background:
        var(--surface);

    backdrop-filter:
        blur(18px);

    box-shadow:
        var(--shadow-soft);
}


.renewal-radar {
    padding: 30px;

    border-radius:
        74px 28px 74px 28px;
}


.operations-feed {
    padding: 30px;

    border-radius:
        28px 74px 28px 74px;
}


.section-heading {
    display: flex;

    align-items: flex-start;

    justify-content:
        space-between;

    gap: 20px;
}


.section-heading h2 {
    margin: 0;

    font-size:
        clamp(
            22px,
            2.3vw,
            34px
        );

    letter-spacing: -.045em;
}


.period-chip {
    padding:
        9px
        13px;

    border:
        1px solid var(--line);

    border-radius: 999px;

    color: var(--muted);

    font-size: 10px;

    text-transform: uppercase;

    letter-spacing: .08em;
}



/* =====================================
   RADAR
===================================== */

.radar-zone {
    min-height: 405px;

    display: grid;

    grid-template-columns:
        minmax(280px, 1fr)
        minmax(160px, .45fr);

    align-items: center;

    gap: 32px;
}


.radar {
    position: relative;

    width:
        min(
            100%,
            390px
        );

    aspect-ratio: 1;

    margin: auto;

    border-radius: 50%;

    overflow: hidden;

    background:
        radial-gradient(
            circle,
            rgba(183,243,74,.05),
            transparent 64%
        );

    border:
        1px solid var(--line);
}


.radar-grid {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            transparent 49.7%,
            var(--line) 49.8%,
            var(--line) 50.2%,
            transparent 50.3%
        ),
        linear-gradient(
            90deg,
            transparent 49.7%,
            var(--line) 49.8%,
            var(--line) 50.2%,
            transparent 50.3%
        );
}


.radar-circle {
    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    border:
        1px solid var(--line);

    border-radius: 50%;
}


.radar-1 {
    width: 72%;
    height: 72%;
}


.radar-2 {
    width: 46%;
    height: 46%;
}


.radar-3 {
    width: 22%;
    height: 22%;
}


.radar-sweep {
    position: absolute;

    inset: 0;

    border-radius: 50%;

    background:
        conic-gradient(
            from 0deg,
            transparent 0deg,
            transparent 300deg,
            rgba(183,243,74,.02)
                312deg,
            rgba(183,243,74,.28)
                358deg,
            transparent 360deg
        );

    animation:
        radarSweep
        7s
        linear
        infinite;
}


.radar-core {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 110px;
    height: 110px;

    transform:
        translate(-50%, -50%);

    display: grid;

    place-content: center;

    text-align: center;

    border-radius: 50%;

    background:
        var(--ink);

    color:
        var(--canvas);

    box-shadow:
        0
        0
        0
        10px
        rgba(0,169,254,.11);
}


.radar-core span {
    font-size: 38px;

    line-height: 1;

    font-weight: 800;
}


.radar-core small {
    margin-top: 6px;

    opacity: .65;

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .09em;
}


.radar-caption {
    align-self: end;

    padding-bottom: 24px;
}


.caption-line {
    display: block;

    width: 56px;

    height: 2px;

    margin-bottom: 16px;

    background:
        var(--lime);
}


.radar-caption p {
    margin: 0;

    color:
        var(--muted);

    font-size: 12px;

    line-height: 1.7;
}



/* =====================================
   FEED
===================================== */

.feed {
    margin-top: 26px;
}


.feed-entry {
    min-height: 126px;

    display: grid;

    grid-template-columns:
        34px
        24px
        1fr;

    gap: 12px;
}


.feed-index {
    padding-top: 3px;

    color: var(--muted);

    font-size: 9px;

    letter-spacing: .12em;
}


.feed-track {
    position: relative;
}


.feed-track::before {
    content: "";

    position: absolute;

    left: 50%;
    top: 16px;

    width: 1px;

    height:
        calc(100% + 2px);

    background:
        var(--line);

    transform:
        translateX(-50%);
}


.feed-entry:last-child
.feed-track::before {
    display: none;
}


.feed-track span {
    position: absolute;

    top: 4px;
    left: 50%;

    width: 13px;
    height: 13px;

    transform:
        translateX(-50%);

    border-radius: 50%;

    background:
        var(--lime);

    box-shadow:
        0 0 0 6px
        rgba(0,169,254,.11);
}


.feed-track.coral span {
    background:
        var(--coral);

    box-shadow:
        0 0 0 6px
        rgba(255,113,95,.09);
}


.feed-track.violet span {
    background:
        var(--violet);

    box-shadow:
        0 0 0 6px
        rgba(120,105,255,.09);
}


.feed-copy small {
    color:
        var(--muted);

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .1em;
}


.feed-copy strong {
    display: block;

    margin-top: 5px;

    font-size: 16px;
}


.feed-copy p {
    max-width: 330px;

    margin:
        7px
        0
        0;

    color: var(--muted);

    font-size: 11px;

    line-height: 1.6;
}



/* =====================================
   BOTTOM DOCK
===================================== */

.command-dock {
    position: fixed;

    left: 50%;
    bottom: 20px;

    transform:
        translateX(-50%);

    z-index: 90;

    min-height: 72px;

    padding:
        8px
        10px;

    display: flex;

    align-items: center;

    gap: 4px;

    border:
        1px solid var(--line);

    border-radius: 999px;

    background:
        var(--surface);

    backdrop-filter:
        blur(25px);

    box-shadow:
        var(--shadow);
}


.dock-item {
    min-width: 76px;

    height: 54px;

    padding:
        6px
        10px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 3px;

    border-radius: 999px;

    color:
        var(--muted);

    transition:
        transform .18s ease,
        background .18s ease,
        color .18s ease;
}


.dock-item:hover:not(.disabled) {
    transform:
        translateY(-5px);

    color:
        var(--ink);
}


.dock-item.active {
    background:
        var(--ink);

    color:
        var(--canvas);
}


.dock-item.disabled {
    opacity: .44;

    cursor: default;
}


.dock-icon {
    font-size: 15px;
}


.dock-item > span:last-child {
    font-size: 8px;

    text-transform: uppercase;

    letter-spacing: .06em;
}


.dock-main {
    width: 66px;
    height: 66px;

    margin:
        -12px
        7px
        0;

    display: grid;

    place-items: center;

    position: relative;

    border-radius: 50%;

    background:
        var(--lime);

    color: #19210f;

    box-shadow:
        0 14px 30px
        rgba(132,180,35,.24);
}


.dock-main-icon {
    font-size: 25px;
}


.dock-main > span:last-child {
    position: absolute;

    bottom: -17px;

    color: var(--muted);

    font-size: 7px;

    text-transform: uppercase;

    letter-spacing: .06em;
}



/* =====================================
   LOGIN
===================================== */

.auth-body {
    overflow:
        hidden;

    background:
        var(--canvas);
}


.auth-world {
    position: relative;

    min-height: 100vh;

    overflow: hidden;

    background:
        radial-gradient(
            circle at
            var(--mx)
            var(--my),
            rgba(0,169,254,.11),
            transparent 27%
        );
}


.auth-top {
    position: absolute;

    z-index: 30;

    top: 24px;
    left: 28px;
    right: 28px;

    display: flex;

    justify-content:
        space-between;

    align-items: center;
}


.auth-brand {
    display: flex;

    align-items: center;

    gap: 12px;
}


.auth-brand strong,
.auth-brand small {
    display: block;
}


.auth-brand strong {
    font-size: 13px;

    letter-spacing: .1em;
}


.auth-brand small {
    margin-top: 2px;

    color:
        var(--muted);

    font-size: 10px;
}


.auth-top-actions {
    display: flex;

    align-items: center;

    gap: 10px;
}


.secure-badge {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding:
        10px
        13px;

    border:
        1px solid var(--line);

    border-radius: 999px;

    color:
        var(--muted);

    font-size: 10px;
}


.secure-badge > span {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        var(--lime);
}


.auth-stage {
    position: relative;

    min-height: 100vh;

    display: grid;

    place-items: center;

    padding: 100px 20px;
}


.auth-console {
    position: relative;

    z-index: 10;

    width:
        min(
            calc(100% - 32px),
            440px
        );

    padding:
        38px;

    border:
        1px solid var(--line);

    border-radius:
        50px 20px 50px 20px;

    background:
        var(--surface);

    backdrop-filter:
        blur(26px);

    box-shadow:
        var(--shadow);

    animation:
        consoleIn
        .75s
        cubic-bezier(.2,.8,.2,1)
        both;
}


.console-symbol {
    width: 54px;
    height: 54px;

    margin-bottom: 30px;

    display: grid;

    place-items: center;

    border:
        1px solid var(--line);

    border-radius: 50%;
}


.console-symbol span {
    width: 14px;
    height: 14px;

    border-radius: 50%;

    background:
        var(--lime);

    box-shadow:
        0 0 0 8px
        rgba(0,169,254,.11);

    animation:
        pulseDot
        2.4s
        ease
        infinite;
}


.console-heading h1 {
    margin: 0;

    font-size:
        clamp(
            34px,
            4vw,
            48px
        );

    line-height: 1;

    letter-spacing: -.055em;
}


.console-heading > p:last-child {
    margin:
        12px
        0
        0;

    color:
        var(--muted);

    font-size: 13px;
}


.auth-form {
    margin-top: 30px;

    display: grid;

    gap: 18px;
}


.auth-field {
    display: grid;

    gap: 8px;
}


.auth-field label {
    font-size: 10px;

    font-weight: 800;

    letter-spacing: .05em;

    text-transform: uppercase;
}


.field-shell {
    height: 56px;

    display: flex;

    align-items: center;

    border-bottom:
        1px solid var(--line-strong);

    transition:
        border .18s ease;
}


.field-shell:focus-within {
    border-bottom-color:
        var(--lime-deep);
}


.field-symbol {
    width: 34px;

    color:
        var(--muted);

    font-size: 12px;

    font-weight: 800;
}


.field-shell input {
    width: 100%;

    height: 100%;

    padding: 0;

    border: 0;

    outline: none;

    background:
        transparent;

    color:
        var(--ink);

    font-size: 14px;
}


.password-action {
    padding:
        8px
        0
        8px
        12px;

    border: 0;

    background:
        transparent;

    color:
        var(--muted);

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .08em;
}


.auth-submit {
    height: 58px;

    margin-top: 12px;

    padding:
        0
        8px
        0
        22px;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    border: 0;

    border-radius: 999px;

    background:
        var(--ink);

    color:
        var(--canvas);

    font-weight: 800;

    transition:
        transform .2s ease;
}


.auth-submit:hover {
    transform:
        translateY(-3px);
}


.submit-arrow {
    width: 43px;
    height: 43px;

    display: grid;

    place-items: center;

    border-radius: 50%;

    background:
        var(--lime);

    color:
        #151c0b;

    font-size: 18px;

    transition:
        transform .2s ease;
}


.auth-submit:hover
.submit-arrow {
    transform:
        rotate(-22deg);
}


.console-footer {
    margin-top: 25px;

    display: flex;

    justify-content:
        space-between;

    color:
        var(--muted);

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .06em;
}


.console-status {
    display: flex;

    align-items: center;

    gap: 7px;
}


.console-status i {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background:
        var(--lime);
}


.form-message {
    margin-top: 22px;

    padding:
        12px
        14px;

    border:
        1px solid rgba(255,113,95,.18);

    border-radius:
        14px;

    color:
        var(--coral);

    background:
        rgba(255,113,95,.07);

    font-size: 11px;
}



/* =====================================
   LOGIN ORBITS
===================================== */

.orbit-visual {
    position: absolute;

    left: 50%;
    top: 50%;

    width:
        min(
            76vw,
            980px
        );

    aspect-ratio: 1;

    transform:
        translate(-50%, -50%);

    pointer-events: none;

    opacity: .9;
}


.orbit-ring {
    position: absolute;

    left: 50%;
    top: 50%;

    transform:
        translate(-50%, -50%);

    border:
        1px solid var(--line);

    border-radius: 50%;
}


.ring-one {
    width: 47%;
    height: 47%;

    animation:
        orbitBreath
        6s
        ease-in-out
        infinite;
}


.ring-two {
    width: 72%;
    height: 72%;

    border-style: dashed;

    animation:
        spin
        36s
        linear
        infinite;
}


.ring-three {
    width: 100%;
    height: 100%;

    opacity: .55;
}


.orbit-node {
    position: absolute;

    width: 12px;
    height: 12px;

    border-radius: 50%;

    background:
        var(--lime);

    box-shadow:
        0 0 0 7px
        rgba(0,169,254,.09);
}


.node-a {
    left: 13%;
    top: 34%;

    animation:
        nodeFloat
        5s
        ease-in-out
        infinite;
}


.node-b {
    right: 16%;
    top: 23%;

    background:
        var(--coral);

    box-shadow:
        0 0 0 7px
        rgba(255,113,95,.07);

    animation:
        nodeFloat
        6s
        ease-in-out
        infinite
        reverse;
}


.node-c {
    right: 9%;
    bottom: 25%;

    background:
        var(--violet);

    box-shadow:
        0 0 0 7px
        rgba(120,105,255,.07);

    animation:
        nodeFloat
        7s
        ease-in-out
        infinite;
}


.floating-note {
    position: absolute;

    z-index: 8;

    width: 220px;

    padding:
        18px;

    border-top:
        1px solid var(--line);

    border-bottom:
        1px solid var(--line);

    color:
        var(--ink);

    animation:
        noteFloat
        7s
        ease-in-out
        infinite;
}


.note-left {
    left: 8%;
    top: 34%;
}


.note-right {
    right: 8%;
    bottom: 25%;

    animation-delay: -2s;
}


.note-kicker {
    display: block;

    margin-bottom: 7px;

    color:
        var(--lime-deep);

    font-size: 9px;

    font-weight: 900;

    letter-spacing: .12em;
}


.floating-note strong {
    display: block;

    font-size: 13px;
}


.floating-note small {
    display: block;

    margin-top: 5px;

    color:
        var(--muted);

    font-size: 10px;

    line-height: 1.55;
}



/* =====================================
   REVEALS
===================================== */

.reveal {
    animation:
        revealUp
        .7s
        cubic-bezier(.2,.8,.2,1)
        both;
}


.reveal-delay-1 {
    animation-delay:
        .08s;
}


.reveal-delay-2 {
    animation-delay:
        .16s;
}


.reveal-delay-3 {
    animation-delay:
        .24s;
}


.reveal-delay-4 {
    animation-delay:
        .32s;
}



/* =====================================
   ANIMATIONS
===================================== */

@keyframes spin {
    to {
        transform:
            rotate(360deg);
    }
}


@keyframes radarSweep {
    to {
        transform:
            rotate(360deg);
    }
}


@keyframes pulseDot {
    0%,
    100% {
        transform:
            scale(1);

        opacity: 1;
    }

    50% {
        transform:
            scale(.75);

        opacity: .55;
    }
}


@keyframes revealUp {
    from {
        opacity: 0;

        transform:
            translateY(20px);
    }

    to {
        opacity: 1;

        transform:
            translateY(0);
    }
}


@keyframes consoleIn {
    from {
        opacity: 0;

        transform:
            translateY(25px)
            scale(.97);
    }

    to {
        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


@keyframes orbitBreath {
    0%,
    100% {
        transform:
            translate(-50%, -50%)
            scale(1);
    }

    50% {
        transform:
            translate(-50%, -50%)
            scale(1.06);
    }
}


@keyframes nodeFloat {
    0%,
    100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(-22px);
    }
}


@keyframes noteFloat {
    0%,
    100% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(-12px);
    }
}



/* =====================================
   RESPONSIVE
===================================== */

@media (max-width: 1080px) {

    .command-center {
        display: none;
    }

    .command-bar {
        grid-template-columns:
            1fr auto;
    }

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

    .renewal-radar,
    .operations-feed {
        min-height: auto;
    }

    .floating-note {
        display: none;
    }

}


@media (max-width: 820px) {

    .profile-copy {
        display: none;
    }

    .profile-pill {
        min-width: auto;
    }

    .signal-strip {
        display: grid;

        grid-template-columns:
            1fr 1fr;

        border-radius:
            28px;

        gap: 0;
    }

    .signal-divider {
        display: none;
    }

    .signal-item {
        padding:
            14px;
    }

    .radar-zone {
        grid-template-columns:
            1fr;
    }

    .radar-caption {
        padding:
            0
            15px
            15px;
    }

    .command-dock {
        width:
            calc(100% - 28px);

        justify-content:
            space-around;

        overflow-x: auto;
    }

    .dock-item {
        min-width: 60px;
    }

}


@media (max-width: 620px) {

    .command-bar {
        left: 12px;
        right: 12px;
        top: 12px;

        height: 64px;

        border-radius:
            20px;
    }

    .workspace {
        width:
            calc(100% - 24px);

        padding-top:
            102px;

        padding-bottom:
            125px;
    }

    .dashboard-intro {
        align-items:
            flex-start;

        flex-direction:
            column;
    }

    .dashboard-intro h1 {
        font-size:
            48px;
    }

    .signal-strip {
        grid-template-columns:
            1fr;
    }

    .signal-item {
        border-bottom:
            1px solid var(--line);
    }

    .signal-item:last-child {
        border-bottom: 0;
    }

    .renewal-radar {
        padding: 22px;

        border-radius:
            42px 20px
            42px 20px;
    }

    .operations-feed {
        padding: 22px;

        border-radius:
            20px 42px
            20px 42px;
    }

    .radar-zone {
        min-height: 420px;
    }

    .command-dock {
        bottom: 10px;

        min-height: 66px;

        padding:
            6px;

        border-radius:
            24px;
    }

    .dock-item {
        min-width: 48px;

        height: 48px;

        padding:
            4px;
    }

    .dock-item > span:last-child {
        display: none;
    }

    .dock-main {
        width: 52px;
        height: 52px;

        margin: 0 2px;
    }

    .dock-main > span:last-child {
        display: none;
    }

    .auth-top {
        top: 16px;
        left: 16px;
        right: 16px;
    }

    .secure-badge {
        display: none;
    }

    .auth-console {
        padding: 28px;

        border-radius:
            38px 18px
            38px 18px;
    }

    .orbit-visual {
        width: 145vw;
    }

}


@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration:
            .001ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            .001ms !important;
    }

}


/* =========================================================
   IT-MAC BRAND SYSTEM
   Identidad basada en logotipo oficial
========================================================= */

:root {
    --brand-blue: #00A9FE;
    --brand-blue-deep: #0097F0;
    --brand-cyan: #00CBF9;

    --brand-silver: #B9B7B8;
    --brand-silver-light: #DEDEDE;

    --brand-graphite: #10151C;
    --brand-white: #F7FAFC;

    /*
       Compatibilidad con componentes existentes.
       Conservamos los nombres internos para no romper
       ninguna animación o componente actual.
    */
    --lime: var(--brand-blue);
    --lime-deep: var(--brand-blue-deep);

    --coral: var(--brand-cyan);
    --violet: var(--brand-silver);

    --canvas: #F4F8FB;
    --canvas-2: #EAF1F6;

    --ink: #101820;
    --ink-soft: #2B3844;

    --surface: rgba(255, 255, 255, .78);
    --surface-solid: #FFFFFF;
    --surface-muted: rgba(235, 241, 246, .72);

    --line: rgba(38, 82, 112, .12);
    --line-strong: rgba(38, 82, 112, .22);

    --muted: #70808E;

    --shadow:
        0 24px 60px rgba(18, 74, 109, .10);

    --shadow-soft:
        0 12px 32px rgba(18, 74, 109, .07);
}


/* =========================================================
   DARK MODE IT-MAC
========================================================= */

html[data-theme="dark"] {
    --canvas: #08111B;
    --canvas-2: #0D1925;

    --ink: #F5F9FC;
    --ink-soft: #D7E3EC;

    --surface: rgba(13, 27, 40, .78);
    --surface-solid: #101E2B;
    --surface-muted: rgba(23, 42, 57, .72);

    --line: rgba(105, 177, 219, .15);
    --line-strong: rgba(105, 177, 219, .25);

    --muted: #91A7B8;

    --lime: #00B7FF;
    --lime-deep: #38C9FF;

    --coral: #00D1F7;
    --violet: #BFC7CD;

    --shadow:
        0 26px 70px rgba(0, 0, 0, .34);

    --shadow-soft:
        0 14px 34px rgba(0, 0, 0, .22);
}


/* =========================================================
   BRAND DETAILS
========================================================= */

.brand-core {
    background:
        linear-gradient(
            145deg,
            var(--brand-blue),
            var(--brand-cyan)
        );

    color: #FFFFFF;

    box-shadow:
        0 7px 18px rgba(0, 169, 254, .22);
}


.brand-orbit {
    border-color:
        rgba(0, 169, 254, .28);
}


.brand-orbit::before {
    border-color:
        rgba(0, 203, 249, .34);
}


.live-indicator > span,
.today-dot,
.console-symbol span,
.secure-badge > span,
.console-status i {
    background:
        var(--brand-blue);

    box-shadow:
        0 0 0 5px
        rgba(0, 169, 254, .13);
}


.profile-avatar {
    background:
        linear-gradient(
            145deg,
            var(--brand-blue),
            var(--brand-cyan)
        );

    color: white;

    box-shadow:
        0 8px 18px
        rgba(0, 169, 254, .18);
}


.micro-label,
.note-kicker {
    color:
        var(--brand-blue-deep);
}


html[data-theme="dark"] .micro-label,
html[data-theme="dark"] .note-kicker {
    color:
        var(--brand-cyan);
}


/* Métricas */

.signal-number {
    color:
        var(--brand-blue);
}


.signal-number.coral {
    color:
        var(--brand-cyan);
}


.signal-number.violet {
    color:
        var(--brand-silver);
}


.signal-number.lime {
    color:
        var(--brand-blue-deep);
}


html[data-theme="dark"] .signal-number.violet {
    color:
        var(--brand-silver-light);
}


/* Radar */

.radar {
    background:
        radial-gradient(
            circle,
            rgba(0, 169, 254, .08),
            transparent 64%
        );
}


.radar-sweep {
    background:
        conic-gradient(
            from 0deg,
            transparent 0deg,
            transparent 300deg,
            rgba(0, 169, 254, .02) 312deg,
            rgba(0, 203, 249, .36) 358deg,
            transparent 360deg
        );
}


.radar-core {
    background:
        linear-gradient(
            145deg,
            #111C25,
            #06121C
        );

    color:
        #FFFFFF;

    box-shadow:
        0 0 0 10px
        rgba(0, 169, 254, .11),
        0 18px 40px
        rgba(0, 123, 190, .16);
}


html[data-theme="dark"] .radar-core {
    background:
        linear-gradient(
            145deg,
            #00A9FE,
            #008DDA
        );

    color:
        #FFFFFF;
}


.caption-line {
    background:
        linear-gradient(
            90deg,
            var(--brand-blue),
            var(--brand-cyan)
        );
}


/* Timeline */

.feed-track span {
    background:
        var(--brand-blue);

    box-shadow:
        0 0 0 6px
        rgba(0, 169, 254, .10);
}


.feed-track.coral span {
    background:
        var(--brand-cyan);

    box-shadow:
        0 0 0 6px
        rgba(0, 203, 249, .09);
}


.feed-track.violet span {
    background:
        var(--brand-silver);

    box-shadow:
        0 0 0 6px
        rgba(185, 183, 184, .12);
}


/* Dock */

.dock-main {
    background:
        linear-gradient(
            145deg,
            var(--brand-blue),
            var(--brand-cyan)
        );

    color:
        white;

    box-shadow:
        0 14px 30px
        rgba(0, 169, 254, .25);
}


.dock-item.active {
    background:
        linear-gradient(
            145deg,
            #102431,
            #07141E
        );

    color:
        white;
}


html[data-theme="dark"] .dock-item.active {
    background:
        linear-gradient(
            145deg,
            var(--brand-blue),
            #008AD9
        );

    color:
        white;
}


/* Botón de acceso */

.auth-submit {
    background:
        linear-gradient(
            120deg,
            #101B24,
            #07131D
        );

    color:
        white;
}


html[data-theme="dark"] .auth-submit {
    background:
        linear-gradient(
            120deg,
            #00A9FE,
            #008DDE
        );
}


.submit-arrow {
    background:
        linear-gradient(
            145deg,
            var(--brand-blue),
            var(--brand-cyan)
        );

    color:
        white;
}


/* Login orbit nodes */

.orbit-node {
    background:
        var(--brand-blue);

    box-shadow:
        0 0 0 7px
        rgba(0, 169, 254, .10);
}


.node-b {
    background:
        var(--brand-cyan);

    box-shadow:
        0 0 0 7px
        rgba(0, 203, 249, .08);
}


.node-c {
    background:
        var(--brand-silver);

    box-shadow:
        0 0 0 7px
        rgba(185, 183, 184, .10);
}


/* Fondos ambientales */

.ambient-a {
    background:
        radial-gradient(
            circle,
            rgba(0, 169, 254, .72),
            transparent 68%
        );
}


.ambient-b {
    background:
        radial-gradient(
            circle,
            rgba(0, 203, 249, .42),
            transparent 68%
        );
}


/* =========================================================
   LOGIN — FULL VIEWPORT FIX
========================================================= */

.auth-body {
    min-height:
        100vh;

    min-height:
        100dvh;

    overflow-x:
        hidden;

    overflow-y:
        auto;
}


.auth-world {
    position:
        relative;

    width:
        100%;

    min-height:
        100vh;

    min-height:
        100dvh;

    overflow-x:
        hidden;

    overflow-y:
        auto;
}


.auth-stage {
    position:
        relative;

    width:
        100%;

    min-height:
        100vh;

    min-height:
        100dvh;

    padding:
        86px
        20px
        28px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;
}


.auth-console {
    width:
        min(
            calc(100vw - 40px),
            440px
        );

    max-width:
        440px;

    margin:
        auto;
}


/*
   Ajuste específico para laptops:
   1366x768, 1440x900, etc.
*/

@media
(max-height: 800px)
and
(min-width: 700px) {

    .auth-top {
        top:
            14px;
    }


    .auth-stage {
        padding:
            72px
            20px
            16px;
    }


    .auth-console {
        padding:
            27px
            32px;

        border-radius:
            40px
            18px
            40px
            18px;
    }


    .console-symbol {
        width:
            44px;

        height:
            44px;

        margin-bottom:
            18px;
    }


    .console-symbol span {
        width:
            11px;

        height:
            11px;
    }


    .console-heading h1 {
        font-size:
            36px;
    }


    .console-heading > p:last-child {
        margin-top:
            8px;
    }


    .auth-form {
        margin-top:
            21px;

        gap:
            13px;
    }


    .field-shell {
        height:
            49px;
    }


    .auth-submit {
        height:
            52px;

        margin-top:
            6px;
    }


    .submit-arrow {
        width:
            39px;

        height:
            39px;
    }


    .console-footer {
        margin-top:
            17px;
    }


    .floating-note {
        transform:
            scale(.90);
    }

}


/*
   Pantallas de poca altura.
   Aquí priorizamos el formulario.
*/

@media
(max-height: 680px) {

    .auth-stage {
        align-items:
            flex-start;

        padding-top:
            76px;
    }


    .auth-console {
        padding:
            24px
            28px;
    }


    .console-symbol {
        display:
            none;
    }


    .auth-form {
        margin-top:
            18px;
    }


    .floating-note {
        display:
            none;
    }


    .orbit-visual {
        opacity:
            .55;
    }

}


/* =========================================================
   MOBILE LOGIN
========================================================= */

@media
(max-width: 620px) {

    .auth-world {
        min-height:
            100dvh;
    }


    .auth-stage {
        min-height:
            100dvh;

        padding:
            88px
            14px
            22px;
    }


    .auth-console {
        width:
            100%;

        max-width:
            440px;

        padding:
            27px
            24px;
    }


    .console-heading h1 {
        font-size:
            clamp(
                32px,
                10vw,
                42px
            );
    }


    .auth-top {
        top:
            14px;

        left:
            16px;

        right:
            16px;
    }

}


/* =========================================================
   DARK MODE REBALANCE
   Mantener claro igual, suavizar oscuro
========================================================= */

html[data-theme="dark"] {
    --canvas: #0C1015;
    --canvas-2: #11161D;

    --ink: #F2F5F8;
    --ink-soft: #D5DCE4;

    --surface: rgba(18, 23, 30, .80);
    --surface-solid: #141A22;
    --surface-muted: rgba(27, 34, 43, .78);

    --line: rgba(210, 220, 232, .08);
    --line-strong: rgba(210, 220, 232, .14);

    --muted: #94A0AE;

    /* acentos */
    --lime: #14A9F5;
    --lime-deep: #43BDF7;

    --coral: #35C8F6;
    --violet: #AEB7C2;

    --shadow:
        0 24px 60px rgba(0, 0, 0, .34);

    --shadow-soft:
        0 14px 30px rgba(0, 0, 0, .24);
}


/* Fondo general más neutro */
html[data-theme="dark"] body {
    background: var(--canvas);
}

html[data-theme="dark"] .ambient-noise {
    opacity: .02;
}

html[data-theme="dark"] .ambient-a {
    background:
        radial-gradient(
            circle,
            rgba(20, 169, 245, .16),
            transparent 70%
        );
}

html[data-theme="dark"] .ambient-b {
    background:
        radial-gradient(
            circle,
            rgba(53, 200, 246, .10),
            transparent 72%
        );
}


/* Superficies oscuras más sobrias */
html[data-theme="dark"] .command-bar,
html[data-theme="dark"] .signal-strip,
html[data-theme="dark"] .renewal-radar,
html[data-theme="dark"] .operations-feed,
html[data-theme="dark"] .command-dock,
html[data-theme="dark"] .auth-console {
    background:
        linear-gradient(
            180deg,
            rgba(18, 23, 30, .90),
            rgba(15, 20, 26, .88)
        );

    border-color:
        rgba(215, 224, 235, .08);
}


/* Textos y detalles */
html[data-theme="dark"] .brand-text small,
html[data-theme="dark"] .command-location,
html[data-theme="dark"] .intro-description,
html[data-theme="dark"] .signal-copy small,
html[data-theme="dark"] .feed-copy p,
html[data-theme="dark"] .radar-caption p,
html[data-theme="dark"] .profile-copy small,
html[data-theme="dark"] .today-chip small,
html[data-theme="dark"] .today-chip strong {
    color: #97A5B4;
}


/* Mantener azul solo como acento */
html[data-theme="dark"] .micro-label,
html[data-theme="dark"] .note-kicker {
    color: #47C8FA;
}

html[data-theme="dark"] .signal-number {
    color: #EAF0F5;
}

html[data-theme="dark"] .signal-number.coral {
    color: #35C8F6;
}

html[data-theme="dark"] .signal-number.violet {
    color: #BDC6CF;
}

html[data-theme="dark"] .signal-number.lime {
    color: #14A9F5;
}


/* Barra superior */
html[data-theme="dark"] .live-indicator {
    color: #EAF0F5;
}

html[data-theme="dark"] .live-indicator > span,
html[data-theme="dark"] .today-dot,
html[data-theme="dark"] .console-symbol span,
html[data-theme="dark"] .secure-badge > span,
html[data-theme="dark"] .console-status i {
    background: #14A9F5;
    box-shadow:
        0 0 0 5px rgba(20, 169, 245, .10);
}


/* Avatar y marca */
html[data-theme="dark"] .profile-avatar,
html[data-theme="dark"] .brand-core,
html[data-theme="dark"] .dock-main {
    background:
        linear-gradient(
            145deg,
            #119CE7,
            #39C9F6
        );

    color: #FFFFFF;
}


/* Botones */
html[data-theme="dark"] .round-action,
html[data-theme="dark"] .profile-pill {
    background: #111821;
    border-color: rgba(215, 224, 235, .10);
}

html[data-theme="dark"] .round-action:hover {
    background: #15202B;
}


/* Dock inferior menos azul */
html[data-theme="dark"] .dock-item {
    color: #95A2B1;
}

html[data-theme="dark"] .dock-item.active {
    background:
        linear-gradient(
            145deg,
            #18222D,
            #101820
        );

    color: #FFFFFF;

    border: 1px solid rgba(20, 169, 245, .18);
}

html[data-theme="dark"] .dock-item:hover:not(.disabled) {
    color: #FFFFFF;
}


/* Radar más elegante y menos neón */
html[data-theme="dark"] .radar {
    background:
        radial-gradient(
            circle,
            rgba(20, 169, 245, .05),
            transparent 66%
        );
}

html[data-theme="dark"] .radar-sweep {
    background:
        conic-gradient(
            from 0deg,
            transparent 0deg,
            transparent 300deg,
            rgba(20, 169, 245, .015) 312deg,
            rgba(53, 200, 246, .18) 358deg,
            transparent 360deg
        );
}

html[data-theme="dark"] .radar-core {
    background:
        linear-gradient(
            145deg,
            #151D26,
            #0F151C
        );

    color: #FFFFFF;

    box-shadow:
        0 0 0 10px rgba(20, 169, 245, .08),
        0 18px 36px rgba(0, 0, 0, .28);
}

html[data-theme="dark"] .caption-line {
    background:
        linear-gradient(
            90deg,
            #14A9F5,
            #35C8F6
        );
}


/* Timeline */
html[data-theme="dark"] .feed-track span {
    background: #14A9F5;
    box-shadow:
        0 0 0 6px rgba(20, 169, 245, .08);
}

html[data-theme="dark"] .feed-track.coral span {
    background: #35C8F6;
    box-shadow:
        0 0 0 6px rgba(53, 200, 246, .07);
}

html[data-theme="dark"] .feed-track.violet span {
    background: #AEB7C2;
    box-shadow:
        0 0 0 6px rgba(174, 183, 194, .07);
}


/* Login dark más sobrio */
html[data-theme="dark"] .auth-world {
    background:
        radial-gradient(
            circle at var(--mx) var(--my),
            rgba(20, 169, 245, .06),
            transparent 28%
        );
}

html[data-theme="dark"] .auth-submit {
    background:
        linear-gradient(
            120deg,
            #18222D,
            #101820
        );

    color: #FFFFFF;
}

html[data-theme="dark"] .submit-arrow {
    background:
        linear-gradient(
            145deg,
            #119CE7,
            #39C9F6
        );

    color: #FFFFFF;
}

html[data-theme="dark"] .orbit-node {
    background: #14A9F5;
    box-shadow:
        0 0 0 7px rgba(20, 169, 245, .08);
}

html[data-theme="dark"] .node-b {
    background: #35C8F6;
    box-shadow:
        0 0 0 7px rgba(53, 200, 246, .06);
}

html[data-theme="dark"] .node-c {
    background: #B9C2CB;
    box-shadow:
        0 0 0 7px rgba(185, 194, 203, .06);
}



/* =========================================================
   IT-MAC OFFICIAL MARK
========================================================= */

.brand-orbit {
    overflow: hidden;
    background: #05090D;
}

.brand-image {
    position: relative;
    z-index: 2;

    width: 34px;
    height: 34px;

    display: block;

    object-fit: cover;

    border-radius: 50%;
}

.auth-brand .brand-image {
    width: 34px;
    height: 34px;
}



/* =========================================================
   CLIENTS MODULE
========================================================= */

.module-heading,
.form-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;

    padding:
        28px
        10px
        32px;
}


.module-heading h1,
.form-heading h1,
.client-hero h1 {
    margin: 0;

    font-size:
        clamp(
            42px,
            5vw,
            72px
        );

    line-height: .98;

    letter-spacing: -.06em;
}


.module-description,
.form-heading > div > p:last-child {
    margin: 14px 0 0;

    color: var(--muted);

    font-size: 14px;
}


.module-action {
    min-height: 48px;

    padding:
        0
        19px;

    display: inline-flex;
    align-items: center;

    gap: 10px;

    border-radius: 999px;

    background:
        var(--ink);

    color:
        var(--canvas);

    font-size: 12px;

    font-weight: 800;

    box-shadow:
        var(--shadow-soft);

    transition:
        transform .18s ease;
}


.module-action:hover {
    transform:
        translateY(-2px);
}


.module-action > span {
    font-size: 19px;
}


.module-action.secondary {
    background:
        var(--surface-solid);

    color:
        var(--ink);

    border:
        1px solid var(--line);
}


/* Search */

.client-command {
    padding:
        16px
        20px;

    display: flex;
    align-items: center;

    justify-content:
        space-between;

    gap: 18px;

    border-top:
        1px solid var(--line);

    border-bottom:
        1px solid var(--line);
}


.client-search {
    flex: 1;

    display: flex;
    align-items: center;

    gap: 10px;
}


.search-line {
    max-width: 560px;

    flex: 1;

    height: 48px;

    padding:
        0
        16px;

    display: flex;
    align-items: center;

    gap: 10px;

    border:
        1px solid var(--line);

    border-radius: 999px;

    background:
        var(--surface-solid);
}


.search-symbol {
    color:
        var(--muted);
}


.search-line input {
    width: 100%;

    border: 0;

    outline: none;

    background:
        transparent;

    color:
        var(--ink);
}


.client-search select {
    height: 48px;

    padding:
        0
        36px
        0
        15px;

    border:
        1px solid var(--line);

    border-radius: 999px;

    background:
        var(--surface-solid);

    color:
        var(--ink);

    outline: none;
}


.client-search button {
    height: 48px;

    padding:
        0
        18px;

    border: 0;

    border-radius: 999px;

    background:
        var(--ink);

    color:
        var(--canvas);

    font-weight: 800;
}


.client-result-count {
    min-width: 90px;

    text-align: right;
}


.client-result-count strong,
.client-result-count span {
    display: block;
}


.client-result-count strong {
    font-size: 22px;
}


.client-result-count span {
    color:
        var(--muted);

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .08em;
}


/* Ledger */

.client-ledger {
    margin-top: 22px;

    border-top:
        1px solid var(--line);
}


.client-row {
    min-height: 92px;

    padding:
        16px
        18px;

    display: grid;

    grid-template-columns:
        minmax(250px, 1.4fr)
        minmax(120px, .6fr)
        minmax(220px, 1fr)
        130px
        36px;

    align-items: center;

    gap: 18px;

    border-bottom:
        1px solid var(--line);

    transition:
        background .18s ease,
        transform .18s ease;
}


.client-row:hover {
    background:
        var(--surface-muted);

    transform:
        translateX(4px);
}


.client-identity {
    display: flex;
    align-items: center;

    gap: 13px;

    min-width: 0;
}


.client-monogram,
.contact-avatar {
    width: 46px;
    height: 46px;

    flex: 0 0 auto;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        var(--surface-solid);

    border:
        1px solid var(--line);

    color:
        var(--brand-blue);

    font-weight: 900;
}


.client-identity strong,
.client-identity small {
    display: block;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;
}


.client-identity strong {
    font-size: 14px;
}


.client-identity small {
    margin-top: 4px;

    color:
        var(--muted);

    font-size: 10px;
}


.client-data small,
.client-data strong {
    display: block;
}


.client-data small {
    margin-bottom: 4px;

    color:
        var(--muted);

    font-size: 8px;

    letter-spacing: .09em;

    text-transform: uppercase;
}


.client-data strong {
    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

    font-size: 11px;

    font-weight: 650;
}


.client-status {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    color:
        var(--muted);

    font-size: 10px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .04em;
}


.status-marker {
    width: 8px;
    height: 8px;

    border-radius: 50%;
}


.status-active {
    background:
        #18A7F2;

    box-shadow:
        0 0 0 5px
        rgba(24,167,242,.10);
}


.status-prospect {
    background:
        #AEB7C2;

    box-shadow:
        0 0 0 5px
        rgba(174,183,194,.10);
}


.status-inactive {
    background:
        #7B838C;

    box-shadow:
        0 0 0 5px
        rgba(123,131,140,.08);
}


.client-arrow {
    font-size: 18px;

    color:
        var(--muted);

    transition:
        transform .18s ease;
}


.client-row:hover .client-arrow {
    transform:
        translateX(4px);
}


/* Empty */

.module-empty,
.contacts-empty {
    min-height: 330px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    text-align: center;
}


.module-empty-icon,
.contacts-empty > span {
    width: 64px;
    height: 64px;

    display: grid;
    place-items: center;

    margin-bottom: 18px;

    border:
        1px solid var(--line);

    border-radius: 50%;

    color:
        var(--brand-blue);

    font-size: 22px;
}


.module-empty p,
.contacts-empty p {
    max-width: 400px;

    margin:
        8px
        0
        0;

    color:
        var(--muted);

    font-size: 12px;
}


/* Pagination */

.pagination {
    padding:
        22px
        16px;

    display: flex;

    justify-content:
        center;

    align-items: center;

    gap: 22px;

    color:
        var(--muted);

    font-size: 11px;
}


.pagination a {
    color:
        var(--ink);

    font-weight: 800;
}


/* Forms */

.back-link {
    display: inline-block;

    margin-bottom: 22px;

    color:
        var(--muted);

    font-size: 11px;

    font-weight: 700;
}


.module-form {
    max-width: 1050px;

    margin: 0 auto;
}


.compact-form {
    max-width: 900px;
}


.form-section {
    padding:
        28px
        0;

    display: grid;

    grid-template-columns:
        220px
        minmax(0, 1fr);

    gap: 34px;

    border-top:
        1px solid var(--line);
}


.form-section-heading {
    display: flex;

    gap: 13px;
}


.form-section-heading > span {
    color:
        var(--brand-blue);

    font-size: 9px;

    font-weight: 900;

    letter-spacing: .08em;
}


.form-section-heading strong,
.form-section-heading small {
    display: block;
}


.form-section-heading strong {
    font-size: 14px;
}


.form-section-heading small {
    max-width: 170px;

    margin-top: 5px;

    color:
        var(--muted);

    font-size: 10px;

    line-height: 1.5;
}


.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        22px
        18px;
}


.form-field {
    min-width: 0;
}


.form-field.wide {
    grid-column:
        span 2;
}


.form-field.full {
    grid-column:
        1 / -1;
}


.form-field label {
    display: block;

    margin-bottom: 8px;

    color:
        var(--muted);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .08em;

    text-transform: uppercase;
}


.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;

    padding:
        0
        15px;

    border:
        1px solid var(--line);

    border-radius:
        14px;

    outline: none;

    background:
        var(--surface-solid);

    color:
        var(--ink);

    transition:
        border .18s ease,
        box-shadow .18s ease;
}


.form-field input,
.form-field select {
    height: 51px;
}


.form-field textarea {
    padding:
        14px
        15px;

    resize: vertical;
}


.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color:
        rgba(0,169,254,.45);

    box-shadow:
        0 0 0 4px
        rgba(0,169,254,.08);
}


.form-field .errorlist {
    margin:
        7px
        0
        0;

    padding: 0;

    list-style: none;

    color:
        #E55E69;

    font-size: 10px;
}


.form-alert {
    margin-bottom: 20px;

    padding:
        13px
        15px;

    border:
        1px solid
        rgba(229,94,105,.16);

    border-radius: 14px;

    background:
        rgba(229,94,105,.07);

    color:
        #E55E69;

    font-size: 11px;
}


.form-actions {
    padding:
        26px
        0;

    display: flex;

    justify-content:
        flex-end;

    align-items: center;

    gap: 14px;

    border-top:
        1px solid var(--line);
}


.form-cancel {
    padding:
        13px
        18px;

    color:
        var(--muted);

    font-size: 11px;

    font-weight: 750;
}


.form-save {
    min-width: 185px;

    height: 52px;

    padding:
        0
        8px
        0
        20px;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    border: 0;

    border-radius: 999px;

    background:
        var(--ink);

    color:
        var(--canvas);

    font-weight: 800;
}


.form-save span {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background:
        var(--brand-blue);

    color:
        white;
}


/* Detail */

.client-hero {
    padding:
        28px
        10px
        34px;

    display: flex;

    justify-content:
        space-between;

    align-items: flex-end;

    gap: 28px;

    border-bottom:
        1px solid var(--line);
}


.client-hero-main {
    display: flex;

    align-items: center;

    gap: 20px;
}


.client-hero-main .back-link {
    position: absolute;

    margin-top:
        -100px;
}


.client-big-monogram {
    width: 84px;
    height: 84px;

    display: grid;
    place-items: center;

    flex: 0 0 auto;

    border:
        1px solid var(--line);

    border-radius: 50%;

    background:
        var(--surface);

    color:
        var(--brand-blue);

    font-size: 29px;

    font-weight: 900;
}


.client-hero h1 {
    font-size:
        clamp(
            36px,
            4vw,
            62px
        );
}


.client-hero-main p:last-child {
    margin:
        8px
        0
        0;

    color:
        var(--muted);
}


.client-hero-actions {
    display: flex;

    align-items: center;

    gap: 14px;
}


.hero-status {
    padding:
        12px
        16px;

    border:
        1px solid var(--line);

    border-radius: 999px;
}


.client-detail-grid {
    margin-top: 24px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.35fr)
        minmax(340px, .65fr);

    gap: 24px;
}


.client-info-block,
.contacts-block {
    padding: 28px;

    border:
        1px solid var(--line);

    background:
        var(--surface);

    backdrop-filter:
        blur(18px);

    box-shadow:
        var(--shadow-soft);
}


.client-info-block {
    border-radius:
        60px
        24px
        60px
        24px;
}


.contacts-block {
    border-radius:
        24px
        60px
        24px
        60px;
}


.client-info-block h2,
.contacts-block h2 {
    margin: 0;

    font-size: 24px;

    letter-spacing: -.035em;
}


.client-facts {
    margin:
        30px
        0
        0;

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        24px
        28px;
}


.client-facts div {
    padding-bottom: 16px;

    border-bottom:
        1px solid var(--line);
}


.client-facts dt {
    margin-bottom: 7px;

    color:
        var(--muted);

    font-size: 8px;

    text-transform: uppercase;

    letter-spacing: .1em;
}


.client-facts dd {
    margin: 0;

    font-size: 12px;

    font-weight: 650;

    overflow-wrap: anywhere;
}


.client-facts dd a {
    color:
        var(--brand-blue);
}


.client-notes {
    margin-top: 28px;

    padding:
        18px
        20px;

    border-left:
        3px solid
        var(--brand-blue);

    background:
        var(--surface-muted);
}


.client-notes small {
    color:
        var(--muted);

    text-transform: uppercase;

    letter-spacing: .08em;

    font-size: 8px;
}


.client-notes p {
    margin:
        8px
        0
        0;

    font-size: 11px;

    line-height: 1.65;
}


/* Contacts */

.contacts-heading {
    display: flex;

    justify-content:
        space-between;

    align-items: center;

    gap: 14px;
}


.contact-add {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border:
        1px solid var(--line);

    border-radius: 50%;

    background:
        var(--surface-solid);

    color:
        var(--brand-blue);

    font-size: 20px;
}


.contact-list {
    margin-top: 24px;
}


.contact-item {
    padding:
        16px
        0;

    display: grid;

    grid-template-columns:
        44px
        minmax(0, 1fr)
        28px;

    align-items: center;

    gap: 12px;

    border-bottom:
        1px solid var(--line);
}


.contact-item:last-child {
    border-bottom: 0;
}


.contact-avatar {
    width: 42px;
    height: 42px;
}


.contact-name {
    display: flex;

    flex-wrap: wrap;

    align-items: center;

    gap: 7px;
}


.contact-name strong {
    font-size: 12px;
}


.contact-name span {
    padding:
        3px
        7px;

    border-radius: 999px;

    background:
        rgba(0,169,254,.09);

    color:
        var(--brand-blue);

    font-size: 7px;

    text-transform: uppercase;

    font-weight: 900;

    letter-spacing: .06em;
}


.contact-main > small {
    display: block;

    margin-top: 3px;

    color:
        var(--muted);

    font-size: 9px;
}


.contact-main p {
    margin:
        6px
        0
        0;

    color:
        var(--muted);

    font-size: 10px;

    overflow-wrap: anywhere;
}


.contact-edit {
    color:
        var(--muted);

    font-size: 16px;
}


/* Toggles */

.toggle-grid {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 14px;
}


.toggle-row {
    min-height: 84px;

    padding:
        16px;

    display: flex;

    align-items: center;

    gap: 13px;

    border:
        1px solid var(--line);

    border-radius: 18px;

    background:
        var(--surface-solid);

    cursor: pointer;
}


.toggle-row input {
    width: 18px;
    height: 18px;

    accent-color:
        var(--brand-blue);
}


.toggle-row strong,
.toggle-row small {
    display: block;
}


.toggle-row strong {
    font-size: 11px;
}


.toggle-row small {
    margin-top: 4px;

    color:
        var(--muted);

    font-size: 9px;

    line-height: 1.4;
}


.contact-notes {
    margin-top: 20px;
}


/* Responsive */

@media (max-width: 1000px) {

    .client-row {
        grid-template-columns:
            minmax(220px, 1.3fr)
            minmax(120px, .7fr)
            120px
            30px;
    }

    .client-row .client-data:nth-of-type(2) {
        display: none;
    }

    .client-detail-grid {
        grid-template-columns:
            1fr;
    }

}


@media (max-width: 760px) {

    .module-heading,
    .form-heading,
    .client-hero {
        align-items:
            flex-start;

        flex-direction:
            column;
    }

    .client-command {
        align-items:
            stretch;

        flex-direction:
            column;
    }

    .client-search {
        align-items:
            stretch;

        flex-direction:
            column;
    }

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

    .client-result-count {
        text-align: left;
    }

    .client-row {
        grid-template-columns:
            minmax(0, 1fr)
            auto
            24px;
    }

    .client-row .client-data {
        display: none;
    }

    .client-status {
        font-size: 8px;
    }

    .form-section {
        grid-template-columns:
            1fr;

        gap: 20px;
    }

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

    .form-field.wide {
        grid-column:
            auto;
    }

    .client-hero-main {
        align-items:
            flex-start;

        flex-direction:
            column;
    }

    .client-hero-main .back-link {
        position: static;

        margin: 0;
    }

    .client-hero-actions {
        width: 100%;

        justify-content:
            space-between;
    }

    .client-facts {
        grid-template-columns:
            1fr;
    }

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

}


@media (max-width: 520px) {

    .module-heading h1,
    .form-heading h1 {
        font-size:
            44px;
    }

    .module-action {
        width: 100%;

        justify-content: center;
    }

    .client-row {
        padding:
            15px
            5px;
    }

    .client-monogram {
        width: 40px;
        height: 40px;
    }

    .client-info-block,
    .contacts-block {
        padding: 21px;

        border-radius:
            28px;
    }

}


/* =========================================================
   RENEWAL OS — ASYNC EXPERIENCE
========================================================= */

.app-loading {
    position: fixed;
    z-index: 9999;

    top: 0;
    left: 0;

    width: 100%;
    height: 3px;

    overflow: hidden;

    pointer-events: none;

    opacity: 0;

    transition: opacity .15s ease;
}


.app-loading.htmx-request {
    opacity: 1;
}


.app-loading span {
    position: absolute;

    top: 0;
    left: -35%;

    width: 35%;
    height: 100%;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            transparent,
            var(--brand-blue),
            var(--brand-cyan),
            transparent
        );

    animation:
        asyncLoading
        1.05s
        linear
        infinite;
}


@keyframes asyncLoading {

    from {
        transform:
            translateX(0);
    }

    to {
        transform:
            translateX(390%);
    }

}


/* HTMX page transition */

#app-content.htmx-swapping {
    opacity: .15;

    transform:
        translateY(5px);

    transition:
        opacity .12s ease,
        transform .12s ease;
}


#app-content.htmx-settling {
    opacity: 1;

    transform:
        translateY(0);

    transition:
        opacity .22s ease,
        transform .22s ease;
}


/* QUICK CREATE */

.dock-main {
    border: 0;
    cursor: pointer;
}


.quick-create {
    width: 100%;
    max-width: none;
    height: 100%;

    margin: 0;
    padding: 0;

    border: 0;

    background:
        transparent;

    overflow: hidden;
}


.quick-create::backdrop {
    background:
        rgba(6, 10, 14, .48);

    backdrop-filter:
        blur(8px);

    -webkit-backdrop-filter:
        blur(8px);
}


.quick-create-panel {
    position: absolute;

    left: 50%;
    bottom: 112px;

    width:
        min(
            calc(100% - 28px),
            610px
        );

    padding:
        26px;

    transform:
        translateX(-50%);

    border:
        1px solid var(--line);

    border-radius:
        32px;

    background:
        var(--surface-solid);

    color:
        var(--ink);

    box-shadow:
        0 30px 100px
        rgba(0, 0, 0, .24);

    animation:
        quickCreateIn
        .24s
        cubic-bezier(.2,.8,.2,1)
        both;
}


@keyframes quickCreateIn {

    from {
        opacity: 0;

        transform:
            translateX(-50%)
            translateY(20px)
            scale(.97);
    }

    to {
        opacity: 1;

        transform:
            translateX(-50%)
            translateY(0)
            scale(1);
    }

}


.quick-create-header {
    display: flex;

    align-items:
        flex-start;

    justify-content:
        space-between;

    gap: 20px;
}


.quick-create-header h2 {
    margin: 0;

    font-size: 28px;

    letter-spacing:
        -.045em;
}


.quick-close {
    width: 38px;
    height: 38px;

    border:
        1px solid var(--line);

    border-radius:
        50%;

    background:
        var(--surface);

    color:
        var(--ink);

    font-size: 19px;
}


.quick-actions {
    margin-top:
        24px;

    border-top:
        1px solid var(--line);
}


.quick-action {
    min-height: 78px;

    padding:
        14px
        6px;

    display: grid;

    grid-template-columns:
        32px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 12px;

    border-bottom:
        1px solid var(--line);

    transition:
        transform .16s ease,
        padding .16s ease;
}


.quick-action.active:hover {
    padding-left:
        12px;

    transform:
        translateX(3px);
}


.quick-action.disabled {
    opacity: .40;
}


.quick-number {
    color:
        var(--brand-blue);

    font-size: 9px;

    font-weight: 900;

    letter-spacing:
        .08em;
}


.quick-action strong,
.quick-action small {
    display: block;
}


.quick-action strong {
    font-size: 13px;
}


.quick-action small {
    margin-top:
        4px;

    color:
        var(--muted);

    font-size: 10px;
}


.quick-arrow {
    width: 34px;
    height: 34px;

    display: grid;

    place-items: center;

    border-radius:
        50%;

    background:
        var(--brand-blue);

    color: white;
}


.quick-state {
    color:
        var(--muted);

    font-size: 8px;

    font-weight: 800;

    letter-spacing:
        .08em;

    text-transform:
        uppercase;
}


.quick-footer {
    padding-top:
        17px;

    display: flex;

    justify-content:
        space-between;

    color:
        var(--muted);

    font-size: 8px;

    text-transform:
        uppercase;

    letter-spacing:
        .08em;
}


@media (max-width: 620px) {

    .quick-create-panel {
        bottom: 88px;

        padding: 21px;

        border-radius:
            26px;
    }


    .quick-create-header h2 {
        font-size: 24px;
    }

}


/* Motion accessibility */

@media (prefers-reduced-motion: reduce) {

    #app-content.htmx-swapping,
    #app-content.htmx-settling,
    .quick-create-panel,
    .app-loading span {
        animation: none !important;
        transition: none !important;
    }

}


/* =========================================================
   RENEWAL OS — RADIAL QUICK MENU
========================================================= */

.quick-radial {
    position: fixed;

    z-index: 88;

    width: 0;
    height: 0;

    pointer-events: none;

    opacity: 0;
}


/* Cada acción */

.radial-action {
    position: absolute;

    left: 0;
    top: 0;

    width: 68px;
    height: 68px;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    gap: 4px;

    padding: 0;

    border:
        1px solid var(--line);

    border-radius:
        22px;

    background:
        var(--surface-solid);

    color:
        var(--ink);

    box-shadow:
        0 14px 34px
        rgba(0, 0, 0, .16);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    transform:
        translate(-50%, -50%)
        scale(.25);

    opacity: 0;

    pointer-events: none;

    transition:
        transform .34s
        cubic-bezier(.2,.9,.2,1.15),
        opacity .20s ease,
        background .18s ease,
        border-color .18s ease;

    text-decoration: none;
}


.radial-action:hover:not(.disabled) {
    border-color:
        rgba(0,169,254,.38);

    background:
        var(--surface-muted);

    transform:
        translate(
            calc(-50% + var(--rx)),
            calc(-50% + var(--ry) - 5px)
        )
        scale(1.06);
}


.radial-icon {
    font-size: 21px;

    line-height: 1;

    color:
        var(--brand-blue);
}


.radial-action small {
    font-size: 8px;

    font-weight: 800;

    letter-spacing: .06em;

    text-transform: uppercase;

    color:
        var(--muted);
}


/* Posiciones del arco */

.radial-client {
    --rx: -150px;
    --ry: -52px;

    transition-delay: .03s;
}


.radial-product {
    --rx: -94px;
    --ry: -126px;

    transition-delay: .06s;
}


.radial-supplier {
    --rx: 0px;
    --ry: -158px;

    transition-delay: .09s;
}


.radial-validity {
    --rx: 94px;
    --ry: -126px;

    transition-delay: .12s;
}


.radial-renewal {
    --rx: 150px;
    --ry: -52px;

    transition-delay: .15s;
}


/* Menú abierto */

.quick-radial.is-open {
    opacity: 1;

    pointer-events: auto;
}


.quick-radial.is-open .radial-action {
    opacity: 1;

    pointer-events: auto;

    transform:
        translate(
            calc(-50% + var(--rx)),
            calc(-50% + var(--ry))
        )
        scale(1);
}


/* Deshabilitados */

.radial-action.disabled {
    opacity: .45;

    cursor: default;

    filter:
        saturate(.55);
}


.quick-radial.is-open
.radial-action.disabled {
    pointer-events: none;
}


/* Halo detrás del arco */

.quick-radial::before {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 360px;
    height: 205px;

    transform:
        translate(-50%, -87%);

    border-radius:
        360px 360px 0 0;

    background:
        radial-gradient(
            ellipse at bottom,
            rgba(0,169,254,.10),
            transparent 66%
        );

    opacity: 0;

    transition:
        opacity .28s ease;

    pointer-events: none;
}


.quick-radial.is-open::before {
    opacity: 1;
}


/* Botón central cuando abre */

.dock-main {
    transition:
        transform .28s
        cubic-bezier(.2,.8,.2,1),
        background .25s ease,
        box-shadow .25s ease;
}


.dock-main.radial-open {
    transform:
        rotate(135deg)
        scale(1.05);

    box-shadow:
        0 14px 40px
        rgba(0,169,254,.32);
}


.dock-main.radial-open
.dock-main-icon {
    transform:
        scale(1.06);
}


/* pequeñas líneas del arco */

.quick-radial::after {
    content: "";

    position: absolute;

    left: 0;
    top: 0;

    width: 300px;
    height: 150px;

    transform:
        translate(-50%, -94%);

    border:
        1px solid
        rgba(0,169,254,.16);

    border-bottom: 0;

    border-radius:
        300px 300px 0 0;

    opacity: 0;

    transform-origin:
        bottom center;

    transition:
        opacity .25s ease,
        transform .35s ease;
}


.quick-radial.is-open::after {
    opacity: 1;

    transform:
        translate(-50%, -94%)
        scale(1);
}


/* =========================================================
   DARK MODE
========================================================= */

html[data-theme="dark"]
.radial-action {
    background:
        rgba(17, 23, 30, .94);

    border-color:
        rgba(215,224,235,.10);

    box-shadow:
        0 18px 44px
        rgba(0,0,0,.35);
}


html[data-theme="dark"]
.radial-action:hover:not(.disabled) {
    background:
        #18212B;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 620px) {

    .radial-action {
        width: 58px;
        height: 58px;

        border-radius: 18px;
    }


    .radial-icon {
        font-size: 18px;
    }


    .radial-action small {
        display: none;
    }


    .radial-client {
        --rx: -116px;
        --ry: -42px;
    }


    .radial-product {
        --rx: -72px;
        --ry: -100px;
    }


    .radial-supplier {
        --rx: 0px;
        --ry: -126px;
    }


    .radial-validity {
        --rx: 72px;
        --ry: -100px;
    }


    .radial-renewal {
        --rx: 116px;
        --ry: -42px;
    }


    .quick-radial::before {
        width: 285px;
        height: 162px;
    }


    .quick-radial::after {
        width: 238px;
        height: 118px;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .radial-action,
    .dock-main,
    .quick-radial::before,
    .quick-radial::after {
        transition:
            none !important;
    }

}


/* =========================================================
   RENEWAL OS — CATALOG MODULE
========================================================= */

.catalog-command {
    padding:
        16px
        20px;

    border-top:
        1px solid var(--line);

    border-bottom:
        1px solid var(--line);
}


.catalog-search {
    display: grid;

    grid-template-columns:
        minmax(280px, 1fr)
        190px
        150px;

    gap: 10px;

    align-items: center;
}


.catalog-search select {
    height: 48px;

    padding:
        0
        38px
        0
        15px;

    border:
        1px solid var(--line);

    border-radius:
        999px;

    background:
        var(--surface-solid);

    color:
        var(--ink);

    outline: none;
}


.catalog-results {
    margin-top: 20px;
}


.catalog-summary {
    padding:
        0
        16px
        14px;

    display: flex;

    align-items: baseline;

    gap: 7px;
}


.catalog-summary strong {
    font-size: 25px;

    letter-spacing: -.04em;
}


.catalog-summary span {
    color:
        var(--muted);

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .08em;
}


/* ---------------------------------------------------------
   Catalog Ledger
--------------------------------------------------------- */

.catalog-ledger {
    border-top:
        1px solid var(--line);
}


.catalog-row {
    min-height: 92px;

    padding:
        16px
        18px;

    display: grid;

    grid-template-columns:
        54px
        minmax(220px, 1.4fr)
        minmax(110px, .55fr)
        minmax(170px, .7fr)
        105px
        30px;

    align-items: center;

    gap: 16px;

    border-bottom:
        1px solid var(--line);

    transition:
        background .18s ease,
        transform .18s ease;
}


.catalog-row:hover {
    background:
        var(--surface-muted);

    transform:
        translateX(4px);
}


.catalog-symbol {
    width: 48px;
    height: 48px;

    display: grid;

    place-items: center;

    border:
        1px solid var(--line);

    border-radius:
        17px;

    background:
        var(--surface-solid);

    color:
        var(--brand-blue);

    font-size: 17px;

    box-shadow:
        var(--shadow-soft);
}


.catalog-symbol.type-service {
    border-radius:
        50%;
}


.catalog-symbol.type-license {
    transform:
        rotate(1deg);
}


.catalog-symbol.type-subscription {
    color:
        var(--brand-cyan);
}


.catalog-symbol.type-domain {
    border-radius:
        50% 50% 18px 50%;
}


.catalog-identity {
    min-width: 0;
}


.catalog-identity strong,
.catalog-identity small {
    display: block;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;
}


.catalog-identity strong {
    font-size: 14px;
}


.catalog-identity small {
    margin-top: 5px;

    color:
        var(--muted);

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .04em;
}


.catalog-unit small,
.catalog-unit strong,
.catalog-price small,
.catalog-price strong {
    display: block;
}


.catalog-unit small,
.catalog-price small {
    margin-bottom: 5px;

    color:
        var(--muted);

    font-size: 8px;

    text-transform: uppercase;

    letter-spacing: .08em;
}


.catalog-unit strong,
.catalog-price strong {
    font-size: 11px;
}


.catalog-price strong {
    font-variant-numeric:
        tabular-nums;
}


.catalog-price .no-price {
    color:
        var(--muted);

    font-weight: 600;
}


.catalog-state {
    display: flex;

    align-items: center;

    gap: 8px;

    color:
        var(--muted);

    font-size: 9px;

    font-weight: 800;

    letter-spacing: .05em;

    text-transform: uppercase;
}


.catalog-active,
.catalog-inactive {
    display: inline-block;

    width: 8px;
    height: 8px;

    border-radius: 50%;
}


.catalog-active {
    background:
        var(--brand-blue);

    box-shadow:
        0 0 0 5px
        rgba(0, 169, 254, .09);
}


.catalog-inactive {
    background:
        #89929C;

    box-shadow:
        0 0 0 5px
        rgba(137,146,156,.08);
}


.catalog-arrow {
    color:
        var(--muted);

    font-size: 17px;

    transition:
        transform .18s ease;
}


.catalog-row:hover
.catalog-arrow {
    transform:
        translateX(4px);
}


/* ---------------------------------------------------------
   Catalog Detail
--------------------------------------------------------- */

.catalog-detail-hero {
    padding:
        28px
        10px
        34px;

    display: flex;

    justify-content: space-between;

    align-items: flex-end;

    gap: 28px;

    border-bottom:
        1px solid var(--line);
}


.catalog-detail-hero h1 {
    margin: 0;

    max-width: 900px;

    font-size:
        clamp(
            38px,
            5vw,
            70px
        );

    line-height: .97;

    letter-spacing: -.06em;
}


.catalog-detail-hero > div:first-child > p:last-child {
    margin:
        11px
        0
        0;

    color:
        var(--muted);

    font-size: 11px;

    text-transform: uppercase;

    letter-spacing: .08em;
}


.catalog-detail-layout {
    margin-top: 24px;

    display: grid;

    grid-template-columns:
        minmax(380px, .75fr)
        minmax(0, 1.25fr);

    gap: 24px;
}


.catalog-primary-panel,
.catalog-info-panel,
.price-history {
    border:
        1px solid var(--line);

    background:
        var(--surface);

    backdrop-filter:
        blur(18px);

    -webkit-backdrop-filter:
        blur(18px);

    box-shadow:
        var(--shadow-soft);
}


.catalog-primary-panel {
    padding: 28px;

    border-radius:
        58px
        24px
        58px
        24px;
}


.catalog-info-panel {
    padding: 28px;

    border-radius:
        24px
        58px
        24px
        58px;
}


.catalog-primary-panel h2,
.catalog-info-panel h2,
.price-history h2 {
    margin: 0;

    font-size: 24px;

    letter-spacing: -.04em;
}


/* ---------------------------------------------------------
   Current Price
--------------------------------------------------------- */

.price-hero {
    min-height: 210px;

    padding:
        38px
        0
        28px;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    justify-content: center;
}


.price-currency {
    margin-bottom: 5px;

    color:
        var(--brand-blue);

    font-size: 10px;

    font-weight: 900;

    letter-spacing: .12em;

    text-transform: uppercase;
}


.price-hero > strong {
    font-size:
        clamp(
            44px,
            5vw,
            68px
        );

    line-height: 1;

    letter-spacing: -.06em;

    font-variant-numeric:
        tabular-nums;
}


.price-hero > small {
    margin-top: 13px;

    color:
        var(--muted);

    font-size: 10px;
}


.price-metrics {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    border-top:
        1px solid var(--line);

    border-bottom:
        1px solid var(--line);
}


.price-metrics > div {
    padding:
        16px
        14px;

    border-right:
        1px solid var(--line);
}


.price-metrics > div:first-child {
    padding-left: 0;
}


.price-metrics > div:last-child {
    border-right: 0;
}


.price-metrics small,
.price-metrics strong {
    display: block;
}


.price-metrics small {
    margin-bottom: 5px;

    color:
        var(--muted);

    font-size: 8px;

    text-transform: uppercase;

    letter-spacing: .08em;
}


.price-metrics strong {
    font-size: 13px;

    font-variant-numeric:
        tabular-nums;
}


.price-add {
    min-height: 50px;

    margin-top: 22px;

    padding:
        0
        18px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    border-radius: 999px;

    background:
        var(--ink);

    color:
        var(--canvas);

    font-size: 11px;

    font-weight: 800;

    transition:
        transform .18s ease;
}


.price-add:hover {
    transform:
        translateY(-2px);
}


.price-add span {
    color:
        var(--brand-blue);

    font-size: 20px;
}


.price-empty {
    min-height: 260px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;
}


.price-empty > span {
    width: 60px;
    height: 60px;

    margin-bottom: 17px;

    display: grid;

    place-items: center;

    border:
        1px solid var(--line);

    border-radius: 50%;

    color:
        var(--brand-blue);

    font-size: 21px;
}


.price-empty p {
    max-width: 300px;

    margin:
        7px
        0
        0;

    color:
        var(--muted);

    font-size: 10px;

    line-height: 1.6;
}


/* ---------------------------------------------------------
   Price History
--------------------------------------------------------- */

.price-history {
    margin-top: 24px;

    padding: 28px;

    border-radius:
        30px;
}


.price-history-table {
    margin-top: 25px;
}


.price-history-head,
.price-history-row {
    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(110px, 1fr)
        );

    gap: 18px;

    align-items: center;
}


.price-history-head {
    padding:
        0
        12px
        10px;

    color:
        var(--muted);

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .08em;

    text-transform: uppercase;
}


.price-history-row {
    min-height: 62px;

    padding:
        12px;

    border-top:
        1px solid var(--line);

    font-size: 11px;
}


.price-history-row strong {
    font-variant-numeric:
        tabular-nums;
}


.price-history-empty {
    min-height: 130px;
}


/* ---------------------------------------------------------
   DARK MODE
--------------------------------------------------------- */

html[data-theme="dark"]
.catalog-symbol {
    background:
        #151B22;

    border-color:
        rgba(215, 224, 235, .09);
}


html[data-theme="dark"]
.catalog-primary-panel,
html[data-theme="dark"]
.catalog-info-panel,
html[data-theme="dark"]
.price-history {
    background:
        rgba(18, 23, 30, .80);

    border-color:
        rgba(215, 224, 235, .08);
}


html[data-theme="dark"]
.catalog-row:hover {
    background:
        rgba(255,255,255,.025);
}


/* ---------------------------------------------------------
   RESPONSIVE
--------------------------------------------------------- */

@media (max-width: 1050px) {

    .catalog-row {
        grid-template-columns:
            52px
            minmax(220px, 1.4fr)
            minmax(160px, .7fr)
            100px
            28px;
    }


    .catalog-unit {
        display: none;
    }


    .catalog-detail-layout {
        grid-template-columns:
            1fr;
    }

}


@media (max-width: 760px) {

    .catalog-search {
        grid-template-columns:
            1fr;
    }


    .catalog-row {
        grid-template-columns:
            48px
            minmax(0, 1fr)
            auto
            24px;
    }


    .catalog-unit,
    .catalog-price {
        display: none;
    }


    .catalog-detail-hero {
        flex-direction:
            column;

        align-items:
            flex-start;
    }


    .price-history-head,
    .price-history-row {
        grid-template-columns:
            repeat(
                2,
                minmax(100px, 1fr)
            );
    }


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


    .price-metrics > div,
    .price-metrics > div:first-child {
        padding:
            13px
            0;

        border-right: 0;

        border-bottom:
            1px solid var(--line);
    }


    .price-metrics > div:last-child {
        border-bottom: 0;
    }

}


@media (max-width: 520px) {

    .catalog-row {
        padding:
            14px
            4px;
    }


    .catalog-state {
        font-size: 0;
    }


    .catalog-detail-hero h1 {
        font-size:
            43px;
    }


    .catalog-primary-panel,
    .catalog-info-panel,
    .price-history {
        padding:
            21px;

        border-radius:
            28px;
    }

}


/* =========================================================
   RENEWAL OS — VALIDITIES
========================================================= */

.validity-command {
    padding: 16px 20px;

    border-top:
        1px solid var(--line);

    border-bottom:
        1px solid var(--line);
}


.validity-search {
    display: grid;

    grid-template-columns:
        minmax(280px, 1fr)
        210px;

    gap: 10px;
}


.validity-search select {
    height: 48px;

    padding:
        0 38px
        0 15px;

    border:
        1px solid var(--line);

    border-radius:
        999px;

    background:
        var(--surface-solid);

    color:
        var(--ink);

    outline: none;
}


.validity-results {
    margin-top: 20px;
}


.validity-ledger {
    border-top:
        1px solid var(--line);
}


.validity-row {
    min-height: 94px;

    padding:
        16px 18px;

    display: grid;

    grid-template-columns:
        72px
        minmax(200px, 1.1fr)
        minmax(210px, 1.2fr)
        130px
        120px
        26px;

    align-items: center;

    gap: 16px;

    border-bottom:
        1px solid var(--line);

    transition:
        transform .18s ease,
        background .18s ease;
}


.validity-row:hover {
    transform:
        translateX(4px);

    background:
        var(--surface-muted);
}


.validity-signal {
    display: flex;

    flex-direction: column;

    align-items: center;

    gap: 7px;
}


.validity-signal > span {
    width: 12px;
    height: 12px;

    border-radius: 50%;

    background:
        #83909A;

    box-shadow:
        0 0 0 6px
        rgba(131,144,154,.08);
}


.validity-signal small {
    color:
        var(--muted);

    font-size: 9px;

    font-weight: 900;

    text-transform:
        uppercase;
}


.urgency-warning
.validity-signal > span {
    background:
        #D7A63A;

    box-shadow:
        0 0 0 6px
        rgba(215,166,58,.10);
}


.urgency-critical
.validity-signal > span {
    background:
        #E27A4D;

    box-shadow:
        0 0 0 6px
        rgba(226,122,77,.11);
}


.urgency-today
.validity-signal > span,
.urgency-expired
.validity-signal > span {
    background:
        #E1545B;

    box-shadow:
        0 0 0 6px
        rgba(225,84,91,.12);
}


.validity-client,
.validity-product,
.validity-end {
    min-width: 0;
}


.validity-client strong,
.validity-client small,
.validity-product strong,
.validity-product small,
.validity-end strong,
.validity-end small {
    display: block;
}


.validity-client strong,
.validity-product strong,
.validity-end strong {
    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

    font-size: 12px;
}


.validity-client small,
.validity-product small,
.validity-end small {
    margin-top: 4px;

    color:
        var(--muted);

    font-size: 8px;

    text-transform: uppercase;

    letter-spacing: .06em;
}


.validity-state {
    display: flex;

    align-items: center;

    gap: 7px;

    color:
        var(--muted);

    font-size: 9px;

    text-transform: uppercase;

    font-weight: 800;
}


.validity-state-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        var(--brand-blue);
}


/* Detail */

.validity-hero {
    padding:
        28px 10px 36px;

    display: flex;

    align-items: flex-end;

    justify-content:
        space-between;

    gap: 30px;

    border-bottom:
        1px solid var(--line);
}


.validity-hero h1 {
    margin: 0;

    font-size:
        clamp(40px, 5vw, 70px);

    line-height: .97;

    letter-spacing: -.06em;
}


.validity-product-name {
    margin:
        10px 0 0;

    color:
        var(--muted);
}


.validity-countdown {
    min-width: 170px;

    padding:
        20px 24px;

    border:
        1px solid var(--line);

    border-radius:
        34px;

    text-align: center;

    background:
        var(--surface);
}


.validity-countdown small,
.validity-countdown strong,
.validity-countdown span {
    display: block;
}


.validity-countdown small,
.validity-countdown span {
    color:
        var(--muted);

    font-size: 9px;

    text-transform: uppercase;

    letter-spacing: .08em;
}


.validity-countdown strong {
    margin:
        5px 0;

    font-size: 44px;

    line-height: 1;

    letter-spacing: -.05em;
}


.validity-countdown.urgency-warning
strong {
    color: #D7A63A;
}


.validity-countdown.urgency-critical
strong {
    color: #E27A4D;
}


.validity-countdown.urgency-today
strong,
.validity-countdown.urgency-expired
strong {
    color: #E1545B;
}


.validity-detail-grid {
    margin-top: 24px;

    display: grid;

    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(340px, .85fr);

    gap: 24px;
}


.validity-main-panel,
.validity-value-panel,
.validity-reference {
    padding: 28px;

    border:
        1px solid var(--line);

    background:
        var(--surface);

    box-shadow:
        var(--shadow-soft);

    backdrop-filter:
        blur(18px);
}


.validity-main-panel {
    border-radius:
        58px 24px 58px 24px;
}


.validity-value-panel {
    border-radius:
        24px 58px 24px 58px;
}


.validity-main-panel h2,
.validity-value-panel h2 {
    margin: 0;

    font-size: 25px;

    letter-spacing: -.04em;
}


.validity-period-line {
    position: relative;

    height: 2px;

    margin:
        34px 0;

    background:
        var(--line);
}


.validity-period-line > span {
    position: absolute;

    left: 0;
    top: -2px;

    width: 68%;
    height: 6px;

    border-radius:
        999px;

    background:
        linear-gradient(
            90deg,
            var(--brand-blue),
            var(--brand-cyan)
        );
}


.validity-value-breakdown {
    margin-top: 28px;
}


.validity-value-breakdown > div {
    padding:
        15px 0;

    display: flex;

    justify-content:
        space-between;

    gap: 20px;

    border-top:
        1px solid var(--line);
}


.validity-value-breakdown small {
    color:
        var(--muted);

    text-transform:
        uppercase;

    font-size: 8px;

    letter-spacing: .08em;
}


.validity-value-breakdown strong {
    font-size: 12px;

    font-variant-numeric:
        tabular-nums;
}


.validity-reference {
    margin-top: 24px;

    border-radius: 30px;
}


.validity-reference > div:first-child {
    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 12px;
}


.validity-reference > div:first-child
.micro-label {
    width: 100%;
}


/* Dark */

html[data-theme="dark"]
.validity-main-panel,
html[data-theme="dark"]
.validity-value-panel,
html[data-theme="dark"]
.validity-reference,
html[data-theme="dark"]
.validity-countdown {
    background:
        rgba(18,23,30,.80);

    border-color:
        rgba(215,224,235,.08);
}


/* Responsive */

@media (max-width: 1050px) {

    .validity-row {
        grid-template-columns:
            65px
            minmax(180px, 1fr)
            minmax(190px, 1fr)
            115px
            25px;
    }


    .validity-state {
        display: none;
    }


    .validity-detail-grid {
        grid-template-columns:
            1fr;
    }

}


@media (max-width: 760px) {

    .validity-search {
        grid-template-columns:
            1fr;
    }


    .validity-row {
        grid-template-columns:
            55px
            minmax(0, 1fr)
            auto
            22px;
    }


    .validity-product,
    .validity-state {
        display: none;
    }


    .validity-hero {
        flex-direction:
            column;

        align-items:
            flex-start;
    }


    .validity-countdown {
        width: 100%;
    }

}


@media (max-width: 520px) {

    .validity-row {
        padding:
            14px 4px;
    }


    .validity-end small {
        display: none;
    }


    .validity-main-panel,
    .validity-value-panel,
    .validity-reference {
        padding: 21px;

        border-radius:
            28px;
    }

}


/* =========================================================
   RENEWAL OS — RENEWAL FLOW
========================================================= */

.renewal-origin {
    max-width: 1050px;

    margin:
        0 auto
        24px;

    padding:
        20px 24px;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 18px;

    border-top:
        1px solid var(--line);

    border-bottom:
        1px solid var(--line);
}


.renewal-origin > div {
    min-width: 0;
}


.renewal-origin small,
.renewal-origin strong {
    display: block;
}


.renewal-origin small {
    margin-bottom: 6px;

    color:
        var(--muted);

    font-size: 8px;

    text-transform: uppercase;

    letter-spacing: .08em;
}


.renewal-origin strong {
    font-size: 12px;

    font-variant-numeric:
        tabular-nums;
}


.renewal-flow {
    color:
        var(--brand-blue);

    font-size: 18px;
}


.validity-renew-box {
    margin-top: 28px;

    padding-top: 22px;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 20px;

    border-top:
        1px solid var(--line);
}


.validity-renew-box small,
.validity-renew-box strong {
    display: block;
}


.validity-renew-box small {
    margin-bottom: 5px;

    color:
        var(--muted);

    font-size: 8px;

    text-transform: uppercase;

    letter-spacing: .08em;
}


.validity-renew-box strong {
    font-size: 13px;
}


.renewal-search {
    grid-template-columns:
        minmax(280px, 1fr);
}


@media (max-width: 760px) {

    .renewal-origin {
        align-items:
            stretch;

        flex-direction:
            column;
    }


    .renewal-flow {
        transform:
            rotate(90deg);

        align-self:
            flex-start;
    }


    .validity-renew-box {
        align-items:
            stretch;

        flex-direction:
            column;
    }

}


/* =========================================================
   RENEWAL OS — SUPPLIERS
========================================================= */

.supplier-product-line,
.supplier-contact-line {
    min-height: 62px;

    padding:
        14px 4px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 18px;

    border-top:
        1px solid var(--line);

    transition:
        transform .18s ease,
        background .18s ease;
}


.supplier-product-line:hover,
.supplier-contact-line:hover {
    transform:
        translateX(4px);
}


.supplier-product-line strong,
.supplier-product-line small,
.supplier-contact-line strong,
.supplier-contact-line small {
    display: block;
}


.supplier-product-line small,
.supplier-contact-line small {
    margin-top: 4px;

    color:
        var(--muted);

    font-size: 9px;
}


.supplier-preferred {
    padding:
        6px 10px;

    border:
        1px solid
        rgba(0,169,254,.18);

    border-radius:
        999px;

    color:
        var(--brand-blue);

    font-size: 8px;

    font-weight: 900;

    letter-spacing: .07em;

    text-transform: uppercase;

    background:
        rgba(0,169,254,.05);
}


@media (max-width: 760px) {

    .supplier-contact-line {
        align-items:
            flex-start;

        flex-direction:
            column;
    }

}


/* =========================================================
   RENEWAL OS — COMMERCIAL HISTORY
========================================================= */

.commercial-search {
    display: grid;
    grid-template-columns:
        minmax(280px, 1fr)
        190px
        180px;
    gap: 10px;
    align-items: center;
}


.commercial-search select {
    height: 48px;
    padding: 0 38px 0 15px;

    border:
        1px solid var(--line);

    border-radius: 999px;

    background:
        var(--surface-solid);

    color:
        var(--ink);

    outline: none;
}


.commercial-timeline {
    margin-top: 20px;
}


.commercial-event {
    min-height: 88px;

    display: grid;

    grid-template-columns:
        28px
        100px
        minmax(220px, 1fr)
        110px
        30px;

    gap: 16px;

    align-items: center;

    padding: 14px 18px;

    border-bottom:
        1px solid var(--line);

    transition:
        transform .18s ease,
        background .18s ease;
}


.commercial-event:hover {
    transform:
        translateX(4px);
}


.commercial-event-marker {
    position: relative;

    align-self: stretch;

    display: flex;

    align-items: center;

    justify-content: center;
}


.commercial-event-marker::before {
    content: "";

    position: absolute;

    top: -14px;
    bottom: -14px;

    width: 1px;

    background:
        var(--line);
}


.commercial-event-marker span {
    position: relative;

    z-index: 1;

    width: 9px;
    height: 9px;

    border-radius: 50%;

    background:
        var(--brand-blue);

    box-shadow:
        0 0 0 5px
        rgba(0,169,254,.08);
}


.commercial-event-date strong,
.commercial-event-date small,
.commercial-event-content strong,
.commercial-event-content small,
.commercial-event-content span {
    display: block;
}


.commercial-event-date small,
.commercial-event-content small,
.commercial-event-content span {
    margin-top: 4px;

    color:
        var(--muted);

    font-size: 9px;
}


.commercial-event-content strong {
    font-size: 14px;
}


.commercial-event-state {
    font-size: 9px;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: .06em;

    color:
        var(--muted);
}


.commercial-description {
    margin-top: 20px;

    line-height: 1.8;

    color:
        var(--muted);
}


.commercial-document-line {
    min-height: 68px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 14px 4px;

    border-top:
        1px solid var(--line);
}


.commercial-document-line strong,
.commercial-document-line small {
    display: block;
}


.commercial-document-line small {
    margin-top: 4px;

    color:
        var(--muted);

    font-size: 9px;
}


@media (max-width: 760px) {

    .commercial-search {
        grid-template-columns: 1fr;
    }


    .commercial-event {
        grid-template-columns:
            20px
            72px
            minmax(0, 1fr)
            20px;

        gap: 10px;
    }


    .commercial-event-state {
        display: none;
    }


    .commercial-document-line {
        align-items: flex-start;
        flex-direction: column;
    }

}


/* =========================================================
   RENEWAL OS — DOCK MOBILE OVERFLOW
========================================================= */

@media (max-width: 760px) {

    .command-dock {
        justify-content: flex-start;

        overscroll-behavior-x:
            contain;

        scrollbar-width:
            none;

        -webkit-overflow-scrolling:
            touch;
    }


    .command-dock::-webkit-scrollbar {
        display: none;
    }


    .dock-item,
    .dock-main {
        flex-shrink: 0;
    }

}


/* =========================================================
   RENEWAL OS — ACCESS CONTROL
========================================================= */

.access-heading-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


.access-search {
    display: grid;

    grid-template-columns:
        minmax(280px, 1fr)
        180px;

    gap: 10px;

    align-items: center;
}


.access-search select {
    height: 48px;

    padding:
        0 38px
        0 15px;

    border:
        1px solid var(--line);

    border-radius:
        999px;

    background:
        var(--surface-solid);

    color:
        var(--ink);

    outline: none;
}


.access-ledger {
    margin-top: 20px;

    border-top:
        1px solid var(--line);
}


.access-row {
    min-height: 82px;

    padding:
        14px 18px;

    display: grid;

    grid-template-columns:
        48px
        minmax(220px, 1fr)
        minmax(170px, .7fr)
        110px
        24px;

    gap: 16px;

    align-items: center;

    border-bottom:
        1px solid var(--line);

    transition:
        transform .18s ease,
        background .18s ease;
}


.access-row:hover {
    transform:
        translateX(4px);
}


.access-symbol {
    width: 40px;
    height: 40px;

    display: grid;

    place-items: center;

    border:
        1px solid var(--line);

    border-radius:
        14px;

    color:
        var(--brand-blue);
}


.access-identity strong,
.access-identity small,
.access-role-users strong,
.access-role-users small {
    display: block;
}


.access-identity small,
.access-role-users small {
    margin-top: 4px;

    color:
        var(--muted);

    font-size: 9px;
}


.access-roles {
    display: flex;

    flex-wrap: wrap;

    gap: 5px;
}


.access-roles span {
    padding:
        5px 8px;

    border:
        1px solid var(--line);

    border-radius:
        999px;

    color:
        var(--muted);

    font-size: 8px;

    text-transform:
        uppercase;

    letter-spacing:
        .05em;
}


.access-status {
    display: flex;

    align-items: center;

    gap: 7px;

    color:
        var(--muted);

    font-size: 9px;

    text-transform:
        uppercase;

    letter-spacing:
        .06em;
}


.access-dot {
    width: 7px;
    height: 7px;

    border-radius: 50%;

    background:
        var(--muted);
}


.access-dot.active {
    background:
        var(--lime);

    box-shadow:
        0 0 0 4px
        rgba(132,180,35,.10);
}


.access-role-row {
    grid-template-columns:
        48px
        minmax(220px, 1fr)
        100px
        110px
        24px;
}


.permission-selector > div,
.permission-selector ul {
    margin: 0;
    padding: 0;

    list-style: none;
}


.permission-selector ul {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 8px;
}


.permission-selector li label {
    min-height: 46px;

    padding:
        10px 12px;

    display: flex;

    align-items: center;

    gap: 9px;

    border:
        1px solid var(--line);

    border-radius:
        14px;

    cursor: pointer;
}


.permission-selector input[type="checkbox"] {
    accent-color:
        var(--brand-blue);
}


.access-switch-field {
    min-height: 48px;

    display: flex;

    align-items: center;

    gap: 10px;
}


.access-switch-field span {
    color:
        var(--muted);

    font-size: 10px;
}


/* ---------------------------------------------------------
   Permission Matrix
--------------------------------------------------------- */

.access-matrix-wrap {
    margin-top: 24px;
}


.access-matrix-scroll {
    width: 100%;

    overflow-x: auto;

    border:
        1px solid var(--line);

    border-radius:
        24px;
}


.access-matrix {
    width: 100%;

    min-width: 760px;

    border-collapse:
        collapse;

    background:
        var(--surface);
}


.access-matrix th,
.access-matrix td {
    padding:
        13px 15px;

    border-bottom:
        1px solid var(--line);

    text-align: left;

    vertical-align: middle;
}


.access-matrix thead th {
    position: sticky;

    top: 0;

    z-index: 2;

    background:
        var(--surface-solid);

    color:
        var(--muted);

    font-size: 8px;

    text-transform:
        uppercase;

    letter-spacing:
        .07em;
}


.access-matrix td small {
    display: block;

    margin-top: 3px;

    color:
        var(--muted);

    font-size: 8px;
}


.access-matrix-section th {
    background:
        var(--surface-muted);

    color:
        var(--brand-blue);

    font-size: 9px;

    text-transform:
        uppercase;

    letter-spacing:
        .08em;
}


.access-matrix-cell {
    text-align:
        center !important;
}


.matrix-check {
    width: 26px;
    height: 26px;

    display: inline-grid;

    place-items: center;

    border:
        1px solid var(--line);

    border-radius:
        50%;

    color:
        var(--muted);
}


.matrix-check.granted {
    border-color:
        rgba(132,180,35,.30);

    background:
        rgba(132,180,35,.10);

    color:
        var(--lime);
}


@media (max-width: 760px) {

    .access-heading-actions {
        width: 100%;

        align-items: stretch;

        flex-direction: column;
    }


    .access-search {
        grid-template-columns:
            1fr;
    }


    .access-row,
    .access-role-row {
        grid-template-columns:
            42px
            minmax(0, 1fr)
            22px;
    }


    .access-roles,
    .access-role-users,
    .access-status {
        display: none;
    }


    .permission-selector ul {
        grid-template-columns:
            1fr;
    }

}


/* =========================================================
   RENEWAL OS — ACCESS CONSOLE
========================================================= */

.access-console {
    margin-top: 24px;

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 14px;
}


.access-console-item {
    min-height: 150px;

    padding:
        22px;

    display: grid;

    grid-template-columns:
        52px
        minmax(0, 1fr)
        24px;

    align-items: center;

    gap: 16px;

    border:
        1px solid var(--line);

    border-radius:
        28px;

    background:
        var(--surface);

    transition:
        transform .2s ease,
        border-color .2s ease;
}


.access-console-item:hover {
    transform:
        translateY(-4px);

    border-color:
        rgba(0,169,254,.28);
}


.access-console-item.technical {
    opacity: .78;
}


.access-console-icon {
    width: 48px;
    height: 48px;

    display: grid;

    place-items: center;

    border:
        1px solid var(--line);

    border-radius:
        16px;

    color:
        var(--brand-blue);

    font-size: 18px;
}


.access-console-item small,
.access-console-item strong {
    display: block;
}


.access-console-item small {
    margin-bottom: 5px;

    color:
        var(--brand-blue);

    font-size: 8px;

    font-weight: 800;

    text-transform:
        uppercase;

    letter-spacing:
        .08em;
}


.access-console-item strong {
    font-size: 18px;
}


.access-console-item p {
    margin:
        7px 0 0;

    color:
        var(--muted);

    font-size: 10px;

    line-height: 1.6;
}


.access-security-action {
    margin-top: 20px;

    padding:
        18px 20px;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 20px;

    border-top:
        1px solid var(--line);

    border-bottom:
        1px solid var(--line);
}


.access-security-action small,
.access-security-action strong {
    display: block;
}


.access-security-action small {
    margin-bottom: 4px;

    color:
        var(--muted);

    font-size: 8px;

    text-transform:
        uppercase;

    letter-spacing:
        .08em;
}


@media (max-width: 760px) {

    .access-console {
        grid-template-columns:
            1fr;
    }


    .access-security-action {
        align-items:
            flex-start;

        flex-direction:
            column;
    }

}


/* =========================================================
   RENEWAL OS — AUDIT
========================================================= */

.audit-search {
    display: grid;

    grid-template-columns:
        minmax(280px, 1fr)
        190px
        190px;

    gap: 10px;

    align-items: center;
}


.audit-search select {
    height: 48px;

    padding:
        0 38px
        0 15px;

    border:
        1px solid var(--line);

    border-radius:
        999px;

    background:
        var(--surface-solid);

    color:
        var(--ink);

    outline: none;
}


.audit-ledger {
    margin-top: 20px;

    border-top:
        1px solid var(--line);
}


.audit-row {
    min-height: 84px;

    padding:
        14px 18px;

    display: grid;

    grid-template-columns:
        90px
        minmax(180px, .8fr)
        minmax(220px, 1fr)
        minmax(180px, .8fr);

    gap: 18px;

    align-items: center;

    border-bottom:
        1px solid var(--line);
}


.audit-time strong,
.audit-time small,
.audit-action strong,
.audit-action small,
.audit-object strong,
.audit-object small,
.audit-actor strong,
.audit-actor small {
    display: block;
}


.audit-time small,
.audit-action small,
.audit-object small,
.audit-actor small {
    margin-top: 4px;

    color:
        var(--muted);

    font-size: 8px;
}


.audit-action {
    display: flex;

    align-items: center;

    gap: 10px;
}


.audit-action-mark {
    width: 32px;
    height: 32px;

    display: grid;

    place-items: center;

    flex-shrink: 0;

    border:
        1px solid var(--line);

    border-radius:
        11px;

    color:
        var(--brand-blue);

    font-size: 11px;

    font-weight: 900;
}


.audit-actor small {
    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;
}


@media (max-width: 760px) {

    .audit-search {
        grid-template-columns:
            1fr;
    }


    .audit-row {
        grid-template-columns:
            76px
            minmax(0, 1fr);
    }


    .audit-object,
    .audit-actor {
        grid-column:
            2;
    }

}


/* =========================================================
   RENEWAL OS — AUDIT DETAIL
========================================================= */

.audit-row {
    color: inherit;
    text-decoration: none;

    transition:
        transform .18s ease,
        background .18s ease;
}


.audit-row:hover {
    transform:
        translateX(4px);
}


.audit-detail-grid {
    display: grid;

    grid-template-columns:
        minmax(300px, .8fr)
        minmax(0, 1.2fr);

    gap: 18px;
}


.audit-change-list {
    margin-top: 20px;
}


.audit-change {
    padding:
        16px 0;

    border-top:
        1px solid var(--line);
}


.audit-change > strong {
    display: block;

    margin-bottom: 10px;

    font-size: 11px;
}


.audit-change-values {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        24px
        minmax(0, 1fr);

    gap: 10px;

    align-items: center;
}


.audit-change-values small,
.audit-change-values span {
    display: block;
}


.audit-change-values small {
    margin-bottom: 5px;

    color:
        var(--muted);

    font-size: 8px;

    text-transform:
        uppercase;

    letter-spacing:
        .07em;
}


.audit-change-values span {
    overflow-wrap:
        anywhere;

    font-size: 10px;
}


.audit-change-arrow {
    text-align: center;

    color:
        var(--brand-blue);
}


@media (max-width: 760px) {

    .audit-detail-grid {
        grid-template-columns:
            1fr;
    }


    .audit-change-values {
        grid-template-columns:
            1fr;
    }


    .audit-change-arrow {
        text-align: left;

        transform:
            rotate(90deg);
    }

}


/* =========================================================
   RENEWAL OS — DASHBOARD LIVE STATUS
========================================================= */

.today-chip.healthy .today-dot {
    background:
        var(--lime);
}


.today-chip.warning .today-dot {
    background:
        var(--violet);

    box-shadow:
        0 0 0 5px
        rgba(116,86,255,.10);
}


.today-chip.attention .today-dot {
    background:
        var(--coral);

    box-shadow:
        0 0 0 5px
        rgba(255,100,87,.10);
}


.radar-caption strong {
    color:
        var(--ink);

    font-weight:
        800;
}


.today-chip.neutral .today-dot {
    background:
        var(--muted);

    box-shadow:
        0 0 0 5px
        rgba(128,128,128,.08);
}


/* =========================================================
   RENEWAL OS — REPORTS
========================================================= */

.report-console {
    margin-top: 24px;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 14px;
}


.report-console-item {
    min-height: 160px;

    padding: 22px;

    display: grid;

    grid-template-columns:
        52px
        minmax(0, 1fr)
        24px;

    align-items: center;

    gap: 16px;

    border:
        1px solid var(--line);

    border-radius:
        28px;

    background:
        var(--surface);

    transition:
        transform .2s ease,
        border-color .2s ease;
}


.report-console-item:hover {
    transform:
        translateY(-4px);

    border-color:
        rgba(0,169,254,.28);
}


.report-console-icon {
    width: 48px;
    height: 48px;

    display: grid;

    place-items: center;

    border:
        1px solid var(--line);

    border-radius:
        16px;

    color:
        var(--brand-blue);
}


.report-console-item small,
.report-console-item strong {
    display: block;
}


.report-console-item small {
    color:
        var(--brand-blue);

    font-size: 8px;

    text-transform:
        uppercase;

    letter-spacing:
        .08em;
}


.report-console-item strong {
    margin-top: 5px;

    font-size: 17px;
}


.report-console-item p {
    margin:
        7px 0 0;

    color:
        var(--muted);

    font-size: 10px;

    line-height: 1.6;
}


.report-filters {
    margin-top: 22px;

    display: grid;

    grid-template-columns:
        minmax(240px, 1.5fr)
        repeat(4, minmax(145px, .8fr))
        145px
        145px
        auto;

    gap: 8px;
}


.report-filters-commercial {
    grid-template-columns:
        minmax(250px, 1.5fr)
        170px
        170px
        145px
        145px
        auto;
}


.report-filters-notifications {
    grid-template-columns:
        minmax(280px, 1fr)
        180px
        180px
        auto;
}


.report-filters input,
.report-filters select {
    min-height: 46px;

    padding:
        0 13px;

    border:
        1px solid var(--line);

    border-radius:
        14px;

    background:
        var(--surface-solid);

    color:
        var(--ink);

    outline: none;
}


.report-summary {
    margin-top: 22px;

    display: grid;

    grid-template-columns:
        repeat(
            auto-fit,
            minmax(180px, 1fr)
        );

    gap: 10px;
}


.report-summary article {
    padding: 18px;

    border:
        1px solid var(--line);

    border-radius:
        20px;

    background:
        var(--surface);
}


.report-summary small,
.report-summary strong,
.report-summary span {
    display: block;
}


.report-summary small {
    color:
        var(--brand-blue);

    font-size: 8px;

    font-weight: 800;

    letter-spacing:
        .08em;
}


.report-summary strong {
    margin-top: 7px;

    font-size: 22px;
}


.report-summary span {
    margin-top: 5px;

    color:
        var(--muted);

    font-size: 9px;
}


.report-table-wrap {
    width: 100%;

    margin-top: 22px;

    overflow-x: auto;

    border:
        1px solid var(--line);

    border-radius:
        22px;
}


.report-table {
    width: 100%;

    min-width: 900px;

    border-collapse:
        collapse;

    background:
        var(--surface);
}


.report-table th,
.report-table td {
    padding:
        12px 14px;

    border-bottom:
        1px solid var(--line);

    text-align: left;

    vertical-align: middle;
}


.report-table th {
    color:
        var(--muted);

    font-size: 8px;

    text-transform:
        uppercase;

    letter-spacing:
        .07em;
}


.report-table td {
    font-size: 10px;
}


@media (max-width: 980px) {

    .report-console {
        grid-template-columns:
            1fr;
    }


    .report-filters,
    .report-filters-commercial,
    .report-filters-notifications {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


@media (max-width: 620px) {

    .report-filters,
    .report-filters-commercial,
    .report-filters-notifications {
        grid-template-columns:
            1fr;
    }

}


/* =========================================================
   RENEWAL OS — DASHBOARD REPORT ACCESS
========================================================= */

.dashboard-report-access {
    margin-top: 14px;
}


.dashboard-report-card {
    padding: 18px 22px;

    display: grid;

    grid-template-columns:
        42px
        minmax(0, 1fr)
        24px;

    gap: 14px;

    align-items: center;

    border:
        1px solid var(--line);

    border-radius:
        22px;

    background:
        var(--surface);

    color:
        inherit;

    text-decoration:
        none;

    transition:
        transform .18s ease,
        border-color .18s ease;
}


.dashboard-report-card:hover {
    transform:
        translateY(-2px);

    border-color:
        rgba(0,169,254,.28);
}


.dashboard-report-symbol {
    width: 40px;
    height: 40px;

    display: grid;

    place-items: center;

    border:
        1px solid var(--line);

    border-radius:
        13px;

    color:
        var(--brand-blue);
}


.dashboard-report-card small,
.dashboard-report-card strong {
    display: block;
}


.dashboard-report-card small {
    color:
        var(--brand-blue);

    font-size: 8px;

    text-transform:
        uppercase;

    letter-spacing:
        .08em;
}


.dashboard-report-card strong {
    margin-top: 4px;
}


.dashboard-report-card p {
    margin:
        5px 0 0;

    color:
        var(--muted);

    font-size: 9px;
}


/* =========================================================
   REPORT PAGINATION
========================================================= */

.report-pagination {
    margin-top: 16px;

    padding:
        12px 16px;

    display: grid;

    grid-template-columns:
        1fr auto 1fr;

    align-items: center;

    gap: 12px;

    border:
        1px solid var(--line);

    border-radius:
        18px;

    background:
        var(--surface);
}


.report-pagination > div:last-child {
    text-align:
        right;
}


.report-pagination a {
    color:
        var(--brand-blue);

    font-size: 9px;

    font-weight:
        800;

    text-decoration:
        none;
}


.report-pagination span {
    color:
        var(--muted);

    font-size: 9px;
}


@media (max-width: 620px) {

    .report-pagination {
        grid-template-columns:
            1fr;

        text-align:
            center;
    }


    .report-pagination > div:last-child {
        text-align:
            center;
    }

}


/* =========================================================
   RENEWAL OS — RENEWAL CASE WORKSPACE
========================================================= */

.renewal-workspace {
    display: grid;
    gap: 24px;
}


.renewal-case-ledger {
    display: grid;
    gap: 10px;
}


.renewal-case-row {
    min-height: 82px;

    padding: 16px 18px;

    display: grid;

    grid-template-columns:
        minmax(150px, 1.2fr)
        minmax(180px, 1.4fr)
        120px
        minmax(130px, .9fr)
        auto
        24px;

    align-items: center;

    gap: 18px;

    border:
        1px solid var(--line);

    border-radius:
        20px;

    background:
        var(--surface);

    color:
        inherit;

    text-decoration:
        none;

    transition:
        transform .18s ease,
        border-color .18s ease;
}


.renewal-case-row:hover {
    transform:
        translateY(-2px);

    border-color:
        rgba(0,169,254,.28);
}


.renewal-case-row small,
.renewal-case-row strong {
    display: block;
}


.renewal-case-row small {
    margin-bottom: 4px;

    color:
        var(--muted);

    font-size: 8px;

    text-transform:
        uppercase;

    letter-spacing:
        .07em;
}


.renewal-case-row strong {
    font-size: 12px;
}


.renewal-status-pill {
    width: fit-content;

    padding: 7px 11px;

    border:
        1px solid var(--line);

    border-radius:
        999px;

    color:
        var(--text);

    font-size:
        8px;

    font-weight:
        900;

    letter-spacing:
        .06em;

    text-transform:
        uppercase;

    white-space:
        nowrap;
}


.renewal-status-large {
    padding:
        10px 15px;

    font-size:
        9px;
}


.renewal-status-pill.status-quote_preparation,
.renewal-status-pill.status-quoted,
.renewal-status-pill.status-follow_up {
    color:
        var(--brand-blue);

    border-color:
        rgba(0,169,254,.28);
}


.renewal-status-pill.status-approved,
.renewal-status-pill.status-renewed {
    color:
        var(--success);
}


.renewal-status-pill.status-not_renewed,
.renewal-status-pill.status-cancelled {
    color:
        var(--danger);
}


.renewal-candidates,
.renewal-commercial-panel,
.renewal-action-panel,
.renewal-start-panel {
    padding:
        22px 24px;

    border:
        1px solid var(--line);

    border-radius:
        24px;

    background:
        var(--surface);
}


.renewal-candidate-row {
    min-height:
        74px;

    padding:
        14px 0;

    display:
        grid;

    grid-template-columns:
        minmax(150px, 1fr)
        minmax(180px, 1.3fr)
        120px
        auto;

    align-items:
        center;

    gap:
        18px;

    border-top:
        1px solid var(--line);
}


.renewal-candidate-row small,
.renewal-candidate-row strong {
    display:
        block;
}


.renewal-candidate-row small {
    color:
        var(--muted);

    font-size:
        9px;
}


.renewal-stage-track {
    margin:
        0 0 24px;

    padding:
        18px;

    display:
        grid;

    grid-template-columns:
        repeat(6, minmax(0, 1fr));

    gap:
        8px;

    border:
        1px solid var(--line);

    border-radius:
        22px;

    background:
        var(--surface);
}


.renewal-stage {
    min-height:
        66px;

    padding:
        10px;

    display:
        grid;

    place-items:
        center;

    align-content:
        center;

    gap:
        5px;

    border:
        1px solid var(--line);

    border-radius:
        15px;

    color:
        var(--muted);

    text-align:
        center;
}


.renewal-stage span {
    font-size:
        8px;

    font-weight:
        900;
}


.renewal-stage small {
    font-size:
        8px;

    font-weight:
        800;
}


.renewal-stage.is-current {
    color:
        var(--brand-blue);

    border-color:
        rgba(0,169,254,.35);

    transform:
        translateY(-2px);
}


.renewal-actions,
.renewal-commercial-actions,
.renewal-start-actions {
    display:
        flex;

    flex-wrap:
        wrap;

    align-items:
        center;

    gap:
        10px;
}


.renewal-start-actions {
    margin-top:
        24px;

    justify-content:
        flex-end;
}


.renewal-action-button {
    min-height:
        42px;

    padding:
        0 16px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        8px;

    border:
        1px solid var(--line);

    border-radius:
        14px;

    background:
        var(--surface);

    color:
        var(--text);

    font:
        inherit;

    font-size:
        10px;

    font-weight:
        850;

    cursor:
        pointer;
}


.renewal-action-button:hover {
    border-color:
        rgba(0,169,254,.35);

    color:
        var(--brand-blue);
}


.renewal-action-button.danger {
    color:
        var(--danger);
}


.renewal-confirm-link {
    text-decoration:
        none;
}


.renewal-commercial-actions {
    margin:
        0 0 18px;
}


.renewal-commercial-row {
    min-height:
        70px;

    padding:
        14px 4px;

    display:
        grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto
        20px;

    align-items:
        center;

    gap:
        18px;

    border-top:
        1px solid var(--line);

    color:
        inherit;

    text-decoration:
        none;
}


.renewal-commercial-row small,
.renewal-commercial-row strong,
.renewal-commercial-row span {
    display:
        block;
}


.renewal-commercial-row small,
.renewal-commercial-row span {
    margin-top:
        3px;

    color:
        var(--muted);

    font-size:
        9px;
}


.renewal-error {
    margin-bottom:
        18px;
}


@media (max-width: 1000px) {

    .renewal-case-row {
        grid-template-columns:
            1fr
            1fr
            auto;
    }


    .renewal-case-row > div:nth-child(3),
    .renewal-case-row > div:nth-child(4) {
        display:
            none;
    }


    .renewal-stage-track {
        grid-template-columns:
            repeat(3, 1fr);
    }


    .renewal-candidate-row {
        grid-template-columns:
            1fr
            1fr;
    }

}


@media (max-width: 660px) {

    .renewal-case-row {
        grid-template-columns:
            1fr
            auto;

        gap:
            10px;
    }


    .renewal-case-row > div:nth-child(2) {
        grid-column:
            1 / -1;
    }


    .renewal-status-pill {
        grid-column:
            1 / -1;
    }


    .renewal-stage-track {
        grid-template-columns:
            repeat(2, 1fr);
    }


    .renewal-candidate-row {
        grid-template-columns:
            1fr;
    }


    .renewal-actions,
    .renewal-commercial-actions,
    .renewal-start-actions {
        align-items:
            stretch;

        flex-direction:
            column;
    }


    .renewal-actions form,
    .renewal-actions button,
    .renewal-commercial-actions a,
    .renewal-start-actions a,
    .renewal-start-actions button {
        width:
            100%;
    }


    .renewal-commercial-row {
        grid-template-columns:
            1fr
            20px;
    }


    .renewal-commercial-row > div:nth-child(2) {
        display:
            none;
    }

}

/* =========================================================
   RENEWAL OS — MENÚ CENTRAL ÚNICO · 2026-10-15
========================================================= */
.command-dock.command-dock-single {
    min-height: 72px;
    width: auto;
    padding: 7px;
    overflow: visible;
    justify-content: center;
}

.command-dock-single .dock-main {
    margin: -10px 4px 0;
}

.quick-menu {
    z-index: 89;
}

.quick-menu::before,
.quick-menu::after {
    display: none !important;
}

.quick-menu-panel {
    position: absolute;
    left: 0;
    top: -18px;
    width: min(720px, calc(100vw - 32px));
    max-height: min(72vh, 620px);
    overflow: auto;
    padding: 16px;
    transform: translate(-50%, -100%) translateY(10px) scale(.96);
    transform-origin: bottom center;
    opacity: 0;
    pointer-events: none;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: color-mix(in srgb, var(--surface-solid) 96%, transparent);
    box-shadow: 0 30px 80px rgba(0,0,0,.28);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    transition: opacity .2s ease, transform .28s cubic-bezier(.2,.9,.2,1.08);
}

.quick-radial.is-open .quick-menu-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, -100%) translateY(0) scale(1);
}

.quick-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 4px 4px 14px;
    border-bottom: 1px solid var(--line);
}

.quick-menu-head > div {
    display: grid;
    gap: 2px;
}

.quick-menu-head small,
.quick-menu-label {
    color: var(--brand-blue);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.quick-menu-head strong {
    color: var(--ink);
    font-size: 18px;
}

.quick-menu-hint {
    color: var(--muted);
    font-size: 9px;
}

.quick-menu-section {
    padding-top: 14px;
}

.quick-menu-grid {
    margin-top: 8px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.quick-menu .radial-action.quick-menu-action {
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    min-width: 0;
    height: 74px;
    padding: 10px 8px;
    transform: none !important;
    opacity: 1;
    pointer-events: auto;
    border-radius: 18px;
    box-shadow: none;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.quick-menu .radial-action.quick-menu-action:hover {
    transform: translateY(-3px) !important;
}

.quick-menu .radial-action.quick-menu-action small {
    display: block;
    max-width: 100%;
    font-size: 8px;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
}

.quick-menu .radial-icon {
    font-size: 20px;
}

html[data-theme="dark"] .quick-menu-panel {
    background: rgba(12,16,21,.98);
    border-color: rgba(53,200,246,.18);
    box-shadow: 0 34px 90px rgba(0,0,0,.58);
}

html[data-theme="dark"] .quick-menu .quick-menu-action {
    background: #141A22;
    border-color: rgba(53,200,246,.15);
}

html[data-theme="dark"] .quick-menu .quick-menu-action:hover {
    background: #182431;
    border-color: rgba(53,200,246,.45);
}

/* =========================================================
   RADAR — INVENTARIO OPERATIVO
========================================================= */
.radar-inventory {
    margin-top: 18px;
    display: grid;
    gap: 12px;
}

.radar-inventory-group {
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    background: var(--surface-muted);
}

.radar-inventory-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
}

.radar-inventory-title strong {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.radar-inventory-title span {
    min-width: 30px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: var(--surface-solid);
    color: var(--brand-blue);
    font-size: 10px;
    font-weight: 900;
}

.radar-records {
    display: grid;
}

.radar-record {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

.radar-record:last-child { border-bottom: 0; }
.radar-record:hover { background: rgba(0,169,254,.05); }
.radar-record-main { min-width: 0; }
.radar-record-main strong,
.radar-record-main small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.radar-record-main small,
.radar-record-date small { color: var(--muted); font-size: 9px; }
.radar-record-date strong { font-size: 10px; }
.radar-record-actions { display:flex; align-items:center; gap:6px; }
.radar-record-actions a {
    min-height: 32px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 8px;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.radar-record-actions a.primary { background: var(--brand-blue); color: #fff; border-color: transparent; }
.radar-empty { padding: 14px; color: var(--muted); font-size: 10px; }
.radar-all-link { margin-top: 8px; display:inline-flex; font-size:9px; font-weight:800; color:var(--brand-blue); }

/* =========================================================
   ACCIONES DE REGISTRO / ELIMINACIÓN SEGURA
========================================================= */
.record-row-shell {
    position: relative;
}

.record-row-shell > .client-row,
.record-row-shell > .catalog-row,
.record-row-shell > .validity-row,
.record-row-shell > .commercial-event,
.record-row-shell > .access-row {
    padding-right: 178px;
}

.record-row-actions {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 6px;
}

.record-action {
    min-height: 32px;
    padding: 0 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-solid);
    color: var(--ink);
    font-size: 8px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.record-action:hover {
    border-color: rgba(0,169,254,.42);
    color: var(--brand-blue);
}

.record-action.danger {
    color: #e45a68;
    border-color: rgba(228,90,104,.25);
}
.record-action.danger:hover { background: rgba(228,90,104,.08); border-color: rgba(228,90,104,.55); }

.record-lock {
    color: var(--muted);
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
}

.edit-safety-note {
    margin: 0 0 16px;
    padding: 13px 16px;
    border-left: 3px solid var(--brand-blue);
    border-radius: 12px;
    background: rgba(0,169,254,.07);
    color: var(--muted);
    font-size: 10px;
    line-height: 1.55;
}

.delete-guard {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 18px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface-solid);
}
.delete-guard-icon {
    width: 58px; height:58px; display:grid; place-items:center;
    border-radius:18px; background:rgba(228,90,104,.10); color:#e45a68;
    font-size:24px; font-weight:900;
}
.delete-guard-icon.blocked { background:rgba(0,169,254,.08); color:var(--brand-blue); }
.delete-guard-copy > small { color:var(--muted); font-size:9px; text-transform:uppercase; letter-spacing:.08em; }
.delete-guard-copy h2 { margin:4px 0 14px; font-size:24px; }
.delete-guard-message { padding:14px; border-radius:16px; background:rgba(228,90,104,.07); }
.delete-guard-message.blocked { background:rgba(0,169,254,.07); }
.delete-guard-message p, .delete-guard-message li, .delete-guard-warnings p { color:var(--muted); font-size:10px; line-height:1.5; }
.delete-guard-actions { margin-top:16px; }
.delete-confirm-form { margin:0; }
.danger-action { background:#c94352 !important; }
.secondary-action { background:var(--brand-blue) !important; }

@media (max-width: 760px) {
    .command-dock.command-dock-single {
        width: auto;
        justify-content: center;
        overflow: visible;
        bottom: 12px;
    }

    .command-dock-single .dock-main {
        width: 58px;
        height: 58px;
        margin: -6px 2px 0;
    }

    .command-dock-single .dock-main > span:last-child {
        display: block;
        bottom: -14px;
    }

    .quick-menu-panel {
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: 86px;
        top: auto;
        width: auto;
        max-height: calc(100vh - 116px);
        transform: translateY(18px) scale(.98);
        transform-origin: bottom center;
        border-radius: 24px;
    }

    .quick-radial.is-open .quick-menu-panel {
        transform: translateY(0) scale(1);
    }

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

    .quick-menu .radial-action.quick-menu-action {
        height: 66px;
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr);
        align-items: center;
        justify-content: stretch;
        gap: 8px;
        padding: 10px 12px;
        text-align: left;
    }

    .quick-menu .radial-action.quick-menu-action small {
        display: block !important;
        text-align: left;
        font-size: 9px;
    }

    .radar-record {
        grid-template-columns: minmax(0, 1fr) auto;
    }
    .radar-record-date { display:none; }

    .record-row-shell > .client-row,
    .record-row-shell > .catalog-row,
    .record-row-shell > .validity-row,
    .record-row-shell > .commercial-event,
    .record-row-shell > .access-row {
        padding-right: 18px;
        padding-bottom: 56px;
    }
    .record-row-actions {
        left: 14px;
        right: auto;
        top: auto;
        bottom: 10px;
        transform: none;
    }
    .delete-guard { grid-template-columns:1fr; }
}

/* =========================================================
   GESTIÓN SEGURA DE REGISTROS — DETALLE Y SUBREGISTROS
========================================================= */
.client-hero-actions,
.inline-record-actions,
.record-management-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.danger-link {
    color: #e45a68 !important;
    border-color: rgba(228,90,104,.28) !important;
}
.danger-link:hover {
    background: rgba(228,90,104,.08) !important;
    border-color: rgba(228,90,104,.55) !important;
}
.inline-record-actions { margin-left: auto; justify-content: flex-end; }
.history-protected-note,
.record-management-bar {
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid rgba(53,200,246,.16);
    border-left: 3px solid var(--brand-blue);
    border-radius: 14px;
    background: rgba(0,169,254,.06);
}
.history-protected-note { display:grid; gap:3px; }
.history-protected-note strong,
.record-management-bar strong { color: var(--ink); font-size:10px; }
.history-protected-note span,
.record-management-bar span { color:var(--muted); font-size:9px; line-height:1.45; }
.record-management-bar { justify-content:space-between; }
.validity-hero .validity-record-actions { margin-left:auto; }

@media (max-width: 760px) {
    .inline-record-actions { width:100%; justify-content:flex-start; margin:8px 0 0; }
    .supplier-product-line,
    .supplier-contact-line,
    .commercial-document-line { flex-wrap:wrap; }
    .record-management-bar { align-items:flex-start; flex-direction:column; }
    .validity-hero .validity-record-actions { width:100%; margin:8px 0 0; }
}
.record-row-shell > .renewal-case-row { padding-right: 178px; }
@media (max-width:760px) {
    .record-row-shell > .renewal-case-row { padding-right:18px; padding-bottom:56px; }
}

/* El dock principal muestra visualmente sólo el botón +. */
.command-dock-single .dock-main > span:last-child {
    display: none !important;
}

/* =========================================================
   P34.2 — APP LAUNCHER SEGURO + RADAR DE PUNTOS
   2026-10-15
========================================================= */

/* El dock conserva únicamente el botón central +. */
.command-dock.command-dock-single {
    width: auto;
    min-width: 0;
    min-height: 72px;
    padding: 7px;
    overflow: visible;
    justify-content: center;
    z-index: 92;
}

.command-dock-single .dock-main {
    margin: -10px 4px 0;
}

.command-dock-single .dock-main-label {
    display: none !important;
}

/* ---------------------------------------------------------
   Lanzador inspirado en menú de aplicaciones: no es modal,
   no usa backdrop y sólo existe sobre el botón +.
--------------------------------------------------------- */
.quick-launcher {
    position: fixed;
    z-index: 91;
    width: 0;
    height: 0;
    opacity: 1;
    visibility: hidden;
    pointer-events: none !important;
}

.quick-launcher[aria-hidden="true"],
.quick-launcher[aria-hidden="true"] * {
    pointer-events: none !important;
}

.quick-launcher.is-open {
    visibility: visible;
    pointer-events: none !important;
}

.quick-launcher::before,
.quick-launcher::after {
    display: none !important;
}

.quick-launcher-panel {
    position: absolute;
    left: 0;
    top: -19px;
    width: min(620px, calc(100vw - 28px));
    max-height: min(72vh, 510px);
    overflow: auto;
    padding: 13px;
    border: 1px solid rgba(0, 169, 254, .18);
    border-radius: 24px;
    background: rgba(249, 251, 253, .965);
    box-shadow:
        0 26px 70px rgba(4, 13, 22, .23),
        inset 0 1px rgba(255, 255, 255, .72);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    transform:
        translate(-50%, -100%)
        translateY(14px)
        scale(.92);
    transform-origin: bottom center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none !important;
    transition:
        opacity .18s ease,
        transform .30s cubic-bezier(.2, .9, .2, 1.08),
        visibility 0s linear .30s;
}

.quick-launcher-panel::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -7px;
    width: 14px;
    height: 14px;
    border-right: 1px solid rgba(0, 169, 254, .18);
    border-bottom: 1px solid rgba(0, 169, 254, .18);
    background: inherit;
    transform: translateX(-50%) rotate(45deg);
    pointer-events: none;
}

.quick-launcher.is-open .quick-launcher-panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto !important;
    transform:
        translate(-50%, -100%)
        translateY(0)
        scale(1);
    transition-delay: 0s;
}

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

.quick-launcher .radial-action.launcher-action {
    --launcher-accent: var(--brand-blue);
    position: relative;
    left: auto;
    top: auto;
    width: auto;
    height: 88px;
    min-width: 0;
    padding: 11px 8px 9px;
    display: grid;
    grid-template-rows: 42px minmax(0, 1fr);
    place-items: center;
    gap: 6px;
    border: 1px solid rgba(0, 169, 254, .12);
    border-radius: 18px;
    background: rgba(255, 255, 255, .72);
    color: var(--ink);
    box-shadow: none;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none !important;
    transform: translateY(12px) scale(.84) !important;
    transition:
        opacity .18s ease,
        transform .30s cubic-bezier(.18, .9, .22, 1.16),
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease,
        visibility 0s linear .30s;
}

.quick-launcher.is-open .radial-action.launcher-action {
    opacity: 1;
    visibility: visible;
    pointer-events: auto !important;
    transform: translateY(0) scale(1) !important;
    transition-delay: calc(var(--launcher-i, 0) * 18ms);
}

.quick-launcher .launcher-action:hover,
.quick-launcher .launcher-action:focus-visible {
    transform: translateY(-3px) scale(1.015) !important;
    border-color: rgba(0, 169, 254, .42);
    background: rgba(0, 169, 254, .055);
    box-shadow: 0 10px 25px rgba(0, 169, 254, .10);
    outline: none;
}

.quick-launcher .launcher-action .radial-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 169, 254, .20);
    border-radius: 12px;
    background:
        radial-gradient(circle at 30% 25%, rgba(53, 200, 246, .20), transparent 58%),
        rgba(0, 169, 254, .08);
    color: var(--brand-blue);
    font-size: 18px;
    line-height: 1;
    box-shadow: inset 0 0 18px rgba(0, 169, 254, .04);
}

.quick-launcher .launcher-action.launcher-create .radial-icon {
    border-color: rgba(53, 200, 246, .28);
    color: #16bcea;
}

.quick-launcher .launcher-action small {
    display: block !important;
    max-width: 100%;
    color: var(--ink);
    font-size: 8.5px;
    font-weight: 820;
    line-height: 1.18;
    letter-spacing: .015em;
    text-align: center;
    text-transform: none;
    white-space: normal;
}

html[data-theme="dark"] .quick-launcher-panel {
    background: rgba(12, 16, 21, .975);
    border-color: rgba(53, 200, 246, .19);
    box-shadow:
        0 30px 78px rgba(0, 0, 0, .60),
        inset 0 1px rgba(255, 255, 255, .035);
}

html[data-theme="dark"] .quick-launcher .radial-action.launcher-action {
    background: rgba(20, 26, 34, .94);
    border-color: rgba(53, 200, 246, .13);
}

html[data-theme="dark"] .quick-launcher .launcher-action:hover,
html[data-theme="dark"] .quick-launcher .launcher-action:focus-visible {
    background: #182431;
    border-color: rgba(53, 200, 246, .48);
    box-shadow: 0 12px 28px rgba(0, 169, 254, .12);
}

html[data-theme="dark"] .quick-launcher .launcher-action small {
    color: #eef7fb;
}

/* El + se transforma en × al abrir, como en el launcher de referencia. */
.dock-main.radial-open {
    transform: rotate(45deg) scale(1.05);
    box-shadow: 0 14px 40px rgba(0, 169, 254, .32);
}

.dock-main.radial-open .dock-main-icon {
    transform: none;
}

/* ---------------------------------------------------------
   Radar de vigencias: puntos pequeños, sin listas.
--------------------------------------------------------- */
.radar {
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(0, 169, 254, .035), transparent 66%),
        var(--surface-muted);
}

.radar-grid,
.radar-circle,
.radar-sweep {
    pointer-events: none;
}

.radar-sweep {
    z-index: 1;
    background:
        conic-gradient(
            from 0deg,
            transparent 0deg,
            transparent 304deg,
            rgba(0, 169, 254, .015) 314deg,
            rgba(0, 169, 254, .24) 358deg,
            transparent 360deg
        );
}

.radar-points {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
}

.radar-point {
    --radar-point-size: 7px;
    position: absolute;
    width: var(--radar-point-size);
    height: var(--radar-point-size);
    margin-left: calc(var(--radar-point-size) / -2);
    margin-top: calc(var(--radar-point-size) / -2);
    display: block;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .36);
    pointer-events: auto;
    cursor: pointer;
    transition:
        transform .16s ease,
        filter .16s ease,
        box-shadow .16s ease;
}

.radar-density-dense .radar-point { --radar-point-size: 5.5px; }
.radar-density-compact .radar-point { --radar-point-size: 4.5px; border-width: 0; }
.radar-density-micro .radar-point { --radar-point-size: 3.4px; border-width: 0; }

.radar-point:hover,
.radar-point:focus-visible {
    z-index: 7;
    transform: scale(2.05);
    filter: brightness(1.18);
    outline: none;
}

.radar-point-active {
    background: #39ff9a;
    box-shadow:
        0 0 8px rgba(57, 255, 154, .95),
        0 0 17px rgba(57, 255, 154, .42);
}

.radar-point-upcoming {
    background: #ffad32;
    box-shadow:
        0 0 8px rgba(255, 173, 50, .96),
        0 0 17px rgba(255, 173, 50, .42);
}

.radar-point-expired {
    background: #ff4e63;
    box-shadow:
        0 0 8px rgba(255, 78, 99, .96),
        0 0 17px rgba(255, 78, 99, .42);
}

.radar-core {
    z-index: 6;
}

.radar-key {
    display: grid;
    gap: 9px;
    margin-bottom: 22px;
}

.radar-key-item {
    display: grid;
    grid-template-columns: 10px 30px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    color: var(--ink);
}

.radar-key-item > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.radar-key-item strong {
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.radar-key-item small {
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .055em;
}

.radar-key-item.active > span {
    background: #39ff9a;
    box-shadow: 0 0 9px rgba(57, 255, 154, .86);
}
.radar-key-item.upcoming > span {
    background: #ffad32;
    box-shadow: 0 0 9px rgba(255, 173, 50, .86);
}
.radar-key-item.expired > span {
    background: #ff4e63;
    box-shadow: 0 0 9px rgba(255, 78, 99, .86);
}

.radar-help {
    display: block;
    margin-top: 12px;
    max-width: 31ch;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.55;
}

@media (max-width: 760px) {
    .quick-launcher-panel {
        width: min(440px, calc(100vw - 18px));
        max-height: min(68vh, 500px);
        padding: 10px;
        border-radius: 20px;
    }

    .quick-launcher-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .quick-launcher .radial-action.launcher-action {
        height: 78px;
        padding: 8px 5px 7px;
        grid-template-rows: 36px minmax(0, 1fr);
        border-radius: 15px;
    }

    .quick-launcher .launcher-action .radial-icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        font-size: 15px;
    }

    .quick-launcher .launcher-action small {
        font-size: 7.7px;
        line-height: 1.12;
    }

    .radar-key {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
    }

    .radar-key-item {
        grid-template-columns: 8px auto;
        gap: 5px;
    }

    .radar-key-item small {
        grid-column: 1 / -1;
        font-size: 7.5px;
    }
}

@media (max-width: 360px) {
    .quick-launcher-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .quick-launcher-panel,
    .quick-launcher .radial-action.launcher-action,
    .radar-point {
        transition: none !important;
    }
}

/* =========================================================
   P34.3 — LAUNCHER DOT-NAVIGATION + RADAR SCAN REVEAL
   Mantiene la identidad Renewal OS y replica el comportamiento
   solicitado: opciones que nacen del centro y botón + / × en
   medio del conjunto, sin panel/modal envolvente.
========================================================= */

/* ---------- Launcher: sin modal / sin contenedor visible ---------- */
.command-dock.command-dock-single {
    z-index: 96;
    pointer-events: none;
    overflow: visible;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.command-dock-single .dock-main {
    --launcher-lift: 188px;
    pointer-events: auto;
    z-index: 99;
    transition:
        transform .52s cubic-bezier(.2, .9, .22, 1.16),
        box-shadow .28s ease,
        background .28s ease,
        border-color .28s ease;
}

.quick-launcher {
    position: fixed;
    z-index: 94;
    width: 0;
    height: 0;
    overflow: visible;
    opacity: 1;
    visibility: hidden;
    pointer-events: none !important;
}

.quick-launcher[aria-hidden="true"],
.quick-launcher[aria-hidden="true"] * {
    pointer-events: none !important;
}

.quick-launcher.is-open {
    visibility: visible;
    pointer-events: none !important;
}

.quick-launcher::before,
.quick-launcher::after,
.quick-launcher-panel::before,
.quick-launcher-panel::after {
    display: none !important;
}

.quick-launcher-panel,
.quick-launcher.is-open .quick-launcher-panel {
    position: absolute;
    inset: 0;
    width: 0;
    height: 0;
    min-width: 0;
    max-width: none;
    min-height: 0;
    max-height: none;
    padding: 0;
    margin: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: none !important;
}

.quick-launcher-grid {
    position: absolute;
    inset: 0;
    width: 0;
    height: 0;
    display: block;
    overflow: visible;
    pointer-events: none !important;
}

.quick-launcher .radial-action.launcher-action {
    --launcher-x: 0px;
    --launcher-y: 0px;
    --launcher-order: 0;
    position: absolute;
    left: 0;
    top: 0;
    width: 82px;
    height: 70px;
    min-width: 0;
    margin: -35px 0 0 -41px;
    padding: 7px 5px 6px;
    display: grid;
    grid-template-rows: 38px minmax(0, 1fr);
    place-items: center;
    gap: 4px;
    overflow: visible;
    border: 1px solid rgba(0, 169, 254, .24);
    border-radius: 15px;
    background:
        linear-gradient(145deg, rgba(255,255,255,.96), rgba(242,248,252,.94));
    color: var(--ink);
    box-shadow:
        0 12px 30px rgba(8, 40, 62, .12),
        inset 0 1px rgba(255,255,255,.85);
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none !important;
    transform: translate(0, 0) scale(.08) rotate(-12deg) !important;
    transform-origin: center;
    transition:
        opacity .22s ease,
        transform .48s cubic-bezier(.16, .92, .22, 1.18),
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease,
        visibility 0s linear .5s;
    will-change: transform, opacity;
}

.quick-launcher.is-open .radial-action.launcher-action {
    opacity: 1;
    visibility: visible;
    pointer-events: auto !important;
    transform:
        translate(var(--launcher-x), var(--launcher-y))
        scale(1)
        rotate(0deg) !important;
    transition-delay: calc(.07s + (var(--launcher-order) * 22ms));
}

.quick-launcher .launcher-action:hover,
.quick-launcher .launcher-action:focus-visible {
    z-index: 4;
    border-color: rgba(0, 169, 254, .72);
    background:
        linear-gradient(145deg, #ffffff, rgba(231,247,255,.98));
    box-shadow:
        0 0 0 1px rgba(53,200,246,.12),
        0 0 26px rgba(0,169,254,.22),
        0 14px 34px rgba(8,40,62,.16);
    outline: none;
    filter: brightness(1.025);
}

.quick-launcher .launcher-action .radial-icon {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 169, 254, .28);
    border-radius: 11px;
    background:
        radial-gradient(circle at 32% 24%, rgba(53,200,246,.24), transparent 56%),
        rgba(0,169,254,.075);
    color: var(--brand-blue);
    font-size: 17px;
    line-height: 1;
    box-shadow:
        inset 0 0 17px rgba(0,169,254,.055),
        0 0 0 rgba(0,169,254,0);
    transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}

.quick-launcher .launcher-action:hover .radial-icon,
.quick-launcher .launcher-action:focus-visible .radial-icon {
    transform: scale(1.08);
    border-color: rgba(53,200,246,.72);
    box-shadow:
        0 0 18px rgba(0,169,254,.28),
        inset 0 0 18px rgba(53,200,246,.09);
}

.quick-launcher .launcher-action.launcher-create .radial-icon {
    color: #0aaee8;
}

.quick-launcher .launcher-action small {
    display: block !important;
    width: 100%;
    color: var(--ink);
    font-size: 8px;
    font-weight: 820;
    line-height: 1.12;
    letter-spacing: .01em;
    text-align: center;
    text-transform: none;
    white-space: normal;
}

html[data-theme="dark"] .quick-launcher .radial-action.launcher-action {
    background:
        linear-gradient(145deg, rgba(19,27,36,.98), rgba(11,17,23,.98));
    border-color: rgba(53,200,246,.25);
    color: #eef8fc;
    box-shadow:
        0 15px 34px rgba(0,0,0,.44),
        inset 0 1px rgba(255,255,255,.04);
}

html[data-theme="dark"] .quick-launcher .launcher-action:hover,
html[data-theme="dark"] .quick-launcher .launcher-action:focus-visible {
    background:
        linear-gradient(145deg, #172532, #0e1821);
    border-color: rgba(53,200,246,.75);
    box-shadow:
        0 0 0 1px rgba(53,200,246,.10),
        0 0 28px rgba(0,169,254,.22),
        0 15px 36px rgba(0,0,0,.48);
}

html[data-theme="dark"] .quick-launcher .launcher-action small {
    color: #f1f8fb;
}

/* El botón viaja al centro del conjunto, igual que la referencia. */
.dock-main.radial-open {
    transform:
        translateY(calc(var(--launcher-lift) * -1))
        rotate(45deg)
        scale(1.04) !important;
    border-color: rgba(53,200,246,.54);
    box-shadow:
        0 0 0 7px rgba(0,169,254,.07),
        0 0 32px rgba(0,169,254,.30),
        0 18px 42px rgba(0,0,0,.20);
}

.dock-main.radial-open .dock-main-icon {
    transform: none !important;
}

/* ---------- Radar: el barrido revela los puntos ---------- */
.radar-points {
    z-index: 5;
}

.radar-point {
    --radar-dot-size: 7px;
    --radar-color: #39ff9a;
    --radar-glow: rgba(57,255,154,.92);
    position: absolute;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    display: block;
    border: 0;
    border-radius: 50%;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 1;
    pointer-events: auto;
    cursor: pointer;
    outline: none;
}

.radar-point::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--radar-dot-size);
    height: var(--radar-dot-size);
    border-radius: 50%;
    background: var(--radar-color);
    border: 1px solid rgba(255,255,255,.45);
    box-shadow:
        0 0 8px var(--radar-glow),
        0 0 18px color-mix(in srgb, var(--radar-color) 45%, transparent);
    opacity: 0;
    transform: translate(-50%, -50%) scale(.30);
    transition:
        opacity .16s ease,
        transform .24s cubic-bezier(.2,.9,.25,1.2),
        filter .16s ease;
}

.radar-point.is-scanned::before,
.radar-point:hover::before,
.radar-point:focus-visible::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.radar-point:hover::before,
.radar-point:focus-visible::before {
    transform: translate(-50%, -50%) scale(1.8);
    filter: brightness(1.2);
}

.radar-point-active {
    --radar-color: #39ff9a;
    --radar-glow: rgba(57,255,154,.95);
}

.radar-point-upcoming {
    --radar-color: #ffad32;
    --radar-glow: rgba(255,173,50,.96);
}

.radar-point-expired {
    --radar-color: #ff4e63;
    --radar-glow: rgba(255,78,99,.96);
}

.radar-density-dense .radar-point { --radar-dot-size: 5.5px; }
.radar-density-compact .radar-point { --radar-dot-size: 4.4px; }
.radar-density-micro .radar-point { --radar-dot-size: 3.3px; }

.radar-sweep {
    z-index: 2;
}

/* El centro permanece por encima del barrido y de los puntos. */
.radar-core {
    z-index: 7;
}

@media (max-width: 640px) {
    .command-dock-single .dock-main {
        --launcher-lift: 176px;
    }

    .quick-launcher .radial-action.launcher-action {
        width: 66px;
        height: 60px;
        margin: -30px 0 0 -33px;
        padding: 5px 3px 4px;
        grid-template-rows: 32px minmax(0, 1fr);
        gap: 3px;
        border-radius: 13px;
    }

    .quick-launcher .launcher-action .radial-icon {
        width: 32px;
        height: 32px;
        border-radius: 9px;
        font-size: 14px;
    }

    .quick-launcher .launcher-action small {
        font-size: 6.9px;
        line-height: 1.06;
    }
}

@media (max-width: 380px) {
    .quick-launcher .radial-action.launcher-action {
        width: 62px;
        margin-left: -31px;
    }

    .quick-launcher .launcher-action small {
        font-size: 6.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .command-dock-single .dock-main,
    .quick-launcher .radial-action.launcher-action,
    .radar-point::before {
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
    }
}

/* Secuencia de apertura/cierre del launcher: + al centro, opciones después. */
.quick-launcher.is-open .radial-action.launcher-action {
    transition-delay: calc(.14s + (var(--launcher-order) * 22ms));
}

.dock-main.radial-closing {
    pointer-events: auto;
}


/* =========================================================
   P34.4 — LAUNCHER CENTRADO + ECO PROGRESIVO DEL RADAR
========================================================= */

/* El centro del launcher se calcula en JS con base en el viewport.
   Se aumenta ligeramente el refinamiento visual sin añadir panel/modal. */
.quick-launcher .radial-action.launcher-action {
    z-index: 1;
    transition:
        opacity .24s ease,
        transform .54s cubic-bezier(.16, .92, .22, 1.12),
        border-color .18s ease,
        background .18s ease,
        box-shadow .18s ease,
        visibility 0s linear .56s;
}

.quick-launcher.is-open .radial-action.launcher-action {
    transition-delay: calc(.16s + (var(--launcher-order) * 18ms));
}

.dock-main.radial-open {
    z-index: 110;
}

/* El punto no enciende/apaga: genera un eco de detección de 3.6 s. */
.radar-point::before {
    opacity: 0;
    transform: translate(-50%, -50%) scale(.28);
    filter: brightness(.72);
    transition: none;
    animation: none;
}

.radar-point.is-scanned::before {
    animation: radarTargetEcho 3.6s cubic-bezier(.22,.72,.22,1) both;
}

@keyframes radarTargetEcho {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.28);
        filter: brightness(.72);
        box-shadow: 0 0 0 rgba(0,0,0,0);
    }
    16% {
        opacity: .24;
        transform: translate(-50%, -50%) scale(.52);
        filter: brightness(.88);
        box-shadow: 0 0 5px var(--radar-glow);
    }
    32% {
        opacity: .72;
        transform: translate(-50%, -50%) scale(.92);
        filter: brightness(1.02);
        box-shadow:
            0 0 10px var(--radar-glow),
            0 0 20px var(--radar-glow);
    }
    43% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.34);
        filter: brightness(1.28);
        box-shadow:
            0 0 12px var(--radar-glow),
            0 0 28px var(--radar-glow),
            0 0 44px color-mix(in srgb, var(--radar-color) 46%, transparent);
    }
    61% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.16);
        filter: brightness(1.16);
        box-shadow:
            0 0 11px var(--radar-glow),
            0 0 24px var(--radar-glow);
    }
    72% {
        opacity: .88;
        transform: translate(-50%, -50%) scale(1.02);
        filter: brightness(1.05);
        box-shadow:
            0 0 9px var(--radar-glow),
            0 0 18px var(--radar-glow);
    }
    86% {
        opacity: .34;
        transform: translate(-50%, -50%) scale(.72);
        filter: brightness(.92);
        box-shadow: 0 0 8px var(--radar-glow);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.34);
        filter: brightness(.75);
        box-shadow: 0 0 0 rgba(0,0,0,0);
    }
}

/* Hover/focus gana sobre el eco y mantiene el punto visible para clic. */
.radar-point:hover::before,
.radar-point:focus-visible::before {
    animation: none !important;
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1.72) !important;
    filter: brightness(1.28) !important;
    box-shadow:
        0 0 12px var(--radar-glow),
        0 0 30px var(--radar-glow),
        0 0 48px color-mix(in srgb, var(--radar-color) 42%, transparent) !important;
}

@media (max-width: 640px) {
    .quick-launcher .radial-action.launcher-action {
        width: 68px;
        height: 60px;
        margin: -30px 0 0 -34px;
    }

    .quick-launcher .launcher-action small {
        font-size: 7px;
        line-height: 1.08;
    }
}

@media (max-width: 380px) {
    .quick-launcher .radial-action.launcher-action {
        width: 62px;
        height: 56px;
        margin: -28px 0 0 -31px;
        grid-template-rows: 30px minmax(0,1fr);
    }

    .quick-launcher .launcher-action .radial-icon {
        width: 30px;
        height: 30px;
    }

    .quick-launcher .launcher-action small {
        font-size: 6.4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .radar-point.is-scanned::before {
        animation: none !important;
    }
}


/* Ajuste final P34.4: distribución móvil sin solapamientos. */
@media (max-width: 640px) {
    .quick-launcher .radial-action.launcher-action {
        width: 60px;
        height: 54px;
        margin: -27px 0 0 -30px;
        padding: 4px 2px 3px;
        grid-template-rows: 29px minmax(0,1fr);
        border-radius: 12px;
    }
    .quick-launcher .launcher-action .radial-icon {
        width: 29px;
        height: 29px;
        border-radius: 8px;
        font-size: 13px;
    }
    .quick-launcher .launcher-action small {
        font-size: 6.4px;
        line-height: 1.04;
    }
}

@media (max-width: 340px) {
    .quick-launcher .radial-action.launcher-action {
        width: 54px;
        height: 50px;
        margin: -25px 0 0 -27px;
        grid-template-rows: 27px minmax(0,1fr);
        border-radius: 11px;
    }
    .quick-launcher .launcher-action .radial-icon {
        width: 27px;
        height: 27px;
        font-size: 12px;
    }
    .quick-launcher .launcher-action small {
        font-size: 5.9px;
    }
}


/* =========================================================
   P34.5 — Radar fluido + header móvil contenido
   Sólo ajustes visuales; no modifica lógica ni permisos.
========================================================= */

/*
   Radar: el brillo usa capas con box-shadow estable y anima
   únicamente opacity/transform para evitar saltos de render.
*/
.radar-point::before {
    will-change: transform, opacity;
    filter: none !important;
    box-shadow:
        0 0 8px var(--radar-glow),
        0 0 18px color-mix(in srgb, var(--radar-color) 42%, transparent) !important;
    animation: none;
}

.radar-point::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: calc(var(--radar-dot-size) * 5.2);
    height: calc(var(--radar-dot-size) * 5.2);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%) scale(.48);
    background: radial-gradient(
        circle,
        color-mix(in srgb, var(--radar-color) 34%, transparent) 0%,
        color-mix(in srgb, var(--radar-color) 16%, transparent) 44%,
        transparent 72%
    );
    will-change: transform, opacity;
}

.radar-point.is-scanned::before {
    animation: radarDotSmooth 1.8s cubic-bezier(.4, 0, .2, 1) both !important;
}

.radar-point.is-scanned::after {
    animation: radarHaloSmooth 1.8s cubic-bezier(.4, 0, .2, 1) both;
}

@keyframes radarDotSmooth {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.42);
    }
    42% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.24);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.24);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.72);
    }
}

@keyframes radarHaloSmooth {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.48);
    }
    42% {
        opacity: .96;
        transform: translate(-50%, -50%) scale(1.16);
    }
    50% {
        opacity: .96;
        transform: translate(-50%, -50%) scale(1.16);
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(1.58);
    }
}

/* Hover/focus permanece visible para poder seleccionar el punto. */
.radar-point:hover::before,
.radar-point:focus-visible::before {
    animation: none !important;
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1.55) !important;
}

.radar-point:hover::after,
.radar-point:focus-visible::after {
    animation: none !important;
    opacity: 1 !important;
    transform: translate(-50%, -50%) scale(1.20) !important;
}

/* Header móvil: todas las acciones permanecen dentro de la barra. */
@media (max-width: 620px) {
    .command-bar {
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 6px;
        padding-left: 8px;
        padding-right: 8px;
        overflow: hidden;
    }

    .command-brand {
        min-width: 0;
        gap: 6px;
        overflow: hidden;
    }

    .brand-orbit {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
    }

    .brand-image {
        width: 28px;
        height: 28px;
    }

    .brand-text {
        min-width: 0;
        overflow: hidden;
    }

    .brand-text strong {
        font-size: 10px;
        white-space: nowrap;
    }

    .brand-text small {
        font-size: 7.5px;
        white-space: nowrap;
    }

    .command-actions {
        min-width: 0;
        flex: 0 0 auto;
        gap: 4px;
    }

    .command-actions .round-action {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        padding: 0;
        display: grid;
        place-items: center;
    }

    .command-actions .profile-pill {
        min-width: 68px;
        width: 68px;
        height: 38px;
        flex: 0 0 68px;
        padding: 2px 3px;
        gap: 2px;
    }

    .command-actions .profile-avatar {
        width: 28px;
        height: 28px;
        font-size: 10px;
    }

    .command-actions .profile-logout button {
        width: 28px;
        height: 28px;
        padding: 0;
    }
}

@media (max-width: 370px) {
    .command-bar {
        padding-left: 6px;
        padding-right: 6px;
        column-gap: 4px;
    }

    .brand-text small {
        display: none;
    }

    .command-actions {
        gap: 3px;
    }

    .command-actions .round-action {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .command-actions .profile-pill {
        min-width: 62px;
        width: 62px;
        flex-basis: 62px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .radar-point.is-scanned::before,
    .radar-point.is-scanned::after {
        animation: none !important;
    }
}
