/* 3d_style.css - 3D Architecture, Android Transitions & Yahoo-Style Split Inbox */

body, html {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden; 
    background-color: #0d0d0d;
}

.scene {
    width: 100vw;
    height: 100vh;
    perspective: 1500px;
    position: relative;
    overflow: hidden;
    overflow: clip;
    pointer-events: none;
}

.app-container {
    width: 100vw;
    height: 100vh;
    position: absolute;
    pointer-events: none;
}

.screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-dark, #0d0d0f);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    pointer-events: none !important;
    visibility: hidden;
    z-index: 1;
}

.app-container.view-inbox .screen-inbox,
.app-container.view-chat .screen-chat,
.app-container.view-vault .screen-vault {
    pointer-events: auto !important;
    visibility: visible !important;
    z-index: 50 !important;
}

.chat-history {
    flex: 1;
    overflow-y: auto;
}

.chat-input-area {
    flex-shrink: 0;
    margin-bottom: 75px !important;
    position: relative;
    z-index: 10;
}

.vault-gallery {
    padding-bottom: 90px !important;
}

/* ANDROID-STYLE ANIMÁCIÓK */
.effect-cube {
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.effect-cube .screen { backface-visibility: hidden; }
.effect-cube .screen-inbox { transform: rotateY(-90deg) translateZ(50vw); }
.effect-cube .screen-chat { transform: rotateY(0deg) translateZ(50vw); }
.effect-cube .screen-vault { transform: rotateY(90deg) translateZ(50vw); }

.effect-cube.view-inbox { transform: translateZ(-50vw) rotateY(90deg); }
.effect-cube.view-chat { transform: translateZ(-50vw) rotateY(0deg); }
.effect-cube.view-vault { transform: translateZ(-50vw) rotateY(-90deg); }

.effect-flip {
    transform-style: preserve-3d;
    transition: transform 0.6s ease-in-out;
}
.effect-flip .screen { backface-visibility: hidden; }
.effect-flip .screen-inbox { transform: rotateY(-180deg); }
.effect-flip .screen-chat { transform: rotateY(0deg); }
.effect-flip .screen-vault { transform: rotateY(180deg); }

.effect-flip.view-inbox { transform: rotateY(180deg); }
.effect-flip.view-chat { transform: rotateY(0deg); }
.effect-flip.view-vault { transform: rotateY(-180deg); }

.effect-scale .screen {
    transition: transform 0.5s ease, opacity 0.5s ease;
    transform: scale(0.8);
    opacity: 0;
}
.effect-scale.view-inbox .screen-inbox { transform: scale(1); opacity: 1; }
.effect-scale.view-chat .screen-chat { transform: scale(1); opacity: 1; }
.effect-scale.view-vault .screen-vault { transform: scale(1); opacity: 1; }

.effect-slide .screen {
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.effect-slide.view-inbox .screen-inbox { transform: translateX(0); }
.effect-slide.view-inbox .screen-chat { transform: translateX(100vw); }
.effect-slide.view-inbox .screen-vault { transform: translateX(200vw); }

.effect-slide.view-chat .screen-inbox { transform: translateX(-100vw); }
.effect-slide.view-chat .screen-chat { transform: translateX(0); }
.effect-slide.view-chat .screen-vault { transform: translateX(100vw); }

.effect-slide.view-vault .screen-inbox { transform: translateX(-200vw); }
.effect-slide.view-vault .screen-chat { transform: translateX(-100vw); }
.effect-slide.view-vault .screen-vault { transform: translateX(0); }

/* YAHOO DARK MODE INBOX + SPLIT-SCREEN & CHAT THREAD DESIGN */
.ymail-container {
    width: 100%;
    height: 100%;
    background-color: #0e0e11;
    display: flex;
    flex-direction: column;
    padding: 12px 20px 85px 20px;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #e2e2e7;
    pointer-events: auto !important;
}

.ymail-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-left: 165px;
}

.ymail-settings-btn {
    background: transparent;
    color: #c4c4cc;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 6px 14px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}
.ymail-settings-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.ymail-status-badge {
    font-size: 11px;
    color: #8a8a98;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 12px;
    border-radius: 12px;
}

.ymail-workspace {
    display: flex;
    flex: 1;
    gap: 14px;
    overflow: hidden;
    pointer-events: auto !important;
}

.ymail-sidebar {
    width: 155px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    user-select: none;
}

.ymail-new-msg-btn {
    background: #a485f7;
    color: #121216;
    border: none;
    border-radius: 24px;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
    box-shadow: 0 4px 14px rgba(164, 133, 247, 0.25);
    transition: transform 0.15s, background 0.2s;
}
.ymail-new-msg-btn:hover {
    background: #b59aff;
    transform: translateY(-1px);
}

.ymail-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
}

.ymail-nav-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #9e9ea9;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
    margin-bottom: 2px;
}
.ymail-nav-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}
.ymail-nav-item.active {
    color: #ffffff;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
}

.ymail-nav-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.ymail-nav-icon {
    font-size: 14px;
    width: 18px;
    text-align: center;
}

.ymail-badge {
    background: #3a3b42;
    color: #e2e2e7;
    font-size: 11px;
    font-weight: 600;
    padding: 1px 7px;
    border-radius: 10px;
}

.ymail-nav-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.07);
    margin: 10px 8px;
}

.ymail-center-panel {
    flex: 1;
    background: #1c1c21;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    pointer-events: auto !important;
}

/* BIZTOSÍTOTT PANEL VÁLTÁS CSS SZINTEN IS */
.ymail-list-view {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ymail-reader-view {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
    background: #1c1c21;
    z-index: 10;
}

.ymail-toolbar {
    height: 46px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.15);
}

.ymail-toolbar-left, .ymail-toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ymail-checkbox {
    width: 15px;
    height: 15px;
    accent-color: #a485f7;
    cursor: pointer;
}

.ymail-dropdown-arrow {
    color: #8c8c98;
    font-size: 14px;
    cursor: pointer;
}

.ymail-search-inline {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 5px 12px;
    border-radius: 14px;
    font-size: 12px;
    width: 240px;
    outline: none;
    margin-left: 10px;
}
.ymail-search-inline:focus {
    border-color: #a485f7;
}

.ymail-email-list {
    flex: 1;
    overflow-y: auto;
}

.ymail-row {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer !important;
    position: relative;
    transition: background 0.1s;
    gap: 12px;
    user-select: none;
    pointer-events: auto !important;
}

