body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    background: #0e0e10;
    color: white;
}

* {
    scrollbar-width: thin;
    scrollbar-color: #4a4a4c transparent;
}

*::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background-color: #4a4a4c;
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

*::-webkit-scrollbar-thumb:hover {
    background-color: #dd5719;
}

@media (max-width: 768px) {
    .pin-btn {
        display: none !important;
    }
}

/* --- Анимация загрузки --- */
.page-loader {
    position: fixed;
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    background: #0e0e10;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-container {
    position: relative;
    width: 50px;
    height: 50px;
    animation: spin-ring 3s linear infinite;
}

.loader-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.loader-wrapper:nth-child(1) { transform: rotate(0deg); }
.loader-wrapper:nth-child(2) { transform: rotate(90deg); }
.loader-wrapper:nth-child(3) { transform: rotate(180deg); }
.loader-wrapper:nth-child(4) { transform: rotate(270deg); }

.loader-dot {
    position: absolute;
    top: 0;
    left: 50%;
    margin-left: -7px; 
    width: 14px;
    height: 14px;
    background-color: #FD5607;
    border-radius: 50%;
    animation: pulse-dot 1.5s ease-in-out infinite;
}

.loader-wrapper:nth-child(1) .loader-dot { animation-delay: 0s; }
.loader-wrapper:nth-child(2) .loader-dot { animation-delay: 0.2s; }
.loader-wrapper:nth-child(3) .loader-dot { animation-delay: 0.4s; }
.loader-wrapper:nth-child(4) .loader-dot { animation-delay: 0.6s; }

@keyframes spin-ring {
    100% { transform: rotate(360deg); }
}

@keyframes pulse-dot {
    0%, 100% { 
        transform: scale(0.3); 
        opacity: 0.3; 
    }
    50% { 
        transform: scale(1.1); 
        opacity: 1; 
        box-shadow: 0 0 16px rgba(221, 87, 25, 0.8);
    }
}

#cy {
    width: 100vw;
    height: 100vh;
    display: block;
    background: radial-gradient(circle, #1f1f23 1px, #0e0e10 1px);
    background-size: 30px 30px;
}

#statusOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 3;
}

.right-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.controls {
    text-align: right;
    background: rgba(30, 30, 32, 0.8);
    padding: 15px;
    border-radius: 8px;
    width: 270px;
    box-sizing: border-box;
}

.controls-title {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
}

.controls-buttons {
    display: flex;
    flex-direction: row;
    gap: 8px;
    justify-content: space-between;
    margin-top: 10px;
}

.controls-buttons button {
    flex: 1;
    padding: 8px 10px;
    box-sizing: border-box;
    margin: 0;
}

.controls-buttons-secondary {
    margin-top: 8px;
}

.controls-buttons .btn-help {
    flex: 0 0 38px;
    width: 38px;
    padding: 8px 0;
    font-weight: bold;
    font-size: 15px;
}

.btn-import {
    background: #3a3a3c;
    font-weight: 600;
}

.btn-import:hover {
    background: #4a4a4c;
}

.btn-collapse {
    background: transparent;
    border: none;
    padding: 2px 6px;
    margin: 0;
    font-size: 12px;
    color: #adadb8;
    line-height: 1;
    transition: transform 0.2s ease;
}

.btn-collapse:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #efeff1;
}

.btn-collapse.collapsed {
    transform: rotate(-90deg);
}

button {
    cursor: pointer;
    padding: 8px 12px;
    margin: 4px 2px;
    border-radius: 6px;
    border: none;
    background: #3a3a3c;
    color: white;
    font-size: 13px;
    transition: 0.2s;
}

button:hover {
    background: #4a4a4c;
}

.btn-add {
    background: #dd5719;
    font-weight: bold;
}

.btn-add:hover {
    background: #ffa970;
}

#editor {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    width: 380px;
    max-width: calc(100vw - 32px);
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    background: #18181b;
    border-radius: 16px;
    border: 1px solid #2a2a2e;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

.editor-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(14, 14, 16, 0.55);
    color: #fff;
    border: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
}

.editor-close:hover {
    background: rgba(14, 14, 16, 0.85);
}

