/* =========================================================
   SHKETT MOBILE — BASE
========================================================= */

:root {
    --bg: #020711;
    --bg-soft: #050c18;

    --surface: rgba(8, 19, 34, 0.94);
    --surface-2: rgba(10, 25, 44, 0.88);
    --surface-hover: rgba(13, 34, 58, 0.95);

    --border: rgba(64, 151, 220, 0.18);
    --border-bright: rgba(47, 170, 255, 0.42);

    --text: #f5f9ff;
    --text-soft: #9aadc3;
    --text-muted: #64788e;

    --blue: #00a8ff;
    --blue-bright: #22c1ff;
    --cyan: #00e5ff;

    --radius-small: 12px;
    --radius: 17px;
    --radius-large: 22px;

    --nav-height: 78px;

    --safe-top: var(--safe-area-inset-top, env(safe-area-inset-top, 0px));
    --safe-bottom: var(--safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
}


* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}


html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}


body {
    overflow: hidden;
}


button,
textarea,
input {
    font: inherit;
}


button {
    color: inherit;
}


button:focus-visible,
textarea:focus-visible {
    outline: 1px solid var(--blue-bright);
    outline-offset: 2px;
}


/* =========================================================
   APP
========================================================= */

.mobile-app {
    position: relative;

    width: 100%;
    max-width: 430px;

    height: 100dvh;

    margin: 0 auto;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(0, 133, 255, 0.10),
            transparent 35%
        ),
        linear-gradient(
            180deg,
            #030a15 0%,
            #020711 60%,
            #02060e 100%
        );
}


.screen {
    position: absolute;
    inset: 0;

    display: none;

    overflow-y: auto;
    overscroll-behavior: contain;

    padding:
        calc(18px + var(--safe-top))
        18px
        calc(var(--nav-height) + 28px + var(--safe-bottom));

    scrollbar-width: none;
}


.screen::-webkit-scrollbar {
    display: none;
}


.screen.active {
    display: block;

    animation: screen-enter 180ms ease-out;
}


@keyframes screen-enter {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   SHARED HEADERS
========================================================= */

.topbar {
    min-height: 58px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 14px;
}


.brand {
    min-width: 0;

    display: flex;
    align-items: center;

    gap: 12px;
}


.brand-copy {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 3px;
}


.brand-copy strong {
    font-size: 16px;
    letter-spacing: 0.04em;
}


.brand-copy span {
    color: var(--text-soft);

    font-size: 11px;
}


.page-header {
    padding: 7px 1px 21px;
}


.page-header h1 {
    margin: 0;

    font-size: 28px;
    line-height: 1.1;

    letter-spacing: -0.035em;
}


.page-header p {
    margin: 7px 0 0;

    color: var(--text-soft);

    font-size: 13px;
    line-height: 1.45;
}


/* =========================================================
   SHKETT ORB
========================================================= */

.shkett-orb {
    position: relative;

    flex: 0 0 auto;

    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(0, 180, 255, 0.55);
    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(0, 184, 255, 0.16),
            rgba(0, 78, 143, 0.08) 52%,
            transparent 70%
        );

    box-shadow:
        0 0 12px rgba(0, 160, 255, 0.18),
        inset 0 0 12px rgba(0, 155, 255, 0.10);
}


.shkett-orb::before {
    content: "";

    position: absolute;

    width: 29px;
    height: 29px;

    border: 1px solid rgba(0, 202, 255, 0.38);
    border-radius: 50%;
}


.orb-core {
    width: 16px;
    height: 16px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 38% 35%,
            #d8fbff 0%,
            #27d6ff 22%,
            #008cff 55%,
            #003fba 100%
        );

    box-shadow:
        0 0 8px #00b7ff,
        0 0 18px rgba(0, 168, 255, 0.75),
        0 0 32px rgba(0, 126, 255, 0.38);

    animation: orb-pulse 2.4s ease-in-out infinite;
}


@keyframes orb-pulse {
    0%,
    100% {
        transform: scale(0.92);
        filter: brightness(0.92);
    }

    50% {
        transform: scale(1.08);
        filter: brightness(1.2);
    }
}


/* =========================================================
   GENERIC BUTTONS
========================================================= */

.icon-button {
    width: 40px;
    height: 40px;

    display: grid;
    place-items: center;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: rgba(8, 22, 38, 0.82);

    cursor: pointer;
}


.icon-button:active {
    transform: scale(0.96);
}


/* =========================================================
   CHAT
========================================================= */

#screen-chat {
    display: none;

    height: 100%;
    overflow: hidden;
}


#screen-chat.active {
    display: flex;
    flex-direction: column;
}

#screen-chat.active {
    padding-bottom:
        calc(
            var(--nav-height)
            + var(--safe-bottom)
            + 6px
        );
}

.chat-content {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    padding: 24px 0 16px;
    scrollbar-width: none;
}


.chat-content::-webkit-scrollbar {
    display: none;
}


.message {
    display: flex;
    align-items: flex-start;

    gap: 10px;
}


.message-orb {
    flex: 0 0 auto;

    width: 32px;
    height: 32px;

    display: grid;
    place-items: center;

    border: 1px solid rgba(0, 170, 255, 0.35);
    border-radius: 50%;

    background: rgba(0, 117, 210, 0.08);
}


.message-orb-core {
    width: 10px;
    height: 10px;

    border-radius: 50%;

    background: var(--blue-bright);

    box-shadow:
        0 0 7px var(--blue-bright),
        0 0 16px rgba(0, 174, 255, 0.65);
}


.message-bubble {
    max-width: min(78%, 340px);

    padding: 12px 14px;

    border: 1px solid var(--border);
    border-radius:
        8px
        16px
        16px
        16px;

    background:
        linear-gradient(
            135deg,
            rgba(9, 28, 48, 0.97),
            rgba(5, 18, 33, 0.95)
        );

    color: #eaf5ff;

    font-size: 13px;
    line-height: 1.45;

    box-shadow:
        0 7px 25px rgba(0, 0, 0, 0.15);
}


.chat-bottom {
    flex: 0 0 auto;
    padding-bottom: 0;
}


.composer {
    min-height: 51px;

    display: flex;
    align-items: flex-end;

    gap: 7px;

    padding: 6px;

    border: 1px solid rgba(49, 143, 210, 0.28);
    border-radius: 15px;

    background:
        linear-gradient(
            180deg,
            rgba(8, 24, 42, 0.98),
            rgba(5, 17, 31, 0.98)
        );

    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.24);
}


.composer textarea {
    flex: 1;

    min-width: 0;
    max-height: 115px;

    resize: none;

    border: 0;
    outline: 0;

    padding: 10px 3px 9px;

    background: transparent;

    color: var(--text);

    font-size: 13px;
    line-height: 20px;
}


.composer textarea::placeholder {
    color: #71859b;
}


.composer-action,
.send-button {
    flex: 0 0 auto;

    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    border-radius: 11px;

    cursor: pointer;
}


.composer-action {
    border: 1px solid rgba(67, 150, 211, 0.19);

    background: rgba(8, 31, 52, 0.8);

    color: #b9d8ec;

    font-size: 22px;
}


.composer-action.microphone {
    font-size: 15px;
}


.send-button {
    border: 1px solid rgba(70, 209, 255, 0.6);

    background:
        linear-gradient(
            145deg,
            #00baff,
            #0877ff
        );

    color: white;

    font-size: 19px;

    box-shadow:
        0 0 14px rgba(0, 167, 255, 0.34);
}


.send-button:active,
.composer-action:active {
    transform: scale(0.94);
}


.quick-actions {
    display: flex;
    gap: 7px;
    padding-top: 7px;
    padding-bottom: 0;
    overflow-x: auto;
    scrollbar-width: none;
}


.quick-actions::-webkit-scrollbar {
    display: none;
}


.quick-action {
    flex: 0 0 auto;

    padding: 7px 11px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: rgba(7, 21, 37, 0.88);

    color: #a9c3d8;

    font-size: 10px;

    cursor: pointer;
}


.quick-action:active {
    background: rgba(10, 42, 70, 0.95);

    border-color: var(--border-bright);
}


/* =========================================================
   TOOLS
========================================================= */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 10px;
}


.tool-card {
    min-height: 148px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    padding: 15px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background:
        radial-gradient(
            circle at 10% 0%,
            rgba(0, 151, 255, 0.10),
            transparent 45%
        ),
        var(--surface);

    text-align: left;

    cursor: pointer;

    transition:
        transform 130ms ease,
        border-color 130ms ease,
        background 130ms ease;
}


.tool-card:active {
    transform: scale(0.975);

    border-color: var(--border-bright);

    background-color: var(--surface-hover);
}


.tool-icon {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    margin-bottom: 14px;

    border: 1px solid rgba(0, 177, 255, 0.28);
    border-radius: 13px;

    background:
        radial-gradient(
            circle,
            rgba(0, 186, 255, 0.26),
            rgba(0, 90, 180, 0.14)
        );

    color: #57dcff;

    font-size: 21px;

    box-shadow:
        0 0 18px rgba(0, 152, 255, 0.10);
}


.tool-card strong {
    margin-bottom: 7px;

    font-size: 14px;
}


.tool-card small,
.voice-tool-card small {
    display: block;

    color: var(--text-soft);

    font-size: 11px;
    line-height: 1.4;

    font-weight: 400;
}


.voice-tool-card {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 13px;

    margin-top: 11px;
    padding: 14px;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    background: var(--surface);

    text-align: left;

    cursor: pointer;
}


.voice-tool-card .tool-icon {
    flex: 0 0 auto;

    margin: 0;
}


.voice-tool-card > span:nth-child(2) {
    flex: 1;
}


.voice-tool-card strong {
    display: block;

    margin-bottom: 4px;

    font-size: 14px;
}


.chevron {
    color: #9ac7e4;

    font-size: 25px;
}


/* =========================================================
   FILES
========================================================= */

.segment-control {
    display: flex;

    gap: 7px;

    margin-bottom: 17px;

    overflow-x: auto;

    scrollbar-width: none;
}


.segment-control::-webkit-scrollbar {
    display: none;
}


.segment {
    flex: 0 0 auto;

    padding: 8px 13px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: rgba(6, 18, 32, 0.9);

    color: var(--text-soft);

    font-size: 11px;

    cursor: pointer;
}


.segment.active {
    border-color: rgba(55, 190, 255, 0.55);

    background:
        linear-gradient(
            135deg,
            #0ca9ff,
            #0879ee
        );

    color: white;

    box-shadow:
        0 0 15px rgba(0, 153, 255, 0.20);
}


.file-list {
    display: flex;
    flex-direction: column;

    gap: 8px;
}


.empty-state {
    min-height: 280px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 8px;

    color: var(--text-muted);

    text-align: center;
}


.empty-state strong {
    color: #cbd9e7;

    font-size: 14px;
}


.empty-state span {
    max-width: 230px;

    font-size: 11px;
    line-height: 1.5;
}


.empty-icon {
    width: 54px;
    height: 54px;

    display: grid;
    place-items: center;

    margin-bottom: 6px;

    border: 1px solid var(--border);
    border-radius: 17px;

    background: var(--surface);

    color: #3fcaff;

    font-size: 23px;
}


/* =========================================================
   PLANNER
========================================================= */

.planner-card {
    padding: 15px;

    border: 1px solid var(--border);
    border-radius: var(--radius-large);

    background: var(--surface);
}


.planner-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 12px;
}


.planner-heading strong {
    font-size: 16px;
}


.planner-heading button {
    padding: 8px 12px;

    border: 1px solid rgba(0, 171, 255, 0.28);
    border-radius: 10px;

    background: rgba(0, 127, 215, 0.12);

    color: #73d8ff;

    font-size: 11px;

    cursor: pointer;
}


.planner-empty {
    min-height: 220px;

    display: grid;
    place-items: center;

    color: var(--text-muted);

    font-size: 12px;
}


/* =========================================================
   SETTINGS
========================================================= */

.pro-card {
    width: 100%;

    display: flex;
    align-items: center;

    gap: 13px;

    padding: 15px;

    border: 1px solid rgba(60, 190, 255, 0.38);
    border-radius: var(--radius);

    background:
        radial-gradient(
            circle at 0% 50%,
            rgba(0, 213, 255, 0.20),
            transparent 42%
        ),
        linear-gradient(
            120deg,
            rgba(0, 119, 210, 0.22),
            rgba(74, 49, 198, 0.13)
        );

    text-align: left;

    cursor: pointer;

    box-shadow:
        inset 0 0 20px rgba(0, 151, 255, 0.05);
}


.pro-card > span:nth-child(2) {
    flex: 1;
}


.pro-card strong {
    display: block;

    margin-bottom: 4px;

    font-size: 14px;
}


.pro-card small {
    display: block;

    color: #9eb9cf;

    font-size: 11px;
}


.pro-crown {
    width: 42px;
    height: 42px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    background:
        linear-gradient(
            145deg,
            #16d8ff,
            #057cff
        );

    color: white;

    font-size: 20px;

    box-shadow:
        0 0 18px rgba(0, 174, 255, 0.28);
}


.settings-list {
    display: flex;
    flex-direction: column;

    gap: 8px;

    margin-top: 14px;
}


.settings-row {
    width: 100%;
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding: 0 15px;

    border: 1px solid var(--border);
    border-radius: 14px;

    background: var(--surface);

    text-align: left;

    cursor: pointer;
}


.settings-row span:first-child {
    font-size: 13px;
}


.settings-row span:last-child {
    color: var(--text-soft);

    font-size: 11px;
}


/* =========================================================
   BOTTOM NAVIGATION
========================================================= */

.bottom-nav {
    position: absolute;

    z-index: 100;

    left: 0;
    right: 0;
    bottom: 0;

    height:
        calc(
            var(--nav-height)
            + var(--safe-bottom)
        );

    display: grid;
    grid-template-columns: repeat(5, 1fr);

    padding:
        7px
        8px
        var(--safe-bottom);

    border-top:
        1px solid
        rgba(64, 146, 207, 0.16);

    background:
        linear-gradient(
            180deg,
            rgba(3, 11, 21, 0.92),
            rgba(2, 7, 15, 0.99)
        );

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);

    box-shadow:
        0 -10px 30px rgba(0, 0, 0, 0.20);
}


.nav-item {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 5px;

    border: 0;

    background: transparent;

    color: #6f8296;

    font-size: 9px;

    cursor: pointer;
}


.nav-icon {
    min-height: 23px;

    display: grid;
    place-items: center;

    font-size: 18px;
}


.nav-item.active {
    color: #31c8ff;
}


.nav-item.active .nav-icon {
    text-shadow:
        0 0 9px rgba(0, 196, 255, 0.72);
}


.nav-item.active::before {
    content: "";

    position: absolute;

    top: 1px;

    width: 27px;
    height: 2px;

    border-radius: 99px;

    background: #16c6ff;

    box-shadow:
        0 0 8px rgba(0, 195, 255, 0.7);
}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 360px) {

    .screen {
        padding-left: 14px;
        padding-right: 14px;
    }

    .tool-card {
        min-height: 140px;

        padding: 13px;
    }

    .tool-card strong {
        font-size: 13px;
    }

    .tool-card small {
        font-size: 10px;
    }

}


/* =========================================================
   TABLET / DESKTOP PREVIEW
========================================================= */

@media (min-width: 700px) {

    body {
        display: grid;
        place-items: center;

        padding: 24px;

        background:
            radial-gradient(
                circle at 50% 20%,
                #0b1c30,
                #02050a 65%
            );
    }

    .mobile-app {
        width: 430px;
        height: min(820px, calc(100dvh - 48px));

        border:
            1px solid
            rgba(79, 166, 225, 0.22);

        border-radius: 34px;

        box-shadow:
            0 30px 90px rgba(0, 0, 0, 0.55),
            0 0 40px rgba(0, 135, 255, 0.06);
    }

}