.ymail-row:hover {
    background: #121216;
}

.ymail-row.unread {
    background: rgba(255, 255, 255, 0.02);
}
.ymail-row.unread:hover {
    background: #121216;
}

.ymail-unread-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #a485f7;
    flex-shrink: 0;
}
.ymail-unread-spacer {
    width: 7px;
    flex-shrink: 0;
}

.ymail-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
    text-transform: uppercase;
}

.ymail-sender {
    width: 175px;
    flex-shrink: 0;
    font-size: 13px;
    color: #d0d0d8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ymail-row.unread .ymail-sender {
    font-weight: 700;
    color: #ffffff;
}

.ymail-content-preview {
    flex: 1;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #8e8e9a;
}

.ymail-subject {
    color: #e2e2e7;
    font-weight: 500;
}
.ymail-row.unread .ymail-subject {
    font-weight: 700;
    color: #ffffff;
}

.ymail-group-tag {
    background: rgba(0, 255, 204, 0.12);
    color: #00ffcc;
    border: 1px solid rgba(0, 255, 204, 0.3);
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 8px;
    margin-right: 6px;
    font-weight: 600;
}

.ymail-meta-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-width: 85px;
    justify-content: flex-end;
}

.ymail-clip-icon {
    font-size: 13px;
    color: #9e9ea9;
}

.ymail-date {
    font-size: 12px;
    color: #9e9ea9;
}
.ymail-row.unread .ymail-date {
    font-weight: 700;
    color: #ffffff;
}

.ymail-hover-actions {
    display: none;
    align-items: center;
    gap: 6px;
    background: #121216;
    padding-left: 8px;
}

.ymail-row:hover .ymail-hover-actions {
    display: flex;
}
.ymail-row:hover .ymail-date {
    display: none;
}

.ymail-hover-btn {
    background: transparent;
    border: none;
    color: #a0a0ab;
    font-size: 14px;
    padding: 5px 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.ymail-hover-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}
.ymail-hover-btn.pin-btn:hover {
    color: #a485f7;
    background: rgba(164, 133, 247, 0.18);
}

.ymail-action-pill {
    background: rgba(255, 255, 255, 0.07);
    color: #e2e2e7;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.ymail-action-pill:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
}
.ymail-action-pill.pin-highlight {
    background: rgba(164, 133, 247, 0.15);
    border-color: rgba(164, 133, 247, 0.4);
    color: #cbb6ff;
}
.ymail-action-pill.pin-highlight:hover {
    background: #a485f7;
    color: #121216;
}

.ymail-mode-badge {
    font-size: 11px;
    padding: 3px 9px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: #a0a0ab;
}

.ymail-reader-content {
    flex: 1;
    padding: 22px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ymail-mail-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 14px;
}
.ymail-mail-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 10px 0;
}
.ymail-mail-submeta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #9e9ea9;
}

.ymail-mail-body {
    font-size: 14px;
    line-height: 1.6;
    color: #d8d8e0;
    white-space: pre-wrap;
}

.ymail-chat-thread {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 10px 0;
}

.ymail-chat-bubble {
    max-width: 78%;
    padding: 12px 16px;
    border-radius: 14px;
    background: #282932;
    color: #e2e2e7;
    align-self: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
}
.ymail-chat-bubble.me {
    align-self: flex-end;
    background: rgba(0, 255, 204, 0.14);
    border-color: rgba(0, 255, 204, 0.3);
}
.ymail-chat-author {
    font-size: 11px;
    font-weight: 700;
    color: #a485f7;
    margin-bottom: 4px;
}
.ymail-chat-bubble.me .ymail-chat-author {
    color: #00ffcc;
}
.ymail-chat-time {
    font-size: 10px;
    color: #8a8a98;
    margin-left: 8px;
}

.ymail-attachment-box {
    margin-top: 14px;
    padding: 12px 16px;
    background: rgba(164, 133, 247, 0.08);
    border: 1px solid rgba(164, 133, 247, 0.28);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.ymail-attachment-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #fff;
}
.ymail-vault-dl-btn {
    background: #a485f7;
    color: #121216;
    border: none;
    border-radius: 8px;
    padding: 7px 14px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}
.ymail-vault-dl-btn:hover {
    background: #b59aff;
}

.ymail-pinned-panel {
    width: 44%;
    background: #18181d;
    border: 1px solid rgba(164, 133, 247, 0.35);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: width 0.35s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.25s ease;
    box-shadow: -8px 0 25px rgba(0, 0, 0, 0.4);
}

.ymail-pinned-panel.collapsed {
    width: 0;
    opacity: 0;
    border-width: 0;
    pointer-events: none;
}

.pinned-toolbar {
    background: rgba(164, 133, 247, 0.12);
}

.ymail-pinned-title {
    font-size: 12px;
    font-weight: 700;
    color: #cbb6ff;
}

.ymail-icon-btn {
    background: transparent;
    border: none;
    color: #a0a0ab;
    font-size: 15px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}
.ymail-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.bottom-nav-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(10px);
    padding: 8px 15px;
    border-radius: 30px;
    display: flex;
    gap: 10px;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
    pointer-events: auto !important;
}

.nav-btn {
    background: transparent;
    color: var(--text-muted);
    border: none;
    padding: 10px 15px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.nav-btn.active {
    background: var(--accent);
    color: #fff;
}

.nav-btn:hover:not(.active) {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.effect-selector {
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.2);
    padding: 8px 10px;
    border-radius: 15px;
    font-size: 12px;
    outline: none;
    cursor: pointer;
    transition: border-color 0.3s;
}
.effect-selector:focus {
    border-color: var(--accent);
}
.effect-selector option {
    background: #1e1e1e;
}

/* =====================================================
   FOLDERS UI - saját mappák, almappák, lenyíló menük
   ===================================================== */

/* A bal sáv görgetősávja vékony és sötét */
.ymail-nav-list {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

/* Folders sor: jobbra három pont és nyíl */
.ymail-folders-controls {
    display: flex;
    align-items: center;
    gap: 4px;
}
.ymail-folders-arrow {
    font-size: 10px;
}

/* Három pontos gomb (Folders sor és mappasorok) */
.ymail-dots-btn {
    background: transparent;
    border: none;
    color: #9e9ea9;
    font-size: 16px;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, opacity 0.15s;
}
.ymail-dots-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

/* Lenyíló blokk a Folders sor alatt */
.ymail-folders-block {
    list-style: none;
    margin-bottom: 4px;
}

/* Lenyíló menük (sorrend és mappa menü): a lista részeként nyílnak le */
.ymail-folder-menu {
    background: #25252c;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 4px;
    margin: 2px 0 6px 6px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.ymail-folder-menu-item {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    color: #c4c4cc;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.15s, color 0.15s;
}
.ymail-folder-menu-item:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #ffffff;
}
.ymail-folder-menu-item[data-action="delete"]:hover {
    background: rgba(255, 77, 77, 0.14);
    color: #ff6b6b;
}

/* Sorrendmenü: az aktuális mód lila, előtte pipa */
.ymail-folder-menu-item[data-sort]::before {
    content: "";
    display: inline-block;
    width: 14px;
}
.ymail-folder-menu-item[data-sort].active {
    color: #b59aff;
    font-weight: 600;
}
.ymail-folder-menu-item[data-sort].active::before {
    content: "✓";
    color: #a485f7;
}

/* + New Folder sor */
.ymail-new-folder-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: #8a8a98;
    cursor: pointer;
    margin-bottom: 2px;
    transition: background 0.15s, color 0.15s;
}
.ymail-new-folder-row:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}
.ymail-new-folder-row .ymail-nav-icon {
    flex-shrink: 0;
}

