/* ==========================================================
   GONZALEZ Y GONZALEZ — OPERATIONS V5
   DESIGN COMPLET RESTAURÉ
   Desktop + Tablet + Mobile
========================================================== */


/* ==========================================================
   VARIABLES
========================================================== */

:root {

    --gz-bg: #070808;
    --gz-bg-soft: #0c0d0d;
    --gz-panel: #101111;
    --gz-panel-2: #151616;
    --gz-panel-3: #1a1b1b;

    --gz-border: rgba(255,255,255,.08);
    --gz-border-strong: rgba(255,255,255,.14);

    --gz-text: #f5f1e9;
    --gz-muted: #97958f;
    --gz-muted-2: #686966;

    --gz-accent: #c94f38;
    --gz-accent-soft: rgba(201,79,56,.15);
    --gz-accent-border: rgba(201,79,56,.32);

    --gz-green: #7ea47c;
    --gz-warning: #d7a44d;

    --gz-radius: 18px;
    --gz-radius-small: 12px;

    --gz-sidebar: 230px;

    --gz-shadow:
        0 24px 70px rgba(0,0,0,.34);
}


/* ==========================================================
   RESET GONZALEZ
========================================================== */

.gz-app *,
.gz-app *::before,
.gz-app *::after {

    box-sizing: border-box;
}


html {

    scroll-behavior: smooth;
}


