/* styles-attachments.css — extracted from styles.css (Attachments Panel, Light mode: Attachments panel) */

      /* ── Attachments Panel ──────────────────────────── */
      .attachments-panel {
        flex-shrink: 0;
        margin-right: 4.5rem;
        max-height: 220px;
        overflow-y: auto;
        background: rgba(8, 8, 22, 0.45);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-bottom: none;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
        padding: 8px 12px 4px;
        transition: max-height 0.2s ease;
      }
      .attachments-panel.collapsed .attachments-grid {
        display: none;
      }
      .attachments-panel.collapsed {
        max-height: 36px;
        overflow: hidden;
      }
      .attachments-collapse-btn {
        margin-left: auto;
        background: none;
        border: none;
        color: rgba(255,255,255,0.4);
        cursor: pointer;
        font-size: var(--fs-md);
        padding: 0 4px;
        line-height: 1;
        transition: transform 0.2s;
      }
      .attachments-collapse-btn:hover { color: rgba(255,255,255,0.7); }
      .attachments-panel.collapsed .attachments-collapse-btn { transform: rotate(-90deg); }
      .attachments-header {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: var(--fs-sm);
        color: rgba(255, 255, 255, 0.55);
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 6px;
        padding-bottom: 6px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
      }
      .attachments-count {
        background: rgba(var(--primary-rgb), 0.2);
        color: rgba(var(--primary-rgb), 0.8);
        padding: 1px 6px;
        border-radius: var(--radius-base);
        font-size: var(--fs-sm);
      }
      .attachments-grid {
        display: flex;
        flex-direction: column;
        gap: 4px;
      }
      .attach-row {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 8px;
        padding: 5px 4px;
        background: transparent;
        border: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        transition: background 0.15s;
        cursor: default;
      }
      .attach-row:last-child {
        border-bottom: none;
      }
      .attach-row:hover {
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--radius-sm);
      }
      .attach-row-icon {
        font-size: var(--fs-xl);
        flex-shrink: 0;
        width: 28px;
        text-align: center;
      }
      .attach-row-info {
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 1px;
      }
      .attach-row-name {
        font-size: var(--fs-base);
        color: rgba(255, 255, 255, 0.85);
        word-break: break-all;
      }
      .attach-row-size {
        font-size: var(--fs-sm);
        color: rgba(255, 255, 255, 0.55);
      }
      .attach-row-actions {
        display: flex;
        gap: 4px;
        align-items: center;
        flex-shrink: 0;
      }
      .attach-btn {
        width: 28px;
        height: 28px;
        border-radius: var(--radius-sm);
        border: none;
        cursor: pointer;
        font-size: var(--fs-md);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.15s;
        background: rgba(255, 255, 255, 0.05);
        color: rgba(255, 255, 255, 0.45);
      }
      .attach-btn:hover {
        background: rgba(255, 255, 255, 0.12);
        color: rgba(255, 255, 255, 0.9);
      }
      .attach-btn-download {
        color: rgba(var(--primary-rgb), 0.6);
        background: rgba(var(--primary-rgb), 0.08);
      }
      .attach-btn-download:hover {
        background: rgba(var(--primary-rgb), 0.25);
        color: rgba(var(--primary-rgb), 1);
      }
      .attach-btn-delete {
        opacity: 0.35;
        transition:
          opacity 0.15s,
          background 0.15s,
          color 0.15s;
        color: rgba(255, 255, 255, 0.4);
      }
      .attach-row:hover .attach-btn-delete {
        opacity: 1;
      }
      .attach-btn-delete:hover {
        background: rgba(var(--color-danger-rgb), 0.2) !important;
        color: var(--color-danger) !important;
        opacity: 1;
      }

      /* Voice memo audio player */
      .attach-audio-wrap {
        flex-basis: 100%;
        padding: 6px 0 2px;
      }
      .attach-audio-player {
        width: 100%;
        height: 32px;
        border-radius: var(--radius-base);
        outline: none;
        opacity: 0.85;
        accent-color: var(--primary);
      }
      .attach-audio-player:hover { opacity: 1; }

      /* Drop overlay */
      .drop-overlay {
        position: absolute;
        inset: 0;
        background: rgba(var(--primary-rgb), 0.15);
        backdrop-filter: blur(4px);
        border: 3px dashed rgba(var(--primary-rgb), 0.5);
        border-radius: var(--radius-md);
        z-index: var(--z-sticky);
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .drop-overlay-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        color: rgba(var(--primary-rgb), 0.9);
        font-size: var(--fs-md);
        font-weight: 600;
      }


      /* ── Light mode: Attachments panel ── */
      body.light-mode .attachments-panel {
        background: rgba(240,244,255,0.9) !important;
        border-color: rgba(0,0,0,0.1) !important;
      }
      body.light-mode .attachments-collapse-btn { color: rgba(0,0,0,0.4) !important; }
      body.light-mode .attachments-collapse-btn:hover { color: rgba(0,0,0,0.7) !important; }
      body.light-mode .attachments-header {
        color: var(--text-muted) !important;
        border-bottom-color: rgba(0,0,0,0.08) !important;
      }
      body.light-mode .attach-row-name {
        color: var(--text-main) !important;
      }
      body.light-mode .attach-row-size {
        color: var(--text-muted) !important;
      }
      body.light-mode .attach-row:hover {
        background: rgba(var(--primary-rgb),0.06) !important;
      }
      body.light-mode .attach-btn {
        background: rgba(0,0,0,0.04) !important;
        color: var(--text-muted) !important;
      }
      body.light-mode .attach-btn:hover {
        background: rgba(0,0,0,0.08) !important;
        color: var(--text-main) !important;
      }