/* Beviteli mezők (új mappa, átnevezés, új almappa) */
.ymail-folder-input {
    flex: 1;
    min-width: 0;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 12px;
    outline: none;
    user-select: text;
    -webkit-user-select: text;
}
.ymail-folder-input:focus {
    border-color: #a485f7;
}
.ymail-folder-input::placeholder {
    color: #6f6f7c;
}

/* Mappalista és mappasorok */
.ymail-folder-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ymail-folder-item {
    list-style: none;
}
.ymail-folder-sub {
    padding-left: 14px;
}
.ymail-folder-row {
    padding-right: 6px;
}
.ymail-folder-row .ymail-nav-left {
    flex: 1;
    min-width: 0;
}
.ymail-folder-row .ymail-nav-icon {
    flex-shrink: 0;
}
.ymail-folder-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* A mappasor három pontja csak hoverre látszik */
.ymail-folder-dots {
    flex-shrink: 0;
    opacity: 0;
}
.ymail-folder-item:hover .ymail-folder-dots {
    opacity: 1;
}
.ymail-folder-dots:focus-visible {
    opacity: 1;
}
/* Nyitott menünél is látható marad (külön szabály, hogy régi böngészőben se törjön el a hover) */
.ymail-folder-row:has(+ .ymail-folder-menu[style*="block"]) .ymail-folder-dots {
    opacity: 1;
}

/* CSEMPE GOMBOK: oldalsáv, alsó navigáció, levélolvasó (piktogramok nélkül) */
.ymail-new-msg-btn {
    border-radius: 6px;
    box-shadow: none;
}

.ymail-nav-item,
.ymail-new-folder-row {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    padding: 10px 12px;
    margin-bottom: 4px;
    font-weight: 500;
    color: #b4b4be;
}
.ymail-nav-item:hover,
.ymail-new-folder-row:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}
.ymail-nav-item.active {
    background: rgba(164, 133, 247, 0.16);
    border-color: #a485f7;
    color: #ffffff;
    font-weight: 600;
}
.ymail-nav-divider {
    background: transparent;
    height: 0;
    margin: 8px 0;
}

.bottom-nav-bar {
    border-radius: 10px;
    padding: 8px;
    gap: 6px;
}
.nav-btn {
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
}
.nav-btn.active {
    border-color: transparent;
}
.effect-selector {
    border-radius: 6px;
}

.ymail-action-pill,
.ymail-settings-btn {
    border-radius: 6px;
}

/* LEVÉLLISTA ÉS LEVÉLOLVASÓ: kurzorra reagáló műveletek */
.ymail-center-panel,
.ymail-reader-view,
.ymail-list-view {
    background: #333336;
}
.ymail-center-panel .ymail-toolbar {
    background: transparent;
    height: 56px;
    border-bottom-color: rgba(255, 255, 255, 0.14);
}
.ymail-center-panel .ymail-checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin: 0;
    background: transparent;
    border: 1.5px solid #d8d8dc;
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}
.ymail-center-panel .ymail-checkbox:checked {
    background: #ffffff;
}
.ymail-center-panel .ymail-checkbox:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 4px;
    height: 9px;
    border: solid #1c1c21;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.ymail-row {
    height: 55px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    gap: 14px;
    padding: 0 16px 0 20px;
}
.ymail-row:hover,
.ymail-row.unread:hover {
    background: #0c0c0e;
}
.ymail-avatar {
    color: #1c1c21;
    font-weight: 500;
    width: 30px;
    height: 30px;
}
.ymail-row-search {
    display: none;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    padding: 0;
    color: #ffffff;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}
.ymail-row-search:hover {
    background: rgba(255, 255, 255, 0.16);
}
.ymail-row:hover .ymail-avatar {
    display: none;
}
.ymail-row:hover .ymail-row-search {
    display: flex;
}
.ymail-sender,
.ymail-subject,
.ymail-content-preview,
.ymail-date {
    color: #f2f2f4;
    font-size: 14px;
}
.ymail-content-preview {
    color: #d4d4d8;
}

.ymail-hover-actions {
    background: transparent;
    gap: 4px;
    padding-left: 0;
}
.ymail-hover-btn,
.ymail-round-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    color: #ffffff;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.12s;
}
.ymail-hover-btn:hover,
.ymail-round-btn:hover,
.ymail-hover-btn.pin-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}
.ymail-round-btn:disabled {
    color: rgba(255, 255, 255, 0.28);
    background: transparent;
    cursor: default;
}
.ymail-hover-btn.is-on,
.ymail-round-btn.is-on {
    color: #f6bd60;
}

/* Olvasó eszköztár: bal, közép, jobb oldal */
.ymail-reader-toolbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
}
.ymail-reader-toolbar .ymail-toolbar-left {
    justify-self: start;
}
.ymail-reader-toolbar .ymail-toolbar-right {
    justify-self: end;
    gap: 2px;
}
.ymail-reader-actions {
    display: flex;
    align-items: center;
    gap: 2px;
}
.ymail-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 12px 0 8px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    border: none;
    border-radius: 19px;
    cursor: pointer;
    transition: background 0.12s;
}
.ymail-back-btn:hover {
    background: rgba(255, 255, 255, 0.16);
}