.editor-banner {
    height: 108px;
    background: linear-gradient(180deg, #232326, #18181b);
    position: relative;
    border-radius: 16px 16px 0 0;
}

.editor-avatar-wrap {
    position: absolute;
    left: 50%;
    bottom: -38px;
    transform: translateX(-50%);
    width: 84px;
    height: 84px;
}

.editor-avatar {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #18181b;
    box-shadow: 0 0 0 2px var(--avatar-ring, #9147ff);
    background: #0e0e10;
    display: block;
}

.editor-status-emoji {
    position: absolute;
    left: -7px;
    top: -7px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #18181b;
    border: 2px solid #0e0e10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    line-height: 1;
    z-index: 2;
}

.editor-live-dot {
    position: absolute;
    right: -6px;
    bottom: -6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ff4444;
    border: 3px solid #0e0e10;
    z-index: 2;
}

.editor-identity {
    padding: 46px 24px 18px;
    text-align: center;
}

.editor-nick-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.editor-nick-input {
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    font-weight: 800;
    font-size: 21px;
    letter-spacing: -0.01em;
    text-align: center;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: #efeff1;
    padding: 2px 4px;
    max-width: 220px;
    margin: 0;
    transition: border-color 0.2s;
}

.editor-nick-input:hover,
.editor-nick-input:focus {
    outline: none;
    border-bottom-color: var(--card-accent, #dd5719);
}

.sync-indicator {
    position: absolute;
    left: calc(50% + 108px);
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    visibility: hidden;
}

.editor-stats {
    margin-top: 6px;
    font-size: 13px;
    color: #adadb8;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.stat-dot {
    opacity: 0.5;
}

.editor-body {
    padding: 4px 24px 8px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.editor-section {
    text-align: left;
}

.editor-label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #adadb8;
    font-weight: bold;
    margin-bottom: 8px;
}

.segmented {
    display: flex;
    background: #0e0e10;
    border-radius: 8px;
    padding: 3px;
    gap: 3px;
}

.segmented button {
    flex: 1;
    margin: 0;
    padding: 7px 6px;
    font-size: 12px;
    border-radius: 6px;
    background: transparent;
    color: #adadb8;
}

.segmented button:hover {
    background: #26262c;
    color: #efeff1;
}

.segmented button.active {
    background: #dd5719;
    color: white;
}

.segmented button.active:hover {
    background: #dd5719;
}

.swatch-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.editor-row-split {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.editor-col {
    flex: 1;
    min-width: 0;
}

.editor-col-color {
    flex: 0 0 auto;
}

.color-picker-trigger {
    width: 38px;
    height: 38px;
    padding: 0;
    margin: 0;
    border-radius: 8px;
    background: #0e0e10;
    border: 1px solid #303032;
    display: flex;
    align-items: center;
    justify-content: center;
}

.color-picker-trigger:hover {
    border-color: #dd5719;
}

.color-picker-swatch-inner {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #464649;
    display: block;
}

.notes-counter {
    float: right;
    text-transform: none;
    font-weight: normal;
    opacity: 0.7;
    font-size: 10px;
    letter-spacing: normal;
}

.editor-textarea {
    resize: vertical;
    min-height: 128px;
    max-height: 240px;
    font-family: inherit;
    line-height: 1.4;
}

.editor-input {
    width: 100%;
    box-sizing: border-box;
    background: #0e0e10;
    color: white;
    border: 1px solid #303032;
    padding: 9px 10px;
    margin: 0;
    border-radius: 8px;
    font-size: 13px;
}

.editor-input:focus {
    outline: none;
    border-color: #dd5719;
}

.editor-footer {
    padding: 16px 24px 22px;
    border-top: 1px solid #232326;
    margin-top: 4px;
}

.btn-delete {
    width: 100%;
    background: transparent;
    color: #ff6b6b;
    border: 1px solid rgba(255, 107, 107, 0.35);
    font-weight: 600;
    padding: 9px;
    margin: 0;
    border-radius: 8px;
}

.btn-delete:hover {
    background: rgba(255, 68, 68, 0.12);
}

input[type=range] {
    width: 100%;
    accent-color: #dd5719;
    cursor: pointer;
}

#toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.toast {
    background: #2f2f35;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-top: 10px;
    border-left: 4px solid #dd5719;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition: opacity 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.live-panel {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    background: rgba(30, 30, 32, 0.8);
    padding: 15px;
    border-radius: 8px;
    max-height: 80vh;
    overflow-y: auto;
    width: 250px;
}

.live-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.live-header strong {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
}

.live-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.live-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 10px;
    background: #1f1f23;
    border-radius: 9px;
    cursor: pointer;
    transition: 0.2s all;
    border: 1px solid transparent;
}

.live-item:hover {
    background: #2a2a2f;
    border-color: #dd5719;
    transform: translateX(3px);
}

.live-preview {
    position: relative;
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.live-preview .avatar {
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    border-radius: 50%;
    object-fit: cover;
    border: 3.5px solid #dd5719;
    box-shadow: 0 0 0 1px #0e0e10;
}

.live-item.mod .avatar {
    border-color: #00c853;
}

.live-preview .scale {
    position: absolute;
    top: -9px;
    left: -9px;
    width: 68px;
    height: 68px;
    pointer-events: none;
    z-index: 2;
}

.live-info {
    flex: 1;
    overflow: hidden;
    min-width: 0;
}

.live-nick {
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-stats {
    font-size: 13px;
    color: #b0b0b8;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-live {
    padding: 25px 10px;
    text-align: center;
    color: #777;
    font-size: 14px;
}

.color-swatch {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    cursor: pointer;
    border: 3px solid #303032;
    transition: all 0.2s;
}

.color-swatch:hover {
    border-color: #dd5719;
    transform: scale(1.15);
}

.color-swatch.selected {
    border-color: white;
    box-shadow: 0 0 0 4px rgba(255, 138, 71, 0.5);
}

.live-viewers {
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.55);
    padding: 2px 6px;
    border-radius: 6px;
    pointer-events: none;
}

.dimmed {
    opacity: 0.45 !important;
    transition: opacity 0.25s ease-out;
}

.dimmed.edge {
    opacity: 0.28 !important;
}

.user-profile-panel {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    background: rgba(30, 30, 32, 0.8);
    padding: 10px;
    border-radius: 8px;
    text-align: right;
}

.profile-section {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-section:first-child {
    padding-top: 4px;
}

.profile-section.no-border {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-section.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-section-label {
    font-size: 13px;
    font-weight: 500;
    color: #adadb8;
}

.profile-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid #dd5719;
    object-fit: cover;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

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

.profile-emoji-trigger {
    justify-content: center;
    margin: 0;
    padding: 4px;
}

.btn-logout {
    padding: 3px 8px;
    margin: 0;
    font-size: 11px;
    background: #eb0400;
    font-weight: bold;
    border-radius: 4px;
    width: max-content;
}

.btn-logout:hover {
    background: #ff2a26;
}

#auth-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #0e0e10;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.auth-container {
    background: #1f1f23;
    padding: 40px 60px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #2f2f35;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.auth-container h2 {
    margin-bottom: 10px;
    color: #efeff1;
}

.auth-container p {
    color: #adadb8;
    margin-bottom: 25px;
    font-size: 14px;
}

.btn-login {
    background: #dd5719;
    color: white;
    border: none;
    font-weight: bold;
    padding: 12px 24px;
    margin: 0;
    width: 100%;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-login:hover {
    background: #b6590d;
}

#profileContent {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}

.profile-clickable {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.profile-clickable::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: transparent;
    transition: background 0.2s;
}

.profile-clickable:hover::before {
    background: rgba(255, 255, 255, 0.06);
}

#userAvatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    flex-shrink: 0;
}

.profile-status-emoji {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0e0e10;
    border: 1px solid #303032;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
    flex-shrink: 0;
}

.profile-status-emoji:empty::before {
    content: '+';
    color: #5a5a5e;
    font-size: 20px;
    font-weight: 300;
}

.profile-username {
    flex: 1;
    min-width: 0;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Публичная ссылка (тумблер в блоке профиля) ---------- */

.profile-public-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.profile-public-label {
    font-size: 12px;
    color: #efeff1;
    text-align: left;
}

.profile-public-hint {
    font-size: 10.5px;
    color: #6d6d72;
    line-height: 1.4;
    text-align: left;
    margin-top: -4px;
}

.profile-public-link-box {
    display: flex;
    gap: 6px;
}

.profile-public-link-input {
    flex: 1;
    min-width: 0;
    font-size: 11px;
    padding: 6px 8px;
}

.btn-copy-link {
    flex-shrink: 0;
    width: 32px;
    padding: 0;
    margin: 0;
    background: #3a3a3c;
    border-radius: 8px;
}

.btn-copy-link:hover {
    background: #4a4a4c;
}

.btn-logout-full {
    width: 100%;
    margin: 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 38px;
    height: 22px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #3a3a3c;
    border-radius: 22px;
    transition: 0.2s;
}

.toggle-slider::before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.2s;
}

.toggle-switch input:checked+.toggle-slider {
    background-color: #00c853;
}

.toggle-switch input:checked+.toggle-slider::before {
    transform: translateX(16px);
}

/* ---------- Публичный просмотр карты ---------- */

.public-owner-panel {
    display: none;
    position: static;
    width: 100%;
    box-sizing: border-box;
    flex-direction: column;
    gap: 10px;
}

.public-owner-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.public-owner-row img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.public-owner-row .profile-username {
    text-align: left;
}

.public-owner-badge {
    font-size: 11px;
    color: #adadb8;
    text-align: center;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 6px 8px;
}

.public-view-error {
    display: none;
    position: fixed;
    inset: 0;
    align-items: center;
    justify-content: center;
    z-index: 300;
    background: #0e0e10;
}

.public-view-error-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 320px;
}

.public-view-error-box strong {
    font-size: 18px;
}

.public-view-error-box span {
    font-size: 13px;
    color: #adadb8;
    line-height: 1.5;
}

body.public-view .controls-buttons,
body.public-view #acc-edit,
body.public-view #acc-rec {
    display: none !important;
}

body.public-view #livePanelWrapper.pinned {
    top: 105px !important;
}

body.public-view .profile-section:not(.no-border) {
    display: none !important;
}

/* ---------- Модалка эмодзи-статуса ---------- */

.status-modal-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 11, 0.55);
    z-index: 200;
    align-items: center;
    justify-content: center;
}