body.gz-app {

    margin: 0 !important;

    background:
        radial-gradient(
            circle at 80% 0%,
            rgba(201,79,56,.07),
            transparent 28%
        ),
        #070808 !important;

    color: var(--gz-text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    -webkit-font-smoothing: antialiased;
}


.gz-app button,
.gz-app input,
.gz-app select,
.gz-app textarea {

    font: inherit;
}


.gz-app button {

    cursor: pointer;
}


.gz-app a {

    color: inherit;
    text-decoration: none;
}


/* ==========================================================
   APP
========================================================== */

.gz-app-shell {

    display: flex;

    width: 100%;
    min-height: 100vh;

    background: transparent;
}


/* ==========================================================
   SIDEBAR
========================================================== */

.gz-sidebar {

    position: fixed;

    top: 0;
    left: 0;
    bottom: 0;

    width: var(--gz-sidebar);

    display: flex;
    flex-direction: column;

    padding: 24px 18px 18px;

    background:
        linear-gradient(
            180deg,
            #101111 0%,
            #090a0a 100%
        );

    border-right:
        1px solid var(--gz-border);

    z-index: 100;
}


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

.gz-brand {

    display: flex;
    align-items: center;
    gap: 12px;

    min-height: 54px;

    margin-bottom: 30px;
}


.gz-brand-mark {

    width: 43px;
    height: 43px;

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

    flex: 0 0 43px;

    border-radius: 14px;

    background:
        linear-gradient(
            145deg,
            #d45a41,
            #9e3425
        );

    color: #fff;

    font-family: Georgia, serif;

    font-size: 24px;
    font-weight: 700;

    box-shadow:
        0 10px 30px rgba(201,79,56,.24);
}


.gz-brand-copy {

    display: flex;
    flex-direction: column;

    line-height: 1.1;
}


.gz-brand-copy strong {

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 17px;

    letter-spacing: .8px;
}


.gz-brand-copy small {

    margin-top: 5px;

    color: var(--gz-muted);

    font-size: 8px;
    font-weight: 700;

    letter-spacing: 2px;
}


/* ==========================================================
   SIDEBAR LABEL
========================================================== */

.gz-sidebar-label {

    margin:
        0 8px
        10px;

    color: #555754;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 2px;
}


/* ==========================================================
   NAVIGATION
========================================================== */

.gz-main-nav {

    display: flex;
    flex-direction: column;
    gap: 6px;
}


.gz-main-nav a {

    display: flex;
    align-items: center;
    gap: 12px;

    min-height: 57px;

    padding: 9px 11px;

    border:
        1px solid transparent;

    border-radius: 13px;

    color: #999a96;

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


.gz-main-nav a:hover {

    color: #fff;

    background:
        rgba(255,255,255,.035);

    transform:
        translateX(2px);
}


.gz-main-nav a.is-active {

    color: #fff;

    background:
        linear-gradient(
            135deg,
            rgba(201,79,56,.18),
            rgba(201,79,56,.04)
        );

    border-color:
        var(--gz-accent-border);
}


.gz-nav-number {

    width: 30px;
    height: 30px;

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

    flex: 0 0 30px;

    border-radius: 9px;

    background:
        rgba(255,255,255,.04);

    color: #70716e;

    font-size: 8px;
    font-weight: 800;
}


.gz-main-nav a.is-active
.gz-nav-number {

    background:
        var(--gz-accent);

    color: #fff;
}


.gz-main-nav a > span:last-child {

    display: flex;
    flex-direction: column;

    min-width: 0;
}


.gz-main-nav strong {

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


.gz-main-nav small {

    margin-top: 3px;

    color: #666864;

    font-size: 8px;
}


/* ==========================================================
   SIDEBAR FOOTER
========================================================== */

.gz-sidebar-footer {

    margin-top: auto;
}


.gz-ai-launch {

    width: 100%;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 11px;

    margin-bottom: 12px;

    color: #fff;

    text-align: left;

    background:
        linear-gradient(
            135deg,
            rgba(201,79,56,.15),
            rgba(255,255,255,.025)
        );

    border:
        1px solid var(--gz-accent-border);

    border-radius: 14px;
}


.gz-ai-orb {

    width: 36px;
    height: 36px;

    flex: 0 0 36px;

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

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #d95b42,
            #9d3324
        );

    font-family: Georgia, serif;
    font-size: 18px;
}


.gz-ai-launch > span:last-child {

    display: flex;
    flex-direction: column;
}


.gz-ai-launch small {

    color: #b78a80;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: .7px;
}


.gz-ai-launch strong {

    margin-top: 3px;

    font-size: 10px;
}


/* ==========================================================
   USER
========================================================== */

.gz-user-mini {

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 11px 8px;

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


.gz-user-avatar {

    width: 32px;
    height: 32px;

    flex: 0 0 32px;

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

    border-radius: 50%;

    background: #202121;

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

    font-size: 11px;
    font-weight: 800;
}


.gz-user-mini > span:last-child {

    display: flex;
    flex-direction: column;

    min-width: 0;
}


.gz-user-mini strong {

    overflow: hidden;

    font-size: 9px;

    white-space: nowrap;
    text-overflow: ellipsis;
}


.gz-user-mini small {

    margin-top: 2px;

    color: var(--gz-muted);

    font-size: 8px;
}


.gz-logout {

    display: block;

    padding: 8px;

    color: #676965;

    font-size: 8px;

    text-align: center;
}


.gz-logout:hover {

    color: var(--gz-accent);
}


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

.gz-workspace {

    width:
        calc(
            100% - var(--gz-sidebar)
        );

    min-height: 100vh;

    margin-left:
        var(--gz-sidebar);
}


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

.gz-topbar {

    position: sticky;

    top: 0;

    z-index: 80;

    height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding:
        0 34px;

    background:
        rgba(7,8,8,.86);

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

    backdrop-filter:
        blur(20px);

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


.gz-topbar-title {

    display: flex;
    flex-direction: column;
}


.gz-topbar-title small {

    color: var(--gz-accent);

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 1.8px;
}


.gz-topbar-title strong {

    margin-top: 3px;

    font-family: Georgia, serif;

    font-size: 16px;
    font-weight: 500;
}


.gz-topbar-actions {

    display: flex;
    align-items: center;
    gap: 9px;
}


.gz-icon-button {

    position: relative;

    width: 39px;
    height: 39px;

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

    color: #aaa;

    background:
        rgba(255,255,255,.035);

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

    border-radius: 11px;
}


.gz-unread {

    position: absolute;

    top: -5px;
    right: -5px;

    min-width: 17px;
    height: 17px;

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

    padding: 0 4px;

    background:
        var(--gz-accent);

    border:
        2px solid #080909;

    border-radius: 20px;

    color: white;

    font-size: 7px;
    font-style: normal;
    font-weight: 800;
}


.gz-ai-top {

    height: 39px;

    display: flex;
    align-items: center;
    gap: 7px;

    padding:
        0 13px 0 7px;

    color: #fff;

    background:
        rgba(201,79,56,.1);

    border:
        1px solid var(--gz-accent-border);

    border-radius: 11px;
}


.gz-ai-top span {

    width: 25px;
    height: 25px;

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

    border-radius: 50%;

    background:
        var(--gz-accent);

    font-family: Georgia, serif;
}


.gz-ai-top strong {

    font-size: 9px;
}


/* ==========================================================
   CONTENT
========================================================== */

.gz-content {

    width: 100%;
    max-width: 1500px;

    margin: 0 auto;

    padding:
        34px 34px 70px;
}


/* ==========================================================
   PAGE HEADING
========================================================== */

.gz-page-heading {

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

    margin-bottom: 26px;
}


.gz-page-heading small {

    color: var(--gz-accent);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 2px;
}


.gz-page-heading h1 {

    margin:
        6px 0 5px;

    color: #f6f0e8;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            28px,
            3vw,
            44px
        );

    font-weight: 400;

    letter-spacing: -.6px;
}


.gz-page-heading p {

    max-width: 760px;

    margin: 0;

    color: var(--gz-muted);

    font-size: 10px;

    line-height: 1.7;
}


/* ==========================================================
   MODULE TABS
========================================================== */

.gz-module-tabs {

    display: flex;
    align-items: center;
    gap: 5px;

    overflow-x: auto;

    margin-bottom: 24px;

    padding:
        5px;

    background:
        #0d0e0e;

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

    border-radius: 14px;

    scrollbar-width: none;
}


.gz-module-tabs::-webkit-scrollbar {

    display: none;
}


.gz-module-tabs button {

    position: relative;

    flex: 0 0 auto;

    min-height: 39px;

    padding:
        0 15px;

    color: #777976;

    background: transparent;

    border:
        1px solid transparent;

    border-radius: 10px;

    font-size: 8px;
    font-weight: 800;

    letter-spacing: .35px;

    white-space: nowrap;

    cursor: pointer;

    transition:
        all .18s ease;
}


.gz-module-tabs button:hover {

    color: #fff;

    background:
        rgba(255,255,255,.025);
}


.gz-module-tabs button.is-active {

    color: #fff;

    background:
        linear-gradient(
            135deg,
            rgba(201,79,56,.20),
            rgba(201,79,56,.05)
        );

    border-color:
        var(--gz-accent-border);
}


.gz-module-tabs button.is-active::after {

    content: "";

    position: absolute;

    left: 14px;
    right: 14px;
    bottom: 3px;

    height: 2px;

    border-radius: 4px;

    background:
        var(--gz-accent);
}


/* ==========================================================
   MODULE DISPLAY
========================================================== */

[data-gz-module][hidden] {

    display: none !important;
}


[data-gz-module] {

    animation:
        gzModuleEnter
        .22s ease both;
}


@keyframes gzModuleEnter {

    from {

        opacity: 0;

        transform:
            translateY(5px);
    }

    to {

        opacity: 1;

        transform:
            translateY(0);
    }
}


/* ==========================================================
   KPI
========================================================== */

.gz-kpis {

    display: grid;

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

    gap: 12px;

    margin-bottom: 18px;
}


.gz-kpi {

    position: relative;

    min-height: 122px;

    overflow: hidden;

    padding: 19px;

    background:
        linear-gradient(
            145deg,
            #121313,
            #0d0e0e
        );

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

    border-radius:
        var(--gz-radius);
}


.gz-kpi::before {

    content: "";

    position: absolute;

    top: 0;
    left: 18px;
    right: 18px;

    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(255,255,255,.14),
            transparent
        );
}


.gz-kpi small {

    display: block;

    margin-bottom: 12px;

    color: #666864;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 1.3px;
}


.gz-kpi strong {

    display: block;

    margin-bottom: 7px;

    color: #f5eee5;

    font-family: Georgia, serif;

    font-size: 27px;
    font-weight: 400;
}


.gz-kpi span {

    color: var(--gz-muted);

    font-size: 8px;
}


.gz-kpi.is-good strong {

    color: #9ec19c;
}


.gz-kpi.is-warning strong {

    color: #e2b76d;
}


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

.gz-grid {

    display: grid;

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

    gap: 15px;

    margin-bottom: 18px;
}


.gz-grid > * {

    grid-column:
        span 4;
}


.gz-grid > .span-5 {

    grid-column:
        span 5;
}


.gz-grid > .span-7 {

    grid-column:
        span 7;
}


.gz-grid > .span-8 {

    grid-column:
        span 8;
}


.gz-grid > .full {

    grid-column:
        1 / -1;
}


/* ==========================================================
   CARDS
========================================================== */

.gz-card {

    position: relative;

    overflow: hidden;

    padding: 21px;

    background:
        linear-gradient(
            145deg,
            rgba(18,19,19,.98),
            rgba(12,13,13,.98)
        );

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

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

    box-shadow:
        0 14px 40px rgba(0,0,0,.12);
}


.gz-card-header {

    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;

    margin-bottom: 20px;
}


.gz-card-header small {

    display: block;

    margin-bottom: 6px;

    color: var(--gz-accent);

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 1.5px;
}


.gz-card-header h2 {

    margin: 0;

    color: #f4eee5;

    font-family: Georgia, serif;

    font-size: 20px;
    font-weight: 400;
}


.gz-card-header p {

    max-width: 650px;

    margin:
        7px 0 0;

    color: var(--gz-muted);

    font-size: 9px;

    line-height: 1.65;
}


/* ==========================================================
   BADGES
========================================================== */

.gz-badge {

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

    min-height: 27px;

    padding:
        0 10px;

    color: #d98a78;

    background:
        rgba(201,79,56,.10);

    border:
        1px solid var(--gz-accent-border);

    border-radius: 30px;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: .7px;
}


/* ==========================================================
   ACTION GRID
========================================================== */

.gz-action-grid {

    display: grid;

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

    gap: 10px;
}


.gz-action-card {

    appearance: none;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-height: 115px;

    padding: 16px;

    color: var(--gz-text);

    text-align: left;

    background:
        #0c0d0d;

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

    border-radius: 14px;

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


button.gz-action-card:hover,
a.gz-action-card:hover {

    transform:
        translateY(-2px);

    background:
        #111212;

    border-color:
        var(--gz-accent-border);
}


.gz-action-card i {

    min-width: 31px;
    height: 31px;

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

    margin-bottom: 14px;

    padding: 0 7px;

    color: #fff;

    background:
        var(--gz-accent-soft);

    border:
        1px solid var(--gz-accent-border);

    border-radius: 9px;

    font-size: 9px;
    font-style: normal;
    font-weight: 800;
}


.gz-action-card strong {

    font-size: 10px;
}


.gz-action-card span {

    margin-top: 5px;

    color: var(--gz-muted);

    font-size: 8px;

    line-height: 1.5;
}


/* ==========================================================
   BUTTONS
========================================================== */

.gz-button {

    min-height: 39px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding:
        0 15px;

    color: #d0d0cd;

    background:
        #151616;

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

    border-radius: 10px;

    font-size: 8px;
    font-weight: 800;

    transition:
        transform .15s ease,
        background .15s ease,
        border .15s ease;
}


.gz-button:hover {

    transform:
        translateY(-1px);

    background:
        #1a1b1b;
}


.gz-button.primary {

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #ca5038,
            #a93a28
        );

    border-color:
        #ca5038;

    box-shadow:
        0 9px 24px rgba(201,79,56,.17);
}


/* ==========================================================
   TABLE
========================================================== */

.gz-table {

    width: 100%;

    overflow-x: auto;

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

    border-radius: 13px;
}


.gz-table table {

    width: 100%;

    border-collapse: collapse;
}


.gz-table th {

    padding: 12px 14px;

    color: #656763;

    background:
        #0b0c0c;

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

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 1px;

    text-align: left;
}


.gz-table td {

    padding: 13px 14px;

    color: #b8b7b2;

    border-bottom:
        1px solid rgba(255,255,255,.05);

    font-size: 9px;
}


.gz-table tr:last-child td {

    border-bottom: 0;
}


.gz-table strong {

    color: #eee8df;
}


/* ==========================================================
   EMPTY
========================================================== */

.gz-empty {

    padding:
        28px 20px;

    text-align: center;

    background:
        rgba(255,255,255,.015);

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

    border-radius: 14px;
}


.gz-empty strong {

    display: block;

    margin-bottom: 7px;

    color: #ded8cf;

    font-family: Georgia, serif;

    font-size: 15px;
    font-weight: 400;
}


.gz-empty p {

    max-width: 500px;

    margin:
        0 auto;

    color: var(--gz-muted);

    font-size: 9px;

    line-height: 1.7;
}


/* ==========================================================
   FORMS
========================================================== */

.gz-form-grid {

    display: grid;

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

    gap: 14px;

    margin-bottom: 18px;
}


.gz-field {

    display: flex;
    flex-direction: column;
    gap: 7px;
}


.gz-field.full {

    grid-column:
        1 / -1;
}


.gz-field label {

    color: #8a8b87;

    font-size: 8px;
    font-weight: 700;
}


.gz-field input,
.gz-field select,
.gz-field textarea {

    width: 100%;

    min-height: 42px;

    padding:
        10px 12px;

    outline: none;

    color: #eeeae3;

    background:
        #090a0a;

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

    border-radius: 10px;

    font-size: 10px;

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


.gz-field textarea {

    min-height: 95px;

    resize: vertical;
}


.gz-field input:focus,
.gz-field select:focus,
.gz-field textarea:focus {

    border-color:
        rgba(201,79,56,.55);

    box-shadow:
        0 0 0 3px rgba(201,79,56,.08);
}


/* ==========================================================
   DRAWERS
========================================================== */

.gz-drawer {

    position: fixed;

    inset: 0;

    z-index: 10000;

    display: flex;
    justify-content: flex-end;

    visibility: hidden;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity .2s ease,
        visibility .2s ease;
}


.gz-drawer.is-open {

    visibility: visible;

    opacity: 1;

    pointer-events: auto;
}


.gz-drawer-backdrop {

    position: absolute;

    inset: 0;

    background:
        rgba(0,0,0,.70);

    border: 0;
}


.gz-drawer-panel {

    position: relative;

    z-index: 2;

    width:
        min(520px,92vw);

    height: 100%;

    overflow-y: auto;

    background:
        #0e0f0f;

    border-left:
        1px solid var(--gz-border);

    box-shadow:
        -25px 0 70px rgba(0,0,0,.4);

    transform:
        translateX(25px);

    transition:
        transform .2s ease;
}


.gz-drawer.is-open
.gz-drawer-panel {

    transform:
        translateX(0);
}


.gz-drawer-header {

    position: sticky;

    top: 0;

    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding:
        20px;

    background:
        rgba(14,15,15,.95);

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

    backdrop-filter:
        blur(16px);
}


.gz-drawer-header h2 {

    margin: 0;

    font-family: Georgia, serif;

    font-size: 20px;
    font-weight: 400;
}


.gz-drawer-close {

    width: 34px;
    height: 34px;

    color: #aaa;

    background:
        #171818;

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

    border-radius: 9px;

    font-size: 19px;
}


.gz-drawer-body {

    padding: 20px;
}


/* ==========================================================
   GONZALITA OVERLAY
========================================================== */

.gz-ai {

    position: fixed;

    inset: 0;

    z-index: 20000;

    display: flex;
    justify-content: flex-end;

    visibility: hidden;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity .2s ease,
        visibility .2s ease;
}


.gz-ai.is-open {

    visibility: visible;

    opacity: 1;

    pointer-events: auto;
}


.gz-ai-backdrop {

    position: absolute;

    inset: 0;

    background:
        rgba(0,0,0,.72);

    border: 0;

    backdrop-filter:
        blur(4px);
}


.gz-ai-window {

    position: relative;

    z-index: 2;

    width:
        min(455px,94vw);

    height: 100%;

    display: flex;
    flex-direction: column;

    background:
        linear-gradient(
            180deg,
            #121313,
            #090a0a
        );

    border-left:
        1px solid var(--gz-border-strong);

    box-shadow:
        -30px 0 90px rgba(0,0,0,.5);

    transform:
        translateX(25px);

    transition:
        transform .22s ease;
}


.gz-ai.is-open
.gz-ai-window {

    transform:
        translateX(0);
}


/* ==========================================================
   AI HEADER
========================================================== */

.gz-ai-header {

    display: flex;
    align-items: center;
    justify-content: space-between;

    min-height: 82px;

    padding:
        15px 17px;

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


.gz-ai-identity {

    display: flex;
    align-items: center;
    gap: 11px;
}


.gz-ai-avatar {

    width: 44px;
    height: 44px;

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

    border-radius: 50%;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #d55b42,
            #983021
        );

    font-family: Georgia, serif;
    font-size: 22px;

    box-shadow:
        0 10px 30px rgba(201,79,56,.22);
}


.gz-ai-identity > div:last-child {

    display: flex;
    flex-direction: column;
}


.gz-ai-identity small {

    color: var(--gz-accent);

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 1px;
}


.gz-ai-identity strong {

    margin-top: 2px;

    font-family: Georgia, serif;

    font-size: 16px;
    font-weight: 400;
}


.gz-ai-identity span {

    display: flex;
    align-items: center;
    gap: 5px;

    margin-top: 3px;

    color: #777a76;

    font-size: 7px;
}


.gz-ai-identity span i {

    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #79a576;

    box-shadow:
        0 0 9px rgba(121,165,118,.7);
}


.gz-ai-close {

    width: 36px;
    height: 36px;

    color: #aaa;

    background:
        rgba(255,255,255,.035);

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

    border-radius: 10px;

    font-size: 21px;
}


/* ==========================================================
   AI CONVERSATION
========================================================== */

.gz-ai-conversation {

    flex: 1;

    overflow-y: auto;

    padding:
        20px 17px 28px;
}


.gz-ai-date {

    margin-bottom: 18px;

    color: #4f514e;

    font-size: 7px;
    font-weight: 800;

    letter-spacing: 1.4px;

    text-align: center;
}


.gz-ai-message {

    display: flex;
    align-items: flex-start;
    gap: 9px;

    margin-bottom: 15px;
}


.gz-ai-message.user {

    flex-direction:
        row-reverse;
}


.gz-message-avatar {

    width: 28px;
    height: 28px;

    flex: 0 0 28px;

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

    border-radius: 50%;

    color: #fff;

    background:
        #282929;

    font-family: Georgia, serif;

    font-size: 10px;
}


.gz-ai-message.assistant
.gz-message-avatar {

    background:
        var(--gz-accent);
}


.gz-message-bubble {

    max-width: 80%;

    padding:
        12px 14px;

    color: #c8c6c0;

    background:
        #181919;

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

    border-radius:
        4px 14px 14px 14px;

    font-size: 9px;

    line-height: 1.65;
}


.gz-ai-message.user
.gz-message-bubble {

    color: #fff;

    background:
        rgba(201,79,56,.17);

    border-color:
        var(--gz-accent-border);

    border-radius:
        14px 4px 14px 14px;
}


.gz-message-bubble strong {

    display: block;

    margin-bottom: 5px;

    color: #f0e9df;
}


.gz-message-bubble p {

    margin: 0;
}


/* ==========================================================
   AI SUGGESTIONS
========================================================== */

.gz-ai-suggestions {

    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    margin:
        4px 0 20px
        37px;
}


.gz-ai-suggestions button {

    min-height: 31px;

    padding:
        0 10px;

    color: #aaa8a2;

    background:
        rgba(255,255,255,.025);

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

    border-radius: 30px;

    font-size: 7px;
}


.gz-ai-suggestions button:hover {

    color: #fff;

    border-color:
        var(--gz-accent-border);
}


/* ==========================================================
   AI COMPOSER
========================================================== */

.gz-ai-composer {

    display: flex;
    align-items: flex-end;
    gap: 7px;

    padding:
        12px;

    background:
        #0b0c0c;

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


.gz-ai-composer textarea {

    flex: 1;

    min-height: 40px;
    max-height: 120px;

    padding:
        11px 12px;

    resize: none;

    outline: none;

    color: #eee;

    background:
        #151616;

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

    border-radius: 12px;

    font-size: 9px;

    line-height: 1.45;
}


.gz-ai-attach,
.gz-ai-mic,
.gz-ai-send {

    width: 40px;
    height: 40px;

    flex: 0 0 40px;

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

    color: #aaa;

    background:
        #151616;

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

    border-radius: 11px;
}


.gz-ai-send {

    color: #fff;

    background:
        var(--gz-accent);

    border-color:
        var(--gz-accent);
}


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

.gz-mobile-nav {

    display: none;
}


/* ==========================================================
   TOAST
========================================================== */

.gz-toast {

    position: fixed;

    right: 22px;
    bottom: 22px;

    z-index: 50000;

    max-width: 340px;

    padding:
        13px 16px;

    color: #fff;

    background:
        #191a1a;

    border:
        1px solid var(--gz-accent-border);

    border-radius: 12px;

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

    font-size: 9px;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 1100px) {

    :root {

        --gz-sidebar: 190px;
    }


    .gz-content {

        padding:
            28px 22px 70px;
    }


    .gz-topbar {

        padding:
            0 22px;
    }


    .gz-kpis {

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


    .gz-action-grid {

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


    .gz-grid > *,
    .gz-grid > .span-5,
    .gz-grid > .span-7,
    .gz-grid > .span-8 {

        grid-column:
            span 6;
    }


    .gz-grid > .full {

        grid-column:
            1 / -1;
    }
}


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

@media (max-width: 760px) {


    body.gz-app {

        padding-bottom: 68px;
    }


    .gz-sidebar {

        display: none;
    }


    .gz-workspace {

        width: 100%;

        margin-left: 0;
    }


    .gz-topbar {

        height: 62px;

        padding:
            0 14px;
    }


    .gz-topbar-title small {

        font-size: 6px;
    }


    .gz-topbar-title strong {

        font-size: 14px;
    }


    .gz-ai-top {

        width: 36px;

        padding: 5px;
    }


    .gz-ai-top strong {

        display: none;
    }


    .gz-ai-top span {

        width: 24px;
        height: 24px;
    }


    .gz-content {

        padding:
            20px 13px 34px;
    }


    .gz-page-heading {

        margin-bottom: 18px;
    }


    .gz-page-heading h1 {

        font-size: 28px;
    }


    .gz-page-heading p {

        font-size: 9px;
    }


    .gz-module-tabs {

        position: sticky;

        top: 67px;

        z-index: 35;

        margin:
            0 -2px 18px;

        background:
            rgba(9,10,10,.96);

        backdrop-filter:
            blur(18px);
    }


    .gz-module-tabs button {

        min-height: 40px;

        padding:
            0 12px;
    }


    .gz-kpis {

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

        gap: 8px;
    }


    .gz-kpi {

        min-height: 105px;

        padding: 14px;
    }


    .gz-kpi strong {

        font-size: 22px;
    }


    .gz-grid {

        display: block;
    }


    .gz-grid > * {

        margin-bottom: 12px;
    }


    .gz-card {

        padding: 16px;

        border-radius: 15px;
    }


    .gz-card-header {

        margin-bottom: 16px;
    }


    .gz-card-header h2 {

        font-size: 18px;
    }


    .gz-action-grid {

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

        gap: 8px;
    }


    .gz-action-card {

        min-height: 105px;

        padding: 13px;
    }


    .gz-form-grid {

        grid-template-columns:
            1fr;
    }


    .gz-field.full {

        grid-column: auto;
    }


    /* MOBILE NAV */

    .gz-mobile-nav {

        position: fixed;

        left: 0;
        right: 0;
        bottom: 0;

        z-index: 500;

        min-height: 63px;

        display: flex;
        align-items: center;
        justify-content: space-around;

        padding:
            6px 6px
            calc(
                6px + env(safe-area-inset-bottom)
            );

        background:
            rgba(10,11,11,.96);

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

        backdrop-filter:
            blur(20px);
    }


    .gz-mobile-nav a,
    .gz-mobile-nav button {

        min-width: 58px;

        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 3px;

        padding: 5px;

        color: #777975;

        background: transparent;

        border: 0;

        font-size: 15px;
    }


    .gz-mobile-nav small {

        font-size: 7px;
    }


    .gz-mobile-nav
    .gz-mobile-ai {

        color: #fff;
    }


    .gz-mobile-ai span {

        width: 32px;
        height: 32px;

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

        margin-top: -17px;

        border-radius: 50%;

        background:
            var(--gz-accent);

        border:
            4px solid #0a0b0b;

        font-family: Georgia, serif;
    }


    /* GONZALITA MOBILE */

    .gz-ai {

        align-items: flex-end;
    }


    .gz-ai-window {

        width: 100%;
        max-width: none;

        height:
            min(
                88vh,
                760px
            );

        border-left: 0;

        border-top:
            1px solid var(--gz-border-strong);

        border-radius:
            20px 20px 0 0;

        transform:
            translateY(25px);
    }


    .gz-ai.is-open
    .gz-ai-window {

        transform:
            translateY(0);
    }


    .gz-ai-header {

        min-height: 72px;
    }


    .gz-message-bubble {

        max-width: 85%;
    }


    .gz-ai-suggestions {

        margin-left: 36px;
    }


    .gz-drawer {

        align-items: flex-end;
    }


    .gz-drawer-panel {

        width: 100%;
        height: 90vh;

        border-left: 0;

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

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


    .gz-toast {

        left: 13px;
        right: 13px;
        bottom: 82px;

        max-width: none;

        text-align: center;
    }

}


/* ==========================================================
   PETITS TÉLÉPHONES
========================================================== */

@media (max-width: 430px) {

    .gz-kpis {

        grid-template-columns:
            1fr 1fr;
    }


    .gz-kpi {

        padding: 12px;
    }


    .gz-kpi small {

        font-size: 6px;
    }


    .gz-kpi strong {

        font-size: 20px;
    }


    .gz-action-grid {

        grid-template-columns:
            1fr 1fr;
    }


    .gz-action-card {

        padding: 12px;
    }

}


/* ==========================================================
   ACCESSIBILITÉ / FINITIONS
========================================================== */

.gz-app button:focus-visible,
.gz-app a:focus-visible,
.gz-app input:focus-visible,
.gz-app select:focus-visible,
.gz-app textarea:focus-visible {

    outline:
        2px solid var(--gz-accent);

    outline-offset:
        2px;
}


.gz-app button:disabled {

    opacity: .45;

    cursor: not-allowed;
}


.gz-app ::selection {

    color: #fff;

    background:
        rgba(201,79,56,.65);
}