/* =========================================================
   SHKETT MOBILE — BOTTOM NAV SVG ICONS
   ========================================================= */

.bottom-nav .nav-icon {
    width: 22px;
    height: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #71859c;

    transition:
        color 180ms ease,
        filter 180ms ease,
        transform 180ms ease;
}

.bottom-nav .nav-icon svg {
    width: 21px;
    height: 21px;

    display: block;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.55;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bottom-nav .nav-icon-dot {
    fill: currentColor;
    stroke: none;
}


/* ACTIVE */

.bottom-nav .nav-item.active .nav-icon {
    color: #20d9ff;

    filter:
        drop-shadow(0 0 4px rgba(32, 217, 255, 0.65))
        drop-shadow(0 0 9px rgba(32, 217, 255, 0.25));

    transform: translateY(-1px);
}


/* Chat bubble slightly stronger when active */

.bottom-nav .nav-item.active[data-target="chat"] .nav-icon svg {
    fill: rgba(32, 217, 255, 0.12);
    stroke-width: 1.65;
}


/* Keep dots clean */

.bottom-nav .nav-item.active[data-target="chat"] .nav-icon-dot {
    fill: currentColor;
}


/* Small interaction */

.bottom-nav .nav-item:active .nav-icon {
    transform: scale(0.92);
}

/* =========================================================
   SHKETT MOBILE — VOICE BUTTON
   ========================================================= */

.composer-action.microphone {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #a9c3dc;
}

.composer-action.microphone .voice-icon {
    width: 20px;
    height: 20px;

    display: block;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;

    transition:
        color 180ms ease,
        filter 180ms ease,
        transform 180ms ease;
}

.composer-action.microphone:hover {
    color: #d6efff;
}

.composer-action.microphone:active .voice-icon {
    transform: scale(0.9);
}

/* =========================================================
   SHKETT MOBILE — AUTH
   ========================================================= */

.mobile-auth {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: none;
    flex-direction: column;
    justify-content: center;

    padding:
        max(32px, env(safe-area-inset-top))
        24px
        max(32px, env(safe-area-inset-bottom));

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 16%,
            rgba(15, 178, 255, 0.13),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            #06101c 0%,
            #020711 100%
        );
}

.mobile-auth.visible {
    display: flex;
}

.mobile-auth-glow {
    position: absolute;
    width: 260px;
    height: 260px;

    left: 50%;
    top: 4%;

    transform: translateX(-50%);

    border-radius: 50%;

    background:
        rgba(0, 204, 255, 0.08);

    filter: blur(70px);

    pointer-events: none;
}

.mobile-auth-brand {
    position: relative;
    z-index: 1;

    display: flex;
    flex-direction: column;
    align-items: center;

    margin-bottom: 34px;

    text-align: center;
}

.mobile-auth-brand .auth-orb {
    margin-bottom: 18px;
}

.mobile-auth-brand h1 {
    margin: 0;

    font-size: 29px;
    font-weight: 750;
    letter-spacing: 0.08em;

    color: #f4f9ff;
}

.mobile-auth-brand p {
    margin: 8px 0 0;

    font-size: 13px;

    color: #71869d;
}

.mobile-auth-card {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 430px;

    margin: 0 auto;

    padding: 7px 18px 22px;

    border:
        1px solid
        rgba(123, 174, 214, 0.12);

    border-radius: 24px;

    background:
        rgba(7, 18, 31, 0.78);

    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.32);

    backdrop-filter: blur(20px);
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 4px;

    margin-bottom: 22px;

    padding: 4px;

    border-radius: 15px;

    background:
        rgba(255, 255, 255, 0.025);
}

.auth-tab {
    min-height: 42px;

    border: 0;
    border-radius: 11px;

    background: transparent;

    color: #71859b;

    font: inherit;
    font-size: 13px;
    font-weight: 650;

    cursor: pointer;
}

.auth-tab.active {
    color: #dff8ff;

    background:
        rgba(21, 194, 255, 0.10);

    box-shadow:
        inset 0 0 0 1px
        rgba(41, 212, 255, 0.14);
}

.auth-field {
    display: block;

    margin-bottom: 15px;
}

.auth-field > span {
    display: block;

    margin: 0 0 7px 3px;

    color: #8498ac;

    font-size: 12px;
    font-weight: 600;
}

.auth-field input {
    box-sizing: border-box;

    width: 100%;
    height: 49px;

    padding: 0 15px;

    outline: none;

    border:
        1px solid
        rgba(113, 153, 188, 0.15);

    border-radius: 14px;

    background:
        rgba(3, 10, 19, 0.72);

    color: #eaf7ff;

    font: inherit;
    font-size: 14px;

    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.auth-field input:focus {
    border-color:
        rgba(29, 211, 255, 0.48);

    box-shadow:
        0 0 0 3px
        rgba(29, 211, 255, 0.06);
}

.auth-field input::placeholder {
    color: #40546a;
}

.mobile-auth-message {
    min-height: 18px;

    margin: 3px 3px 12px;

    font-size: 12px;
    line-height: 1.45;

    color: #8196aa;
}

.mobile-auth-message.error {
    color: #ff7e8b;
}

.mobile-auth-message.success {
    color: #5fe3bd;
}

.mobile-auth-submit {
    width: 100%;
    height: 50px;

    border:
        1px solid
        rgba(59, 218, 255, 0.34);

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            rgba(18, 178, 255, 0.22),
            rgba(18, 218, 255, 0.11)
        );

    color: #dffaff;

    font: inherit;
    font-size: 14px;
    font-weight: 700;

    box-shadow:
        0 0 25px
        rgba(0, 202, 255, 0.08);

    cursor: pointer;
}

.mobile-auth-submit:active {
    transform: scale(0.985);
}

.mobile-auth-submit:disabled {
    opacity: 0.55;
    cursor: default;
}

/* =========================================================
   SHKETT MOBILE — PREMIUM AUTH
   ========================================================= */

.mobile-auth {
    position: fixed;
    inset: 0;
    z-index: 1000;

    display: none;

    overflow-x: hidden;
    overflow-y: auto;

    color: #eaf8ff;

    background:
        radial-gradient(
            circle at 50% -5%,
            rgba(0, 173, 255, 0.18),
            transparent 34%
        ),
        radial-gradient(
            circle at 100% 70%,
            rgba(0, 126, 255, 0.08),
            transparent 36%
        ),
        linear-gradient(
            180deg,
            #061321 0%,
            #020812 55%,
            #01050c 100%
        );
}

.mobile-auth.visible {
    display: block;
}

.auth-background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.auth-ambient {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
}

.auth-ambient-one {
    width: 280px;
    height: 280px;
    top: -90px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 194, 255, 0.12);
}

.auth-ambient-two {
    width: 260px;
    height: 260px;
    right: -170px;
    bottom: 12%;
    background: rgba(0, 103, 255, 0.09);
}

.auth-orbit {
    display: none;
}

.auth-orbit-one {
    width: 280px;
    height: 95px;
}

.auth-orbit-two {
    width: 210px;
    height: 65px;
    transform: translate(-50%, -50%) rotate(18deg);
}

.mobile-auth-inner {
    position: relative;
    z-index: 1;

    width: min(100%, 470px);
    min-height: 100%;

    box-sizing: border-box;

    margin: 0 auto;

    padding:
        max(46px, env(safe-area-inset-top))
        20px
        max(30px, env(safe-area-inset-bottom));
}


/* BRAND */

.mobile-auth-brand {
    display: flex;
    flex-direction: column;
    align-items: center;

    margin-bottom: 29px;

    text-align: center;
}

/* =========================================================
   SHKETT OFFICIAL ORB — MOBILE
   based on desktop onboarding orb
   ========================================================= */

.auth-ai-orb {
    position: relative;

    width: 112px;
    height: 112px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 18px;

    filter:
        drop-shadow(
            0 0 24px
            rgba(0, 174, 255, 0.18)
        );
}


/* glow behind orb */

.auth-ai-orb::before {
    content: "";

    position: absolute;

    width: 72px;
    height: 72px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(57, 207, 255, 0.16),
            rgba(0, 153, 255, 0.04) 58%,
            transparent 72%
        );

    box-shadow:
        0 0 42px
        rgba(0, 179, 255, 0.20);
}


/* rings */

.auth-ai-ring {
    position: absolute;

    border-radius: 50%;

    border:
        1px solid
        rgba(56, 203, 255, 0.35);
}

.auth-ai-ring-1 {
    width: 108px;
    height: 108px;

    opacity: 0.25;
}

.auth-ai-ring-2 {
    width: 84px;
    height: 84px;

    opacity: 0.52;
}

.auth-ai-ring-3 {
    width: 60px;
    height: 60px;

    border-color:
        rgba(79, 214, 255, 0.72);
}


/* glowing core */

.auth-ai-core {
    position: relative;

    z-index: 2;

    width: 32px;
    height: 32px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle at 38% 35%,
            #d7f8ff 0%,
            #63dcff 22%,
            #079ee8 58%,
            #004c80 100%
        );

    border:
        1px solid
        rgba(180, 239, 255, 0.85);

    box-shadow:
        0 0 10px
        rgba(77, 216, 255, 0.85),

        0 0 24px
        rgba(0, 174, 255, 0.38),

        inset -5px -6px 10px
        rgba(0, 39, 72, 0.36),

        inset 3px 4px 8px
        rgba(226, 251, 255, 0.28);
}

.mobile-auth-brand h1 {
    margin: 0;

    font-size: 31px;
    line-height: 1;

    font-weight: 800;
    letter-spacing: 0.095em;

    background:
        linear-gradient(
            100deg,
            #ffffff 25%,
            #dff9ff 62%,
            #45ddff 100%
        );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mobile-auth-brand p {
    margin: 10px 0 0;

    color: #7892ab;

    font-size: 13px;
    letter-spacing: 0.025em;
}


/* CARD */

.mobile-auth-card {
    padding: 7px 17px 20px;

    border:
        1px solid
        rgba(76, 171, 225, 0.17);

    border-radius: 25px;

    background:
        linear-gradient(
            180deg,
            rgba(8, 24, 40, 0.84),
            rgba(3, 13, 25, 0.91)
        );

    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.31),
        inset 0 1px 0 rgba(255,255,255,0.025);

    backdrop-filter: blur(24px);
}


/* TABS */

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 4px;

    margin-bottom: 23px;
    padding: 4px;

    border-radius: 16px;

    background:
        rgba(255, 255, 255, 0.025);
}

.auth-tab {
    height: 47px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    border: 1px solid transparent;
    border-radius: 13px;

    background: transparent;

    color: #71879e;

    font: inherit;
    font-size: 13px;
    font-weight: 650;

    cursor: pointer;

    transition: 180ms ease;
}

.auth-tab svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-tab.active {
    color: #dffaff;

    border-color:
        rgba(30, 214, 255, 0.32);

    background:
        linear-gradient(
            135deg,
            rgba(11, 183, 255, 0.19),
            rgba(14, 132, 193, 0.12)
        );

    box-shadow:
        0 0 22px rgba(0, 197, 255, 0.08),
        inset 0 0 18px rgba(0, 203, 255, 0.035);
}

.auth-tab.active svg {
    color: #20dfff;
}


/* INPUTS */

.auth-field {
    display: block;
    margin-bottom: 15px;
}

.auth-field-label {
    display: block;

    margin: 0 0 8px 3px;

    color: #8ba0b5;

    font-size: 12px;
    font-weight: 650;
}

.auth-input-shell {
    position: relative;

    display: flex;
    align-items: center;

    height: 52px;

    border:
        1px solid
        rgba(99, 148, 188, 0.18);

    border-radius: 15px;

    background:
        rgba(1, 8, 16, 0.62);

    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.auth-input-shell:focus-within {
    border-color:
        rgba(27, 212, 255, 0.46);

    box-shadow:
        0 0 0 3px rgba(0, 205, 255, 0.045),
        0 0 24px rgba(0, 191, 255, 0.04);
}

.auth-input-icon {
    flex: 0 0 auto;

    width: 19px;
    height: 19px;

    margin-left: 15px;

    fill: none;
    stroke: #6f8da8;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.auth-field input {
    min-width: 0;
    flex: 1;

    height: 100%;

    box-sizing: border-box;

    padding: 0 12px;

    border: 0;
    outline: 0;

    background: transparent;

    color: #e8f7ff;

    font: inherit;
    font-size: 14px;
}

.auth-field input::placeholder {
    color: #40586f;
}

.auth-password-toggle {
    flex: 0 0 auto;

    width: 45px;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    background: transparent;

    color: #68849e;

    cursor: pointer;
}

.auth-password-toggle svg {
    width: 19px;
    height: 19px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-eye-closed {
    display: none;
}

.auth-password-toggle.visible .password-eye-open {
    display: none;
}

.auth-password-toggle.visible .password-eye-closed {
    display: block;
}


/* OPTIONS */

.auth-options {
    min-height: 23px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: -3px;
}

.auth-forgot {
    padding: 4px 2px;

    border: 0;

    background: transparent;

    color: #24cfff;

    font: inherit;
    font-size: 12px;

    cursor: pointer;
}

.auth-forgot:hover {
    text-decoration: underline;
}


/* MESSAGE */

.mobile-auth-message {
    min-height: 18px;

    margin: 5px 3px 10px;

    color: #8097ad;

    font-size: 12px;
    line-height: 1.4;
}

.mobile-auth-message.error {
    color: #ff7e8b;
}

.mobile-auth-message.success {
    color: #5fe3bd;
}


/* MAIN BUTTON */

.mobile-auth-submit {
    position: relative;

    width: 100%;
    height: 53px;

    border:
        1px solid
        rgba(81, 232, 255, 0.56);

    border-radius: 16px;

    background:
        linear-gradient(
            105deg,
            #06c8ed 0%,
            #087cff 100%
        );

    color: white;

    font: inherit;
    font-size: 14px;
    font-weight: 750;

    box-shadow:
        0 0 20px rgba(0, 194, 255, 0.18),
        0 8px 30px rgba(0, 102, 255, 0.13);

    cursor: pointer;

    transition:
        transform 150ms ease,
        filter 150ms ease;
}

.mobile-auth-submit:hover {
    filter: brightness(1.07);
}

.mobile-auth-submit:active {
    transform: scale(0.985);
}

.mobile-auth-submit:disabled {
    opacity: 0.55;
    cursor: default;
}

.auth-submit-arrow {
    position: absolute;

    right: 10px;
    top: 50%;

    width: 34px;
    height: 34px;

    transform: translateY(-50%);

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        rgba(0, 41, 114, 0.30);

    font-size: 19px;
}


/* DIVIDER */

.auth-divider {
    display: grid;

    grid-template-columns:
        minmax(20px, 1fr)
        auto
        minmax(20px, 1fr);

    align-items: center;

    gap: 12px;

    margin: 20px 0 14px;
}

.auth-divider span {
    height: 1px;

    background:
        linear-gradient(
            90deg,
            transparent,
            rgba(91, 139, 177, 0.25)
        );
}

.auth-divider span:last-child {
    transform: rotate(180deg);
}

.auth-divider small {
    color: #607b94;
    font-size: 11px;
}


/* GOOGLE */

.auth-google-button {
    width: 100%;
    height: 48px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    border:
        1px solid
        rgba(104, 155, 196, 0.17);

    border-radius: 14px;

    background:
        rgba(7, 20, 34, 0.72);

    color: #b8cee1;

    font: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;

    transition:
        border-color 160ms ease,
        background 160ms ease;
}

.auth-google-button:hover {
    border-color:
        rgba(35, 205, 255, 0.30);

    background:
        rgba(9, 29, 47, 0.84);
}

.auth-google-button svg {
    width: 19px;
    height: 19px;

    color: #cdeeff;
}


/* TRUST */

.auth-trust {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-top: 19px;

    color: #536d84;

    font-size: 10px;
}

.auth-trust > span:not(.auth-trust-dot) {
    display: flex;
    align-items: center;
    gap: 5px;
}

.auth-trust svg {
    width: 13px;
    height: 13px;

    fill: none;
    stroke: #19cfff;
    stroke-width: 1.7;
    stroke-linejoin: round;
}

.auth-trust-dot {
    width: 3px;
    height: 3px;

    border-radius: 50%;

    background: #2d536d;
}


/* SMALL PHONES */

@media (max-height: 700px) {

    .mobile-auth-inner {
        padding-top:
            max(25px, env(safe-area-inset-top));
    }

    .auth-ai-orb {
        width: 62px;
        height: 62px;
        margin-bottom: 10px;
    }

    .mobile-auth-brand {
        margin-bottom: 20px;
    }

    .mobile-auth-brand h1 {
        font-size: 27px;
    }

}

/* Google OAuth — disabled until SHKETT has a public callback URL */
.auth-divider,
.auth-google-button {
    display: none;
}

.mobile-recovery-form[hidden] {
    display: none !important;
}

.mobile-recovery-form {
    display: grid;
    gap: 18px;
}

.auth-recovery-heading {
    text-align: center;
    margin-bottom: 2px;
}

.auth-recovery-heading h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #f4fbff;
}

.auth-recovery-heading p {
    margin: 8px auto 0;
    max-width: 280px;
    font-size: 13px;
    line-height: 1.5;
    color: rgba(220, 238, 247, 0.62);
}

/* =========================================
   SHKETT MOBILE — NOTES
========================================= */

.notes-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

#notes-new-button,
#notes-save {
    border: 1px solid rgba(67, 203, 255, .5);
    border-radius: 12px;
    padding: 11px 16px;
    color: white;
    background: linear-gradient(135deg, #04c0ed, #0878fa);
    cursor: pointer;
}

.notes-search,
.notes-editor input,
.notes-editor textarea {
    width: 100%;
    border: 1px solid rgba(64, 151, 220, .22);
    border-radius: 13px;
    background: #08192b;
    color: #f5f9ff;
    padding: 13px;
    outline: none;
}

.notes-search {
    margin-bottom: 15px;
}

.notes-list {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.note-card {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(64, 151, 220, .2);
    border-radius: 14px;
    background: linear-gradient(145deg, #0a1b30, #061322);
    color: white;
    text-align: left;
    cursor: pointer;
}

.note-card strong {
    display: block;
    font-size: 14px;
    margin-bottom: 7px;
}

.note-card p {
    color: #9aadc3;
    font-size: 12px;
    margin: 0 0 8px;
    overflow-wrap: anywhere;
}

.note-card small {
    color: #6e90ad;
    font-size: 10px;
}

.notes-editor {
    margin-top: 15px;
    padding: 15px;
    border: 1px solid rgba(0, 168, 255, .3);
    border-radius: 17px;
    background: #071626;
}

.notes-editor[hidden] {
    display: none;
}

.notes-editor input {
    margin-bottom: 10px;
}

.notes-editor textarea {
    resize: vertical;
    min-height: 160px;
}

.notes-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}

#notes-cancel {
    padding: 11px 15px;
    border: 1px solid rgba(64, 151, 220, .2);
    border-radius: 12px;
    background: #0b2035;
    cursor: pointer;
}

/* SHKETT NOTES — visual fix */

#screen-notes .notes-toolbar {
    display: flex;
    justify-content: flex-end;
    margin: 18px 0 12px;
}