#colorPickerModal {
    background: transparent;
}

#colorPickerModal .status-modal {
    width: 260px;
}

#edgeContextModal {
    background: transparent;
}

/* --- мини-профиль --- */
.node-menu-card {
    display: none;
    position: absolute;
    z-index: 150;
    width: 290px;
    background: #18181b;
    border: 1px solid #3a3a3c;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    pointer-events: auto;
}

.node-menu-banner {
    height: 60px;
    background: radial-gradient(120% 140% at 50% 0%, color-mix(in srgb, var(--card-accent, #7a7a7a) 50%, transparent), transparent 70%), 
                linear-gradient(rgb(35, 35, 38), rgb(24, 24, 27));
}

.node-menu-body {
    padding: 0 16px;
}

.node-menu-profile-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: -42px;
    margin-bottom: 16px;
}

.node-menu-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 4px solid #18181b;
    background: #0e0e10;
    object-fit: cover;
    flex-shrink: 0;
}

.node-menu-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.node-menu-role {
    font-size: 11px;
    font-weight: 700;
    color: #adadb8;
    text-transform: uppercase;
}

.node-menu-nick {
    font-size: 17px;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.node-menu-followers {
    font-size: 12px;
    font-weight: 500;
    color: #adadb8;
    margin-top: 2px;
}

.node-menu-birthday {
    display: none;
    font-size: 12px;
    font-weight: 500;
    color: #adadb8;
    margin-top: 2px;
}

.node-menu-notes {
    display: none;
    padding: 0 16px 12px 16px;
    font-size: 12px;
    color: #9a9a9e;
    line-height: 1.4;
    max-height: 52px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.node-menu-notes::-webkit-scrollbar {
    width: 4px;
}
.node-menu-notes::-webkit-scrollbar-track {
    background: transparent;
}
.node-menu-notes::-webkit-scrollbar-thumb {
    background: #3a3a3c;
    border-radius: 4px;
}
.node-menu-notes::-webkit-scrollbar-thumb:hover {
    background: #555557;
}

.node-menu-actions {
    padding: 12px 16px;
    display: flex;
    gap: 8px;
    background: #1f1f23;
    border-top: 1px solid #2a2a2e;
}

.node-menu-btn {
    flex: 1;
    height: 36px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}

.node-menu-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.node-menu-btn .logo-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.node-menu-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.node-menu-tooltip {
    position: fixed; 
    display: none;
    z-index: 9999;
    background: #0e0e10;
    color: #fff;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 6px;
    border: 1px solid #3a3a3c;
    pointer-events: none;
}

.status-modal {
    position: relative;
    width: 340px;
    max-width: calc(100vw - 32px);
    background: #18181b;
    border-radius: 16px;
    border: 1px solid #2a2a2e;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
    padding: 24px;
    box-sizing: border-box;
    text-align: center;
}

.status-modal-header {
    margin-bottom: 16px;
}

.status-modal-header strong {
    display: block;
    font-size: 17px;
    margin-bottom: 4px;
}

.status-modal-sub {
    font-size: 12px;
    color: #adadb8;
}

.status-preview {
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #0e0e10;
    border: 1px solid #303032;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
}

.status-preview.empty {
    opacity: 0.35;
}

.status-input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.status-emoji-input {
    text-align: center;
    font-size: 18px;
}

.btn-status-clear {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    border-radius: 8px;
    background: #0e0e10;
    color: #adadb8;
    border: 1px solid #303032;
}

.btn-status-clear:hover {
    background: rgba(255, 68, 68, 0.12);
    color: #ff6b6b;
}

.status-hint {
    margin-top: 12px;
    font-size: 11.5px;
    color: #808088;
    line-height: 1.5;
}

.status-presets {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.status-preset-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    margin: 0;
    font-size: 18px;
    border-radius: 8px;
    background: #0e0e10;
    border: 1px solid #232326;
}

.status-preset-btn:hover {
    background: #26262c;
    border-color: #dd5719;
}

.status-modal-footer {
    margin-top: 20px;
}

.btn-status-save {
    width: 100%;
    padding: 10px;
    margin: 0;
    background: #dd5719;
    font-weight: bold;
    border-radius: 8px;
}

.btn-status-save:hover {
    background: #ffa970;
}

.btn-status-save:disabled {
    opacity: 0.6;
    cursor: default;
}

/* ---------- Модалка подсказок ---------- */

.help-modal {
    text-align: left;
}

.help-modal .status-modal-header {
    text-align: center;
}

.help-hint-list {
    margin-top: 4px;
}

/* ---------- Модалка "Добавить знакомых" ---------- */

.follows-modal {
    width: 380px;
    text-align: left;
}

.follows-modal .status-modal-header {
    text-align: center;
}

.follows-loading,
.follows-empty {
    padding: 30px 0;
    text-align: center;
    color: #adadb8;
    font-size: 13px;
}

.follows-select-all-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 4px 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid #232326;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.follows-select-all-row input {
    accent-color: #dd5719;
    cursor: pointer;
}

.follows-list {
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.follows-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 12px 8px;
    border-bottom: 1px solid #2a2a2e;
    cursor: pointer;
    transition: background 0.2s;
}

.follows-item:last-child {
    border-bottom: none;
}

.follows-item:hover {
    background: #1f1f23;
    border-radius: 8px;
}

.follows-item:hover {
    background: #1f1f23;
}

.follows-item input {
    accent-color: #dd5719;
    cursor: pointer;
    flex-shrink: 0;
}

.follows-item img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.follows-item span {
    font-size: 13px;
    color: #efeff1;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.follows-footer {
    display: flex;
    gap: 10px;
}

.btn-status-cancel {
    flex: 1;
    padding: 10px;
    margin: 0;
    background: #3a3a3c;
    border-radius: 8px;
}

.btn-status-cancel:hover {
    background: #4a4a4c;
}

.follows-footer .btn-status-save {
    flex: 1;
    width: auto;
}

/* ---------- Контекстное меню ребра ---------- */

.edge-context-modal {
    width: 220px;
    text-align: left;
}

.edge-context-modal .status-modal-header {
    text-align: center;
    margin-bottom: 12px;
}

.edge-style-options {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.edge-style-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 8px;
    margin: 0;
    background: #0e0e10;
    border: 1px solid #232326;
    border-radius: 8px;
}

.edge-style-btn:hover {
    background: #1f1f23;
    border-color: #dd5719;
}

.edge-style-btn.selected {
    border-color: #dd5719;
    background: rgba(221, 87, 25, 0.12);
}

.edge-delete-btn {
    width: 100%;
    margin-top: 14px;
    color: #ff6b6b;
}

.edge-delete-btn:hover {
    background: rgba(255, 68, 68, 0.12);
}

.controls-left button {
    background: #3a3a3c;
    color: #888;
    padding: 5px 10px;
}

.controls-left button.active {
    background: #00c853;
    color: white;
}

.open-stream-btn {
    margin-left: auto;
    background: #3a3a3c;
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 16px;
}

.live-item button:hover {
    background: #4a4a4c !important;
    border-radius: 4px;
}

#windows-container {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

.stream-window {
    position: absolute;
    width: 750px;
    height: 475px;
    background: #18181b;
    border: 1px solid #3a3a3c;
    display: flex;
    flex-direction: column;
    pointer-events: auto;
    resize: both;
    overflow: hidden;
    z-index: 999;
}

.resizer {
    position: absolute;
    z-index: 20;
}

.resizer.right {
    width: 20px;
    right: 0px;
    top: 0;
    bottom: 0;
    cursor: e-resize;
}

.resizer.bottom {
    height: 20px;
    bottom: 0px;
    left: 0;
    right: 0;
    cursor: s-resize;
}

.resizer.bottom-right {
    width: 15px;
    height: 15px;
    right: -5px;
    bottom: -5px;
    cursor: se-resize;
}

.window-header {
    height: 35px;
    background: #26262c;
    display: flex;
    align-items: center;
    padding: 0 10px;
    color: white;
    font-size: 13px;
    cursor: move;
}

.window-header button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    margin-left: 5px;
}

.window-content {
    flex: 1;
    display: flex;
    overflow: hidden;
}

iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.twitch-player {
    flex: 1;
    height: 100%;
    border: none;
}

.twitch-chat {
    height: 100%;
    border: none;
    background: #0e0e10;
    z-index: 10;
    transition: width 0.2s;
}

.control-btn {
    background: #3a3a3c;
    border: none;
    color: white;
    cursor: pointer;
    padding: 2px 8px;
    margin-left: 5px;
    border-radius: 3px;
}

.control-btn.active {
    background: #00c853;
}

.resizing-active iframe {
    pointer-events: none;
}

.iframe-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 999;
    display: none;
    cursor: default;
    pointer-events: none;
}

