.desktop-conversation-workspace { display: none; }

/* Experiencia exclusiva del cliente OwlPTT Desktop. La versión web y móvil
   conserva sus reglas originales porque esta hoja requiere .desktop-app. */
@media (min-width: 820px) {
  .desktop-app body {
    height: 100vh;
    padding: 14px;
    overflow: hidden;
    background: linear-gradient(145deg,#e7edf2,#f5f7f9 58%,#e3eaef);
  }

  .desktop-app .app-shell {
    width: min(1320px,calc(100vw - 28px));
    height: calc(100vh - 28px);
    min-height: 590px;
    max-height: none;
    border: 1px solid #d6dee5;
    border-radius: 20px;
    box-shadow: 0 24px 70px rgb(27 45 59 / 18%);
  }

  .desktop-app .screen { min-height: 100%; height: 100%; }

  .desktop-app .dialer-screen {
    --desktop-sidebar: 218px;
    --desktop-dial-column: clamp(290px,30vw,390px);
    position: relative;
    padding: 0 0 0 var(--desktop-sidebar);
    overflow: hidden;
    background: #f7f9fa;
  }

  .desktop-app .bottom-nav {
    position: absolute;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    width: var(--desktop-sidebar);
    min-height: 0;
    padding: 82px 14px 14px;
    border: 0;
    border-right: 1px solid #243845;
    border-radius: 0;
    background:
      radial-gradient(circle at 18% 7%,rgb(51 190 167 / 18%),transparent 25%),
      linear-gradient(180deg,#132630,#0e2029);
    box-shadow: none;
  }

  .desktop-app .bottom-nav::before {
    position: absolute;
    top: 29px;
    left: 24px;
    display: flex;
    align-items: center;
    min-height: 34px;
    padding-left: 42px;
    background: url('/assets/owlptt-icon-192.png') left center / 32px 32px no-repeat;
    content: 'OwlPTT';
    color: #f7fbfc;
    font-size: 1.18rem;
    font-weight: 900;
    letter-spacing: -.02em;
  }

  .desktop-app .bottom-nav::after {
    margin-top: 8px;
    padding: 11px 10px 0;
    border-top: 1px solid rgb(255 255 255 / 9%);
    content: 'PTT empresarial';
    color: #78909c;
    font-size: .67rem;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
  }

  .desktop-app .bottom-nav button {
    display: flex;
    flex: 0 0 50px;
    align-items: center;
    justify-content: flex-start;
    flex-direction: row;
    gap: 13px;
    width: 100%;
    margin-bottom: 5px;
    padding: 0 15px;
    border-radius: 14px;
    color: #9db0ba;
    font-size: .76rem;
    font-weight: 780;
  }

  .desktop-app .bottom-nav .desktop-chat-nav { display: flex !important; }
  .desktop-app .bottom-nav .desktop-only-nav { display: flex !important; }
  .desktop-app .bottom-nav .desktop-nav-divider { display: block !important; flex: 0 0 1px; width: calc(100% - 20px); margin: 6px 10px 10px; background: rgb(255 255 255 / 10%); }
  .desktop-app .bottom-nav .desktop-logout-nav { margin-top: auto; color: #dba2a7; }
  .desktop-app .bottom-nav .desktop-logout-nav:hover { background: rgb(220 79 95 / 13%); color: #ffc4ca; }

  .desktop-app .bottom-nav button:hover {
    background: rgb(255 255 255 / 7%);
    color: #e5f2f1;
  }

  .desktop-app .bottom-nav button.active {
    background: linear-gradient(135deg,#1c8f7c,#167566);
    color: #fff;
    box-shadow: 0 9px 22px rgb(8 92 79 / 30%);
  }

  .desktop-app .bottom-nav svg { width: 23px; height: 23px; }
  .desktop-app .nav-keypad { width: 22px; height: 22px; }

  .desktop-app .app-header {
    min-height: 72px;
    height: 72px;
    padding: 12px 26px;
    border-bottom-color: #dfe5e9;
    background: rgb(255 255 255 / 94%);
  }

  .desktop-app .menu-avatar-button { display: none; }
  .desktop-app .app-header .account { padding-left: 3px; }
  .desktop-app .header-account-id { font-size: .83rem; }
  .desktop-app .connection-pill { padding: 8px 12px; font-size: .72rem; }

  .desktop-app .panel {
    width: min(1080px,100%);
    height: calc(100% - 72px);
    min-height: 0;
    margin: 0 auto;
    padding: 24px clamp(24px,4vw,54px) 26px;
    overflow-y: auto;
  }

  .desktop-app .dialer-panel {
    display: grid;
    grid-template-columns: var(--desktop-dial-column) minmax(330px,1fr);
    grid-template-rows: auto auto 1fr auto;
    gap: 8px clamp(24px,3vw,46px);
    width: 100%;
    max-width: none;
    align-items: start;
    overflow: hidden;
  }

  .desktop-app .dialer-panel .destination {
    grid-column: 1;
    grid-row: 1;
    min-height: 88px;
    padding: 12px 12px 8px;
    border: 1px solid #e1e7eb;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 8px 22px rgb(36 62 76 / 5%);
  }

  .desktop-app .dialer-panel .call-state { grid-column: 1; grid-row: 2; }
  .desktop-app .dialer-panel .dial-pad { grid-column: 1; grid-row: 3; align-self: center; }
  .desktop-app .dialer-panel .send-call-alert { grid-column: 1; grid-row: 4; }
  .desktop-app .dialer-panel .ptt-area {
    grid-column: 2;
    grid-row: 1 / 5;
    align-self: center;
    justify-content: center;
    min-height: 0;
    margin: 0;
  }

  .desktop-app .number-row input { font-size: clamp(1.7rem,3vw,2.25rem); }
  .desktop-app .dial-pad { grid-template-columns: repeat(3,76px); gap: 10px 20px; }
  .desktop-app .dial-pad button { width: 76px; height: 58px; border-radius: 17px; }

  .desktop-app .dialer-panel .ptt {
    height: clamp(280px,46vh,340px);
    min-height: 260px;
    max-height: 340px;
    border-radius: 27px;
    background: linear-gradient(145deg,#20a88d,#0c755f);
    box-shadow: 0 18px 40px rgb(12 117 95 / 27%),inset 0 1px 1px rgb(255 255 255 / 38%);
  }

  .desktop-app .dialer-panel .ptt:disabled {
    background: linear-gradient(145deg,#dce4e7,#cbd5d9);
    box-shadow: inset 0 0 0 1px #c2cdd2;
  }

  .desktop-app .dialer-panel .ptt-halo { inset: 9px; border-radius: 20px; }
  .desktop-app .dialer-panel .ptt-content { flex-direction: column; gap: 19px; text-align: center; }
  .desktop-app .dialer-panel .ptt svg { width: 62px; }
  .desktop-app .dialer-panel .ptt-copy { align-items: center; text-align: center; }
  .desktop-app .dialer-panel .ptt-copy strong { font-size: 1.22rem; }
  .desktop-app .dialer-panel .ptt-copy small { font-size: .79rem; }

  .desktop-app .list-panel,
  .desktop-app .contact-detail-panel,
  .desktop-app .add-contact-panel,
  .desktop-app .settings-panel,
  .desktop-app .device-setup-panel,
  .desktop-app .profile-panel,
  .desktop-app .security-panel,
  .desktop-app .diagnostics-panel,
  .desktop-app .help-panel,
  .desktop-app .privacy-panel,
  .desktop-app .group-detail-panel,
  .desktop-app .recent-detail-panel {
    width: min(1040px,100%);
    height: calc(100% - 72px);
    min-height: 0;
    margin: 0 auto;
    padding: 26px clamp(28px,5vw,64px) 34px;
    overflow-y: auto;
  }

  .desktop-app .chat-panel { display: grid; grid-template-columns: 350px minmax(0,1fr); width: 100%; max-width: none; height: calc(100% - 72px); margin: 0; padding: 0; }
  .desktop-app .chat-panel.hidden { display: none; }
  .desktop-app .chat-panel .chat-sidebar { display: block; padding: 25px 17px 24px; border-right: 1px solid #dce5e7; }
  .desktop-app .chat-panel .chat-thread { display: block; }
  .desktop-app .chat-empty-state { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; height: 100%; color: #708089; text-align: center; }
  .desktop-app .chat-empty-state > span { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 4px; border-radius: 24px; background: #e2efed; color: #168373; }
  .desktop-app .chat-empty-state svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.6; }
  .desktop-app .chat-empty-state strong { color: #29444d; font-size: 1rem; }.desktop-app .chat-empty-state small { max-width: 280px; line-height: 1.5; }
  .desktop-app .chat-thread-header { grid-template-columns: 44px minmax(0,1fr) 44px; height: 72px; padding: 11px 20px; }
  .desktop-app .chat-thread-header #chatBack { display: none; }
  .desktop-app .chat-thread-header > span { width: 44px; height: 44px; }
  .desktop-app .chat-thread-header strong { font-size: .9rem; }.desktop-app .chat-thread-header small { font-size: .68rem; }
  .desktop-app .chat-messages { padding: 24px clamp(24px,5vw,70px); }.desktop-app .chat-bubble { max-width: min(70%,620px); }.desktop-app .chat-bubble p { font-size: .83rem; }
  .desktop-app .chat-composer { padding: 13px clamp(24px,5vw,70px) 17px; }.desktop-app .chat-composer textarea { font-size: .83rem; }

  .desktop-app .contact-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 11px; }
  .desktop-app .contact-row,.desktop-app .recent-row { min-height: 72px; }
  .desktop-app .settings-panel { width: min(1060px,100%); }
  .desktop-app .settings-group { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .desktop-app .settings-group-title { grid-column: 1 / -1; }
  .desktop-app .setting-row:nth-of-type(even) { border-left: 1px solid #edf0f2; }
  .desktop-app .side-menu,.desktop-app .menu-backdrop { display: none !important; }

  .desktop-app .incoming-call,
  .desktop-app .call-alert-screen,
  .desktop-app .send-alert-confirm,
  .desktop-app .communication-screen { position: absolute; }
}

@media (min-width: 1024px) {
  .desktop-app .chat-panel { grid-template-columns: 310px minmax(0,1fr); }
  .desktop-app .chat-panel .chat-thread { display: none; }
  .desktop-app .desktop-conversation-workspace {
    display: grid;
    grid-template-rows: auto minmax(0,1fr);
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    background: #eef3f5;
  }
  .desktop-app .desktop-workspace-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 12px 22px;
    border-bottom: 1px solid #d9e2e6;
    background: rgb(255 255 255 / 91%);
  }
  .desktop-app .desktop-workspace-header h2 { margin: 1px 0 0; color: #18343e; font-size: 1.08rem; }
  .desktop-app .desktop-workspace-status { display: flex; align-items: center; gap: 8px; color: #617780; font-size: .68rem; font-weight: 750; }
  .desktop-app .desktop-workspace-status > i { width: 8px; height: 8px; border-radius: 50%; background: #20a487; box-shadow: 0 0 0 4px rgb(32 164 135 / 12%); }
  .desktop-app .desktop-workspace-status > b { margin-left: 5px; padding: 5px 8px; border-radius: 9px; background: #e4efed; color: #176d60; }
  .desktop-app .desktop-conversation-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(260px,1fr));
    grid-template-rows: repeat(2,minmax(0,1fr));
    gap: 12px;
    min-height: 0;
    padding: 12px;
    overflow: hidden;
  }
  .desktop-app .desktop-conversation-grid.cards-1 { grid-template-columns: minmax(360px,740px); grid-template-rows: minmax(0,1fr); justify-content: center; }
  .desktop-app .desktop-conversation-grid.cards-2 { grid-template-rows: minmax(0,1fr); }
  .desktop-app .desktop-conversation-grid.cards-3 > article:first-child { grid-row: 1 / 3; }
  .desktop-app .desktop-workspace-empty { display: flex; grid-column: 1 / -1; grid-row: 1 / -1; align-items: center; justify-content: center; flex-direction: column; padding: 40px; color: #6c7e86; text-align: center; }
  .desktop-app .desktop-workspace-empty > span { display: grid; place-items: center; width: 70px; height: 70px; margin-bottom: 13px; border-radius: 22px; background: #dce9e7; color: #168372; }
  .desktop-app .desktop-workspace-empty svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.7; }
  .desktop-app .desktop-workspace-empty strong { color: #29444d; font-size: 1rem; }
  .desktop-app .desktop-workspace-empty small { max-width: 390px; margin-top: 7px; line-height: 1.5; }
  .desktop-app .desktop-conversation-card {
    display: grid;
    grid-template-rows: auto auto minmax(0,1fr) auto;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid #d4dfe3;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 7px 19px rgb(28 52 62 / 6%);
    transition: border-color .15s,box-shadow .15s;
  }
  .desktop-app .desktop-conversation-card.transmit-selected { border-color: #63af9f; box-shadow: 0 0 0 2px rgb(40 158 135 / 11%),0 9px 24px rgb(28 52 62 / 8%); }
  .desktop-app .desktop-conversation-card > header { display: grid; grid-template-columns: 38px minmax(0,1fr) auto 27px; align-items: center; gap: 9px; padding: 10px 11px; border-bottom: 1px solid #edf1f3; }
  .desktop-app .desktop-card-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: #e1eeec; color: #157767; font-size: .8rem; font-weight: 900; }
  .desktop-app .desktop-card-avatar.group { background: #e7e8f6; color: #5f62a5; }
  .desktop-app .desktop-conversation-card > header div { min-width: 0; }
  .desktop-app .desktop-conversation-card > header strong,.desktop-app .desktop-conversation-card > header small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .desktop-app .desktop-conversation-card > header strong { color: #1d3842; font-size: .77rem; }
  .desktop-app .desktop-conversation-card > header small { margin-top: 2px; color: #7d8e95; font-size: .61rem; }
  .desktop-app .desktop-card-presence { display: flex; align-items: center; gap: 5px; color: #73868e; font-size: .58rem; font-weight: 750; white-space: nowrap; }
  .desktop-app .desktop-card-presence i { width: 7px; height: 7px; border-radius: 50%; background: #9ba8ad; }
  .desktop-app .desktop-card-presence.online i { background: #25ac79; }.desktop-app .desktop-card-presence.away i { background: #e7a836; }.desktop-app .desktop-card-presence.offline i { background: #aab4b8; }.desktop-app .desktop-card-presence.group i { background: #676cc4; }
  .desktop-app .desktop-card-close { width: 27px; height: 27px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #839198; font-size: 1.15rem; line-height: 1; }
  .desktop-app .desktop-card-close:hover { background: #eef2f4; color: #425a64; }
  .desktop-app .desktop-card-toolbar { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border-bottom: 1px solid #edf1f3; background: #fafcfc; }
  .desktop-app .desktop-card-select { display: flex; flex: 1; align-items: center; gap: 7px; min-width: 0; padding: 7px 9px; border: 0; border-radius: 9px; background: transparent; color: #71828a; font-size: .6rem; font-weight: 800; }
  .desktop-app .desktop-card-select i { width: 7px; height: 7px; border: 1.5px solid #8b9ba1; border-radius: 50%; }
  .desktop-app .desktop-card-select.active { background: #e3f2ef; color: #137462; }.desktop-app .desktop-card-select.active i { border-color: #15947d; background: #15947d; box-shadow: 0 0 0 3px rgb(21 148 125 / 13%); }
  .desktop-app .desktop-card-ptt { display: flex; align-items: center; gap: 5px; padding: 7px 11px; border: 0; border-radius: 9px; background: #17816f; color: #fff; font-size: .62rem; font-weight: 850; box-shadow: 0 5px 12px rgb(16 118 100 / 18%); }
  .desktop-app .desktop-card-ptt svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; }
  .desktop-app .desktop-card-messages { display: flex; flex-direction: column; gap: 6px; min-height: 0; padding: 10px; overflow-y: auto; background: linear-gradient(160deg,#f9fbfb,#f3f7f7); }
  .desktop-app .desktop-card-messages .chat-day { margin: 2px auto; font-size: .53rem; }
  .desktop-app .desktop-card-messages .chat-bubble { max-width: 86%; padding: 7px 9px; border-radius: 11px; }
  .desktop-app .desktop-card-messages .chat-bubble p { font-size: .67rem; line-height: 1.35; }
  .desktop-app .desktop-card-messages .chat-bubble footer { font-size: .5rem; }
  .desktop-app .desktop-card-messages .empty-state { margin: auto; font-size: .65rem; }
  .desktop-app .desktop-card-composer { display: grid; grid-template-columns: minmax(0,1fr) 34px; gap: 7px; padding: 8px 9px; border-top: 1px solid #e5ebee; background: #fff; }
  .desktop-app .desktop-card-composer textarea { min-width: 0; height: 34px; max-height: 68px; padding: 8px 10px; resize: none; border: 1px solid #d6e0e3; border-radius: 10px; outline: 0; color: #263f48; font: inherit; font-size: .66rem; }
  .desktop-app .desktop-card-composer textarea:focus { border-color: #58a99a; box-shadow: 0 0 0 3px rgb(33 148 127 / 10%); }
  .desktop-app .desktop-card-composer button { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 10px; background: #17816f; color: #fff; }
  .desktop-app .desktop-card-composer button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
  .desktop-app .chat-list-meta em { display: block; margin-top: 4px; color: #16806e; font-size: .52rem; font-style: normal; font-weight: 800; }

  .desktop-app .dialer-screen.desktop-communication-active .dialer-panel .ptt-area { visibility: hidden; pointer-events: none; }
  .desktop-app .dialer-screen.desktop-communication-active .dialer-panel .destination,
  .desktop-app .dialer-screen.desktop-communication-active .dialer-panel .dial-pad,
  .desktop-app .dialer-screen.desktop-communication-active .dialer-panel .send-call-alert { pointer-events: none; }
  .desktop-app .dialer-screen.desktop-communication-active .dialer-panel .dial-pad { opacity: .72; }
  .desktop-app .dialer-screen.desktop-communication-active .dialer-panel { padding-right: 18px; }
  .desktop-app .dialer-screen.desktop-communication-active .communication-screen[data-mode="ptt"] {
    position: absolute;
    z-index: 4;
    top: 72px;
    right: 0;
    bottom: 0;
    left: calc(var(--desktop-sidebar) + 24px + var(--desktop-dial-column) + 20px);
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto minmax(0,1fr);
    gap: 16px;
    width: auto;
    height: auto;
    min-height: 0;
    padding: 20px clamp(24px,3vw,46px) 24px;
    border-left: 1px solid #dce5e7;
    background: linear-gradient(155deg,#f8fbfb,#eef5f3);
    box-shadow: -18px 0 44px rgb(31 60 68 / 7%);
    overflow: hidden;
  }
  .desktop-app .dialer-screen.desktop-communication-active .communication-screen[data-mode="ptt"] .communication-top { grid-column: 1; grid-row: 1; }
  .desktop-app .dialer-screen.desktop-communication-active .communication-screen[data-mode="ptt"] .communication-person {
    display: grid;
    grid-template-columns: 82px minmax(0,1fr);
    grid-template-rows: auto auto auto;
    grid-column: 1;
    grid-row: 2;
    column-gap: 17px;
    align-items: center;
    align-self: auto;
    margin: 0;
    padding: 16px 18px;
    border: 1px solid #dce8e6;
    border-radius: 21px;
    background: #fff;
    box-shadow: 0 10px 25px rgb(32 67 73 / 6%);
    text-align: left;
  }
  .desktop-app .dialer-screen.desktop-communication-active .communication-avatar { grid-column: 1; grid-row: 1 / 4; width: 72px; height: 72px; border-radius: 22px; font-size: 1.55rem; }
  .desktop-app .dialer-screen.desktop-communication-active .communication-person h2 { grid-column: 2; margin: 0; font-size: 1.22rem; }
  .desktop-app .dialer-screen.desktop-communication-active .communication-person p { grid-column: 2; margin: 3px 0 0; }
  .desktop-app .dialer-screen.desktop-communication-active .communication-company { grid-column: 2; justify-self: start; margin-top: 6px; }
  .desktop-app .dialer-screen.desktop-communication-active .outgoing-ptt-stage { grid-column: 1; grid-row: 3; width: 100%; min-height: 0; padding: 0; }
  .desktop-app .dialer-screen.desktop-communication-active .outgoing-ptt { width: 100%; min-height: 190px; max-height: 300px; margin: auto 0 0; border-radius: 25px; }
}

@media (min-width: 820px) and (max-height: 700px) {
  .desktop-app body { padding: 8px; }
  .desktop-app .app-shell { width: calc(100vw - 16px); height: calc(100vh - 16px); min-height: 560px; }
  .desktop-app .app-header { min-height: 64px; height: 64px; }
  .desktop-app .panel { height: calc(100% - 64px); padding-top: 15px; padding-bottom: 15px; }
  .desktop-app .dialer-panel .destination { min-height: 76px; padding-top: 7px; }
  .desktop-app .dial-pad { gap: 6px 18px; }
  .desktop-app .dial-pad button { height: 48px; }
  .desktop-app .dialer-panel .ptt {
    height: clamp(230px,44vh,300px);
    min-height: 230px;
    max-height: 300px;
  }
  .desktop-app .bottom-nav { padding-top: 70px; }
  .desktop-app .bottom-nav button { flex-basis: 43px; margin-bottom: 3px; }
  .desktop-app .bottom-nav::before { top: 24px; }
  .desktop-app .list-panel,
  .desktop-app .contact-detail-panel,
  .desktop-app .settings-panel { height: calc(100% - 64px); padding-top: 18px; }
}

@media (min-width: 1024px) and (max-height: 700px) {
  .desktop-app .dialer-screen.desktop-communication-active .communication-screen[data-mode="ptt"] { top: 64px; padding-top: 13px; padding-bottom: 13px; gap: 10px; }
  .desktop-app .dialer-screen.desktop-communication-active .communication-screen[data-mode="ptt"] .communication-person { padding: 10px 14px; }
  .desktop-app .dialer-screen.desktop-communication-active .communication-avatar { width: 60px; height: 60px; border-radius: 18px; }
  .desktop-app .dialer-screen.desktop-communication-active .outgoing-ptt { min-height: 150px; max-height: 220px; }
}

/* Refinamiento visual v65: un mismo lenguaje para teclado, actividad,
   directorio, perfil, ajustes y la entrada administrativa. */
@media (min-width: 820px) {
  .desktop-app .dialer-screen { --desktop-sidebar: 232px; --desktop-dial-column: clamp(300px,29vw,374px); background: #eef3f4; }
  .desktop-app .bottom-nav { padding-inline: 13px; border-right-color: #29424a; background: radial-gradient(circle at 12% 5%,rgb(39 190 163 / 22%),transparent 26%),linear-gradient(180deg,#102932,#0b2028 72%); }
  .desktop-app .bottom-nav::before { left: 25px; background-size: 36px 36px; padding-left: 48px; font-size: 1.24rem; }
  .desktop-app .bottom-nav button { min-height: 48px; border: 1px solid transparent; }
  .desktop-app .bottom-nav button.active { border-color: rgb(110 222 199 / 18%); background: linear-gradient(135deg,#178c77,#116b5d); }
  .desktop-app .bottom-nav #desktopAdmin { color: #f3d68d; }
  .desktop-app .bottom-nav #desktopAdmin:hover { border-color: rgb(243 214 141 / 15%); background: rgb(243 214 141 / 9%); color: #ffe6a7; }
  .desktop-app .bottom-nav .admin-only.hidden { display: none !important; }
  .desktop-app .admin-only:not(.hidden) { display: flex !important; }
  .admin-icon { background: #fff5d9 !important; color: #9a6905 !important; }

  .desktop-app .app-header { border-bottom: 1px solid #d9e3e5; background: linear-gradient(90deg,rgb(255 255 255 / 97%),rgb(249 252 252 / 94%)); box-shadow: 0 4px 16px rgb(28 59 67 / 4%); }
  .desktop-app .app-header .account::before { content: 'OWLPTT'; margin-right: 7px; padding: 5px 7px; border-radius: 7px; background: #e2f2ef; color: #147463; font-size: .55rem; font-weight: 900; letter-spacing: .1em; }
  .desktop-app .connection-pill { border: 1px solid #cfe6e1; background: #edf8f5; }

  .desktop-app .panel:not(.chat-panel) { scrollbar-color: #b7c7cb transparent; }
  .desktop-app .list-panel,
  .desktop-app .settings-panel,
  .desktop-app .profile-panel { background: linear-gradient(155deg,#f7fafa,#eef4f5); }
  .desktop-app .panel-heading { align-items: center; margin-bottom: 17px; padding-bottom: 15px; border-bottom: 1px solid #dce6e8; }
  .desktop-app .panel-heading h2 { color: #18343e; font-size: 1.72rem; }
  .desktop-app .section-kicker { color: #17816f; }
  .desktop-app .recents-summary,
  .desktop-app .privacy-note { width: fit-content; margin: 0 0 17px; padding: 7px 11px; border: 1px solid #dbe6e7; border-radius: 999px; background: rgb(255 255 255 / 72%); }
  .desktop-app .contact-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .desktop-app .contact-row,
  .desktop-app .group-row,
  .desktop-app .recent-row { min-height: 82px; padding: 14px; border-color: #d7e2e4; border-radius: 17px; box-shadow: 0 7px 20px rgb(28 55 63 / 5%); }
  .desktop-app .contact-row:hover,
  .desktop-app .group-row:hover,
  .desktop-app .recent-row:hover { border-color: #91c9bf; box-shadow: 0 11px 27px rgb(25 104 91 / 9%); transform: translateY(-2px); }
  .desktop-app .contact-avatar,
  .desktop-app .group-row-avatar { width: 46px; height: 46px; border-radius: 14px; }
  .desktop-app .contacts-view-switch { width: min(390px,100%); margin-bottom: 15px; padding: 4px; border: 1px solid #d8e3e5; background: #e7edef; }
  .desktop-app .contacts-view-switch button { min-height: 39px; }
  .desktop-app .contacts-view-switch button.active { background: #fff; box-shadow: 0 4px 12px rgb(28 55 63 / 8%); }
  .desktop-app .search-box { max-width: 560px; }

  .desktop-app .dialer-panel { align-self: center; height: min(650px,calc(100% - 18px)); padding: 22px; border: 1px solid #d7e2e4; border-radius: 25px; background: linear-gradient(145deg,#fff,#f7fafa); box-shadow: 0 16px 42px rgb(29 58 66 / 8%); }
  .desktop-app .dialer-panel .destination { box-shadow: none; }
  .desktop-app .dialer-panel .dial-pad button { border-color: #d8e4e6; background: linear-gradient(180deg,#fff,#f1f6f6); box-shadow: 0 4px 0 #d3dfe1; }
  .desktop-app .dialer-panel .dial-pad button:hover { border-color: #9fcdc5; background: #f4fbf9; }
  .desktop-app .dialer-panel .ptt-area { padding: 20px; border: 1px solid #dce7e7; border-radius: 24px; background: radial-gradient(circle at 50% 34%,#eefaf7,#f8fbfb 58%); }
  .desktop-app .dialer-panel .ptt { height: clamp(220px,34vh,270px); min-height: 220px; max-height: 270px; border-radius: 28px; }
  .desktop-app .dialer-panel .ptt-halo { border-radius: 21px; }
  .desktop-app .dialer-panel .ptt svg { width: 54px; }
  .desktop-app .dialer-panel .ptt-copy strong { font-size: 1.13rem; }

  .desktop-app .identity-card { border: 1px solid rgb(255 255 255 / 10%); border-radius: 20px; background: radial-gradient(circle at 88% 0,rgb(38 190 163 / 28%),transparent 36%),linear-gradient(145deg,#112d37,#173f48); }
  .desktop-app .settings-group { overflow: hidden; border-radius: 17px; background: rgb(255 255 255 / 88%); box-shadow: 0 7px 22px rgb(26 55 63 / 5%); }
  .desktop-app .settings-group-title { padding: 14px 16px 10px; color: #17806e; }
  .desktop-app .setting-row { min-height: 72px; background: transparent; }
  .desktop-app .setting-row:hover { background: #f7fbfa; }
  .desktop-app .profile-hero { padding: 30px; border: 1px solid #d7e5e5; border-radius: 23px; background: radial-gradient(circle at 50% 0,#e4f6f2,transparent 52%),#fff; box-shadow: 0 12px 32px rgb(29 67 72 / 7%); }
  .desktop-app .profile-id-parts,
  .desktop-app .availability-section { border: 1px solid #dae5e7; border-radius: 18px; background: rgb(255 255 255 / 88%); box-shadow: 0 7px 22px rgb(26 55 63 / 5%); }
}

@media (min-width: 820px) and (max-height: 700px) {
  .desktop-app .dialer-panel { height: calc(100% - 8px); padding: 14px 18px; }
  .desktop-app .dialer-panel .ptt-area { padding: 14px; }
  .desktop-app .dialer-panel .ptt { height: clamp(180px,32vh,220px); min-height: 180px; max-height: 220px; }
}