#screen-notes #notes-new-button {
    appearance: none;
    border: 1px solid rgba(0, 194, 255, .55);
    border-radius: 12px;
    padding: 11px 16px;
    background: linear-gradient(135deg, #00baf0, #087bfa);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 18px rgba(0, 145, 255, .22);
    cursor: pointer;
}

#screen-notes .notes-search {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 13px 15px;
    border: 1px solid rgba(65, 150, 220, .25);
    border-radius: 13px;
    background: #08192b;
    color: #f5f9ff;
    outline: none;
}

#screen-notes .notes-search::placeholder {
    color: #7890a7;
}

#screen-notes .notes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 14px;
}

#screen-notes .note-card {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(64, 151, 220, .23);
    border-radius: 15px;
    background: linear-gradient(135deg, #0a1e34, #061322);
    color: #f5f9ff;
    text-align: left;
    cursor: pointer;
}

#screen-notes .note-card strong {
    display: block;
    margin-bottom: 7px;
}

#screen-notes .note-card p {
    margin: 0 0 8px;
    color: #9aadc3;
    font-size: 12px;
}

#screen-notes .note-card small {
    color: #6e90ad;
}

#screen-notes .notes-editor {
    margin-top: 16px;
    padding: 15px;
    border: 1px solid rgba(0, 168, 255, .3);
    border-radius: 16px;
    background: #071626;
}

#screen-notes .notes-editor[hidden] {
    display: none;
}

#screen-notes .notes-editor input,
#screen-notes .notes-editor textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 10px;
    padding: 13px;
    border: 1px solid rgba(64, 151, 220, .25);
    border-radius: 12px;
    background: #08192b;
    color: white;
    outline: none;
}

#screen-notes .notes-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

#screen-notes .notes-editor-actions button {
    border: 1px solid rgba(64, 151, 220, .3);
    border-radius: 11px;
    padding: 11px 14px;
    background: #0b2035;
    color: white;
    cursor: pointer;
}

#screen-notes #notes-save {
    background: linear-gradient(135deg, #00baf0, #087bfa);
}


/* ==========================================
   SHKETT MOBILE — NOTES PREMIUM UI
========================================== */

#screen-notes {
    padding: 22px 22px 34px;
    overflow-y: auto;
    scrollbar-width: none;
}

#screen-notes::-webkit-scrollbar {
    display: none;
}

#screen-notes .notes-brand {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 36px;
}

#screen-notes .notes-more-button {
    width: 43px;
    height: 43px;
    border-radius: 13px;
    border: 1px solid #143450;
    background: #07172a;
    color: #e7f6ff;
    font-size: 20px;
    cursor: pointer;
}

#screen-notes .notes-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 23px;
}

#screen-notes .notes-heading h1 {
    margin: 0 0 7px;
    font-size: 31px;
    font-weight: 750;
    letter-spacing: -1px;
    color: white;
}

#screen-notes .notes-heading p {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: #8aa9cb;
}

#screen-notes #notes-new-button {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 12px 15px;
    border-radius: 13px;
    border: 1px solid #37d7ff;
    background: linear-gradient(130deg, #05c7f4, #086cf0);
    box-shadow: 0 0 20px #008fff55;
    color: white;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

#screen-notes #notes-new-button span {
    font-size: 22px;
    line-height: 1;
}

#screen-notes .notes-search-row {
    display: flex;
    gap: 9px;
    margin-bottom: 16px;
}

#screen-notes .notes-search-shell {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 13px;
    border: 1px solid #153653;
    border-radius: 13px;
    background: #07182c;
}

#screen-notes .notes-search-shell svg,
#screen-notes #notes-filter-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #91b2d6;
    stroke-width: 1.8;
    stroke-linecap: round;
}

#screen-notes #notes-search {
    flex: 1;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 14px 0;
    border: none;
    outline: none;
    background: transparent;
    color: white;
    font-size: 13px;
    box-shadow: none;
}

#screen-notes #notes-filter-button {
    width: 48px;
    border: 1px solid #153653;
    border-radius: 13px;
    background: #07182c;
    display: grid;
    place-items: center;
    cursor: pointer;
}

#screen-notes .notes-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 23px;
}

#screen-notes .notes-category {
    flex-shrink: 0;
    padding: 9px 14px;
    border: 1px solid #16314b;
    border-radius: 25px;
    background: #061427;
    color: #9eb8d4;
    font-size: 12px;
    cursor: pointer;
}

#screen-notes .notes-category.active {
    border-color: #00c8ff;
    background: linear-gradient(140deg, #073a69, #071d3e);
    color: white;
    box-shadow: 0 0 12px #009cff55;
}

#screen-notes .notes-empty {
    text-align: center;
    padding: 10px 0 18px;
}

#screen-notes .notes-empty-art {
    position: relative;
    height: 175px;
    display: grid;
    place-items: center;
}

#screen-notes .notes-art-halo {
    position: absolute;
    width: 160px;
    height: 130px;
    border-radius: 50%;
    background: radial-gradient(
        ellipse,
        #008eff40 0%,
        #0066ee12 45%,
        transparent 75%
    );
    filter: blur(8px);
}

#screen-notes .notes-art-paper {
    position: relative;
    width: 100px;
    height: 120px;
    border: 1px solid #159bfa;
    border-radius: 20px;
    background: linear-gradient(145deg, #103d70, #061529);
    box-shadow: 0 0 30px #007eff55, inset 0 0 22px #008bff22;
    transform: rotate(-7deg);
}

#screen-notes .notes-art-paper svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #35caff;
    stroke-width: 4;
    stroke-linecap: round;
}

#screen-notes .notes-art-spark {
    position: absolute;
    color: #2bd4ff;
    text-shadow: 0 0 14px #00baff;
    font-size: 25px;
}

#screen-notes .notes-art-spark-one {
    top: 30px;
    left: 17%;
}

#screen-notes .notes-art-spark-two {
    bottom: 30px;
    right: 17%;
}

#screen-notes .notes-empty h2 {
    margin: 4px 0 8px;
    font-size: 22px;
    color: white;
}

#screen-notes .notes-empty p {
    max-width: 300px;
    margin: 0 auto;
    color: #90a9c8;
    font-size: 13px;
    line-height: 1.7;
}

#screen-notes .notes-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 18px;
}

#screen-notes .notes-action-card {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 13px 10px;
    border: 1px solid #173451;
    border-radius: 14px;
    background: linear-gradient(145deg, #0a1e35, #051222);
    color: white;
    text-align: left;
    cursor: pointer;
}

#screen-notes .notes-action-icon {
    flex-shrink: 0;
    width: 35px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: linear-gradient(140deg, #06467c, #09203d);
    color: #24c5ff;
    font-size: 21px;
    text-shadow: 0 0 12px #00aaff;
}

#screen-notes .notes-action-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 5px;
}

#screen-notes .notes-action-copy strong {
    font-size: 11px;
    white-space: nowrap;
}

#screen-notes .notes-action-copy small {
    color: #829cba;
    font-size: 9px;
    line-height: 1.3;
}

#screen-notes .notes-action-arrow {
    margin-left: auto;
    color: #86a5c6;
    font-size: 20px;
}

#screen-notes .notes-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#screen-notes .note-card {
    width: 100%;
    border: 1px solid #183956;
    border-radius: 15px;
    background: linear-gradient(145deg, #0b2039, #061425);
    color: white;
    padding: 15px;
    text-align: left;
    cursor: pointer;
}

#screen-notes .note-card strong {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
}

#screen-notes .note-card p {
    color: #91a9c5;
    font-size: 12px;
    margin: 0 0 8px;
}

#screen-notes .note-card small {
    color: #5e8cae;
    font-size: 10px;
}

#screen-notes .notes-editor {
    position: absolute;
    inset: 0;
    z-index: 15;
    margin: 0;
    padding: 24px 18px;
    overflow-y: auto;
    background: #030d1b;
    border: none;
    border-radius: inherit;
}

#screen-notes .notes-editor[hidden],
#screen-notes .notes-empty[hidden],
#screen-notes .notes-quick-actions[hidden] {
    display: none !important;
}

#screen-notes .notes-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

#screen-notes .notes-editor-header h2 {
    color: white;
    font-size: 23px;
}

#screen-notes #notes-cancel {
    width: 39px;
    height: 39px;
    border-radius: 11px;
    border: 1px solid #1b3955;
    background: #0b2035;
    color: white;
    cursor: pointer;
}

#screen-notes #notes-title,
#screen-notes #notes-content,
#screen-notes #notes-editor-category {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #1a3b59;
    border-radius: 13px;
    background: #081b30;
    color: white;
    padding: 14px;
    margin-bottom: 13px;
    font: inherit;
    outline: none;
}

#screen-notes #notes-content {
    min-height: 230px;
    resize: vertical;
}

#screen-notes .notes-editor-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

#screen-notes #notes-save {
    border: 1px solid #36caff;
    border-radius: 12px;
    padding: 12px 17px;
    background: linear-gradient(135deg, #05bdf0, #0878fa);
    color: white;
    cursor: pointer;
}

#screen-notes #notes-delete {
    margin-right: auto;
    border: 1px solid #703445;
    border-radius: 12px;
    padding: 12px 17px;
    background: #321321;
    color: #ff849a;
    cursor: pointer;
}

#screen-notes #notes-delete[hidden] {
    display: none;
}

@media (max-width: 360px) {
    #screen-notes {
        padding-inline: 15px;
    }

    #screen-notes .notes-action-card {
        padding: 10px 7px;
        gap: 6px;
    }

    #screen-notes .notes-action-icon {
        width: 30px;
    }
}


/* ==========================================
   SHKETT NOTES — SCROLL FIX
========================================== */

#screen-notes {
    min-height: 0;
    height: 100%;
    box-sizing: border-box;

    overflow-y: auto;
    overflow-x: hidden;

    overscroll-behavior: contain;

    /* Space below the last card */
    padding-bottom: 110px;

    -webkit-overflow-scrolling: touch;
}

#screen-notes .notes-quick-actions {
    margin-bottom: 24px;
}

#screen-notes::-webkit-scrollbar {
    display: none;
}

/* SHKETT — Notes editor fullscreen */

.mobile-app:has(#notes-editor:not([hidden])) .bottom-nav {
    display: none;
}

#screen-notes:has(#notes-editor:not([hidden])) {
    padding-bottom: 0;
    overflow: hidden;
}

#screen-notes .notes-editor:not([hidden]) {
    position: absolute;
    inset: 0;
    z-index: 30;
    border-radius: inherit;
    padding: 32px 20px 45px;
    overflow-y: auto;
}

/* SHKETT — Notes editor header alignment */

#screen-notes .notes-editor-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
}

#screen-notes .notes-editor-header h2 {
    margin: 0;
}

#screen-notes #notes-cancel {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    margin: 0;

    display: grid;
    place-items: center;

    border: 1px solid #1b3955;
    border-radius: 12px;
    background: #0b2035;
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
}
/* SHKETT — Notes category dropdown */

#screen-notes #notes-editor-category {
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;

    background-color: #081b30;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2338c9ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;

    padding-right: 48px;
    transition: border-color .2s, box-shadow .2s;
}

#screen-notes #notes-editor-category:focus {
    border-color: #19c8ff;
    box-shadow: 0 0 0 3px rgba(0, 180, 255, .12);
}

#screen-notes #notes-editor-category option {
    background: #081b30;
    color: #ffffff;
}


/* =========================================
   SHKETT MOBILE — TOOLS PREMIUM
========================================= */

#screen-tools {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 110px;
    box-sizing: border-box;
    scrollbar-width: none;
}

#screen-tools::-webkit-scrollbar {
    display: none;
}

#screen-tools .shkett-tools-heading {
    margin-bottom: 28px;
}

#screen-tools .shkett-tools-heading h1 {
    color: #fff;
    font-size: 30px;
    font-weight: 750;
    letter-spacing: -0.8px;
    margin-bottom: 6px;
}

#screen-tools .shkett-tools-heading p {
    color: #83a9d0;
    font-size: 14px;
}

/* GRID */

#screen-tools .tools-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

/* CARDS */

#screen-tools .tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    min-width: 0;
    min-height: 185px;
    padding: 18px 16px;
    border: 1px solid #183c60;
    border-radius: 17px;
    background:
        radial-gradient(
            ellipse at 0% 0%,
            rgba(0, 170, 255, 0.11),
            transparent 70%
        ),
        linear-gradient(
            145deg,
            #091d33 0%,
            #061222 100%
        );
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

