* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent
}

@view-transition {
    navigation: none
}

::view-transition-old(root) {
    animation: .12s ease both vtOut
}

::view-transition-new(root) {
    animation: .18s ease both vtIn
}

@keyframes vtOut {
    to {
        opacity: 0
    }
}

@keyframes vtIn {
    from {
        opacity: 0
    }
}

html,
body {
    touch-action: pan-y;
    overscroll-behavior-x: none
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #000;
    color: #fff;
    -webkit-font-smoothing: antialiased
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    position: sticky;
    top: 0;
    background: #000d;
    z-index: 5;
    view-transition-name: topbar
}

.out {
    color: #fff9;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500
}

.out:hover {
    color: #fff
}

.back-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: #ffffff0d;
    border: 1px solid #ffffff30;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .2s, border-color .2s;
}

.back-link:hover {
    background: #ffffff20;
    border-color: #ffffff50;
}

.media-picker {
    background: var(--tc1-color);
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--tc1-color) 70%, #000);
    box-shadow: 0 2px 6px #0002;
    color: #fff;
}

.media-picker:not(.has-file) #dropTxt {
    color: #000;
}

.media-picker:is(.dragging, .over) {
    background: color-mix(in srgb, var(--tc1-color) 85%, #fff);
}

.media-result {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    padding: 16px;
    border-radius: 16px;
    background: #d4d4da;
    text-align: center;
    font-size: 14px;
    font-weight: 400;
    color: #000;
}

@media(max-width:700px) {
    header {
        padding: 14px 16px
    }

}

.mini {
    display: block;
    height: 26px;
    width: auto
}

.hub {
    position: relative;
    z-index: 2;
    width: min(980px, 100%);
    margin: 0 auto;
    padding: 12px 20px 60px
}

.hub h1 {
    width: 100%;
    max-width: 440px;
    margin: 0 auto 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 220px));
    gap: 14px;
    margin: 8px 0 26px
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px;
    background: #111;
    border: 1px solid #252525;
    border-radius: 18px
}

.stat b {
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--tc1-color), var(--tc1-color));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.stat span {
    font-size: 11px;
    color: #fff6;
    text-transform: uppercase;
    letter-spacing: .14em
}

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px
}

.hub:has(.bot-tile, .json-tile, .section-tile) .tiles {
    grid-template-columns: minmax(0, 1fr);
    max-width: 440px;
    margin: 0 auto
}

.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 34px;
    min-height: 150px;
    padding: 20px;
    background: #111;
    border: 1px solid #252525;
    border-radius: 20px;
    color: #fff;
    text-decoration: none;
    transition: border-color .2s, transform .15s
}

.tile:hover {
    border-color: var(--tc1-color)
}

.tile:active {
    transform: scale(.97)
}

.tile.plain {
    min-height: 84px;
    justify-content: center
}

.ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--tc1-color), var(--tc1-color));
    font-size: 19px;
    font-weight: 800;
    box-shadow: 0 6px 20px color-mix(in srgb, var(--tc1-color) 35%, transparent)
}

.ico svg {
    width: 22px;
    height: 22px
}

.ico.pic {
    width: 54px;
    height: 54px;
    background: none;
    box-shadow: none;
    border-radius: 0
}

.ico.pic img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none
}

.tile strong {
    font-size: 16px;
    font-weight: 600;
    word-break: break-word
}

.tile.bot-tile,
.tile.media-tile,
.tile.json-tile,
.tile.section-tile {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    min-height: 58px;
    padding: 8px 44px 8px 18px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #070707 0%, #151515 100%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .1);
    transition: box-shadow .2s, background .2s, transform .12s ease;
    touch-action: manipulation;
    animation: rise .3s ease both;
    animation-delay: calc(var(--i, 0) * 30ms)
}

@keyframes rise {
    from {
        opacity: 0;
        translate: 0 6px
    }

    to {
        opacity: 1;
        translate: 0 0
    }
}

.tile.bot-tile::after,
.tile.media-tile::after,
.tile.json-tile::after,
.tile.section-tile::after {
    content: "";
    position: absolute;
    right: 20px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-top: 2px solid #fff6;
    border-right: 2px solid #fff6;
    transform: translateY(-50%) rotate(45deg);
    transition: transform .2s, border-color .2s
}

.tile.bot-tile strong,
.tile.media-tile strong,
.tile.json-tile strong,
.tile.section-tile strong {
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff
}

.tile.bot-tile .ico,
.tile.media-tile .ico,
.tile.section-tile .ico {
    flex: none;
    width: 42px;
    height: 42px;
    box-shadow: none;
    background: transparent
}