.stream-window.is-dragging .iframe-overlay,
.stream-window.resizing-active .iframe-overlay {
    display: block;
    pointer-events: auto;
}

.controls-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 10px;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-bottom: 12px;
}

.main-logo {
    max-width: 140px;
    height: auto;
    max-height: 35px;
    object-fit: contain;
    display: block;
}

.creator-panel {
    background: rgba(30, 30, 32, 0.8);
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: #adadb8;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: 1px solid transparent;
    text-decoration: none;
    display: block;
}

.creator-panel:hover {
    background: #1f1f23;
    color: #dd5719;
    border-color: #dd5719;
}

.birthday-panel {
    background: rgba(30, 30, 32, 0.8);
    padding: 15px;
    border-radius: 8px;
    width: 270px;
    box-sizing: border-box;
    transition: max-height 0.3s ease-in-out;
    max-height: 40vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.birthday-panel.expanded {
    flex-grow: 1;
    max-height: calc(100vh - 320px);
}

.birthday-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.birthday-header strong {
    font-size: 15px;
    color: white;
}

.birthday-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.birthday-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px;
    background: #1f1f23;
    border-radius: 9px;
    cursor: pointer;
    transition: 0.2s all;
    border: 1px solid transparent;
}

.birthday-item:hover {
    background: #26262c;
    border-color: #dd5719;
}