#screen-tools .tool-card:hover {
    border-color: #13baff;
    box-shadow: 0 0 22px rgba(0, 174, 255, 0.13);
    transform: translateY(-2px);
}

#screen-tools .tool-card:active {
    transform: scale(0.98);
}

#screen-tools .tool-card:focus-visible,
#screen-tools .voice-tool-card:focus-visible {
    outline: 2px solid #20c9ff;
    outline-offset: 3px;
}

/* ICONS */

#screen-tools .tool-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 53px;
    height: 53px;
    margin-bottom: 19px;
    border: 1px solid rgba(0, 187, 255, 0.45);
    border-radius: 15px;
    background:
        radial-gradient(
            circle at 50% 40%,
            rgba(0, 190, 255, 0.27),
            rgba(0, 94, 177, 0.1) 70%
        ),
        #06213b;
    box-shadow:
        inset 0 0 15px rgba(0, 185, 255, 0.12),
        0 0 18px rgba(0, 140, 255, 0.1);
    color: #30d4ff;
}

#screen-tools .tool-icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 5px rgba(0, 200, 255, 0.45));
}

/* CARD TEXT */

#screen-tools .tool-card strong {
    display: block;
    margin-bottom: 7px;
    color: #f5faff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

#screen-tools .tool-card small {
    display: block;
    color: #84a8cc;
    font-size: 12px;
    line-height: 1.5;
}

#screen-tools .tool-arrow {
    position: absolute;
    top: 20px;
    right: 16px;
    color: #83b8e4;
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
}

/* VOICE CARD */

#screen-tools .voice-tool-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    min-height: 92px;
    padding: 16px;
    border: 1px solid #1a446d;
    border-radius: 17px;
    background:
        linear-gradient(
            110deg,
            rgba(0, 150, 255, 0.13),
            transparent 70%
        ),
        #071729;
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

#screen-tools .voice-tool-card:hover {
    border-color: #1fc6ff;
    box-shadow: 0 0 24px rgba(0, 175, 255, 0.13);
}

#screen-tools .voice-tool-card .tool-icon {
    width: 56px;
    height: 56px;
    margin: 0;
    border-radius: 50%;
}

#screen-tools .voice-tool-copy {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 6px;
}

#screen-tools .voice-tool-copy strong {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

#screen-tools .voice-tool-copy small {
    color: #87afd5;
    font-size: 12px;
    line-height: 1.4;
}

#screen-tools .voice-tool-card .chevron {
    margin-left: auto;
    color: #49cfff;
    font-size: 28px;
    line-height: 1;
}

/* SMALL PHONE SUPPORT */

@media (max-width: 360px) {
    #screen-tools .tools-grid {
        gap: 9px;
    }

    #screen-tools .tool-card {
        min-height: 180px;
        padding: 14px 12px;
    }

    #screen-tools .tool-card strong {
        font-size: 13px;
    }

    #screen-tools .tool-card small {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #screen-tools .tool-card,
    #screen-tools .voice-tool-card {
        transition: none;
    }
}


/* =====================================
   SHKETT MOBILE — FILES PREMIUM
===================================== */

#screen-files {
    position: relative;
    min-height: 0;
    height: 100%;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 110px;
    scrollbar-width: none;
}

#screen-files::-webkit-scrollbar {
    display: none;
}

#screen-files .shkett-files-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 24px;
}

#screen-files .shkett-files-header h1 {
    margin: 0 0 7px;
    color: #fff;
    font-size: 30px;
}

#screen-files .shkett-files-header p {
    margin: 0;
    color: #86a9cf;
    font-size: 13px;
}

#screen-files .files-add-button,
#screen-files #files-empty-add {
    border: 1px solid #30cfff;
    background: linear-gradient(135deg, #08bff0, #0878fa);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 0 20px #008fff35;
}

#screen-files .files-add-button {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 49px;
    height: 49px;
    border-radius: 14px;
    font-size: 28px;
}

#screen-files .files-search-box {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 15px;
    border: 1px solid #1b3d5b;
    border-radius: 14px;
    background: #081a2e;
    margin-bottom: 18px;
}

#screen-files .files-search-box svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #83aed2;
    stroke-width: 1.8;
}

#screen-files #files-search {
    width: 100%;
    padding: 15px 0;
    border: none;
    outline: none;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 13px;
}

#screen-files .files-filters {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    margin-bottom: 22px;
    scrollbar-width: none;
}

#screen-files .files-filters .segment {
    flex-shrink: 0;
    border: 1px solid #193650;
    border-radius: 25px;
    padding: 9px 14px;
    background: #061528;
    color: #95b2d0;
    font-size: 12px;
    cursor: pointer;
}

#screen-files .files-filters .segment.active {
    border-color: #09c8ff;
    background: #083d69;
    color: white;
    box-shadow: 0 0 14px #008fff35;
}

#screen-files .file-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#screen-files .shkett-file-card {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    padding: 14px;
    border: 1px solid #193957;
    border-radius: 15px;
    background: linear-gradient(135deg, #0b2139, #061527);
    color: #fff;
    text-align: left;
    cursor: pointer;
}

#screen-files .file-card-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 46px;
    height: 50px;
    border-radius: 12px;
    background: #0a3a67;
    color: #39ccff;
    font-size: 23px;
}

#screen-files .file-card-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

#screen-files .file-card-copy strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
}

#screen-files .file-card-copy small {
    color: #81a2c4;
    font-size: 11px;
}

#screen-files .file-card-arrow {
    color: #73bce9;
    font-size: 25px;
}

#screen-files .files-empty {
    text-align: center;
    padding: 30px 0;
}

#screen-files .files-empty[hidden],
#screen-files .files-preview[hidden] {
    display: none !important;
}

#screen-files .files-empty-art {
    position: relative;
    height: 165px;
    display: grid;
    place-items: center;
}

#screen-files .files-folder-shape {
    width: 120px;
    height: 120px;
    border: 1px solid #158cf2;
    border-radius: 25px;
    background: linear-gradient(140deg, #124b83, #071a32);
    box-shadow: 0 0 30px #008fff35;
    display: grid;
    place-items: center;
    transform: rotate(-5deg);
}

#screen-files .files-folder-shape svg {
    width: 85px;
    fill: none;
    stroke: #34caff;
    stroke-width: 4;
    stroke-linejoin: round;
}

#screen-files .files-spark {
    position: absolute;
    top: 15px;
    right: 19%;
    color: #2ddaff;
    font-size: 26px;
    text-shadow: 0 0 16px #00baff;
}

#screen-files .files-empty h2 {
    margin: 10px 0;
    color: white;
    font-size: 22px;
}

#screen-files .files-empty p {
    max-width: 270px;
    margin: 0 auto 20px;
    color: #8ea9c8;
    font-size: 13px;
    line-height: 1.6;
}

#screen-files #files-empty-add {
    padding: 12px 20px;
    border-radius: 13px;
    font-weight: 700;
}

#screen-files .files-status {
    margin-top: 15px;
    color: #8ec7e9;
    font-size: 12px;
}

#screen-files .files-preview {
    position: absolute;
    inset: 0;
    z-index: 20;
    padding: 22px 17px 100px;
    overflow-y: auto;
    background: #030e1e;
    box-sizing: border-box;
}

#screen-files .files-preview-header,
#screen-files .files-preview-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 22px;
}

#screen-files .files-preview-header h2 {
    min-width: 0;
    overflow-wrap: anywhere;
    color: white;
    font-size: 19px;
}

#screen-files .files-preview-header button,
#screen-files .files-preview-actions button {
    border: 1px solid #204663;
    border-radius: 12px;
    background: #0b2239;
    color: white;
    padding: 12px;
    cursor: pointer;
}

#screen-files .files-preview-actions {
    margin-top: 20px;
}

#screen-files #files-preview-delete {
    border-color: #6e3345;
    color: #ff8b9d;
}

#screen-files #files-preview-content {
    color: #c5d8eb;
    overflow-wrap: anywhere;
}

#screen-files #files-preview-content pre {
    white-space: pre-wrap;
    font: 12px/1.7 monospace;
}

#screen-files #files-preview-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

#screen-files #files-preview-content iframe {
    width: 100%;
    height: 60vh;
    border: none;
    border-radius: 12px;
    background: white;
}


/* =========================================
   SHKETT — FILES AI
   ========================================= */

.files-ai-modal[hidden] {
    display: none !important;
}

.files-ai-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(2, 7, 18, .82);
    backdrop-filter: blur(16px);
}

.files-ai-panel {
    box-sizing: border-box;
    width: 100%;
    max-width: 650px;
    height: min(88dvh, 850px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 26px 20px;
    padding-bottom: max(24px, env(safe-area-inset-bottom));
    overflow: hidden;
    color: #edfaff;
    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(0, 206, 255, .12),
            transparent 55%
        ),
        #07101e;
    border: 1px solid rgba(80, 205, 255, .19);
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -15px 70px rgba(0, 0, 0, .5);
}

.files-ai-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.files-ai-header h2 {
    margin: 4px 0 0;
    font-size: 27px;
    font-weight: 750;
    letter-spacing: -.8px;
}

.files-ai-kicker {
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 2.2px;
    color: #5cddff;
}

#files-ai-close {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.05);
    color: #e8f7ff;
    font-size: 26px;
    cursor: pointer;
}

.files-ai-document {
    display: flex;
    flex-direction: column;
    gap: 7px;
    padding: 15px;
    border-radius: 17px;
    border: 1px solid rgba(60, 200, 255, .15);
    background: rgba(22, 42, 66, .58);
}

.files-ai-document span {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: #6f8ca6;
}

.files-ai-document strong {
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.files-ai-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.files-ai-actions button {
    min-height: 47px;
    padding: 10px;
    border-radius: 13px;
    border: 1px solid rgba(64, 197, 255, .22);
    color: #bcefff;
    background: rgba(15, 45, 73, .65);
    font-size: 13px;
    font-weight: 650;
    cursor: pointer;
}

.files-ai-actions button:active {
    background: rgba(29, 139, 188, .3);
}

.files-ai-status {
    min-height: 18px;
    font-size: 12px;
    color: #70bcd6;
}

.files-ai-answer {
    flex: 1;
    min-height: 100px;
    padding: 17px;
    overflow-y: auto;
    border: 1px solid rgba(70, 170, 220, .13);
    border-radius: 17px;
    background: rgba(5, 16, 31, .65);
    color: #d7eaf5;
    font-size: 14px;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.files-ai-compose {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

#files-ai-question {
    flex: 1;
    min-width: 0;
    resize: none;
    padding: 13px 14px;
    border: 1px solid rgba(66, 190, 255, .22);
    border-radius: 15px;
    outline: none;
    background: #101e30;
    color: #edfaff;
    font: inherit;
    font-size: 13px;
}

#files-ai-question:focus {
    border-color: #35caff;
}

#files-ai-send,
.files-ai-open {
    border: 1px solid rgba(95, 231, 255, .35);
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        #0c89b8,
        #06bbd9
    );
    color: #fff;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 4px 22px rgba(0, 186, 255, .15);
}

#files-ai-send {
    min-height: 47px;
    padding: 0 17px;
}

#files-ai-send:disabled {
    opacity: .5;
    cursor: wait;
}

.files-ai-open {
    display: block;
    width: 100%;
    margin: 12px 0;
    padding: 14px;
    font-size: 13px;
}

@media (min-width: 700px) {
    .files-ai-modal {
        align-items: center;
    }

    .files-ai-panel {
        height: min(82dvh, 800px);
        border-radius: 28px;
    }
}

/* =========================================
   SHKETT — ORIGINAL LOGO
========================================= */

img.shkett-orb {
    display: block;
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    box-shadow: none;
    filter: drop-shadow(0 0 8px rgba(0, 190, 255, 0.3));
}

img.shkett-orb::before,
img.shkett-orb::after {
    content: none;
}

img.message-orb {
    display: block;
    width: 38px;
    height: 38px;
    object-fit: contain;
    flex-shrink: 0;
    background: transparent;
    border: none;
    border-radius: 50%;
    box-shadow: none;
    filter: drop-shadow(0 0 5px rgba(0, 190, 255, 0.25));
}

/* =========================================
   SHKETT — ORIGINAL AUTH LOGO
========================================= */

img.shkett-auth-logo {
    display: block;
    position: relative;
    width: 112px;
    height: 112px;
    margin: 0 auto 18px;
    object-fit: contain;

    background: transparent;
    border: none;
    border-radius: 50%;
    box-shadow: none;

    filter: drop-shadow(0 0 14px rgba(0, 190, 255, 0.35));
    animation: none;
}

img.shkett-auth-logo::before,
img.shkett-auth-logo::after {
    content: none;
}

@media (max-width: 480px) {
    img.shkett-auth-logo {
        width: 80px;
        height: 80px;
        margin-bottom: 12px;
    }
}

/* ==========================================
   SHKETT FILES AI — TRANSLATE PANEL
   ========================================== */

#files-ai-translate-options {
    margin-top: 16px;
    padding: 22px;
    background: linear-gradient(
        145deg,
        #10283d 0%,
        #071624 100%
    );
    border: 1px solid #23475e;
    border-radius: 20px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

#files-ai-translate-options[hidden] {
    display: none !important;
}

#files-ai-translate-options label {
    display: block;
    margin-bottom: 12px;
    color: #9db9ce;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

#files-ai-target-language {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    margin-bottom: 14px;

    background: #0c1e30;
    color: #edf8ff;

    border: 1px solid #315772;
    border-radius: 13px;

    font: inherit;
    font-size: 15px;
    outline: none;
    cursor: pointer;
}

#files-ai-target-language:focus {
    border-color: #20c7f3;
    box-shadow: 0 0 0 3px rgba(32, 199, 243, 0.12);
}

#files-ai-translate-now {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    min-height: 52px;
    padding: 12px 20px;

    color: #ffffff;
    background: linear-gradient(110deg, #087cbd, #05b8dc);

    border: 1px solid rgba(117, 230, 255, 0.35);
    border-radius: 13px;

    font: inherit;
    font-size: 15px;
    font-weight: 700;

    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
}

#files-ai-translate-now:hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.12);
}

#files-ai-translate-now:disabled {
    opacity: 0.55;
    cursor: wait;
    transform: none
}

/* ==========================================
   FILES AI — COMPACT TRANSLATE + SCROLL
   ========================================== */

/* Окно Files AI не выходит за экран */
.files-ai-panel {
    max-height: 90dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: #28506a transparent;
}

/* Компактная карточка перевода */
#files-ai-translate-options {
    margin-top: 12px;
    padding: 14px 16px;
    border-radius: 16px;
}

/* Уменьшаем отступы */
#files-ai-translate-options label {
    margin-bottom: 8px;
}

/* Поле языка */
#files-ai-target-language {
    min-height: 44px;
    margin-bottom: 10px;
}

/* Кнопка перевода */
#files-ai-translate-now {
    min-height: 44px;
}

/* Результат анализа */
.files-ai-answer {
    min-height: 90px;
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
}

/* На телефоне */
@media (max-width: 480px) {
    .files-ai-panel {
        max-height: 94dvh;
    }

    #files-ai-translate-options {
        padding: 12px;
    }
}


/* =========================================
   SHKETT — CHAT UI UPGRADE
   ========================================= */

#screen-chat .chat-content {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 22px 14px 28px;
    overflow-y: auto;
    min-height: 0;
    scroll-behavior: smooth;
}

/* All messages */

#screen-chat .message {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    width: 100%;
    flex-shrink: 0;
}

/* SHKETT messages */

#screen-chat .assistant-message {
    justify-content: flex-start;
}