.tile.bot-tile .ico.pic,
.tile.media-tile .ico.pic,
.tile.section-tile .ico.pic {
    width: 42px;
    height: 42px
}

.tile.json-tile,
.tile.section-tile {
    justify-content: center;
    text-align: center
}

:root {
    --tc1-color: #26A5E4;
    --tc2-color: #ffffff;
    --tc3-color: var(--tc1-color)
}

.tile.tc1 {
    --hc: var(--tc1-color)
}

.tile.tc2 {
    --hc: var(--tc2-color)
}

.tile.tc3 {
    --hc: var(--tc1-color)
}

@media(hover:hover) {

    .tile.bot-tile:hover,
    .tile.media-tile:hover,
    .tile.json-tile:hover,
    .tile.section-tile:hover {
        background: linear-gradient(135deg, #0b0b0b 0%, #1b1b1b 100%);
        box-shadow: inset 0 0 0 1px var(--hc, color-mix(in srgb, var(--tc1-color) 55%, transparent)), inset 0 1px 0 rgba(255, 255, 255, .12)
    }

    .tile.bot-tile:hover::after,
    .tile.media-tile:hover::after,
    .tile.json-tile:hover::after,
    .tile.section-tile:hover::after {
        transform: translate(4px, -50%) rotate(45deg);
        border-color: var(--hc, var(--tc1-color))
    }
}

.tile.bot-tile:active,
.tile.media-tile:active,
.tile.json-tile:active,
.tile.section-tile:active {
    transform: scale(.98);
    box-shadow: inset 0 0 0 1px var(--hc, color-mix(in srgb, var(--tc1-color) 70%, transparent)), inset 0 1px 0 rgba(255, 255, 255, .12)
}

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

    .tile.bot-tile,
    .tile.media-tile,
    .tile.json-tile,
    .tile.section-tile {
        animation: none
    }

    ::view-transition-old(root),
    ::view-transition-new(root) {
        animation: none
    }
}

.sep {
    grid-column: 1/-1;
    width: 75%;
    justify-self: center;
    height: 2px;
    margin: 28px 0;
    border-radius: 999px;
    background: #ffffff;
    opacity: .2
}

.tile em {
    position: absolute;
    top: 18px;
    right: 18px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #222;
    color: #fff9;
    font-size: 12px;
    font-style: normal;
    font-weight: 700
}

.menu-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: flex;
    justify-content: center;
    overflow: hidden;
    pointer-events: none;
    background: #000
}

.menu-panel {
    position: relative;
    width: min(56.25vh, 100vw);
    height: 100%;
    overflow: hidden
}

.menu-panel video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center
}

.menu-shade {
    position: fixed;
    inset: 0;
    z-index: 1;
    background: #09070955;
    pointer-events: none
}

body:has(.menu-bg) header {
    background: transparent;
    backdrop-filter: none
}

@media(max-width:768px) {
    .menu-panel {
        width: 100%;
        height: 100%
    }

    .menu-panel video {
        object-fit: cover
    }
}

.big {
    display: block;
    width: 100%;
    max-width: 340px;
    padding: 19px;
    border-radius: 16px;
    text-align: center;
    background: linear-gradient(135deg, var(--tc1-color), var(--tc1-color));
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: .06em;
    text-decoration: none;
    box-shadow: 0 8px 30px color-mix(in srgb, var(--tc1-color) 45%, transparent)
}

.big:active {
    transform: scale(.97)
}

.grid {
    position: relative;
    z-index: 2;
    width: min(1200px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    padding: 28px 20px 60px
}

.card {
    min-width: 0;
    background: #111;
    border: 1px solid #252525;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color .2s
}

.card:hover {
    border-color: #555
}

.preview {
    position: relative;
    min-height: 260px;
    height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background-color: #181818;
    overflow: hidden
}

.preview.checker {
    background-color: #eee;
    background-image: linear-gradient(45deg, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%), linear-gradient(45deg, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%);
    background-size: 24px 24px;
    background-position: 0 0, 12px 12px
}

.preview img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    cursor: zoom-in;
    filter: drop-shadow(0 5px 16px #0003)
}

.sample {
    font-size: 56px;
    line-height: 1.2;
    text-align: center;
    word-break: break-word
}

.card-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px
}

.actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0
}

.dl,
.view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 11px 16px;
    border-radius: 12px;
    background: var(--tc1-color);
    color: white;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    border: 0;
    cursor: pointer
}

.view {
    background: #282828
}

.dl:hover {
    background: var(--tc1-color)
}

.view:hover {
    background: #393939
}

.dl svg,
.view svg {
    width: 16px;
    height: 16px
}