.birthday-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.birthday-nick {
    font-weight: bold;
    font-size: 13px;
    color: #efeff1;
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
}

.birthday-date {
    font-size: 12px;
    color: #adadb8;
    white-space: nowrap;
    text-align: right;
}

.birthday-section-title {
    font-size: 11px;
    text-transform: uppercase;
    color: #adadb8;
    margin: 8px 0 4px;
    font-weight: bold;
    text-align: left;
}

.birthday-section-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 8px;
}

.birthday-empty {
    color: #adadb8;
    font-size: 13px;
    text-align: center;
    padding: 15px 0;
}

.hint {
    font-size: 11px;
    color: #adadb8;
    margin-top: 12px;
    opacity: 0.8;
    text-align: left;

    display: flex;
    flex-direction: column;
}

.hint span {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.hint span:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hint span:first-child {
    padding-top: 0;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #dd5719;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

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

/* Боковое меню */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    z-index: 100;
    pointer-events: none;
    padding-bottom: 20px;
}

.sidebar-collapsed,
.sidebar-expanded {
    pointer-events: auto;
    position: absolute;
    top: 0;
    right: 0;
    height: 100vh;
    height: 100dvh;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s;
}

.sidebar-collapsed {
    width: 64px;
    background: rgba(30, 30, 32, 0.8);
    backdrop-filter: blur(6px);
    border-left: 1px solid rgba(42, 42, 46, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 0;
    z-index: 2;
    box-sizing: border-box;
}

.sidebar-expanded {
    width: 320px;
    background: rgba(30, 30, 32, 0.8);
    backdrop-filter: blur(6px);
    border-left: 1px solid rgba(42, 42, 46, 0.8);
    display: flex;
    flex-direction: column;
    padding: 16px;
    box-sizing: border-box;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.4);
}

.sidebar.closed .sidebar-expanded {
    transform: translateX(100%);
    opacity: 0;
}

.sidebar:not(.closed) .sidebar-collapsed {
    transform: translateX(100%);
    opacity: 0;
}

/* Раскрытое меню */
.sidebar-spacer {
    flex-grow: 1;
}

.sidebar-icon {
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #adadb8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transition: 0.2s;
}

.sidebar-icon:hover {
    background: #3a3a3c;
    color: white;
}

.sidebar-icon.logo-btn img {
    width: 32px;
}

.sidebar-icon.avatar-btn {
    padding: 2px;
    border: 2px solid transparent;
    border-radius: 50%;
}

.avatar-btn {
    margin-bottom: 12px;
}

.sidebar-icon.avatar-btn:hover {
    border-color: #dd5719;
}

.sidebar-icon.avatar-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.sidebar-close-tab {
    position: absolute;
    left: -24px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 54px;
    background: rgba(30, 30, 32, 0.8);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(42, 42, 46, 0.8);
    border-right: none;
    border-radius: 8px 0 0 8px;
    color: #adadb8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-close-tab:hover {
    background: #26262c;
    color: white;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 800;
    color: white;
    margin-bottom: 20px;
    cursor: pointer;
}

.sidebar-header img {
    width: 32px;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 0 12px 0;
    width: 100%;
    flex-shrink: 0;
}

.sidebar-divider-small {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin: 0 0 12px 0;
    width: 32px;
    flex-shrink: 0;
}

.sidebar-search-container {
    position: relative;
    margin-bottom: 12px;
    width: 100%;
    flex-shrink: 0;
}

.sidebar-search-input {
    width: 100%;
    box-sizing: border-box;
}

.sidebar-search-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #1f1f23;
    border: 1px solid #3a3a3c;
    border-radius: 8px;
    margin-top: 6px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 110;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 4px;
    box-sizing: border-box;
}