#screen-chat .assistant-message .message-bubble {
    max-width: min(82%, 420px);
    min-width: 0;
    padding: 14px 16px;

    color: #eaf5ff;
    font-size: 14px;
    line-height: 1.65;

    background: linear-gradient(
        145deg,
        rgba(12, 33, 59, 0.96),
        rgba(5, 17, 34, 0.98)
    );

    border: 1px solid rgba(45, 153, 234, 0.26);

    border-radius: 7px 18px 18px 18px;

    box-shadow:
        0 8px 24px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

/* Original SHKETT logo — unchanged */

#screen-chat img.message-orb {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    object-fit: contain;
    background: transparent;
    border: none;
    border-radius: 50%;
    box-shadow: none;
    filter: drop-shadow(
        0 0 6px rgba(0, 190, 255, 0.28)
    );
}

/* User messages */

#screen-chat .user-message {
    justify-content: flex-end;
}

#screen-chat .user-message .message-bubble {
    max-width: min(82%, 420px);
    min-width: 0;
    padding: 13px 16px;

    color: #ffffff;
    font-size: 14px;
    line-height: 1.6;

    background: linear-gradient(
        135deg,
        #087bd6,
        #07549e
    );

    border: 1px solid rgba(88, 190, 255, 0.4);

    border-radius: 18px 18px 7px 18px;

    box-shadow:
        0 5px 18px rgba(0, 109, 219, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Long text and formatting */

#screen-chat .message-bubble {
    overflow-wrap: anywhere;
    word-break: normal;
    white-space: pre-wrap;
    height: auto;
    flex-shrink: 1;
}

/* Entrance animation */

@keyframes shkettMessageAppear {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#screen-chat .message {
    animation: shkettMessageAppear 0.22s ease-out both;
}

/* Small screens */

@media (max-width: 420px) {
    #screen-chat .chat-content {
        padding-left: 10px;
        padding-right: 10px;
        gap: 16px;
    }

    #screen-chat .assistant-message .message-bubble,
    #screen-chat .user-message .message-bubble {
        max-width: 83%;
        padding: 12px 14px;
        font-size: 13.5px;
    }

    #screen-chat img.message-orb {
        width: 34px;
        height: 34px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #screen-chat .message {
        animation: none;
    }
}


/* SHKETT Markdown messages */

#screen-chat .assistant-message .message-bubble {
    white-space: normal;
}

#screen-chat .assistant-message .message-bubble p {
    margin: 0 0 12px;
    line-height: 1.7;
}

#screen-chat .assistant-message .message-bubble p:last-child {
    margin-bottom: 0;
}

#screen-chat .assistant-message .message-bubble ul,
#screen-chat .assistant-message .message-bubble ol {
    margin: 10px 0 14px;
    padding-left: 22px;
}

#screen-chat .assistant-message .message-bubble li {
    margin-bottom: 9px;
    line-height: 1.6;
}

#screen-chat .assistant-message .message-bubble li::marker {
    color: #39c5ff;
}

#screen-chat .assistant-message .message-bubble strong {
    color: #ffffff;
    font-weight: 700;
}

#screen-chat .assistant-message .message-bubble h1,
#screen-chat .assistant-message .message-bubble h2,
#screen-chat .assistant-message .message-bubble h3 {
    color: #ffffff;
    margin: 18px 0 10px;
    line-height: 1.35;
}

#screen-chat .assistant-message .message-bubble h1 {
    font-size: 20px;
}

#screen-chat .assistant-message .message-bubble h2 {
    font-size: 17px;
}

#screen-chat .assistant-message .message-bubble h3 {
    font-size: 15px;
}

#screen-chat .assistant-message .message-bubble pre {
    margin: 12px 0;
    padding: 14px;
    border: 1px solid rgba(38, 169, 255, 0.25);
    border-radius: 12px;
    background: #030b16;
    overflow-x: auto;
    white-space: pre;
}

#screen-chat .assistant-message .message-bubble pre code {
    padding: 0;
    background: transparent;
    white-space: pre;
}

#screen-chat .assistant-message .message-bubble code {
    font-family: Consolas, monospace;
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 5px;
    background: rgba(38, 169, 255, 0.12);
    overflow-wrap: anywhere;
}

#screen-chat .assistant-message .message-bubble a {
    color: #54c9ff;
    text-decoration: underline;
}

#screen-chat .assistant-message .message-bubble blockquote {
    margin: 12px 0;
    padding: 8px 12px;
    border-left: 3px solid #16aeff;
    background: rgba(0, 136, 255, 0.07);
    border-radius: 0 8px 8px 0;
}


/* SHKETT CHAT HISTORY */

.shkett-history-overlay {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(0, 5, 15, 0.7);
    backdrop-filter: blur(5px);
}

.shkett-history-panel {
    position: fixed;
    z-index: 9999;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(360px, 88vw);
    padding: 24px 18px;
    overflow-y: auto;
    background: linear-gradient(
        160deg,
        #07182d,
        #030b18
    );
    border-left: 1px solid rgba(49, 163, 255, 0.3);
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.4);
    color: #eaf5ff;
}

.shkett-history-overlay[hidden],
.shkett-history-panel[hidden] {
    display: none !important;
}

.shkett-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    font-size: 18px;
}

.shkett-history-close,
.shkett-history-delete {
    border: none;
    color: #9bcfff;
    background: transparent;
    font-size: 26px;
    cursor: pointer;
}

.shkett-new-chat {
    width: 100%;
    padding: 13px;
    margin-bottom: 20px;
    border-radius: 12px;
    border: 1px solid rgba(40, 176, 255, 0.4);
    background: rgba(0, 135, 255, 0.13);
    color: #eaf5ff;
    font-weight: 600;
    cursor: pointer;
}

.shkett-history-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shkett-history-item {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid rgba(72, 150, 220, 0.12);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.shkett-history-item.active {
    border-color: rgba(30, 170, 255, 0.55);
    background: rgba(0, 130, 255, 0.12);
}

.shkett-history-open {
    flex: 1;
    min-width: 0;
    padding: 14px 12px;
    border: none;
    background: transparent;
    color: #eaf5ff;
    text-align: left;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    cursor: pointer;
}

.shkett-history-delete {
    flex-shrink: 0;
    padding: 4px 12px;
    font-size: 22px;
}

.shkett-new-chat:hover,
.shkett-history-item:hover {
    background: rgba(0, 135, 255, 0.18);
}



/* SHKETT CHAT HISTORY — PREMIUM MOBILE */

.shkett-history-panel {
    width: min(430px, 100vw);
    padding: 24px 18px max(22px, env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    background:
        radial-gradient(circle at 90% 0%,
            rgba(0, 123, 255, .12), transparent 40%),
        linear-gradient(165deg, #06172c, #020914 85%);
}

.shkett-history-header {
    flex-shrink: 0;
    min-height: 64px;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(60, 150, 230, .14);
    font-size: 22px;
    letter-spacing: -.025em;
}

.shkett-history-close {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(45, 157, 255, .24);
    border-radius: 14px;
    background: rgba(0, 100, 210, .08);
    font-size: 27px;
}

.shkett-new-chat {
    flex-shrink: 0;
    min-height: 64px;
    margin-bottom: 18px;
    border: 1px solid rgba(28, 164, 255, .7);
    border-radius: 17px;
    background: linear-gradient(120deg,
        rgba(0, 101, 220, .24),
        rgba(0, 139, 255, .14));
    box-shadow:
        inset 0 1px 0 rgba(140, 220, 255, .12),
        0 0 22px rgba(0, 122, 255, .09);
    font-size: 16px;
    font-weight: 700;
}

.shkett-history-list {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px 2px 16px;
    gap: 9px;
    scrollbar-width: thin;
    scrollbar-color: #174a76 transparent;
}

.shkett-history-item {
    flex-shrink: 0;
    min-height: 72px;
    border: 1px solid rgba(42, 129, 211, .25);
    border-radius: 17px;
    background: linear-gradient(125deg,
        rgba(8, 31, 55, .95),
        rgba(3, 17, 33, .96));
    transition: border-color .18s, background .18s;
}

.shkett-history-item.active {
    border-color: #19b8ff;
    background: linear-gradient(125deg,
        rgba(0, 91, 190, .27),
        rgba(0, 65, 160, .13));
    box-shadow:
        inset 0 0 18px rgba(0, 133, 255, .08),
        0 0 16px rgba(0, 150, 255, .12);
}

.shkett-history-open {
    padding: 20px 15px;
    font-size: 14px;
    font-weight: 600;
}

.shkett-history-delete {
    width: 42px;
    min-height: 48px;
    padding: 0;
    font-size: 23px;
}

/* SHKETT CHAT CONTROLS */

#voice-button.shkett-listening {
    border-color: #1dc8ff;
    color: #ffffff;
    background: rgba(0, 160, 255, 0.2);
    box-shadow:
        0 0 0 3px rgba(0, 160, 255, 0.12),
        0 0 18px rgba(0, 190, 255, 0.3);
    animation: shkettMicPulse 1.2s ease-in-out infinite;
}

@keyframes shkettMicPulse {
    50% {
        box-shadow:
            0 0 0 7px rgba(0, 160, 255, 0.05),
            0 0 26px rgba(0, 190, 255, 0.45);
    }
}

.shkett-attachment-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    padding: 9px 12px;
    color: #d7eeff;
    font-size: 12px;
    background: rgba(0, 130, 255, 0.1);
    border: 1px solid rgba(50, 165, 255, 0.28);
    border-radius: 12px;
}

.shkett-attachment-info[hidden] {
    display: none !important;
}

.shkett-attachment-info span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.shkett-attachment-info button {
    border: none;
    background: transparent;
    color: #b8e6ff;
    font-size: 20px;
    cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
    #voice-button.shkett-listening {
        animation: none;
    }
}


/* SHKETT — MOBILE ATTACHMENT MENU */

.shkett-attach-menu {
    position: absolute;
    left: 0;
    bottom: calc(100% + 12px);
    z-index: 100;
    width: min(300px, 85vw);
    padding: 12px;
    border-radius: 18px;
    background: #07182d;
    border: 1px solid rgba(46, 165, 255, 0.35);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.55);
}

.shkett-attach-menu[hidden] {
    display: none !important;
}

.shkett-attach-title {
    padding: 8px 10px 12px;
    font-size: 13px;
    font-weight: 700;
    color: #eaf5ff;
}

.shkett-attach-menu button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 10px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: #eaf5ff;
    text-align: left;
    cursor: pointer;
}

.shkett-attach-menu button:hover {
    background: rgba(0, 150, 255, 0.13);
}

.shkett-attach-menu button > span {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 11px;
    background: rgba(0, 140, 255, 0.15);
    color: #38c4ff;
    font-size: 22px;
}

.shkett-attach-menu button div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shkett-attach-menu button strong {
    font-size: 13px;
}

.shkett-attach-menu button small {
    color: #91acc5;
    font-size: 11px;
}

/* SHKETT — attachment SVG icons */

.shkett-attach-menu .shkett-attach-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    background: rgba(0, 140, 255, 0.12);
    color: #38c4ff;
    border: 1px solid rgba(47, 164, 255, 0.15);
}

.shkett-attach-menu .shkett-attach-icon svg {
    display: block;
    width: 23px;
    height: 23px;
}

.shkett-attach-menu button:active .shkett-attach-icon {
    background: rgba(0, 160, 255, 0.25);
}

/* SHKETT Voice AI */

.shkett-voice-status {
    margin-bottom: 8px;
    padding: 8px 12px;
    border: 1px solid rgba(40, 170, 255, 0.25);
    border-radius: 10px;
    background: rgba(0, 130, 255, 0.08);
    color: #a9dcff;
    font-size: 12px;
}

.shkett-voice-status[hidden] {
    display: none !important;
}

#voice-button.shkett-listening {
    border-color: #20c5ff;
    color: #fff;
    background: rgba(0, 160, 255, 0.2);
    box-shadow: 0 0 18px rgba(0, 190, 255, 0.4);
    animation: shkettMicPulse 1.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    #voice-button.shkett-listening {
        animation: none;
    }
}

/* SHKETT — VOICE MESSAGES */

.shkett-voice-bubble {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 180px;
    padding: 12px 16px;
}

.shkett-voice-play {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: #087ed1;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

.shkett-voice-duration {
    color: #a8cde8;
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.shkett-voice-bubble audio {
    display: none;
}

/* SHKETT PUBLIC — VOICE LANGUAGE SETTINGS */

.shkett-voice-language-setting {
    padding: 17px 16px;
    border-radius: 17px;
    background: linear-gradient(
        135deg,
        rgba(13, 42, 77, 0.75),
        rgba(8, 24, 48, 0.8)
    );
    border: 1px solid rgba(77, 168, 255, 0.17);
    margin: 10px 0;
}

.shkett-voice-language-setting label {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.shkett-setting-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(38, 139, 255, 0.13);
    font-size: 20px;
}

.shkett-setting-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.shkett-setting-info strong {
    font-size: 14px;
    color: #f1f7ff;
}

.shkett-setting-info small {
    font-size: 11px;
    color: #8da8c6;
}

#shkett-voice-language {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid rgba(85, 171, 255, 0.25);
    border-radius: 12px;
    background: #0b203b;
    color: #f0f8ff;
    font: inherit;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    color-scheme: dark;
}

#shkett-voice-language:focus {
    border-color: #35b9ff;
    box-shadow: 0 0 0 3px rgba(53, 185, 255, 0.12);
}

#shkett-voice-language-hint {
    margin: 10px 0 0;
    font-size: 11px;
    line-height: 1.5;
    color: #86a8ca;
}


/* ==================================================
   SHKETT PUBLIC — CHAT HISTORY PREMIUM UI
   ================================================== */

.shkett-history-panel {
    box-sizing: border-box;
    width: min(430px, 100vw);
    max-width: 100vw;
    height: 100dvh;
    padding: max(22px, env(safe-area-inset-top)) 17px
             max(16px, env(safe-area-inset-bottom));
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 95% 0%,
            rgba(0, 112, 255, .14), transparent 43%),
        linear-gradient(165deg, #06172b, #020a16 85%);
}

/* HEADER */

.shkett-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-shrink: 0;
    min-height: 76px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(50, 147, 228, .14);
}

.shkett-history-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.shkett-history-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 0 12px rgba(0, 160, 255, .3));
}

.shkett-history-brand strong {
    display: block;
    font-size: 20px;
    font-weight: 750;
    color: #f1f8ff;
}

.shkett-history-brand small {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    font-weight: 400;
    color: #8ca8c4;
}

.shkett-history-close {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(45, 157, 255, .3);
    border-radius: 14px;
    background: rgba(0, 100, 210, .09);
    color: #a9dcff;
    font-size: 27px;
}

/* NEW CHAT */

.shkett-new-chat {
    flex-shrink: 0;
    width: 100%;
    min-height: 66px;
    margin-bottom: 16px;
    border: 1px solid #168ff0;
    border-radius: 16px;
    background:
        linear-gradient(120deg,
            rgba(0, 107, 229, .3),
            rgba(0, 82, 178, .13));
    color: #effaff;
    font-size: 16px;
    font-weight: 700;
    box-shadow:
        inset 0 1px 0 rgba(155, 220, 255, .12),
        0 0 20px rgba(0, 130, 255, .1);
    cursor: pointer;
}

.shkett-new-chat span {
    margin-right: 9px;
    font-size: 25px;
    font-weight: 400;
    color: #67ceff;
}

/* SEARCH AND SORT */

.shkett-history-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    margin-bottom: 16px;
}

.shkett-history-search {
    flex: 1;
    min-width: 0;
    height: 49px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border: 1px solid rgba(51, 137, 210, .28);
    border-radius: 14px;
    background: rgba(3, 17, 34, .86);
}

.shkett-history-search span {
    color: #91bbdf;
    font-size: 25px;
}

.shkett-history-search input {
    width: 100%;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: #eaf7ff;
    font-size: 13px;
}

.shkett-history-search input::placeholder {
    color: #7894ad;
}