.ymail-reader-content {
    flex: 1;
}
.ymail-mail-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}
.ymail-mail-title-row .ymail-mail-title {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
}
.ymail-folder-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    color: #f2f2f4;
    font-size: 13px;
    background: #17171a;
    border-radius: 4px;
}
.ymail-folder-chip svg {
    width: 15px;
    height: 15px;
}
.ymail-mail-from {
    display: flex;
    align-items: center;
    gap: 12px;
}
.ymail-mail-from .ymail-avatar {
    width: 38px;
    height: 38px;
    font-size: 14px;
}
.ymail-mail-from-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
}
.ymail-mail-from-meta {
    margin-top: 2px;
    color: #c4c4cc;
    font-size: 13px;
}
.ymail-reader-view .ymail-mail-header {
    border-bottom: none;
    padding-bottom: 4px;
}
.ymail-reader-view .ymail-mail-body {
    color: #f2f2f4;
    padding-left: 50px;
}

.ymail-reader-footer {
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 16px;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.ymail-reply-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 22px;
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s;
}
.ymail-reply-pill:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.6);
}

/* FÉLREHÚZÁS JOBBRA: a TREZORPIPE egyedi funkciója, ezért a legfeltűnőbb gomb */
.ymail-pin-hero,
.ymail-hover-btn.ymail-pin-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff;
    font-weight: 700;
    white-space: nowrap;
    background: linear-gradient(135deg, #7c3aed, #c084fc);
    border: none;
    border-radius: 22px;
    box-shadow: 0 0 16px rgba(164, 133, 247, 0.65);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;
}
.ymail-pin-hero {
    height: 42px;
    padding: 0 18px;
    font-size: 14px;
}
.ymail-pin-hero-large {
    height: 52px;
    padding: 0 26px;
    font-size: 16px;
    border-radius: 26px;
}
.ymail-hover-btn.ymail-pin-row {
    width: auto;
    height: 40px;
    margin-right: 8px;
    padding: 0 16px;
    font-size: 13px;
}
.ymail-pin-hero:hover,
.ymail-hover-btn.ymail-pin-row:hover {
    color: #ffffff;
    background: linear-gradient(135deg, #7c3aed, #c084fc);
    filter: brightness(1.12);
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 0 26px rgba(192, 132, 252, 0.95);
}
.ymail-pinned-panel:not(.collapsed) {
    border: 2px solid #a485f7;
    box-shadow: 0 0 34px rgba(164, 133, 247, 0.45);
}
.ymail-pinned-panel .pinned-toolbar {
    height: 56px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.55), rgba(192, 132, 252, 0.3));
}
.ymail-pinned-title {
    font-size: 15px;
}

/* Felirat-buborék és lenyíló menü */
.ymail-tooltip {
    display: none;
    position: fixed;
    z-index: 4000;
    max-width: 360px;
    padding: 4px 8px;
    color: #1c1c21;
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #f2f2f4;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    pointer-events: none;
}
.ymail-popup-menu {
    position: fixed;
    z-index: 3000;
    min-width: 260px;
    max-height: 70vh;
    overflow-y: auto;
    padding: 6px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background: #333336;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}
.ymail-popup-item {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 12px;
    padding: 11px 12px;
    color: #ffffff;
    font-size: 14px;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}
.ymail-popup-item:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
}
.ymail-popup-item:disabled {
    color: rgba(255, 255, 255, 0.35);
    cursor: default;
}
.ymail-popup-divider {
    height: 1px;
    margin: 6px 0;
    background: rgba(255, 255, 255, 0.14);
}

/* Nyers levél */
.ymail-raw-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    background: #333336;
}
.ymail-raw-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.ymail-raw-text {
    flex: 1;
    margin: 0;
    padding: 16px;
    overflow: auto;
    color: #e2e2e7;
    font-size: 12px;
    font-family: Consolas, Menlo, monospace;
    white-space: pre-wrap;
    word-break: break-all;
}