.search-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    border: 1px solid transparent;
}

.search-dropdown-item:hover {
    background: #2a2a2f;
    border-color: #dd5719;
}

.search-dropdown-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.search-dropdown-nick {
    font-size: 13px;
    font-weight: 600;
    color: #efeff1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-grow: 1;
    text-align: left;
}

.search-dropdown-empty {
    padding: 12px;
    text-align: center;
    color: #adadb8;
    font-size: 13px;
}

.accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    flex-grow: 1;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: #3a3a3c transparent;
}

.accordion-item {
    background: #1f1f23;
    border-radius: 8px;
    border: 1px solid #2a2a2e;
    overflow: hidden;
    flex-shrink: 0; 
}

.accordion-header {
    width: 100%; 
    box-sizing: border-box; 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    background: transparent; 
    border: none; 
    padding: 12px 14px;
    margin: 0;
    color: #efeff1; 
    font-size: 14px; 
    font-weight: 700; 
    cursor: pointer; 
    text-align: left;
    transition: background 0.2s;
}

.accordion-header:hover {
    background: rgba(255, 255, 255, 0.05);
}

.accordion-content { 
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 14px; 
    background: rgba(0, 0, 0, 0.15); 
    border-top: 1px solid transparent; 
    visibility: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                opacity 0.3s ease, 
                padding 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 50vh;
    opacity: 1;
    padding: 12px 14px 14px;
    border-top-color: rgba(255, 255, 255, 0.05);
    visibility: visible;
    transition: max-height 0.4s ease-in-out, 
                opacity 0.4s ease, 
                padding 0.4s ease;
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes popOut {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    100% {
        opacity: 0;
        transform: scale(0.95) translateY(10px);
    }
}

.accordion-content .live-item,
.accordion-content .birthday-item,
.pinned .live-item,
.pinned .birthday-item {
    margin-right: 8px;
    background: #1f1f23;
    border: 1px solid transparent;
}

.accordion-content .live-item:hover,
.accordion-content .birthday-item:hover,
.pinned .live-item:hover,
.pinned .birthday-item:hover {
    transform: none;
    background: #2a2a2f;
    border-color: #dd5719;
}

.accordion-content .live-items,
.accordion-content .birthday-items {
    max-height: 40vh;
    overflow-y: auto;
}

.badge {
    background: #3a3a3c;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin-left: 8px;
    color: white;
}

.pin-btn {
    background: transparent;
    border: none;
    font-size: 14px;
    cursor: pointer;
    opacity: 0.4;
    padding: 4px;
    border-radius: 4px;
    transition: 0.2s;
}

.pin-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.1);
}

