
#simpleVoicePanel{position:fixed;z-index:2147483400;top:70px;left:8px;width:min(360px,calc(100vw - 16px));max-height:calc(100dvh - 86px);overflow:auto;background:rgba(9,13,22,.98);border:1px solid rgba(56,189,248,.45);border-radius:12px;padding:10px;box-shadow:0 16px 50px rgba(0,0,0,.6);color:#e5e7eb;font-size:12px}
#simpleVoicePanel.hidden{display:none!important}
#simpleVoicePanel .voice-status{padding:8px;border-radius:8px;background:rgba(15,23,42,.9);border:1px solid rgba(148,163,184,.25);margin-bottom:8px;line-height:1.35}
#simpleVoicePanel .voice-row{display:flex;gap:6px;flex-wrap:wrap;margin:7px 0} #simpleVoicePanel button{min-height:38px}
#simpleVoicePanel .voice-name{width:100%;min-height:40px;border-radius:8px;border:1px solid #334155;background:#0f172a;color:#fff;padding:8px}
#simpleVoiceParticipants{display:flex;flex-direction:column;gap:5px;margin-top:7px}.voice-person{display:flex;align-items:center;gap:6px;padding:6px 7px;border:1px solid rgba(148,163,184,.2);border-radius:8px;background:rgba(15,23,42,.72)}.voice-person span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.voice-person button{min-height:30px;padding:4px 7px;font-size:10px}
#voiceTalkBtn{width:100%;min-height:58px;font-size:16px;font-weight:900;touch-action:none;user-select:none}.voice-live{border-color:#22c55e!important;box-shadow:0 0 0 2px rgba(34,197,94,.25) inset}.voice-muted{opacity:.75}

    /* Monster combat actions: reddish Hit +X lettering only. */
    .ms-hit {
      color: #f87171 !important;
    }


    /* Testing Mode 11: Walls window must stay above the combat turn panel */
    #panelWalls {
      z-index: 120000 !important;
    }

    /* Testing Mode 13: Monster Library/editor above combat tracker */
    #panelMonsterLibrary, #panelMonsterDuplicateEditor, #panelCharacterDuplicateEditor { z-index: 130000 !important; }


    /* Testing Mode 37: compact stacked Character Library actions. */
    #characterLibraryPanelList .character-library-actions {
      display:grid;
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:4px;
      width:150px;
      max-width:150px;
      margin-left:auto;
      flex:0 0 150px;
    }
    #characterLibraryPanelList .character-library-actions button {
      width:100%;
      min-width:0 !important;
      min-height:28px !important;
      height:28px !important;
      padding:2px 5px !important;
      font-size:10px !important;
      line-height:1 !important;
      border-radius:8px !important;
    }
    @media (max-width:430px) {
      #characterLibraryPanelList .character-library-actions {
        width:132px;
        max-width:132px;
        flex-basis:132px;
      }
      #characterLibraryPanelList .character-library-actions button {
        font-size:9px !important;
        padding:2px 3px !important;
      }
    }

    #monsterLibraryList .monster-library-actions {
      display:grid;
      grid-template-columns:repeat(2,minmax(0,1fr));
      gap:6px;
      width:100%;
      max-width:210px;
      margin-left:auto;
    }
    #monsterLibraryList .monster-library-actions button {
      width:100%;
      min-width:0 !important;
      padding-left:8px !important;
      padding-right:8px !important;
    }

    /* Testing Mode 14: tighter Monster Library action buttons */
    #monsterLibraryList .monster-library-actions {
      max-width: 150px !important;
      gap: 4px !important;
    }
    #monsterLibraryList .monster-library-actions button {
      min-height: 28px !important;
      height: 28px !important;
      padding: 2px 5px !important;
      font-size: 10px !important;
      line-height: 1 !important;
      border-radius: 8px !important;
    }

    /* Testing Mode 15: show attack reach/range beside the attack name */
    .ms-attack-name-line {
      display:flex;
      align-items:baseline;
      gap:5px;
      flex-wrap:wrap;
    }
    .ms-attack-reach {
      font-size:9px;
      font-weight:800;
      color:#93c5fd;
      white-space:nowrap;
      text-decoration:none;
    }