/* NÉVJEGYZÉK */
.ymail-contacts-view {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #333336;
}
.ymail-contacts-form {
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    height: auto;
    min-height: 56px;
    padding: 8px 16px;
}
.ymail-contacts-form .ymail-search-inline {
    width: 220px;
    margin: 0;
}
.ymail-contact-error {
    color: #ff6b6b;
    font-size: 12px;
}
.ymail-contact-email {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    color: #d4d4d8;
    font-size: 14px;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.ymail-contacts-empty {
    padding: 32px 20px;
    color: #c4c4cc;
    font-size: 14px;
    text-align: center;
}
.ymail-row .ymail-contact-actions {
    display: none;
    align-items: center;
    gap: 4px;
}
.ymail-row:hover .ymail-contact-actions {
    display: flex;
}

/* BEÁLLÍTÁSOK */
.ymail-topbar {
    position: relative;
}
.ymail-settings-panel {
    position: absolute;
    top: 40px;
    inset-inline-start: 165px;
    z-index: 200;
    width: 260px;
    padding: 16px;
    color: #ffffff;
    background: #333336;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}
.ymail-settings-title {
    margin-bottom: 14px;
    font-size: 15px;
    font-weight: 700;
}
.ymail-settings-label {
    display: block;
    margin-bottom: 6px;
    color: #c4c4cc;
    font-size: 12px;
}
.ymail-settings-select {
    width: 100%;
    padding: 9px 10px;
    color: #ffffff;
    font-size: 14px;
    background: #1c1c21;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    outline: none;
    cursor: pointer;
}

/* JOBBRÓL BALRA ÍRÓ NYELVEK */
[dir="rtl"] .ymail-back-btn svg,
[dir="rtl"] .ymail-reply-pill svg,
[dir="rtl"] .ymail-reader-actions [data-reader-action^="reply"] svg,
[dir="rtl"] .ymail-reader-actions [data-reader-action="forward"] svg {
    transform: scaleX(-1);
}
.ymail-reader-view .ymail-mail-body {
    padding-left: 0;
    padding-inline-start: 50px;
}

/* MENÜK: ne csússzanak a képernyő szélére, új mappa mező */
.ymail-popup-menu {
    width: max-content;
    max-width: calc(100vw - 24px);
}
.ymail-popup-item {
    white-space: nowrap;
}
.ymail-popup-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    color: #ffffff;
    font-size: 14px;
    background: #1c1c21;
    border: 1px solid #a485f7;
    border-radius: 8px;
    outline: none;
}

/* Szűk eszköztár: a szálfelirat egy sorban marad, nyitott oldalsó panelnél a Félrehúzás csak ikon */
.ymail-reader-toolbar .ymail-mode-badge {
    white-space: nowrap;
}
.ymail-workspace:has(.ymail-pinned-panel:not(.collapsed)) .ymail-reader-toolbar .ymail-pin-hero {
    width: 42px;
    padding: 0;
}
.ymail-workspace:has(.ymail-pinned-panel:not(.collapsed)) .ymail-reader-toolbar .ymail-pin-hero [data-i18n] {
    display: none;
}

/* MOBIL ELRENDEZÉS */
.ymail-menu-btn,
.ymail-sidebar-overlay {
    display: none;
}

@media (hover: none) {
    .ymail-tooltip {
        display: none !important;
    }
}

@media (max-width: 768px) {
    body, html,
    .scene,
    .app-container,
    .screen {
        height: 100dvh;
    }

    input, textarea, select {
        font-size: 16px !important;
    }

    /* Felső sáv és menü */
    .ymail-container {
        padding: 8px 8px 72px 8px;
    }
    .ymail-topbar {
        justify-content: flex-start;
        gap: 8px;
        margin-bottom: 8px;
        padding-left: 0;
        padding-inline-start: 0;
    }
    .ymail-status-badge {
        display: none;
    }
    .ymail-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        padding: 0;
        color: #ffffff;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 6px;
        cursor: pointer;
    }
    .ymail-settings-btn {
        height: 42px;
    }
    .ymail-settings-panel {
        top: 50px;
        inset-inline-start: 0;
    }

    /* Oldalsáv: kicsúszó menü */
    .ymail-workspace {
        gap: 0;
    }
    .ymail-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        inset-inline-start: 0;
        z-index: 1100;
        width: min(78vw, 280px);
        padding: 16px 12px;
        overflow-y: auto;
        background: #0e0e11;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
    }
    [dir="rtl"] .ymail-sidebar {
        transform: translateX(100%);
    }
    .ymail-container.menu-open .ymail-sidebar {
        transform: translateX(0);
    }
    .ymail-container.menu-open .ymail-sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1050;
        background: rgba(0, 0, 0, 0.6);
    }
    .ymail-nav-item,
    .ymail-new-folder-row {
        min-height: 44px;
        box-sizing: border-box;
    }

    /* Levéllista: két soros, ujjal jól elérhető */
    .ymail-center-panel {
        min-width: 0;
        width: 100%;
    }
    .ymail-center-panel .ymail-toolbar {
        padding: 0 10px;
    }
    .ymail-search-inline {
        flex: 1;
        width: auto;
        min-width: 0;
        margin-inline-start: 4px;
    }
    .ymail-toolbar-left {
        flex: 1;
        min-width: 0;
    }
    .ymail-dropdown-arrow,
    .ymail-center-panel .ymail-toolbar > .ymail-toolbar-right > [data-icon="sliders"],
    #inbox-select-all {
        display: none;
    }
    .ymail-row {
        position: relative;
        display: grid;
        grid-template-columns: 34px 1fr auto auto;
        grid-template-areas:
            "avatar sender date more"
            "avatar preview preview more";
        align-items: center;
        column-gap: 8px;
        row-gap: 2px;
        height: auto;
        min-height: 64px;
        padding: 8px 8px 8px 12px;
    }
    .ymail-row .row-check,
    .ymail-row .ymail-row-search {
        display: none !important;
    }
    .ymail-row .ymail-unread-spacer {
        display: none;
    }
    .ymail-row .ymail-unread-dot {
        position: absolute;
        top: 8px;
        inset-inline-start: 4px;
    }
    .ymail-row .ymail-avatar,
    .ymail-row:hover .ymail-avatar {
        display: flex;
        grid-area: avatar;
        width: 34px;
        height: 34px;
    }
    .ymail-row .ymail-sender {
        grid-area: sender;
        width: auto;
        min-width: 0;
    }
    .ymail-row .ymail-content-preview {
        grid-area: preview;
        min-width: 0;
    }
    .ymail-row .ymail-meta-right {
        display: contents;
    }
    .ymail-row .ymail-date,
    .ymail-row:hover .ymail-date {
        display: inline;
        grid-area: date;
        font-size: 12px;
    }
    .ymail-row:hover,
    .ymail-row.unread:hover {
        background: transparent;
    }
    .ymail-row .ymail-hover-actions,
    .ymail-row:hover .ymail-hover-actions {
        display: contents;
    }
    .ymail-row .ymail-hover-btn {
        display: none;
    }
    .ymail-row .ymail-hover-btn[data-action="more"] {
        display: inline-flex;
        grid-area: more;
        width: 44px;
        height: 44px;
    }
    .ymail-clip-icon {
        display: none;
    }

    /* Levélolvasó */
    .ymail-reader-toolbar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        height: auto !important;
        padding: 6px 8px !important;
    }
    .ymail-reader-actions {
        order: 3;
        justify-content: space-between;
        width: 100%;
        overflow-x: auto;
    }
    .ymail-reader-toolbar .ymail-mode-badge {
        display: none !important;
    }
    .ymail-round-btn {
        width: 42px;
        height: 42px;
    }
    .ymail-reader-actions .ymail-round-btn {
        width: 38px;
        flex-shrink: 0;
    }
    .ymail-reader-actions {
        gap: 0;
        scrollbar-width: none;
    }
    .ymail-mail-from > div:last-child {
        min-width: 0;
    }
    .ymail-reader-toolbar .ymail-pin-hero {
        width: 42px;
        padding: 0;
    }
    .ymail-reader-toolbar .ymail-pin-hero [data-i18n] {
        display: none;
    }
    .ymail-reader-content {
        padding: 14px 12px;
    }
    .ymail-reader-view .ymail-mail-body {
        padding-inline-start: 0;
        overflow-wrap: anywhere;
    }
    .ymail-mail-from-meta {
        overflow-wrap: anywhere;
    }
    .ymail-reader-footer {
        gap: 8px;
        padding: 8px;
    }
    .ymail-reply-pill {
        flex: 1 1 28%;
        justify-content: center;
        height: 44px;
        padding: 0 6px;
        font-size: 12px;
    }
    .ymail-pin-hero-large {
        flex: 1 1 100%;
        height: 48px;
        padding: 0 12px;
        font-size: 14px;
        white-space: normal;
    }

    /* Félrehúzott levél: teljes képernyő, a Bezárással vissza */
    .ymail-pinned-panel:not(.collapsed) {
        position: fixed;
        inset: 0 0 64px 0;
        z-index: 900;
        width: auto;
        border-radius: 0;
    }

    /* Levélíró, névjegyek */
    .ymail-compose-row {
        flex-wrap: wrap;
    }
    .ymail-contacts-form .ymail-search-inline {
        flex: 1 1 100%;
        width: 100%;
    }
    .ymail-row .ymail-contact-email {
        grid-area: preview;
    }
    .ymail-row .ymail-contact-actions,
    .ymail-row:hover .ymail-contact-actions {
        display: contents;
    }
    .ymail-row [data-contact-action="write"] {
        display: none;
    }
    .ymail-row [data-contact-action="delete"] {
        display: inline-flex;
        grid-area: more;
        width: 44px;
        height: 44px;
    }

    /* Alsó navigáció */
    .bottom-nav-bar {
        left: 8px;
        right: 8px;
        bottom: 8px;
        justify-content: stretch;
        padding: 6px;
        transform: none;
    }
    .bottom-nav-bar .nav-btn {
        flex: 1;
        min-height: 44px;
        padding: 6px 4px;
        font-size: 12px;
    }
    .effect-selector {
        display: none;
    }

    /* VHF és Vault */
    .screen-chat .panel-header,
    .screen-vault .panel-header {
        flex-wrap: wrap;
        gap: 6px;
        padding: 10px 12px;
    }
    .screen-chat .panel-header h2,
    .screen-vault .panel-header h2 {
        font-size: 15px;
    }
    .address-bar {
        flex-direction: column;
        gap: 6px;
        padding: 8px 12px;
    }
    .address-group,
    .address-group input {
        width: 100%;
        box-sizing: border-box;
    }
    .chat-input-area {
        gap: 6px;
        padding: 8px;
        margin-bottom: 68px !important;
    }
    #message-input {
        flex: 1;
        min-width: 0;
    }
    .vault-panel .search-bar {
        width: 100%;
        min-width: 0;
    }
    .vault-gallery {
        padding: 10px 10px 80px 10px !important;
    }
}