.shkett-history-sort {
    flex-shrink: 0;
    width: 49px;
    height: 49px;
    border: 1px solid rgba(51, 137, 210, .28);
    border-radius: 14px;
    background: #071b32;
    color: #83cfff;
    font-size: 20px;
    cursor: pointer;
}

/* CHAT LIST */

.shkett-history-list {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 18px;
    overflow-y: auto;
    padding: 2px 1px 15px;
    scrollbar-width: thin;
    scrollbar-color: #174b75 transparent;
}

.shkett-history-section {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.shkett-history-section-title {
    margin: 3px 0 7px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(45, 131, 209, .22);
    color: #82a7c9;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .22em;
}

.shkett-history-item {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    min-height: 72px;
    gap: 4px;
    border: 1px solid rgba(44, 126, 207, .28);
    border-radius: 16px;
    background: linear-gradient(125deg,
        rgba(8, 31, 55, .96),
        rgba(3, 17, 33, .97));
    transition: border-color .2s, background .2s;
}

.shkett-history-item.active {
    border-color: #16b9ff;
    background: linear-gradient(125deg,
        rgba(0, 100, 207, .3),
        rgba(0, 70, 158, .16));
    box-shadow:
        inset 0 0 18px rgba(0, 143, 255, .08),
        0 0 15px rgba(0, 139, 255, .12);
}

.shkett-history-open {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.shkett-history-chat-icon {
    flex-shrink: 0;
    width: 45px;
    height: 45px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(36, 125, 214, .15);
    border-radius: 14px;
    background: rgba(0, 116, 217, .12);
    color: #7bcaff;
    font-size: 24px;
}

.shkett-history-chat-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 5px;
}

.shkett-history-chat-copy strong {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #f0f8ff;
    font-size: 13px;
    font-weight: 650;
}

.shkett-history-chat-copy small {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #83a0bf;
    font-size: 11px;
}

.shkett-history-more {
    flex-shrink: 0;
    width: 42px;
    height: 50px;
    padding: 0;
    border: none;
    background: transparent;
    color: #78caff;
    font-size: 20px;
    letter-spacing: 1px;
    cursor: pointer;
}

.shkett-history-empty {
    padding: 40px 12px;
    color: #7e9ab6;
    font-size: 13px;
    text-align: center;
}

/* FIXED BOTTOM ACTIONS */

.shkett-history-footer {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 14px;
    border-top: 1px solid rgba(48, 133, 207, .24);
    background: #030c19;
}

.shkett-history-actions-title {
    margin: 0 0 7px;
    color: #7299ba;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .2em;
}

.shkett-history-action {
    width: 100%;
    min-height: 43px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: #c1dff3;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.shkett-history-action span {
    width: 24px;
    color: #6ccaff;
    font-size: 20px;
    text-align: center;
}

.shkett-history-action:active:not(:disabled) {
    background: rgba(0, 129, 255, .13);
}

.shkett-history-action.danger,
.shkett-history-action.danger span {
    color: #ff7889;
}

.shkett-history-action:disabled {
    opacity: .35;
    cursor: not-allowed;
}

/* SMALL MOBILE SCREENS */

@media (max-height: 680px) {
    .shkett-history-panel {
        padding-top: 12px;
    }

    .shkett-history-header {
        min-height: 60px;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    .shkett-history-brand img {
        width: 42px;
        height: 42px;
    }

    .shkett-new-chat {
        min-height: 52px;
        margin-bottom: 10px;
    }

    .shkett-history-toolbar {
        margin-bottom: 10px;
    }

    .shkett-history-action {
        min-height: 36px;
        padding: 6px 10px;
    }
}


/* ==========================================
   SHKETT — COMPACT CHAT HISTORY
   ========================================== */

.shkett-history-panel {
    width: min(385px, 100vw);
    padding-left: 15px;
    padding-right: 15px;
}

.shkett-history-header {
    min-height: 58px;
    margin-bottom: 12px;
    padding-bottom: 12px;
}

.shkett-history-brand img {
    width: 42px;
    height: 42px;
}

.shkett-history-brand strong {
    font-size: 18px;
}

.shkett-history-brand small {
    font-size: 10px;
    margin-top: 3px;
}

.shkett-history-close {
    width: 37px;
    height: 37px;
    font-size: 23px;
}

.shkett-new-chat {
    min-height: 51px;
    margin-bottom: 12px;
    font-size: 14px;
    border-radius: 13px;
}

.shkett-new-chat span {
    font-size: 21px;
}

.shkett-history-toolbar {
    gap: 8px;
    margin-bottom: 11px;
}

.shkett-history-search,
.shkett-history-sort {
    height: 42px;
    border-radius: 12px;
}

.shkett-history-sort {
    width: 43px;
}

.shkett-history-section {
    gap: 7px;
}

.shkett-history-section-title {
    margin: 2px 0 5px;
    padding-bottom: 7px;
    font-size: 9px;
}

.shkett-history-item {
    min-height: 60px;
    border-radius: 13px;
}

.shkett-history-open {
    gap: 10px;
    padding: 8px;
}

.shkett-history-chat-icon {
    width: 37px;
    height: 37px;
    border-radius: 11px;
    font-size: 19px;
}

.shkett-history-chat-copy strong {
    font-size: 12px;
}

.shkett-history-chat-copy small {
    font-size: 10px;
}

.shkett-history-more {
    width: 35px;
    height: 42px;
}

.shkett-history-footer {
    gap: 2px;
    padding-top: 10px;
}

.shkett-history-actions-title {
    font-size: 9px;
    margin-bottom: 5px;
}

.shkett-history-action {
    min-height: 35px;
    padding: 6px 10px;
    gap: 10px;
    font-size: 12px;
}

.shkett-history-action span {
    font-size: 17px;
}

@media (max-width: 390px) {
    .shkett-history-panel {
        width: 100vw;
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* ==========================================
   SHKETT — CUSTOM RENAME DIALOG
   ========================================== */

.shkett-rename-dialog {
    width: min(350px, calc(100vw - 32px));
    max-width: 100%;
    padding: 22px;
    border: 1px solid rgba(34, 160, 255, .55);
    border-radius: 20px;
    background: linear-gradient(
        150deg, #09213c, #030b18
    );
    color: #eaf6ff;
    box-shadow: 0 25px 75px rgba(0, 0, 0, .65);
}

.shkett-rename-dialog::backdrop {
    background: rgba(0, 5, 16, .78);
    backdrop-filter: blur(7px);
}

.shkett-rename-dialog h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.shkett-rename-dialog p {
    margin: 0 0 19px;
    color: #8eabc8;
    font-size: 12px;
}

.shkett-rename-dialog input {
    box-sizing: border-box;
    width: 100%;
    height: 45px;
    padding: 0 13px;
    border: 1px solid #277ebd;
    border-radius: 11px;
    outline: none;
    background: #041326;
    color: #fff;
    font-size: 14px;
}

.shkett-rename-dialog input:focus {
    border-color: #29baff;
    box-shadow: 0 0 12px rgba(0, 150, 255, .15);
}

.shkett-rename-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 20px;
}

.shkett-rename-buttons button {
    min-width: 90px;
    min-height: 40px;
    border: 1px solid #245580;
    border-radius: 10px;
    background: #0a2039;
    color: #d5edff;
    font-weight: 600;
    cursor: pointer;
}

.shkett-rename-buttons .primary {
    border-color: #168fff;
    background: #0756aa;
    color: white;
}


/* ============================================
   SHKETT — CHAT HISTORY LAYER FIX
   ============================================ */

.shkett-history-overlay:not([hidden]) {
    position: fixed !important;
    inset: 0;
    z-index: 2147483000 !important;
    pointer-events: auto;
}

.shkett-history-panel:not([hidden]) {
    position: fixed !important;
    z-index: 2147483001 !important;
    pointer-events: auto !important;
    isolation: isolate;
}

.shkett-history-panel:not([hidden]) button,
.shkett-history-panel:not([hidden]) input {
    pointer-events: auto !important;
}


/* ============================================
   SHKETT — CHAT CONTEXT MENU
   ============================================ */

.shkett-history-more {
    position: relative;
    z-index: 2;
    border-radius: 10px;
    transition:
        background .2s ease,
        color .2s ease;
}

.shkett-history-more:hover,
.shkett-history-more.is-open {
    background: rgba(0, 140, 255, .17);
    color: #a8e7ff;
}

.shkett-history-context-menu {
    position: absolute;
    z-index: 100;
    box-sizing: border-box;
    width: 190px;
    padding: 6px;
    border: 1px solid rgba(40, 145, 230, .4);
    border-radius: 14px;
    background: linear-gradient(
        145deg,
        #102c4b,
        #07172b
    );
    box-shadow:
        0 15px 35px rgba(0, 0, 0, .55),
        0 0 18px rgba(0, 119, 255, .12);
    animation: shkettContextAppear .16s ease-out;
}

.shkett-context-action {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-height: 40px;
    padding: 9px 11px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #e0f1ff;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.shkett-context-action span {
    width: 19px;
    color: #75c9ff;
    font-size: 19px;
    text-align: center;
}

.shkett-context-action:hover {
    background: rgba(0, 137, 255, .16);
}

.shkett-context-action.danger {
    color: #ff8495;
}

.shkett-context-action.danger span {
    color: #ff8495;
}

.shkett-context-action.danger:hover {
    background: rgba(255, 70, 100, .11);
}

@keyframes shkettContextAppear {
    from {
        opacity: 0;
        transform: translateY(-5px) scale(.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ==========================================
   SHKETT MOBILE — HIDE SEARCH WEB
   Temporarily disabled for PUBLIC 1.0
   ========================================== */

.quick-action[data-tool="web"],
.tool-card[data-tool="web"] {
    display: none !important;
}

/* =========================================================
   SHKETT — VOICE INTERACTION 3.0 PREVIEW
   ========================================================= */

.voice-tool-coming {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: default !important;
    opacity: 0.9;
    overflow: hidden;
    border-color: rgba(0, 175, 255, 0.24);
    background: linear-gradient(
        115deg,
        rgba(6, 30, 53, 0.95),
        rgba(4, 16, 33, 0.98)
    );
}

.voice-tool-coming .voice-tool-copy {
    flex: 1;
    min-width: 0;
}

.voice-tool-coming .voice-tool-copy strong {
    font-size: 15px;
}

.voice-tool-coming .voice-tool-copy small {
    display: block;
    margin-top: 5px;
    color: #8faed2;
    font-size: 12px;
    line-height: 1.45;
}

.voice-coming-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 11px;
    color: #49d7ff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.voice-coming-dot {
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #24cfff;
    box-shadow: 0 0 9px rgba(0, 204, 255, 0.65);
}

.voice-version-pill {
    flex-shrink: 0;
    padding: 6px 10px;
    border: 1px solid rgba(0, 197, 255, 0.3);
    border-radius: 9px;
    color: #61dcff;
    background: rgba(0, 127, 221, 0.1);
    font-size: 11px;
    font-weight: 700;
}

.voice-tool-coming:active {
    transform: none !important;
}

@media (max-width: 380px) {
    .voice-tool-coming {
        gap: 11px;
        padding: 14px 12px;
    }

    .voice-tool-coming .voice-tool-copy strong {
        font-size: 13px;
    }

    .voice-tool-coming .voice-tool-copy small {
        font-size: 11px;
    }

    .voice-version-pill {
        padding: 5px 7px;
    }
}

/* =========================================================
   SHKETT — STANDARD / INTELLIGENCE SWITCHER
   ========================================================= */

.shkett-ai-mode-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    padding: 7px 10px;
    box-sizing: border-box;
}

.shkett-ai-mode-buttons {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 4px;
    border: 1px solid rgba(80, 170, 255, 0.13);
    border-radius: 13px;
    background: rgba(8, 25, 48, 0.88);
}

.shkett-ai-mode-buttons button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 32px;
    padding: 7px 13px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #829bbd;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease;
}

.shkett-ai-mode-buttons button.active {
    color: #ffffff;
    background: linear-gradient(
        135deg,
        rgba(0, 140, 255, 0.32),
        rgba(0, 200, 255, 0.13)
    );
    box-shadow: inset 0 0 0 1px rgba(63, 186, 255, 0.2);
}

.shkett-ai-sparkle {
    color: #5edcff;
    font-size: 15px;
}

#shkett-ai-mode-indicator {
    color: #6f90b6;
    font-size: 10px;
    font-weight: 500;
}

@media (max-width: 380px) {
    .shkett-ai-mode-switch {
        padding: 6px;
    }

    .shkett-ai-mode-buttons button {
        padding: 7px 9px;
        font-size: 11px;
    }

    #shkett-ai-mode-indicator {
        font-size: 9px;
    }
}

/* =========================================================
   SHKETT PRO — CHECKOUT 1.0
   ========================================================= */

.shkett-pro-checkout[hidden] {
    display: none !important;
}

.shkett-pro-checkout {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    box-sizing: border-box;
    background: rgba(2, 9, 20, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    animation: shkettCheckoutFade 0.3s ease;
}

.shkett-pro-checkout-panel {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 36px 26px 26px;
    box-sizing: border-box;
    border-radius: 26px;
    border: 1px solid rgba(81, 187, 255, 0.2);
    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(0, 153, 255, 0.15),
            transparent 55%
        ),
        linear-gradient(160deg, #0c1d34, #07101f);
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.5);
    color: #fff;
    text-align: center;
    animation: shkettCheckoutRise 0.35s ease;
}

.shkett-pro-checkout-close {
    position: absolute;
    top: 14px;
    right: 17px;
    border: 0;
    background: transparent;
    color: #809ab4;
    font-size: 28px;
    cursor: pointer;
}

.shkett-pro-checkout-emblem {
    width: 92px;
    height: 92px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border-radius: 26px;
    background: rgba(23, 86, 136, 0.17);
    box-shadow:
        0 0 45px rgba(0, 165, 255, 0.13),
        inset 0 0 0 1px rgba(92, 197, 255, 0.15);
}

.shkett-pro-checkout-emblem svg {
    width: 55px;
    height: 55px;
    filter: drop-shadow(0 0 12px rgba(58, 197, 255, 0.4));
}

.shkett-pro-checkout-eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    color: #5ecfff;
}

.shkett-pro-checkout-panel h2 {
    margin: 12px 0 10px;
    font-size: 28px;
    font-weight: 750;
    letter-spacing: -0.8px;
}

.shkett-pro-checkout-panel h2 span {
    color: #58d2ff;
}

.shkett-pro-checkout-subtitle {
    margin: 0 auto 24px;
    max-width: 280px;
    color: #92a9c1;
    font-size: 13px;
    line-height: 1.65;
}

.shkett-pro-checkout-features {
    display: grid;
    gap: 14px;
    margin-bottom: 25px;
    padding: 22px;
    border-radius: 17px;
    background: rgba(13, 38, 64, 0.65);
    border: 1px solid rgba(74, 150, 207, 0.13);
    text-align: left;
}

.shkett-pro-checkout-features div {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #d5e6f6;
    font-size: 12px;
}

.shkett-pro-checkout-features div span {
    color: #59d5ff;
    font-size: 16px;
}

.shkett-pro-checkout-continue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 51px;
    padding: 12px 18px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(110deg, #198dff, #45c7ff);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 9px 28px rgba(0, 133, 255, 0.25);
    transition: transform 0.2s, filter 0.2s;
}

.shkett-pro-checkout-continue:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.shkett-pro-checkout-continue:disabled {
    opacity: 0.65;
    cursor: wait;
}

.shkett-pro-checkout-security {
    margin-top: 17px;
    color: #7695ae;
    font-size: 11px;
}