.viewer {
    position: fixed;
    inset: 0;
    z-index: 20;
    background: #000e;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 70px 24px 32px
}

.viewer.active {
    display: flex
}

.viewer img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 14px
}

.viewer-close {
    position: absolute;
    right: 20px;
    top: 20px;
    border: 0;
    background: #292929;
    color: #fff;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    font-size: 24px;
    cursor: pointer
}

@media(max-width:700px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 18px 14px 40px
    }

    .preview {
        height: 280px;
        min-height: 220px;
        padding: 20px
    }

    .card-info {
        padding: 13px
    }

    .actions {
        gap: 6px
    }

    .dl,
    .view {
        padding: 10px 12px
    }

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

    .tile {
        min-height: 130px;
        padding: 16px
    }

    .account summary {
        height: 48px
    }

    .account-name {
        max-width: 90px
    }
}

.empty {
    position: relative;
    z-index: 2;
    padding: 60px 24px;
    text-align: center;
    color: #fff6
}

.account {
    position: relative;
    margin-left: auto
}

.account summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 46px;
    padding: 0 14px 0 6px;
    border-radius: 999px;
    background: #171717;
    border: 1px solid #303030;
    color: #fff;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    transition: background .2s, border-color .2s
}

.account summary::-webkit-details-marker {
    display: none
}

.account summary:hover,
.account[open] summary {
    background: #252525;
    border-color: #ffffff
}

.account-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tc1-color), var(--tc1-color));
    font-size: 15px;
    font-weight: 800
}

.account-name {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600
}

.account-chevron {
    width: 14px;
    height: 14px;
    opacity: .6;
    transition: transform .2s
}

.account[open] .account-chevron {
    transform: rotate(180deg)
}

.account-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 0;
    width: max-content;
    padding: 8px;
    border-radius: 16px;
    background: #111;
    border: 1px solid #303030;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .6);
    z-index: 10
}

.account-info {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
    padding: 10px 12px 12px;
    border-bottom: 1px solid #252525;
    margin-bottom: 6px;
    white-space: nowrap
}

.account-info span {
    font-size: 11px;
    color: #fff6;
    text-transform: uppercase;
    letter-spacing: .1em
}

.account-info b {
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.account-menu a {
    display: block;
    padding: 11px 12px;
    border-radius: 10px;
    color: var(--tc1-color);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none
}

.account-menu a:hover {
    background: #1e1e1e
}

.account-menu #photoBtn {
    color: #fff
}

.photo-row {
    display: flex;
    align-items: center;
    gap: 4px
}

.photo-row #photoBtn {
    flex: 1
}

.account-menu #photoDel {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    padding: 0;
    color: var(--tc1-color)
}

.account-menu #photoDel svg {
    width: 14px;
    height: 14px
}

.account-menu #photoDel:hover {
    background: var(--tc1-color)
}

@media(min-width:900px) {
    header {
        padding-left: max(24px, calc((100vw - 980px)/2 + 20px));
        padding-right: max(24px, calc((100vw - 980px)/2 + 20px))
    }

    body:has(> main.dshell)>header,
    body:has(> main.jshell)>header {
        padding-left: max(20px, calc((100vw - 1060px)/2 + 20px));
        padding-right: max(20px, calc((100vw - 1060px)/2 + 20px))
    }

    .account summary {
        height: 44px
    }

    .account-name {
        max-width: 180px
    }
}

.tile.bot-tile::after,
.tile.media-tile::after,
.tile.json-tile::after,
.tile.section-tile::after {
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease, border-color .2s ease
}

.tile.bot-tile::after,
.tile.media-tile::after,
.tile.json-tile::after,
.tile.section-tile::after {
    opacity: 1;
    border-color: var(--hc, var(--tc1-color));
    transition: transform .2s ease, border-color .2s ease
}

.account-menu .account-info {
    position: relative;
    border-bottom: none
}

.account-menu .account-info::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 0;
    border-bottom: 1px solid #252525
}

.account-menu .account-info span {
    display: none
}

.account-menu a[href="/logout"] {
    position: relative;
    margin-top: 13px
}

.account-menu a[href="/logout"]::before {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    top: -7px;
    border-top: 1px solid #252525
}

.account-menu #photoDel {
    transform: translateX(-6px)
}

:root {
    --accent: #ffffff
}

.vnav {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 22px
}

.vtab {
    border: 1px solid #262626;
    background: #111;
    color: #aaa;
    border-radius: 12px;
    padding: 12px 18px;
    cursor: pointer;
    font: 600 13px Inter, sans-serif;
    transition: .2s
}