/* Félrehúzás telefonon: állva forgatásra kér, fekve két levél egymás mellett */
.ymail-pinned-rotate {
    display: none;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}
@media (max-width: 768px) and (orientation: portrait) {
    .ymail-pinned-panel .ymail-pinned-title {
        display: none;
    }
    .ymail-pinned-panel .ymail-pinned-rotate {
        display: block;
    }
    .ymail-pinned-panel .pinned-toolbar {
        height: auto;
        min-height: 56px;
        gap: 10px;
        padding-top: 8px;
        padding-bottom: 8px;
    }
}
@media (orientation: landscape) and (max-height: 500px) {
    .ymail-menu-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0;
        color: #ffffff;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 6px;
    }
    .ymail-container {
        padding: 4px 8px 52px 8px;
    }
    .ymail-topbar {
        gap: 8px;
        justify-content: flex-start;
        margin-bottom: 4px;
        padding-inline-start: 0;
        padding-left: 0;
    }
    .ymail-status-badge,
    .effect-selector {
        display: none;
    }
    .ymail-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        inset-inline-start: 0;
        z-index: 1100;
        width: 240px;
        padding: 10px;
        overflow-y: auto;
        background: #0e0e11;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
    }
    [dir="rtl"] .ymail-sidebar {
        transform: translateX(100%);
    }
    .ymail-container.menu-open .ymail-sidebar {
        transform: translateX(0);
    }
    .ymail-container.menu-open .ymail-sidebar-overlay {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1050;
        background: rgba(0, 0, 0, 0.6);
    }
    .bottom-nav-bar {
        bottom: 4px;
        padding: 4px;
    }
    .bottom-nav-bar .nav-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    .ymail-pinned-panel {
        width: 50%;
    }
    .ymail-pinned-panel .pinned-toolbar {
        height: 40px;
    }
}

/* CSATOLMÁNYOK */
.ymail-compose-attachments {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}
.ymail-attachment-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}
.ymail-attachment-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    padding: 4px 6px 4px 10px;
    color: #e2e2e7;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
}
.ymail-attachment-chip span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.ymail-attachment-chip button {
    width: 24px;
    height: 24px;
    padding: 0;
    color: #ffffff;
    background: transparent;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}
