.desktop-sidebar,
.desktop-rightcol,
.home-layout--board{
  display: none;
}

.desktop-bg-canvas{
  display: block;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
  contain: strict;
  transform: translateZ(0);
}

@media (min-width: 1024px){
  .desktop-bg-canvas{
    display: block;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 1;
  }

  .dashboard-wrapper{
    --desk-sidebar-width: 300px;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: 0;
    padding-left: var(--desk-sidebar-width);
    box-sizing: border-box;
    overflow: hidden;
  }

  .dashboard-container{
    position: relative;
    width: auto;
    max-width: none;
    min-width: 0;
    min-height: 0;
    align-self: stretch;
    overflow: hidden;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    z-index: 2;
    margin: 16px 0 16px 18px;
    border-radius: 22px;
  }

  body.curator-workspace .dashboard-container{
    margin-right: 16px;
  }

  #bottomNav,
  #studentNav,
  #curatorNav,
  body.student-mode #studentNav,
  body.curator-workspace #curatorNav{
    display: none !important;
  }

  .dashboard-wrapper{
    --desk-glass-fill: color-mix(in srgb, var(--panel) 42%, transparent);
    --desk-glass-sheen: linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.16) 0%,
      rgba(255, 255, 255, 0.04) 36%,
      color-mix(in srgb, var(--accent-2) 12%, transparent) 100%
    );
    --desk-glass-blur: blur(22px) saturate(150%);
    --desk-glass-edge: color-mix(
      in srgb,
      var(--accent-2) 22%,
      rgba(255, 255, 255, 0.14)
    );
  }

  .dashboard-container{
    background: transparent !important;
  }

  body:not(.student-mode):not(.curator-workspace) .app-topbar{
    display: none !important;
  }

  body:not(.student-mode):not(.curator-workspace) .student-topbar,
  body:not(.student-mode):not(.curator-workspace) .curator-topbar{
    display: none !important;
  }

  .desk-notif-btn{
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: color-mix(in srgb, var(--panel) 55%, transparent);
    color: #fff;
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
    transition:
      transform 0.15s ease,
      border-color 0.18s ease,
      background 0.18s ease;
  }

  .desk-notif-btn:hover{
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(10, 4, 24, 0.58);
  }

  .desk-notif-btn:active{
    transform: scale(0.94);
  }

  .desk-notif-btn svg{
    width: 19px;
    height: 19px;
  }

  .desk-notif-btn .hbtn-badge{
    position: absolute;
    top: -5px;
    right: -5px;
  }

  .student-topbar,
  .curator-topbar{
    display: none !important;
  }

  .dashboard-screen > .screen-header,
  #screenSettings > .screen-header,
  .screen-home > .screen-header{
    display: grid !important;
    flex-shrink: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  body .dashboard-screen > .screen-header{
    padding: 16px 26px 10px;
  }

  body:not(.subscreen-mode) .dashboard-screen > .screen-header .screen-back{
    visibility: hidden;
    pointer-events: none;
  }

  #screenFeed::before,
  #screenChats::before,
  #screenContacts::before{
    content: attr(data-title);
    display: block;
    flex-shrink: 0;
    padding: 18px 26px 10px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    color: var(--text);
  }

  .dashboard-viewport{
    flex: 1 1 auto;
    min-height: 0;
  }

  .dashboard-screen.active{
    min-height: 0;
  }

  .screen-content{
    padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px));
    min-height: 0;
  }

  #screenSupport > .screen-content{
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    box-sizing: border-box;
  }

  #screenSupport .support-card,
  #screenSupport .support-history{
    max-width: none;
  }

  .board-screen-content{
    padding: 0 18px 18px !important;
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  #screenBoard .board-root{
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
  }

  #screenBoard .board-root,
  #screenBoard .board-shell{
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
  }

  body.student-mode .desktop-rightcol,
  body:not(.student-mode):not(.curator-workspace) .desktop-rightcol{
    display: flex;
  }

  body.messenger-open .desktop-rightcol,
  body.student-mode.messenger-open .desktop-rightcol,
  body:not(.student-mode):not(.curator-workspace).messenger-open
    .desktop-rightcol{
    display: none !important;
  }

  body.messenger-open .dashboard-container{
    margin-right: 16px;
  }

  .feed-chrome{
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    border-radius: 0 0 18px 18px;
    overflow: hidden;
    border-bottom: 1px solid var(--desk-glass-edge);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    background: var(--desk-glass-sheen), var(--desk-glass-fill) !important;
    backdrop-filter: var(--desk-glass-blur) !important;
    -webkit-backdrop-filter: var(--desk-glass-blur) !important;
  }
  .feed-chrome::before{
    content: none !important;
    display: none !important;
  }

  #feedList{
    width: 100%;
    max-width: 680px;
    margin-inline: auto;
  }

  .feed-post{
    content-visibility: auto;
    contain-intrinsic-size: auto 260px;
  }

  .desktop-sidebar{
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: fixed;
    left: 0;
    top: 0;
    right: auto;
    bottom: 0;
    inset: 0 auto 0 0;
    width: var(--desk-sidebar-width);
    min-width: var(--desk-sidebar-width);
    max-width: var(--desk-sidebar-width);
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: 22px 14px 18px;
    padding-left: max(14px, env(safe-area-inset-left, 0px));
    box-sizing: border-box;
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 50;
    flex: none;
    pointer-events: auto;
  }

  .desktop-sidebar::before,
  .desktop-sidebar::after{
    content: none !important;
    display: none !important;
  }

  .desk-nav-heading{
    margin: 10px 10px 2px;
    padding: 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--text-dim) 88%, transparent);
    user-select: none;
  }

  .desktop-sidebar > *{
    position: relative;
    z-index: 1;
  }

  .desktop-sidebar::-webkit-scrollbar{
    width: 6px;
    height: 0;
  }
  .desktop-sidebar::-webkit-scrollbar-thumb{
    background: color-mix(in srgb, var(--scrollbar, #666) 70%, transparent);
    border-radius: 8px;
  }

  #screenBoard .be-canvas{
    background:
      radial-gradient(
        1200px 600px at 70% -10%,
        color-mix(in srgb, var(--accent-2) 14%, transparent),
        transparent 60%
      ),
      radial-gradient(
        900px 500px at -10% 110%,
        color-mix(in srgb, var(--accent-1) 10%, transparent),
        transparent 55%
      ),
      var(--bg) !important;
  }

  .desk-brand{
    font-weight: 800;
    font-size: 22px;
    letter-spacing: 2.8px;
    padding: 4px 8px 6px;
    color: var(--text);
    text-shadow: 0 0 18px var(--home-neon-glow);
    user-select: none;
  }

  .desk-brand-mark{
    color: var(--home-neon-purple);
  }

  .desk-mode-btn{
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 64px;
    padding: 14px 16px;
    box-sizing: border-box;
    border-radius: 18px;
    color: #fff;
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid color-mix(in srgb, var(--accent-2) 22%, transparent);
    background:
      radial-gradient(
        120% 140% at 12% 0%,
        color-mix(in srgb, var(--accent-2) 34%, transparent),
        transparent 55%
      ),
      rgba(10, 6, 22, 0.55);
    box-shadow:
      0 12px 28px rgba(0, 0, 0, 0.35),
      0 0 0 1px color-mix(in srgb, var(--accent-2) 12%, transparent) inset,
      0 0 26px color-mix(in srgb, var(--accent-2) 16%, transparent);
    transition:
      transform 0.18s ease,
      box-shadow 0.2s ease,
      filter 0.2s ease;
  }

  .desk-mode-btn .constellation-canvas{
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    pointer-events: none;
  }

  .desk-mode-btn:hover{
    filter: brightness(1.12);
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--accent-2) 25%, transparent),
      0 0 34px var(--home-neon-glow),
      0 12px 30px rgba(0, 0, 0, 0.5);
  }

  .desk-mode-btn:active{
    transform: scale(0.97);
  }

  .desk-mode-btn[data-staff-role="moderator"]{
    box-shadow:
      0 0 0 1px rgba(249, 115, 22, 0.35),
      0 0 28px rgba(249, 115, 22, 0.28),
      0 10px 24px rgba(0, 0, 0, 0.45);
  }
  .desk-mode-btn[data-staff-role="moderator"]:hover{
    filter: brightness(1.1);
    box-shadow:
      0 0 0 1px rgba(249, 115, 22, 0.5),
      0 0 36px rgba(249, 115, 22, 0.4),
      0 12px 30px rgba(0, 0, 0, 0.5);
  }
  .desk-mode-btn[data-staff-role="moderator"] .desk-mode-avatar{
    background: linear-gradient(145deg, #fb923c, #ea580c);
    box-shadow: 0 0 16px rgba(249, 115, 22, 0.55);
    border-color: rgba(255, 237, 213, 0.45);
  }
  .desk-mode-btn[data-staff-role="moderator"] .desk-mode-label{
    color: #fdba74;
  }

  .desk-mode-btn[data-staff-role="curator"] .desk-mode-avatar{
    background: linear-gradient(145deg, #22d3ee, #0284c7);
    box-shadow: 0 0 16px rgba(34, 211, 238, 0.45);
  }
  .desk-mode-btn[data-staff-role="curator"] .desk-mode-label{
    color: #67e8f9;
  }

  .desk-mode-btn[data-staff-role="admin"],
  .desk-mode-btn[data-staff-role="owner"],
  .desk-mode-btn[data-staff-role="lead_it"]{
    box-shadow:
      0 0 0 1px rgba(244, 63, 94, 0.3),
      0 0 28px rgba(244, 63, 94, 0.22),
      0 10px 24px rgba(0, 0, 0, 0.45);
  }
  .desk-mode-btn[data-staff-role="admin"] .desk-mode-avatar,
  .desk-mode-btn[data-staff-role="owner"] .desk-mode-avatar,
  .desk-mode-btn[data-staff-role="lead_it"] .desk-mode-avatar{
    background: linear-gradient(145deg, #fb7185, #e11d48);
    box-shadow: 0 0 16px rgba(244, 63, 94, 0.45);
  }
  .desk-mode-btn[data-staff-role="admin"] .desk-mode-label,
  .desk-mode-btn[data-staff-role="owner"] .desk-mode-label,
  .desk-mode-btn[data-staff-role="lead_it"] .desk-mode-label{
    color: #fda4af;
  }

  .desk-mode-avatar{
    position: relative;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 17px;
    color: #fff;
    background: var(--accent);
    border: 2px solid rgba(255, 255, 255, 0.35);
    overflow: hidden;
    box-shadow: 0 0 14px var(--home-neon-glow);
  }

  .desk-mode-avatar .dashboard-avatar-img{
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .desk-mode-text{
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
  }

  .desk-mode-label{
    font-weight: 800;
    font-size: 15px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .desk-mode-sub{
    font-size: 12px;
    opacity: 0.78;
    font-weight: 600;
  }

  .desk-mode-flip{
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    opacity: 0.85;
  }

  .desk-mode-flip svg{
    width: 100%;
    height: 100%;
  }

  .desk-nav{
    display: none;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    min-width: 0;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding: 2px 0;
  }

  .desk-nav--community{
    display: flex;
  }
  .desk-nav--curator{
    display: none;
  }
  body.student-mode .desk-nav--community{
    display: none;
  }
  body.student-mode .desk-nav--ceo{
    display: flex;
  }
  body.curator-workspace .desk-nav--community{
    display: none;
  }
  body.curator-workspace .desk-nav--ceo{
    display: none;
  }
  body.curator-workspace .desk-nav--curator{
    display: flex;
  }

  body.is-curator #deskCuratorBtn,
  body.is-curator #deskCuratorPill{
    display: none !important;
  }
  body.curator-workspace .desk-nav--curator .desk-nav-item.active{
    color: var(--text);
    background: color-mix(in srgb, #22d3ee 16%, transparent);
  }

  .desk-nav-item{
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 12px 14px;
    border: none;
    border-radius: 14px;
    background: transparent;
    color: var(--text-dim);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.25;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
    transition:
      background 0.18s ease,
      color 0.18s ease,
      box-shadow 0.18s ease;
  }

  .desk-nav-item:hover{
    background: color-mix(in srgb, var(--accent-2) 12%, transparent);
    color: var(--text);
  }

  .desk-nav-item.active{
    background: linear-gradient(
      90deg,
      color-mix(in srgb, var(--home-neon-purple) 28%, transparent),
      color-mix(in srgb, var(--accent-2) 14%, transparent)
    );
    color: #fff;
    box-shadow:
      inset 3px 0 0 0 var(--home-neon-purple),
      inset 0 0 0 1px
        color-mix(in srgb, var(--home-neon-purple) 45%, transparent),
      0 0 22px color-mix(in srgb, var(--home-neon-purple) 28%, transparent);
  }

  .desk-nav-item.is-locked{
    opacity: 0.55;
  }

  .desk-nav-item.is-locked:hover{
    opacity: 0.75;
  }

  .desk-nav-ic{
    width: 22px;
    height: 20px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
  }

  .desk-nav-ic svg{
    width: 20px;
    height: 20px;
  }

  .desk-nav-label{
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .desk-nav-badge{
    margin-left: auto;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--magenta);
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    display: grid;
    place-items: center;
    box-shadow: 0 0 8px var(--magenta);
    box-sizing: border-box;
  }

  .desk-nav-badge.hidden{
    display: none;
  }

  .desk-nav-item--board{
    justify-content: center;
    gap: 10px;
    margin: 10px 2px;
    padding: 11px 18px;
    border-radius: 999px;
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #f5f3ff;
    background:
      radial-gradient(
        120% 140% at 20% 0%,
        color-mix(in srgb, var(--accent-2) 28%, transparent),
        transparent 55%
      ),
      #0a0a0e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
      0 10px 28px rgba(0, 0, 0, 0.45),
      0 0 0 1px color-mix(in srgb, var(--accent-2) 12%, transparent) inset,
      0 0 24px color-mix(in srgb, var(--accent-2) 18%, transparent);
  }

  .desk-nav-item--board:hover{
    color: #fff;
    background:
      radial-gradient(
        120% 140% at 20% 0%,
        color-mix(in srgb, var(--accent-2) 38%, transparent),
        transparent 55%
      ),
      #111118;
    box-shadow:
      0 12px 32px rgba(0, 0, 0, 0.5),
      0 0 0 1px color-mix(in srgb, var(--accent-2) 20%, transparent) inset,
      0 0 32px color-mix(in srgb, var(--accent-2) 28%, transparent);
    transform: scale(1.02);
  }

  .desk-nav-item--board.active{
    background:
      radial-gradient(
        120% 140% at 20% 0%,
        color-mix(in srgb, var(--accent-2) 42%, transparent),
        transparent 55%
      ),
      #0d0d12;
    box-shadow:
      0 12px 32px rgba(0, 0, 0, 0.5),
      0 0 0 1px color-mix(in srgb, var(--accent-2) 35%, transparent) inset,
      0 0 36px color-mix(in srgb, var(--accent-2) 35%, transparent);
  }

  .desk-nav-item--board .desk-nav-label{
    flex: 0 1 auto;
  }

  .desk-island-dot{
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #39ff88;
    box-shadow: 0 0 10px rgba(57, 255, 136, 0.85);
    animation: deskIslandPulse 2.4s ease-in-out infinite;
  }

  @keyframes deskIslandPulse{
    0%,
    100%{
      opacity: 1;
      transform: scale(1);
    }
    50%{
      opacity: 0.7;
      transform: scale(0.85);
    }
  }

  .desk-nav-hex{
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    color: #fff;
    overflow: hidden;
  }

  .desk-nav-hex svg{
    width: 16px;
    height: 16px;
    position: relative;
    z-index: 1;
  }

  .desk-nav-hex .constellation-canvas{
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    pointer-events: none;
  }

  .desktop-rightcol{
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 0 0 280px;
    width: 280px;
    max-width: 280px;
    min-width: 0;
    min-height: 0;
    align-self: stretch;
    height: auto;
    margin: 16px 16px 16px 18px;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    position: relative;
    z-index: 3;
  }

  body.student-mode .desktop-rightcol{
    gap: 10px;
    overflow: hidden;
  }

  body.student-mode .desk-profile-card{
    flex: 0 0 auto;
    padding: 20px 18px 18px;
  }

  body.student-mode .desk-lectorium{
    flex: 0 0 auto;
    padding: 16px 16px 14px;
  }

  body.student-mode .desk-rating{
    flex: 1 1 auto;
    min-height: 0;
    justify-content: center;
    padding: 18px 16px;
  }

  body.student-mode .desk-curator-pill{
    flex: 0 0 auto;
    margin-top: 0;
    padding: 11px 14px;
  }

  .desk-profile-card{
    position: relative;
    border-radius: 24px;
    padding: 22px 18px 18px;
    color: #fff;
    background:
      radial-gradient(
        130% 90% at 100% 0%,
        rgba(255, 255, 255, 0.16),
        transparent 55%
      ),
      var(--accent);
    box-shadow:
      0 16px 40px color-mix(in srgb, var(--accent-1) 32%, transparent),
      inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    text-align: center;
  }

  .desk-profile-head{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 0 28px;
  }

  .desk-profile-text{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 0;
    width: 100%;
  }

  .desk-profile-name{
    font-weight: 800;
    font-size: 17px;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.2;
  }

  .desk-profile-sub{
    font-size: 11.5px;
    font-weight: 600;
    opacity: 0.82;
    line-height: 1.35;
    max-width: 22em;
  }

  .desk-profile-avatar{
    width: 68px;
    height: 68px;
    font-size: 21px;
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow:
      0 0 0 3px rgba(255, 255, 255, 0.12),
      0 8px 20px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    transition:
      box-shadow 0.18s ease,
      transform 0.15s ease;
  }

  .desk-profile-avatar:hover,
  .desk-profile-avatar:focus-visible{
    box-shadow:
      0 0 0 3px rgba(167, 139, 250, 0.6),
      0 8px 20px rgba(0, 0, 0, 0.28);
  }

  .desk-profile-avatar:active{
    transform: scale(0.96);
  }

  .desk-profile-stats{
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 18px;
    text-align: left;
  }

  .desk-profile-stat{
    display: grid;
    grid-template-rows: auto 1fr auto;
    align-items: stretch;
    gap: 10px;
    min-height: 0;
    padding: 14px 16px 12px;
    border-radius: 18px;
    background: rgba(6, 2, 16, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    text-align: left;
  }

  .desk-profile-stat--lives{
    gap: 8px;
    padding: 12px 14px 10px;
    background:
      radial-gradient(
        90% 80% at 50% 48%,
        rgba(192, 38, 255, 0.2),
        transparent 60%
      ),
      rgba(5, 2, 14, 0.62);
    box-shadow:
      inset 0 0 0 1px rgba(216, 180, 254, 0.32),
      0 0 22px rgba(124, 58, 237, 0.12);
  }

  .desk-profile-stat--capital{
    gap: 8px;
    min-height: 96px;
  }

  .desk-profile-stat-label{
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.9px;
    text-transform: uppercase;
    opacity: 0.95;
    line-height: 1.1;
  }

  .desk-lives{
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    gap: 6px;
    width: 100%;
    min-height: 40px;
    padding: 2px;
    box-sizing: border-box;
  }

  .desk-life{
    width: 42px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
  }

  .desk-life .life-icon{
    width: 100%;
    height: 100%;
  }

  .desk-life .life-icon-svg{
    width: 100%;
    height: 100%;
    overflow: visible;
  }

  .desk-nav-hex--asset{
    width: 44px;
    height: 44px;
    background: transparent !important;
    box-shadow: none !important;
    clip-path: none !important;
    overflow: visible;
    display: grid;
    place-items: center;
  }

  .desk-nav-hex--asset::before{
    display: none !important;
  }

  .desk-nav-hex--asset .fab-hex-asset{
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
    transition:
      transform 0.18s ease,
      filter 0.18s ease;
  }

  .desk-nav-item--board:hover .desk-nav-hex--asset .fab-hex-asset{
    transform: scale(1.06);
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55)) brightness(1.06);
  }

  .desk-nav-item--board:hover .desk-nav-hex--asset{
    filter: none;
    box-shadow: none;
  }

  .desk-balance{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    gap: 7px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.2px;
    white-space: nowrap;
    line-height: 1;
    margin: 0;
  }

  .desk-balance-ruble{
    font-size: 20px;
    font-weight: 300;
    color: #d1d5db;
    text-shadow: 0 0 14px rgba(255, 255, 255, 0.22);
    line-height: 1;
  }

  .desk-profile-stat-foot{
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
    color: rgba(221, 214, 254, 0.88);
    line-height: 1.2;
  }

  .desk-card{
    border-radius: 20px;
    padding: 16px;
    background: linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.06),
      rgba(12, 6, 28, 0.28)
    );
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
      0 14px 36px rgba(0, 0, 0, 0.3),
      inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px) saturate(155%);
    -webkit-backdrop-filter: blur(18px) saturate(155%);
  }

  .desk-card-head{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
  }

  .desk-card-title{
    font-weight: 800;
    font-size: 15px;
  }

  .desk-card-menu{
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: var(--text-dim);
    display: grid;
    place-items: center;
    cursor: pointer;
    transition:
      background 0.15s ease,
      color 0.15s ease;
  }

  .desk-card-menu:hover{
    background: color-mix(in srgb, var(--accent-2) 14%, transparent);
    color: var(--text);
  }

  .desk-card-menu svg{
    width: 18px;
    height: 18px;
  }

  .desk-lectorium{
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  body.student-mode .desk-lectorium .desk-card-head{
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    align-items: center;
    justify-content: stretch;
    min-height: 30px;
    margin-bottom: 12px;
  }

  body.student-mode .desk-lectorium .desk-card-title{
    grid-column: 2;
    justify-self: center;
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
    width: auto;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.student-mode .desk-lectorium .desk-card-menu{
    grid-column: 3;
    position: static;
    top: auto;
    right: auto;
    transform: none;
    justify-self: end;
  }

  body.student-mode .desk-lect-player{
    aspect-ratio: 16 / 10;
    min-height: 160px;
    border-radius: 16px;
  }

  body.student-mode .desk-lect-play{
    width: 58px;
    height: 58px;
  }

  .desk-lect-player{
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    border-radius: 14px;
    background:
      radial-gradient(
        90% 90% at 50% 0%,
        color-mix(in srgb, var(--accent-2) 28%, transparent),
        transparent 60%
      ),
      #07030f;
    cursor: pointer;
    overflow: hidden;
    transition:
      border-color 0.2s ease,
      box-shadow 0.2s ease;
    padding: 0;
    font: inherit;
    color: inherit;
    box-sizing: border-box;
  }

  .desk-lect-player:hover{
    border-color: var(--home-neon-purple);
    box-shadow: 0 0 22px var(--home-neon-glow);
  }

  .desk-lect-poster{
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition:
      opacity 0.25s ease,
      transform 0.35s ease;
    transform: scale(1.02);
  }
  .desk-lect-player.has-poster .desk-lect-poster{
    opacity: 1;
  }
  .desk-lect-player:hover .desk-lect-poster{
    transform: scale(1.06);
  }

  .desk-lect-player::after{
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      transparent 42%,
      rgba(0, 0, 0, 0.78) 100%
    );
    pointer-events: none;
    z-index: 1;
  }

  .desk-lect-play{
    position: absolute;
    left: 50%;
    top: 44%;
    z-index: 2;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: color-mix(in srgb, var(--accent-2) 80%, #000);
    box-shadow: 0 0 24px var(--home-neon-glow);
    transform: translate(-50%, -50%);
    transition:
      transform 0.18s ease,
      opacity 0.18s ease;
  }

  .desk-lect-player.is-empty .desk-lect-play{
    top: 50%;
    opacity: 0.55;
  }

  .desk-lect-player:hover .desk-lect-play{
    transform: translate(-50%, -50%) scale(1.08);
  }

  .desk-lect-play svg{
    width: 24px;
    height: 24px;
    margin-left: 3px;
  }

  .desk-lect-meta{
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
    pointer-events: none;
  }

  .desk-lect-player.is-empty .desk-lect-meta{
    text-align: center;
    align-items: center;
  }

  .desk-lect-caption{
    font-size: 12.5px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8);
  }

  .desk-lect-player.is-empty .desk-lect-caption{
    font-weight: 700;
    color: rgba(255, 255, 255, 0.78);
  }

  .desk-lect-watch{
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.78);
  }

  .desk-lect-player.is-empty .desk-lect-watch{
    display: none;
  }

  .desk-lect-bar{
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.18);
    z-index: 3;
    display: none;
  }
  .desk-lect-player.has-progress .desk-lect-bar{
    display: block;
  }
  .desk-lect-bar-fill{
    display: block;
    height: 100%;
    width: 0;
    background: var(--accent);
    box-shadow: 0 0 10px var(--home-neon-glow);
    transition: width 0.35s ease;
  }

  .desk-lect-player.is-done .desk-lect-play{
    background: color-mix(in srgb, #22c55e 75%, #000);
    box-shadow: 0 0 22px rgba(34, 197, 94, 0.4);
  }
  .desk-lect-player.is-done .desk-lect-bar-fill{
    background: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.45);
  }

  .desk-lect-actions{
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    margin-top: 10px;
    width: 100%;
  }

  .desk-lect-actions .desk-lect-btn:last-child{
    grid-column: 1 / -1;
  }

  .desk-lect-btn{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 10px 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
    cursor: pointer;
    transition:
      background 0.15s ease,
      border-color 0.15s ease,
      opacity 0.15s ease;
  }

  .desk-lect-btn span{
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .desk-lect-btn:hover:not(:disabled){
    background: color-mix(in srgb, var(--accent-2) 12%, transparent);
    border-color: var(--line-accent, var(--line));
  }

  .desk-lect-btn:disabled,
  .desk-lect-btn.is-disabled{
    opacity: 0.45;
    cursor: not-allowed;
  }

  .desk-lect-btn svg{
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  .desk-rating{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 18px 16px;
    min-width: 0;
  }

  .desk-rating-eyebrow{
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-dim);
    line-height: 1.2;
  }

  .desk-rating-place{
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    color: #ede9fe;
    text-shadow: 0 0 18px var(--home-neon-glow);
  }

  .desk-rating-place::before{
    content: "#";
    font-weight: 700;
    opacity: 0.72;
    margin-right: 1px;
  }

  body.student-mode .desk-rating:not(.is-empty) .desk-rating-place{
    font-size: clamp(40px, 5.2vh, 56px);
  }

  .desk-rating.is-empty .desk-rating-place{
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(221, 214, 254, 0.55);
    text-shadow: none;
  }

  .desk-rating.is-empty .desk-rating-place::before{
    content: none;
  }

  .desk-rating-sub{
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--text-dim);
    line-height: 1.2;
  }

  .desk-curator-pill{
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, #fff 12%, transparent);
    border-radius: 20px;
    background: color-mix(in srgb, var(--panel) 40%, transparent);
    color: var(--text);
    font-family: inherit;
    text-align: left;
    cursor: pointer;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 8%, transparent);
    transition:
      border-color 0.2s ease,
      box-shadow 0.2s ease,
      transform 0.15s ease;
  }

  body.student-mode .desk-curator-pill-ic{
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  body.student-mode .desk-curator-pill-title{
    font-size: 13px;
  }

  body.student-mode .desk-curator-pill-sub{
    font-size: 11px;
  }

  .desk-curator-pill:hover{
    border-color: var(--home-neon-purple);
    box-shadow: 0 0 20px var(--home-neon-glow);
  }

  .desk-curator-pill:active{
    transform: scale(0.98);
  }

  .desk-curator-pill-ic{
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    border-radius: 12px;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 0 14px var(--home-neon-glow);
  }

  .desk-curator-pill-ic svg{
    width: 19px;
    height: 19px;
  }

  .desk-curator-pill-text{
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .desk-curator-pill-title{
    font-size: 14px;
    font-weight: 800;
  }

  .desk-curator-pill-sub{
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-dim);
  }

  .desk-curator-pill.has-unread .desk-curator-pill-sub{
    color: var(--magenta);
  }

  body:not(.student-mode) .desk-lectorium,
    body:not(.student-mode) .desk-rating,
    body:not(.student-mode) .desk-curator-pill,
    body.student-locked .desk-lectorium,
    body.student-locked .desk-rating,
    body.student-locked .desk-curator-pill{
    display: none;
  }

  .home-layout--mobile{
    display: none !important;
  }
  .home-layout--desktop{
    display: none !important;
  }

  .home-layout--board{
    display: none;
  }

  body.student-has-board .home-layout--board{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    align-items: center;
    justify-content: stretch;
  }

  body.student-mode:not(.student-has-board):not(.student-locked)
    .home-layout--desktop{
    display: flex !important;
    flex-direction: column;
    gap: 16px;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
  }

  .screen-home .home-content,
  .screen-home .home-dashboard{
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .screen-home .home-dashboard{
    flex: 1 1 auto;
  }

  .desk-board-card{
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 90%;
    max-width: 90%;
    min-height: 0;
    margin: 0 auto;
    border-radius: 28px;
    padding: 18px 20px 20px;
    box-sizing: border-box;
    background:
      linear-gradient(165deg, rgba(124, 58, 237, 0.16), transparent 46%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 40%),
      var(--chrome);
    border: 1px solid rgba(167, 139, 250, 0.34);
    backdrop-filter: blur(20px) saturate(165%);
    -webkit-backdrop-filter: blur(20px) saturate(165%);
    box-shadow:
      0 28px 70px rgba(0, 0, 0, 0.48),
      0 0 0 1px rgba(255, 255, 255, 0.04) inset,
      0 0 56px rgba(124, 58, 237, 0.16);
    overflow: hidden;
    cursor: pointer;
  }

  .desk-board-head{
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    flex: 0 0 auto;
  }

  .desk-board-head-text{
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .desk-board-title{
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .desk-board-tags{
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .desk-board-tag{
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(244, 242, 255, 0.88);
    background: rgba(124, 58, 237, 0.22);
    border: 1px solid rgba(167, 139, 250, 0.35);
  }

  .desk-board-preview{
    position: relative;
    flex: 1 1 auto;
    min-height: min(58vh, 560px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(167, 139, 250, 0.26);
    background:
      radial-gradient(
        70% 60% at 50% 32%,
        color-mix(in srgb, var(--accent-2) 20%, transparent),
        transparent 62%
      ),
      radial-gradient(
        42% 38% at 18% 82%,
        rgba(56, 189, 248, 0.1),
        transparent 55%
      ),
      radial-gradient(
        40% 36% at 86% 78%,
        rgba(244, 114, 182, 0.08),
        transparent 50%
      ),
      linear-gradient(180deg, rgba(12, 6, 28, 0.62), rgba(5, 2, 14, 0.78));
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.04),
      inset 0 30px 60px rgba(124, 58, 237, 0.06);
  }

  .desk-board-glow{
    pointer-events: none;
    position: absolute;
    inset: -20% -10% auto;
    height: 55%;
    background: radial-gradient(
      ellipse at 50% 0%,
      color-mix(in srgb, var(--accent-2) 22%, transparent),
      transparent 70%
    );
    z-index: 0;
  }

  .desk-board-open{
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 14px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
  }

  .desk-board-open-hint{
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
    box-shadow: 0 0 22px var(--home-neon-glow);
    opacity: 0;
    transform: translateY(6px);
    transition:
      opacity 0.2s ease,
      transform 0.2s ease;
  }

  .desk-board-card:hover .desk-board-open-hint,
  .desk-board-open:hover .desk-board-open-hint,
  .desk-board-open:focus-visible .desk-board-open-hint{
    opacity: 1;
    transform: translateY(0);
  }

  .desk-board-preview .be-canvas-wrap{
    z-index: 1;
  }

  .desk-board-preview .be-canvas{
    background: transparent;
  }

  body.student-mode #screenBoard > .screen-header,
  body.curator-workspace #screenBoard > .screen-header,
  body.subscreen-mode #screenBoard > .screen-header{
    display: grid !important;
    flex-shrink: 0;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
  }

  @media (prefers-reduced-motion: reduce){
    .desk-lect-player:hover .desk-lect-play{
      transform: translate(-50%, -50%);
    }
    .desk-lect-player:hover .desk-lect-poster{
      transform: scale(1.02);
    }
  }
}

@media (min-width: 1024px) and (max-width: 1279px){
  .dashboard-container{
    margin: 12px 0 12px 14px;
  }

  body.curator-workspace .dashboard-container,
  body.messenger-open .dashboard-container{
    margin-right: 12px;
  }

  .desktop-rightcol{
    flex-basis: 250px;
    width: 250px;
    max-width: 250px;
    margin: 12px 12px 12px 14px;
  }

  .desk-lect-btn{
    font-size: 11.5px;
    padding: 10px 6px;
  }
}

@media (min-width: 1440px){
  .dashboard-container{
    margin: 20px 0 20px 22px;
  }

  body.curator-workspace .dashboard-container,
  body.messenger-open .dashboard-container{
    margin-right: 20px;
  }

  .desktop-rightcol{
    flex-basis: 300px;
    width: 300px;
    max-width: 300px;
    margin: 20px 20px 20px 22px;
  }
}