.vtab.active {
    background: var(--tc1-color);
    color: white;
    border-color: var(--tc1-color)
}

.vpanel {
    display: none
}

.vpanel.active {
    display: block
}

.vpanel h2 {
    font-size: 16px;
    margin: 0 0 15px;
    font-weight: 750
}

.vcards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start
}

.vcard {
    background: #111;
    border: 1px solid #272727;
    border-radius: 16px;
    padding: 19px;
    min-width: 0
}

.vcard.full {
    grid-column: 1/-1
}

.vshell {
    width: min(1060px, 100%);
    margin: auto;
    padding: 22px 20px 60px
}

.vtop h1 {
    font-size: 24px;
    margin: 0 0 26px;
    font-weight: 800;
    letter-spacing: .02em
}

.vempty {
    color: #777;
    font-size: 13px;
    padding: 8px 2px
}

.pw-modal {
    position: fixed;
    inset: 0;
    z-index: 30;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #000c
}

.pw-modal.active {
    display: flex
}

.pw-box {
    width: min(380px, 100%);
    padding: 20px;
    border-radius: 20px;
    background: #111;
    border: 1px solid #303030;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .6)
}

.pw-box h3 {
    margin: 0 0 16px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: .02em
}

.pw-box input {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    padding: 13px;
    border-radius: 12px;
    border: 1px solid #303030;
    background: #171717;
    color: #fff;
    font: inherit
}

.pw-box input:focus {
    outline: none;
    border-color: var(--tc1-color)
}

.pw-msg {
    min-height: 18px;
    margin: 2px 0 10px;
    font-size: 13px;
    color: var(--tc1-color);
    text-align: center
}

.pw-msg.ok {
    color: #7dffa8
}

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

.pw-actions button {
    flex: 1;
    padding: 13px;
    border: 0;
    border-radius: 12px;
    font: inherit;
    font-weight: 700;
    color: #fff;
    cursor: pointer
}

.pw-actions .pw-cancel {
    background: #282828
}

.pw-actions .pw-save {
    background: var(--tc1-color)
}

.pw-actions button:disabled {
    opacity: .5;
    cursor: default
}

:root {
    --javana-button-speed: .18s;
    --javana-button-ease: cubic-bezier(.2, .8, .2, 1)
}

:where(button, .back-link, .dl, .view, [role="button"]) {
    font-family: inherit;
    -webkit-tap-highlight-color: transparent
}

:where(button, .back-link, .dl, .view, [role="button"]):focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px
}

:where(button, .back-link, .dl, .view, [role="button"]):disabled {
    cursor: not-allowed;
    opacity: .55
}

.javana-button {
    transition-duration: var(--javana-button-speed);
    transition-timing-function: var(--javana-button-ease)
}

.javana-confirm {
    width: min(390px, calc(100vw - 32px));
    max-width: 100%;
    padding: 24px;
    border: 1px solid #343434;
    border-radius: 18px;
    background: #131313;
    color: #fff;
    box-shadow: 0 24px 70px #000a;
    font-family: inherit
}

.javana-confirm::backdrop {
    background: #000b;
    backdrop-filter: blur(6px)
}

.javana-confirm-message {
    font-size: 16px;
    line-height: 1.5;
    margin: 0 0 22px;
    text-align: center
}

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

.javana-confirm-actions button {
    flex: 1;
    min-height: 44px;
    border: 1px solid #303030;
    border-radius: 12px;
    background: #262626;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .18s, border-color .18s, transform .18s
}

.javana-confirm-actions button:hover {
    background: #333
}

.javana-confirm-actions button:active {
    transform: scale(.97)
}

.javana-confirm-actions .javana-confirm-accept {
    background: var(--tc1-color);
    border-color: var(--tc1-color)
}

.javana-confirm-actions .javana-confirm-accept:hover {
    background: var(--tc1-color)
}

.javana-action {
    min-height: 44px;
    transform-origin: center
}

.javana-action.big {
    min-height: 46px
}

.javana-action:not(:disabled):active {
    transform: scale(.985)
}

@media(prefers-reduced-motion:reduce) {
    .javana-button {
        transition-duration: 0s !important
    }
}

html body>header {
    background: linear-gradient(135deg, #070707 0%, #151515 100%) !important;
    background-color: #070707 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    opacity: 1 !important;
    filter: none !important;
}

body>header .google-account {
    margin-left: auto;
}

html body>header {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #070707 0%, #151515 100%) !important;
    background-image: linear-gradient(135deg, #070707 0%, #151515 100%) !important;
    opacity: 1 !important;
    position: sticky !important;
    top: 0;
    z-index: 1000;
}