@keyframes shkettCheckoutFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes shkettCheckoutRise {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    .shkett-pro-checkout-panel {
        padding: 34px 20px 24px;
        border-radius: 23px;
    }

    .shkett-pro-checkout-panel h2 {
        font-size: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shkett-pro-checkout,
    .shkett-pro-checkout-panel {
        animation: none;
    }
}

/* =========================================================
   SHKETT PRO — WELCOME SCREEN
   ========================================================= */

.shkett-pro-welcome {
    position: fixed;
    inset: 0;
    z-index: 100000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(3, 10, 23, 0.94);

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

.shkett-pro-welcome-panel {
    position: relative;
    overflow: hidden;

    width: 100%;
    max-width: 420px;

    padding: 48px 28px 30px;

    border-radius: 28px;
    border: 1px solid rgba(74, 179, 255, 0.2);

    background: linear-gradient(
        155deg,
        #0d2340,
        #071322 75%
    );

    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.55);

    color: white;
    text-align: center;

    animation: shkettWelcomeAppear 0.5s ease;
}

.shkett-pro-welcome-glow {
    position: absolute;

    top: -120px;
    left: 50%;

    width: 320px;
    height: 320px;

    transform: translateX(-50%);

    border-radius: 50%;

    background: radial-gradient(
        circle,
        rgba(0, 159, 255, 0.18),
        transparent 70%
    );

    pointer-events: none;
}

.shkett-pro-welcome-gem {
    position: relative;

    display: grid;
    place-items: center;

    width: 110px;
    height: 110px;

    margin: 0 auto 25px;

    border-radius: 30px;

    color: #5ddcff;

    background: rgba(31, 111, 174, 0.17);

    border: 1px solid rgba(90, 206, 255, 0.25);

    box-shadow: 0 0 55px rgba(0, 164, 255, 0.14);
}

.shkett-pro-welcome-gem svg {
    width: 66px;
    height: 66px;

    filter: drop-shadow(
        0 0 15px rgba(65, 201, 255, 0.5)
    );
}

.shkett-pro-welcome.is-activated
.shkett-pro-welcome-gem {
    animation: shkettGemFloat 3s ease-in-out infinite;
}

.shkett-pro-welcome-label {
    position: relative;

    color: #64d4ff;

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
}

.shkett-pro-welcome-panel h2 {
    position: relative;

    margin: 14px 0 12px;

    font-size: 29px;
    font-weight: 750;
    letter-spacing: -0.8px;
}

.shkett-pro-welcome-panel h2 span {
    color: #5ed5ff;
}

.shkett-pro-welcome-panel p {
    position: relative;

    margin: 0 auto 25px;

    max-width: 290px;

    color: #9bb4cd;

    font-size: 13px;
    line-height: 1.7;
}

.shkett-pro-welcome-status {
    position: relative;

    margin-bottom: 24px;

    padding: 13px;

    border-radius: 12px;

    background: rgba(18, 56, 88, 0.55);

    border: 1px solid rgba(76, 163, 226, 0.15);

    color: #85cfff;

    font-size: 12px;
}

.shkett-pro-welcome.is-activated
.shkett-pro-welcome-status {
    color: #85efca;
}

.shkett-pro-welcome-button {
    position: relative;

    width: 100%;
    min-height: 50px;

    border: 0;
    border-radius: 14px;

    background: linear-gradient(
        110deg,
        #188bff,
        #4bcaff
    );

    color: #fff;

    font-size: 13px;
    font-weight: 700;

    cursor: pointer;

    box-shadow: 0 10px 30px rgba(0, 139, 255, 0.25);
}

.shkett-pro-welcome-button[hidden] {
    display: none !important;
}

.shkett-pro-welcome-footer {
    position: relative;

    margin-top: 25px;

    color: #52738f;

    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
}

@keyframes shkettWelcomeAppear {
    from { opacity: 0;
        transform: translateY(25px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shkettGemFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .shkett-pro-welcome-panel,
    .shkett-pro-welcome.is-activated
    .shkett-pro-welcome-gem {
        animation: none;
    }
}

/* SHKETT — hide AI mode selector */

.shkett-ai-mode-switch,
.shkett-ai-mode-selector,
.shkett-ai-mode-toggle,
.shkett-ai-mode-indicator {
    display: none !important;
}


/* =====================================================
   SHKETT — STARTUP SCREEN
   ===================================================== */

.shkett-startup {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(0, 150, 255, 0.13),
            transparent 48%
        ),
        #030914;

    opacity: 1;
    visibility: visible;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

.shkett-startup.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.shkett-startup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 24px;

    animation: shkett-startup-appear 0.8s ease both;
}

.shkett-startup-logo {
    width: 128px;
    height: 128px;
    object-fit: contain;

    filter: drop-shadow(0 0 28px rgba(0, 190, 255, 0.4));
    animation: shkett-startup-glow 2.2s ease-in-out infinite alternate;
}

.shkett-startup-content h1 {
    margin: 22px 0 8px;
    color: #eaf8ff;
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 7px;
}

.shkett-startup-content p {
    margin: 0;
    color: #87a9c2;
    font-size: 13px;
    letter-spacing: 1px;
}

.shkett-startup-loader {
    width: 150px;
    height: 3px;
    margin-top: 42px;
    overflow: hidden;
    border-radius: 10px;
    background: rgba(90, 170, 220, 0.13);
}

.shkett-startup-loader span {
    display: block;
    width: 40%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #008dff, #5de7ff);
    box-shadow: 0 0 12px rgba(0, 190, 255, 0.6);
    animation: shkett-startup-loading 1.2s ease-in-out infinite;
}

@keyframes shkett-startup-appear {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes shkett-startup-glow {
    from {
        filter: drop-shadow(0 0 15px rgba(0, 180, 255, 0.25));
        transform: scale(0.98);
    }
    to {
        filter: drop-shadow(0 0 35px rgba(0, 210, 255, 0.55));
        transform: scale(1.03);
    }
}

@keyframes shkett-startup-loading {
    from { transform: translateX(-110%); }
    to { transform: translateX(380%); }
}

@media (prefers-reduced-motion: reduce) {
    .shkett-startup-content,
    .shkett-startup-logo,
    .shkett-startup-loader span {
        animation: none;
    }
}

/* SHKETT — ROUND INTERFACE LOGO */
img.shkett-orb,
img.message-orb {
    border-radius: 50%;
    object-fit: cover;
    background: transparent;
}

/* SHKETT — HEADER LOGO ONLY */
#screen-chat .topbar .brand img.shkett-orb {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    clip-path: circle(35% at 50% 50%);
    background: transparent;
    border: 0;
    box-shadow: none;
}

/* SHKETT — FINAL ROUND HEADER LOGO */
#screen-chat .topbar .brand img.shkett-orb {
    opacity: 1 !important;
    width: 56px !important;
    height: 56px !important;
    object-fit: cover !important;
    clip-path: circle(34% at center) !important;
    border-radius: 50% !important;
    background: transparent !important;
}
/* SHKETT — FIX HEADER LOGO */
#screen-chat .topbar .brand img.shkett-orb {
    opacity: 1 !important;
    width: 56px !important;
    height: 56px !important;
    object-fit: contain !important;
    clip-path: none !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}


/* SHKETT HEADER LOGO — TRANSPARENT */
#screen-chat .topbar .brand img.shkett-orb {
    background: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    clip-path: none !important;
    object-fit: contain !important;
    opacity: 1 !important;
}


/* SHKETT — MATCH LOGO TO MOBILE BACKGROUND */
#screen-chat .topbar .brand img.shkett-orb,
img.st-orb,
img.shkett-auth-logo {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    clip-path: circle(49% at 50% 50%);
    overflow: hidden;
}

/* =========================================================
   SHKETT — CHAT QUICK ACTIONS ABOVE COMPOSER
   ========================================================= */

#screen-chat .chat-bottom {
    display: flex;
    flex-direction: column;
}

#screen-chat .quick-actions {
    order: -1;
    padding-top: 0;
    padding-bottom: 8px;
}

/* =========================================
   SHKETT MOBILE — LIFETIME PRO
   ========================================= */

.st-lifetime-card,
.st-lifetime-active {
    position: relative;
    margin: 22px 20px;
    padding: 22px;
    border: 1px solid rgba(137, 104, 255, 0.35);
    border-radius: 20px;
    background:
        radial-gradient(
            circle at top right,
            rgba(117, 74, 255, 0.17),
            transparent 65%
        ),
        linear-gradient(
            145deg,
            #07172b,
            #0a1022
        );
    color: #eaf2ff;
}

.st-lifetime-card[hidden],
.st-lifetime-active[hidden],
#st-manage-plan[hidden] {
    display: none !important;
}

.st-lifetime-heading,
.st-lifetime-active {
    align-items: flex-start;
    gap: 14px;
}

.st-lifetime-heading {
    display: flex;
    margin-bottom: 20px;
}

.st-lifetime-active:not([hidden]) {
    display: flex;
}

.st-lifetime-symbol,
.st-lifetime-active-icon {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: rgba(149, 105, 255, 0.17);
    color: #c4a9ff;
    font-size: 27px;
}

.st-lifetime-heading small,
.st-lifetime-active small {
    display: block;
    margin-bottom: 7px;
    color: #b59aff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.st-lifetime-heading strong,
.st-lifetime-active strong {
    display: block;
    font-size: 17px;
    font-weight: 750;
}

.st-lifetime-heading p,
.st-lifetime-active p {
    margin: 8px 0 0;
    color: #a8b9d0;
    font-size: 12px;
    line-height: 1.6;
}

#st-lifetime-form label {
    display: block;
    margin-bottom: 9px;
    color: #9eafca;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1.2px;
}

#st-lifetime-code {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-width: 0;
    padding: 15px 13px;
    border: 1px solid rgba(99, 163, 255, 0.28);
    border-radius: 12px;
    outline: none;
    background: #061022;
    color: #f0f6ff;
    font-size: 12px;
    letter-spacing: 0.3px;
}

#st-lifetime-code:focus {
    border-color: #9b85ff;
    box-shadow: 0 0 0 3px rgba(155, 133, 255, 0.12);
}

#st-lifetime-activate {
    width: 100%;
    min-height: 47px;
    margin-top: 12px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(
        135deg,
        #a78aff,
        #6850d9
    );
    color: white;
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
}

#st-lifetime-activate:disabled {
    opacity: 0.55;
    cursor: wait;
}

.st-lifetime-status {
    margin: 11px 0 0;
    color: #b8c9e1;
    font-size: 12px;
    line-height: 1.5;
}

.st-lifetime-status:empty {
    display: none;
}

.st-lifetime-status[data-state="error"] {
    color: #ff8498;
}

#st-account-plan {
    text-align: right;
}

.shkett-ai-report-button {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin: 6px 0 10px 48px;
    padding: 6px 11px;
    border: 1px solid rgba(160, 160, 190, .22);
    border-radius: 10px;
    background: rgba(120, 120, 160, .08);
    color: #a6a8bc;
    font-size: 12px;
    cursor: pointer;
    transition: .2s ease;
}

.shkett-ai-report-button:hover {
    color: #fff;
    border-color: rgba(170, 130, 255, .5);
    background: rgba(140, 90, 255, .15);
}

.shkett-ai-report-button:disabled {
    opacity: .65;
    cursor: default;
}

.shkett-ai-report-dialog {
    width: min(420px, calc(100vw - 32px));
    max-height: 85vh;
    overflow-y: auto;
    padding: 25px;
    border: 1px solid rgba(165, 130, 255, .3);
    border-radius: 20px;
    background: #171824;
    color: #f5f5ff;
    box-shadow: 0 24px 90px rgba(0, 0, 0, .55);
}

.shkett-ai-report-dialog::backdrop {
    background: rgba(0, 0, 0, .75);
    backdrop-filter: blur(6px);
}

.shkett-ai-report-dialog form,
.shkett-ai-report-dialog label {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shkett-ai-report-dialog label {
    font-size: 13px;
    margin-top: 12px;
}

.shkett-ai-report-dialog select,
.shkett-ai-report-dialog textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    border: 1px solid #38384e;
    border-radius: 10px;
    background: #222334;
    color: white;
    font: inherit;
}

.shkett-report-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.shkett-report-actions button {
    padding: 10px 15px;
    border: 1px solid #45445d;
    border-radius: 10px;
    background: #29293d;
    color: white;
    cursor: pointer;
}

.shkett-report-actions [data-submit] {
    background: #7551e8;
    border-color: #7551e8;
}

.shkett-report-status {
    font-size: 13px;
    color: #c6b5ff;
}

/* SHKETT — Compact AI Report */

.assistant-message .shkett-ai-report-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: fit-content;
    min-width: 0;
    height: auto;
    margin: 10px 0 0;
    padding: 3px 5px;

    background: transparent;
    border: none;
    border-radius: 5px;
    box-shadow: none;

    color: #70829a;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.3;

    cursor: pointer;
    opacity: 0.65;
    transition: color 0.2s, opacity 0.2s;
}

.assistant-message .shkett-ai-report-button:hover {
    color: #59baff;
    opacity: 1;
    background: transparent;
}

.assistant-message .shkett-ai-report-button:disabled {
    color: #6e9f91;
    opacity: 0.8;
    cursor: default;
}

/* SHKETT — AI message actions below bubble */

.assistant-message {
    display: grid;
    grid-template-columns: 48px minmax(0, max-content);
    column-gap: 12px;
    align-items: start;
    justify-content: start;
}

.assistant-message .message-orb {
    grid-column: 1;
    grid-row: 1 / 3;
}

.assistant-message .message-bubble {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    max-width: 100%;
}

.assistant-message .shkett-message-actions {
    grid-column: 2;
    grid-row: 2;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;

    margin-top: 5px;
    padding-left: 3px;
}

.assistant-message .shkett-ai-report-button {
    display: inline-flex;
    align-items: center;

    width: auto;
    min-width: 0;
    height: 24px;
    margin: 0;
    padding: 2px 5px;

    background: transparent;
    border: none;
    box-shadow: none;

    color: #78889e;
    font-size: 11px;
    font-weight: 400;
    line-height: 1;

    opacity: 0.7;
    cursor: pointer;

    transition: color 0.2s, opacity 0.2s;
}

.assistant-message .shkett-ai-report-button:hover {
    color: #58baff;
    opacity: 1;
    background: transparent;
}

.assistant-message .shkett-ai-report-button:disabled {
    color: #76a99b;
    opacity: 0.8;
    cursor: default;
}

/* SHKETT — Report strictly below AI message */

.assistant-message {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 12px !important;
}

.assistant-message .message-orb {
    flex: 0 0 auto;
}

.assistant-message .shkett-message-body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    max-width: calc(100% - 60px);
}

.assistant-message .shkett-message-body > .message-bubble {
    width: fit-content;
    max-width: 100%;
    box-sizing: border-box;
}

.assistant-message .shkett-message-body > .shkett-message-actions {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    align-self: flex-start;
    width: auto;
    margin: 5px 0 0 5px;
    padding: 0;
}

.assistant-message .shkett-ai-report-button {
    display: inline-flex;
    width: auto;
    min-width: 0;
    height: 22px;
    margin: 0;
    padding: 2px 4px;
    background: transparent;
    border: 0;
    box-shadow: none;
    font-size: 11px;
    color: #78889e;
    opacity: 0.75;
}

/* SHKETT — Wider AI message bubbles */

.assistant-message .shkett-message-body {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    max-width: calc(100% - 60px);
}

.assistant-message .shkett-message-body > .message-bubble {
    width: fit-content;
    min-width: min(290px, 100%);
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.assistant-message .shkett-message-body > .shkett-message-actions {
    align-self: flex-start;
    margin-top: 6px;
}

/* SHKETT — Wider user message bubbles */

.user-message {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    width: 100%;
}

.user-message .message-bubble {
    width: fit-content;
    min-width: min(180px, 100%);
    max-width: min(80%, 420px);

    box-sizing: border-box;
    padding: 16px 20px;

    overflow-wrap: break-word;
    white-space: pre-wrap;
    text-align: left;
}

/* SHKETT — Fix user message width */

#screen-chat .chat-content .message.user-message {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-items: flex-start !important;

    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

#screen-chat .chat-content .message.user-message > .message-bubble {
    display: block !important;

    flex: 0 1 auto !important;
    width: max-content !important;
    min-width: 180px !important;
    max-width: min(83%, 420px) !important;

    box-sizing: border-box !important;
    white-space: pre-wrap !important;
    overflow-wrap: break-word !important;

    padding: 16px 20px !important;
}