.pin-btn.active {
    opacity: 1;
    filter: drop-shadow(0 0 4px #dd5719);
}

.creator-link {
    text-align: center;
    color: #adadb8;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
    padding: 12px;
    background: #1f1f23;
    border-radius: 8px;
    margin-top: 12px;
    transition: 0.2s;
    flex-shrink: 0;
}

.creator-link:hover {
    background: #2a2a2e;
    color: #dd5719;
}

.pinned {
    position: fixed !important;
    display: flex !important;
    flex-direction: column;
    background: rgba(24, 24, 27, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid #3a3a3c;
    border-radius: 12px;
    width: 287px !important;
    z-index: 40;
    box-shadow: 0 12px 32px rgba(0,0,0,0.6);
    max-height: 40vh;
    padding: 12px;
    overflow: hidden;
    opacity: 1 !important;
    visibility: visible !important;
}

.pinned-header {
    display: none;
}

.pinned .pinned-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    color: #adadb8;
    text-transform: uppercase;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.pinned .live-items,
.pinned .birthday-items {
    overflow-y: auto;
    flex-grow: 1;
}

#livePanelWrapper.pinned {
    top: 20px;
    left: 20px;
}

#bdayPanelWrapper.pinned {
    bottom: 20px;
    left: 20px;
}