.ymail-attachment-chip button:hover {
    background: rgba(255, 255, 255, 0.16);
}
.ymail-mail-attachments {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}
.ymail-mail-attachments .ymail-attachment-box {
    margin-top: 0;
    gap: 10px;
}
.ymail-attachment-name {
    font-weight: 700;
    overflow-wrap: anywhere;
}
.ymail-attachment-size {
    color: #a485f7;
    font-size: 11px;
}
.vault-item-source {
    margin-top: 4px;
    overflow: hidden;
    color: #8a8a98;
    font-size: 11px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Vault-kártya: a feliratok a kártyán belül maradnak */
.vault-item {
    min-width: 0;
    overflow: hidden;
}
.vault-item-name,
.vault-item-source {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.screen-vault .search-bar {
    width: 260px;
    max-width: 100%;
}

/* P2P: bejövő fájl elfogadása */
.p2p-offer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0 20px 10px 20px;
    padding: 10px 12px;
    color: #ffffff;
    font-size: 13px;
    background: rgba(164, 133, 247, 0.14);
    border: 1px solid #a485f7;
    border-radius: 8px;
}
.p2p-offer-text {
    flex: 1 1 200px;
    overflow-wrap: anywhere;
}
.p2p-offer button {
    min-height: 40px;
    padding: 6px 14px;
    color: #ffffff;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
}
.p2p-offer button.p2p-accept {
    color: #121216;
    background: #a485f7;
    border-color: transparent;
}

/* VHF: ki van online */
.presence-btn {
    flex-shrink: 0;
    margin-inline-start: 8px;
    padding: 6px 12px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
}
.presence-btn.is-open {
    background: rgba(164, 133, 247, 0.2);
    border-color: #a485f7;
}
.presence-panel {
    flex-shrink: 0;
    max-height: 40vh;
    margin: 0 20px 10px 20px;
    padding: 10px;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
}
.presence-add {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.presence-add input {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 6px;
    outline: none;
}
.presence-add button,
.presence-row {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
}
.presence-add button {
    padding: 8px 14px;
}
.presence-row {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 10px;
    min-height: 44px;
    margin-bottom: 4px;
    padding: 6px 10px;
    font-size: 13px;
    text-align: start;
}
.presence-row:hover {
    border-color: #a485f7;
}
.presence-dot {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    background: #5c5c66;
    border-radius: 50%;
}
.presence-row.is-online .presence-dot {
    background: #2ecc71;
    box-shadow: 0 0 8px rgba(46, 204, 113, 0.8);
}
.presence-name {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}
.presence-state {
    flex-shrink: 0;
    color: #a0a0ab;
    font-size: 11px;
}
.presence-row.is-online .presence-state {
    color: #2ecc71;
}
.presence-note {
    padding: 8px;
    color: #a0a0ab;
    font-size: 12px;
}
@media (max-width: 768px) {
    .presence-btn {
        min-height: 40px;
    }
}

/* Vault: a lemezre mentett fájl megnyitása */
.vault-viewer {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    color: #ffffff;
    background: rgba(8, 8, 12, 0.96);
}
.vault-viewer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.vault-viewer-head button {
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
}
.vault-viewer-body {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 0;
    padding: 0 16px 16px 16px;
}
.vault-viewer-body video,
.vault-viewer-body img {
    max-width: 100%;
    max-height: 100%;
}
.vault-viewer-body iframe {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border: 0;
}
.vault-viewer-body p {
    max-width: 520px;
    line-height: 1.5;
    text-align: center;
}

/* Titkosított mentés */
.backup-settings-label {
    margin-top: 14px;
}
.backup-settings-btn {
    display: block;
    width: 100%;
    min-height: 40px;
    margin-bottom: 6px;
    padding: 8px 10px;
    color: #ffffff;
    font-size: 13px;
    text-align: start;
    background: #1c1c21;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
}
.backup-dialog {
    align-items: center;
    justify-content: center;
    padding: 16px;
    overflow-y: auto;
}
.backup-box {
    width: 100%;
    max-width: 440px;
    padding: 20px;
    background: #2a2a2f;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
}
.backup-box h3 {
    margin: 0 0 10px 0;
}
.backup-box p {
    margin: 0 0 14px 0;
    color: #c4c4cc;
    font-size: 13px;
    line-height: 1.5;
}
.backup-box input {
    box-sizing: border-box;
    margin-bottom: 12px;
}
.backup-box .backup-status {
    min-height: 20px;
    color: #ffffff;
}
.backup-actions {
    display: flex;
    gap: 8px;
}
.backup-actions button {
    flex: 1;
    min-height: 44px;
    color: #ffffff;
    background: #1c1c21;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    cursor: pointer;
}
.backup-actions button:first-child {
    background: #6a3fd6;
    border-color: #a485f7;
}
.backup-actions button:disabled {
    opacity: 0.5;
    cursor: default;
}

/* Eszközök szinkronja */
.sync-qr {
    width: 220px;
    margin: 0 auto 12px auto;
    padding: 10px;
    background: #ffffff;
    border-radius: 8px;
}
.sync-qr img,
.sync-qr canvas {
    display: block;
    max-width: 100%;
}

/* Ébresztő értesítés */
.push-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    margin-top: 12px;
    color: #ffffff;
    font-size: 13px;
    cursor: pointer;
}
.push-note {
    color: #c4c4cc;
    font-size: 12px;
    line-height: 1.4;
}

/* Levélből VHF és közös kereső */
.mail-to-vhf-btn {
    margin: 0 0 14px 0;
    min-height: 40px;
}
.global-search .vault-viewer-head input {
    flex: 1;
    min-width: 0;
    cursor: text;
}
.global-search-results {
    flex: 1;
    min-height: 0;
    padding: 0 16px 16px 16px;
    overflow-y: auto;
}
.global-search-results h4 {
    margin: 14px 0 6px 0;
    color: #a485f7;
    font-size: 13px;
}
.global-search-results p {
    color: #c4c4cc;
    text-align: center;
}
.global-search-row {
    display: block;
    width: 100%;
    min-height: 44px;
    margin-bottom: 4px;
    padding: 8px 10px;
    color: #ffffff;
    font-size: 13px;
    text-align: start;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    cursor: pointer;
}
.global-search-row:hover {
    border-color: #a485f7;
}
.global-search-row span,
.global-search-row small {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.global-search-row small {
    margin-top: 2px;
    color: #a0a0ab;
}

/* VHF-kulcs ellenőrzése */
.key-verify-btn {
    padding: 6px 8px;
}
.key-safety-code {
    margin: 0 0 14px 0;
    padding: 12px;
    color: #ffffff;
    font-family: monospace;
    font-size: 18px;
    line-height: 1.6;
    text-align: center;
    word-spacing: 6px;
    background: #1c1c21;
    border-radius: 8px;
}
@media (max-width: 768px) {
    .key-verify-btn {
        min-width: 40px;
    }
}

/* Hosszú levéllánc buborékokban */
.thread-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.thread-toolbar .ymail-mail-title {
    flex: 1 1 100%;
    margin: 0;
    overflow-wrap: anywhere;
}
.thread-toolbar .presence-btn,
.thread-view-btn {
    min-height: 40px;
    margin: 0;
}
.thread-view-btn {
    margin-bottom: 14px;
}
.thread-shelf {
    margin-bottom: 10px;
    padding: 8px 12px;
    background: rgba(164, 133, 247, 0.08);
    border: 1px solid rgba(164, 133, 247, 0.28);
    border-radius: 10px;
}
.thread-shelf summary {
    min-height: 28px;
    color: #ffffff;
    font-size: 13px;
    line-height: 28px;
    cursor: pointer;
}
.thread-bubble {
    min-width: 0;
    max-width: 85%;
}
.thread-bubble-text {
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
.thread-quote-btn {
    display: block;
    min-height: 32px;
    margin-top: 6px;
    padding: 0;
    color: #a485f7;
    font-size: 12px;
    background: none;
    border: 0;
    cursor: pointer;
}

/* Aláírás */
.ymail-settings-panel {
    max-height: calc(100vh - 70px);
    overflow-y: auto;
}
.signature-text {
    box-sizing: border-box;
    margin-bottom: 8px;
    font-family: inherit;
    resize: vertical;
    cursor: text;
}
.signature-file-btn {
    box-sizing: border-box;
    line-height: 24px;
}
.mail-signature-image {
    display: block;
    max-width: 100%;
    max-height: 200px;
    margin: 10px 0;
    border-radius: 4px;
}

/* Levél áthúzása mappába */
.ymail-row[draggable="true"] {
    cursor: grab;
}
.ymail-drop-target {
    outline: 2px solid #a485f7;
    outline-offset: -2px;
    background: rgba(164, 133, 247, 0.22) !important;
}
.mail-drag-pill {
    position: fixed;
    top: -100px;
    left: -100px;
    padding: 6px 12px;
    color: #ffffff;
    font-size: 13px;
    background: #6a3fd6;
    border-radius: 14px;
}

/* Törlés jobbra húzással */
.ymail-email-list {
    position: relative;
    overflow-x: hidden;
}
.ymail-email-list .ymail-row.swiping {
    position: relative;
    z-index: 1;
    background-color: #1c1c21;
}
@media (pointer: coarse) {
    .ymail-email-list .ymail-row {
        touch-action: pan-y;
    }
}
.swipe-backdrop {
    position: absolute;
    left: 0;
    right: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    padding-inline-start: 20px;
    color: #ffffff;
    font-weight: 600;
    background: #d9363e;
}
.swipe-undo {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 76px;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    color: #ffffff;
    font-size: 14px;
    background: #333336;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}
.swipe-undo button {
    min-height: 40px;
    padding: 0 12px;
    color: #a485f7;
    font-weight: 700;
    background: none;
    border: 0;
    cursor: pointer;
}

/* Kijelölés és csoportos műveletek */
.ymail-dropdown-arrow {
    cursor: pointer;
}
.inbox-bulk-bar {
    align-items: center;
    gap: 6px;
    color: #ffffff;
    font-size: 13px;
    white-space: nowrap;
}
.inbox-bulk-bar .ymail-hover-btn {
    display: inline-flex;
    color: #ffffff;
}
.ymail-toolbar-left.has-selection .ymail-search-inline {
    display: none;
}

/* VHF telefonon: hosszú fájlnév és az alsó menü takarása */
.message-bubble {
    max-width: 85%;
    overflow-wrap: anywhere;
}
.screen-chat .chat-panel {
    min-height: 0;
    overflow: hidden;
}
.screen-chat .chat-history {
    min-height: 60px;
}
.screen-chat .address-bar,
.screen-chat .panel-header,
#transfer-container {
    flex-shrink: 0;
}
#transfer-label {
    overflow-wrap: anywhere;
}
@media (max-width: 768px) {
    .screen-chat .chat-panel {
        height: 100dvh !important;
    }
    .screen-chat .chat-input-area {
        margin-bottom: 84px !important;
    }
    .presence-panel {
        max-height: 30vh;
    }
}
/* Üres állapot: útmutató kártya az üres VHF, Inbox és Vault helyén */
.empty-card {
    grid-column: 1 / -1;
    align-self: center;
    max-width: 520px;
    margin: 32px auto;
    padding: 20px 22px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    line-height: 1.55;
    text-align: left;
}
.empty-card h3 {
    margin: 0 0 10px;
    font-size: 17px;
    color: var(--accent);
}
.empty-card p {
    margin: 0 0 8px;
    font-size: 14px;
    color: #c9ccd3;
}
.empty-card-btn {
    margin-top: 8px;
    padding: 9px 16px;
    border: none;
    border-radius: 6px;
    background: var(--accent);
    color: #000;
    font-weight: 600;
    cursor: pointer;
}
/* VHF üzenetmező: több sor, a szöveggel együtt nő */
.chat-input-area {
    height: auto;
    min-height: 80px;
    align-items: flex-end;
}
.chat-input-area .btn-icon,
.chat-input-area .btn-primary {
    height: 50px;
    flex-shrink: 0;
}
#message-input {
    flex: 1;
    min-width: 0;
    min-height: 50px;
    max-height: 40vh;
    box-sizing: border-box;
    padding: 14px 15px;
    resize: none;
    overflow-y: auto;
    background-color: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-main);
    font: inherit;
    font-size: 14px;
    line-height: 1.5;
    outline: none;
}
#message-input:focus {
    border-color: var(--accent);
}
/* A Shift+Enterrel írt sortörés az elküldött üzenetben is megmarad */
.message-bubble {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}
/* Levéllánc: feladónként külön szín */
.thread-bubble:not(.me) {
    background: var(--bubble-bg, #282932);
    border-color: var(--bubble-bg, rgba(255, 255, 255, 0.06));
}
.thread-bubble:not(.me) .ymail-chat-author {
    color: var(--bubble-name, #a485f7);
}

/* Jelszó megjelenítése: szem ikon a mező jobb szélén */
.password-wrap {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}
.password-wrap .auth-input {
    margin-bottom: 0;
    padding-inline-end: 46px;
}
.password-eye {
    position: absolute;
    top: 0;
    bottom: 0;
    inset-inline-end: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    padding: 0;
    color: var(--text-muted, #9a9aa8);
    background: none;
    border: none;
    cursor: pointer;
}
.password-eye:hover,
.password-eye:focus-visible {
    color: #ffffff;
}

/* Telefonon: a nagy keresőmező helyett kis gomb a felső sávban */
.ymail-search-toggle {
    display: none;
}
@media (max-width: 768px) {
    .ymail-search-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 42px;
        height: 42px;
        padding: 0;
        font-size: 18px;
        color: #ffffff;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 6px;
        cursor: pointer;
    }
    .ymail-search-toggle.active {
        background: rgba(0, 229, 255, 0.18);
        border-color: var(--accent, #00e5ff);
    }
    .ymail-container:not(.search-open) #inbox-search-input {
        display: none;
    }
    .ymail-container:not(.search-open) #inbox-list-view > .ymail-toolbar:not(:has(.has-selection)) {
        display: none;
    }
}
/* Súgó: gyakori kérdések lenyíló sorokban */
.help-box {
    max-width: 520px;
    max-height: calc(100dvh - 32px);
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}
.help-faq {
    flex: 1 1 auto;
    min-height: 0;
    margin-bottom: 12px;
    overflow-y: auto;
}
.help-faq details {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.help-faq summary {
    padding: 12px 4px;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;
    cursor: pointer;
}
.help-faq details[open] summary {
    color: var(--accent, #00e5ff);
}
.help-faq details p {
    margin: 0 4px 12px;
}
.help-box .help-feedback-note {
    margin-bottom: 12px;
}
/* Licenc: a vásárlás ablakában három gomb is lehet, keskeny kijelzőn több sorba törnek */
.license-actions {
    flex-wrap: wrap;
}
.license-actions button {
    min-width: 120px;
}