/* =========================================
   SHKETT — CHAT ALIGNMENT & MESSAGE WIDTH
   ========================================= */

/* User messages — closer to the right edge */
#screen-chat .chat-content .message.user-message {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    padding-right: 0 !important;

    display: flex !important;
    justify-content: flex-end !important;
}

/* User bubble */
#screen-chat .chat-content .user-message > .message-bubble {
    width: max-content !important;
    min-width: 180px !important;
    max-width: min(85%, 440px) !important;
}

/* Assistant message — allow more horizontal space */
#screen-chat .chat-content .message.assistant-message {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    justify-content: flex-start !important;
}

/* Assistant bubble and actions container */
#screen-chat .chat-content .assistant-message .shkett-message-body {
    flex: 1 1 auto !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
}

/* Assistant bubble — wider toward the right */
#screen-chat .chat-content .assistant-message .shkett-message-body > .message-bubble {
    width: fit-content !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* Report stays below the bubble */
#screen-chat .chat-content .assistant-message .shkett-message-actions {
    margin-top: 6px;
    margin-left: 5px;
}

/* =========================================
   SHKETT — CHAT LEFT / RIGHT ALIGNMENT
   ========================================= */

/* User messages — move right */
#screen-chat .chat-content .message.user-message {
    position: relative !important;
    left: 16px !important;
}

/* Assistant messages — move left */
#screen-chat .chat-content .message.assistant-message {
    position: relative !important;
    left: -16px !important;
}

/* Keep assistant icon and message aligned */
#screen-chat .chat-content .assistant-message .message-orb {
    flex-shrink: 0 !important;
}

/* Keep Report below assistant bubble */
#screen-chat .chat-content .assistant-message .shkett-message-actions {
    margin-top: 6px !important;
}

/* SHKETT — User messages aligned to the right */

#screen-chat .chat-content .message.user-message {
    position: static !important;
    transform: none !important;

    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-self: stretch !important;

    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 4px 0 0 !important;
    box-sizing: border-box !important;
}

#screen-chat .chat-content .message.user-message > .message-bubble {
    flex: 0 1 auto !important;
    width: max-content !important;
    min-width: 180px !important;
    max-width: min(85%, 440px) !important;

    margin: 0 !important;
    box-sizing: border-box !important;
}

/* SHKETT — User messages: correct right alignment */

#screen-chat .chat-content > .message.user-message {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-end !important;
    align-self: stretch !important;

    position: static !important;
    transform: none !important;

    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 8px 0 0 !important;
    box-sizing: border-box !important;
}

#screen-chat .chat-content > .message.user-message > .message-bubble {
    flex: 0 1 auto !important;
    width: max-content !important;
    min-width: 180px !important;
    max-width: min(85%, 440px) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}


/* ==========================================
   SHKETT — PREMIUM AI REPORT DIALOG
   ========================================== */

dialog.shkett-ai-report-dialog {
    position: fixed;
    inset: 0;
    width: min(92vw, 680px);
    max-width: 680px;
    max-height: min(88dvh, 850px);
    margin: auto;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;

    color: #eef4ff;
    background: linear-gradient(145deg, #07182d, #050d1a 85%);
    border: 1px solid #2373d5;
    border-radius: 24px;
    box-shadow: 0 25px 90px #000b, 0 0 32px #096bd31c;
    font-family: inherit;
}

dialog.shkett-ai-report-dialog::backdrop {
    background: rgba(0, 5, 15, 0.82);
    backdrop-filter: blur(9px);
}

.shkett-ai-report-dialog .shkett-report-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 30px;
    margin: 0;
}

.shkett-ai-report-dialog .shkett-report-heading {
    display: flex;
    align-items: flex-start;
    gap: 17px;
    position: relative;
}

.shkett-ai-report-dialog .shkett-report-symbol {
    flex: 0 0 58px;
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    border: 1px solid #376cf8;
    border-radius: 50%;
    background: #12244b;
    box-shadow: 0 0 22px #1876ff33;
    color: #99a4ff;
    font-size: 30px;
}

.shkett-ai-report-dialog .shkett-report-heading-text {
    flex: 1;
    min-width: 0;
    padding-right: 28px;
}

.shkett-ai-report-dialog h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(20px, 4vw, 27px);
    line-height: 1.2;
    font-weight: 750;
}

.shkett-ai-report-dialog .shkett-report-heading p {
    margin: 0;
    color: #91a7cb;
    font-size: 13px;
    line-height: 1.6;
}

.shkett-ai-report-dialog .shkett-report-close {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid #294466;
    border-radius: 10px;
    background: #0b1a31;
    color: #b9c8e6;
    font-size: 23px;
    cursor: pointer;
}

.shkett-ai-report-dialog .shkett-report-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

.shkett-ai-report-dialog .shkett-report-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.shkett-ai-report-dialog .shkett-report-label-row strong {
    color: #f3f7ff;
    font-size: 14px;
}

.shkett-ai-report-dialog .shkett-report-label-row span,
.shkett-ai-report-dialog .shkett-report-label-row small {
    color: #8197bc;
    font-size: 11px;
    font-weight: 400;
}

.shkett-ai-report-dialog .shkett-report-reasons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.shkett-ai-report-dialog .shkett-report-reason {
    display: block;
    position: relative;
    cursor: pointer;
}

.shkett-ai-report-dialog .shkett-report-reason input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.shkett-ai-report-dialog .shkett-report-reason > span {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 66px;
    padding: 12px;
    box-sizing: border-box;
    border: 1px solid #294260;
    border-radius: 13px;
    background: #0b1b30;
    color: #c9d7ef;
    font-size: 12px;
    line-height: 1.35;
    transition: border-color .2s, background .2s, box-shadow .2s;
}

.shkett-ai-report-dialog .shkett-report-reason b {
    flex: 0 0 28px;
    color: #8fb8ff;
    font-size: 20px;
    text-align: center;
}

.shkett-ai-report-dialog .shkett-report-reason input:checked + span {
    background: #0c2a50;
    border-color: #168eff;
    box-shadow: inset 0 0 0 1px #168eff, 0 0 15px #167bff22;
    color: white;
}

.shkett-ai-report-dialog .shkett-report-reason input:focus-visible + span {
    outline: 2px solid #8fbaff;
    outline-offset: 3px;
}

.shkett-ai-report-dialog textarea[name="details"] {
    display: block;
    width: 100%;
    min-height: 110px;
    padding: 15px;
    box-sizing: border-box;
    resize: vertical;
    background: #0b1b30;
    border: 1px solid #315177;
    border-radius: 13px;
    outline: none;
    color: #f3f7ff;
    font: inherit;
    font-size: 13px;
    line-height: 1.5;
}

.shkett-ai-report-dialog textarea[name="details"]:focus {
    border-color: #288fff;
}

.shkett-ai-report-dialog .shkett-report-counter {
    align-self: flex-end;
    color: #738bb1;
    font-size: 11px;
}

.shkett-ai-report-dialog .shkett-report-status {
    min-height: 18px;
    margin: 0;
    color: #9cb3d4;
    font-size: 12px;
    overflow-wrap: anywhere;
}

.shkett-ai-report-dialog .shkett-report-status[data-state="error"] {
    color: #ff9caa;
}

.shkett-ai-report-dialog .shkett-report-status[data-state="success"] {
    color: #7ce0bc;
}

.shkett-ai-report-dialog .shkett-report-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid #193552;
}

.shkett-ai-report-dialog .shkett-report-actions button {
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 12px;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.shkett-ai-report-dialog .shkett-report-actions [data-cancel] {
    background: #122138;
    border: 1px solid #365173;
    color: #e3ecff;
}

.shkett-ai-report-dialog .shkett-report-actions [data-submit] {
    background: linear-gradient(110deg, #2679f5, #7742ed);
    border: 1px solid #648eff;
    color: white;
    font-weight: 650;
    box-shadow: 0 5px 22px #4259f344;
}

.shkett-ai-report-dialog button:disabled {
    opacity: .55;
    cursor: wait;
}

@media (max-width: 480px) {
    dialog.shkett-ai-report-dialog {
        width: calc(100vw - 24px);
        max-height: 85dvh;
        border-radius: 19px;
    }

    .shkett-ai-report-dialog .shkett-report-form {
        padding: 20px 16px;
        gap: 19px;
    }

    .shkett-ai-report-dialog .shkett-report-symbol {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        font-size: 24px;
    }

    .shkett-ai-report-dialog .shkett-report-reasons {
        gap: 8px;
    }

    .shkett-ai-report-dialog .shkett-report-reason > span {
        padding: 9px;
        min-height: 66px;
        font-size: 11px;
    }

    .shkett-ai-report-dialog .shkett-report-reason b {
        flex-basis: 20px;
        font-size: 17px;
    }
}

/* =========================================
   SHKETT — COMPACT AI REPORT
   ========================================= */

dialog.shkett-ai-report-dialog {
    width: min(92vw, 440px) !important;
    max-width: 440px !important;
    max-height: min(85dvh, 600px) !important;
    border-radius: 20px !important;
}

.shkett-ai-report-dialog .shkett-report-form {
    padding: 22px !important;
    gap: 18px !important;
}

.shkett-ai-report-dialog .shkett-report-heading {
    gap: 12px !important;
    align-items: center !important;
}

.shkett-ai-report-dialog .shkett-report-symbol {
    flex: 0 0 38px !important;
    width: 38px !important;
    height: 38px !important;
    font-size: 19px !important;
}

.shkett-ai-report-dialog h3 {
    font-size: 20px !important;
    margin-bottom: 4px !important;
}

.shkett-ai-report-dialog .shkett-report-heading p {
    font-size: 11px !important;
    line-height: 1.45 !important;
}

.shkett-ai-report-dialog .shkett-report-section {
    gap: 9px !important;
}

.shkett-ai-report-dialog .shkett-report-label-row strong {
    font-size: 12px !important;
}

.shkett-ai-report-dialog .shkett-report-label-row span {
    font-size: 10px !important;
}

/* Reason dropdown */

.shkett-ai-report-dialog .shkett-report-select-wrap {
    position: relative;
    width: 100%;
}

.shkett-ai-report-dialog .shkett-report-select {
    display: block;
    width: 100%;
    height: 46px;
    padding: 0 14px;

    color: #eaf2ff;
    background: #0d2038;
    border: 1px solid #34577e;
    border-radius: 11px;

    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    outline: none;
}

.shkett-ai-report-dialog .shkett-report-select:focus {
    border-color: #2599ff;
    box-shadow: 0 0 0 2px #168eff25;
}

.shkett-ai-report-dialog .shkett-report-select option {
    background: #0d2038;
    color: #fff;
}

/* Details */

.shkett-ai-report-dialog textarea[name="details"] {
    min-height: 85px !important;
    padding: 12px !important;
    font-size: 12px !important;
}

.shkett-ai-report-dialog .shkett-report-actions {
    padding-top: 12px !important;
}

.shkett-ai-report-dialog .shkett-report-actions button {
    min-height: 40px !important;
    padding: 9px 15px !important;
    font-size: 12px !important;
}

@media (max-width: 480px) {
    dialog.shkett-ai-report-dialog {
        width: calc(100vw - 28px) !important;
    }

    .shkett-ai-report-dialog .shkett-report-form {
        padding: 18px !important;
        gap: 15px !important;
    }
}

/* SHKETT — Custom Report Reason Dropdown */

.shkett-ai-report-dialog .shkett-report-dropdown {
    position: relative;
    width: 100%;
}

.shkett-ai-report-dialog .shkett-report-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #34577e;
    border-radius: 11px;
    background: #0d2038;
    color: #eaf2ff;
    font: inherit;
    font-size: 13px;
    text-align: left;
    cursor: pointer;
}

.shkett-ai-report-dialog .shkett-report-dropdown-trigger:hover,
.shkett-ai-report-dialog .shkett-report-dropdown-trigger:focus-visible {
    border-color: #2599ff;
    outline: none;
}

.shkett-ai-report-dialog .shkett-report-chevron {
    color: #8caed7;
    font-size: 19px;
}

.shkett-ai-report-dialog .shkett-report-dropdown-menu[hidden] {
    display: none !important;
}

.shkett-ai-report-dialog .shkett-report-dropdown-menu {
    position: absolute;
    z-index: 50;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 6px;
    border: 1px solid #34577e;
    border-radius: 12px;
    background: #0a192d;
    box-shadow: 0 16px 35px #0009;
}

.shkett-ai-report-dialog .shkett-report-dropdown-menu button {
    display: block;
    width: 100%;
    min-height: 38px;
    padding: 9px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #dbe8ff;
    font: inherit;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
}

.shkett-ai-report-dialog .shkett-report-dropdown-menu button:hover,
.shkett-ai-report-dialog .shkett-report-dropdown-menu button:focus-visible {
    background: #123c68;
    outline: none;
}

/* SHKETT — Report dropdown chevron */

.shkett-ai-report-dialog .shkett-report-chevron {
    display: block;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    color: #a8caff;
    opacity: 1;
    transition: transform 0.2s ease, color 0.2s ease;
}

.shkett-ai-report-dialog
.shkett-report-dropdown-trigger[aria-expanded="true"]
.shkett-report-chevron {
    transform: rotate(180deg);
    color: #50b9ff;
}

.shkett-ai-report-dialog .shkett-report-dropdown-trigger {
    padding-right: 16px !important;
}

/* =========================================
   SHKETT MOBILE — CHAT ALIGNMENT FIX
   ========================================= */

/* User messages: compact bubbles aligned right */
#screen-chat .chat-content > .message.user-message {
    position: static !important;
    left: auto !important;
    transform: none !important;

    display: flex !important;
    justify-content: flex-end !important;

    width: 100% !important;
    max-width: 100% !important;
    padding-right: 0 !important;
}

/* Short messages no longer have forced width */
#screen-chat .chat-content > .message.user-message > .message-bubble {
    width: fit-content !important;
    min-width: 0 !important;
    max-width: min(85%, 440px) !important;

    flex: 0 1 auto !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

/* Assistant: move avatar and response slightly right */
#screen-chat .chat-content > .message.assistant-message {
    position: relative !important;
    left: 4px !important;
    transform: none !important;
    max-width: calc(100% - 4px) !important;
    box-sizing: border-box !important;
}

/* =========================================
   SHKETT — TOP HEADER ALIGNMENT
   ========================================= */

#screen-chat .topbar > .brand {
    position: relative;
    left: 8px;
}

/* SHKETT — image inside chat message */

#screen-chat .shkett-image-message {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  max-width: min(100%, 390px);
}

#screen-chat .shkett-chat-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 190px;
  object-fit: contain;
  border-radius: 12px;
  margin: 0 auto;
  background: rgba(0, 0, 0, 0.18);
}

#screen-chat .shkett-chat-image-caption {
  color: inherit;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

/* SHKETT — Meme Reactions */

#screen-chat .shkett-meme {
  width: 100%;
  max-width: 340px;
  margin: 12px 0 4px;
  overflow: hidden;
  border-radius: 14px;
}

#screen-chat .shkett-meme-image {
  display: block;
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  border-radius: 14px;
}

@media (max-width: 480px) {
  #screen-chat .shkett-meme {
    max-width: 100%;
    margin-top: 10px;
  }

  #screen-chat .shkett-meme-image {
    max-height: 300px;
  }
}