.header-actions {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.header-actions .badge {
    transition: opacity 0.15s;
}

.pin-btn, 
.close-pin-btn {
    position: absolute;
    right: 0;
    width: 24px;
    height: 24px;
    background: #313136;
    border: none;
    border-radius: 6px;
    color: #adadb8;
    font-size: 12px;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s, background 0.15s, color 0.15s;
}

.pin-btn:hover,
.close-pin-btn:hover {
    color: white;
    background: #3f3f46;
}

.accordion-header:hover .badge,
.pinned-header:hover .badge {
    opacity: 0;
}

.accordion-header:hover .pin-btn,
.pinned-header:hover .close-pin-btn {
    opacity: 1;
    pointer-events: auto;
}

.sidebar-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    width: 100%;
    height: 40px;
    box-sizing: border-box;
}

.sidebar-collapse-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    padding: 0;
    color: #adadb8;
    cursor: pointer;
}

.sidebar-brand-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    padding: 0;
    color: white;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
}

.sidebar-collapse-toggle:hover,
.sidebar-brand-btn:hover {
    background: none;
}

.sidebar-brand-btn img {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.public-owner-top-panel {
    display: none;
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 45;
    background: rgba(24, 24, 27, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid #3a3a3c;
    border-radius: 12px;
    padding: 12px;
    box-shadow: 0 12px 32px rgba(0,0,0,0.6);
    align-items: center;
    gap: 12px;
    width: 313px;
    box-sizing: border-box;
}

body.public-view .public-owner-top-panel {
    display: flex;
}

.public-owner-top-panel img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #dd5719;
    flex-shrink: 0;
}

.top-owner-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    overflow: hidden;
}

.top-owner-title {
    font-size: 11px;
    font-weight: 700;
    color: #adadb8;
    text-transform: uppercase;
}

.top-owner-name {
    font-weight: 700;
    font-size: 15px;
    color: #efeff1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.public-view.guest-mode .profile-header {
    display: none !important;
}

body.public-view.guest-mode #acc-profile {
    background: transparent;
    border: none;
}

body.public-view.guest-mode #acc-profile .accordion-content {
    max-height: 100px;
    opacity: 1;
    visibility: visible;
    padding: 0;
    background: transparent;
    border: none;
}

body.public-view.guest-mode .sidebar-icon.avatar-btn {
    display: none !important;
}