/* DP Mail - Google Sheets editing for spreadsheet attachments (see gsheets-addon js). */
.att-card .dpm-gs-btn {
  display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto;
  border: 0; border-left: 1px solid var(--line); background: transparent; color: var(--text);
  padding: 0 9px; font: 500 12px/1 var(--font-ui, system-ui, sans-serif); cursor: pointer; align-self: stretch;
}
.att-card .dpm-gs-btn:hover { background: var(--hover, rgba(127,127,127,.08)); }
.att-card .dpm-gs-btn svg { flex: none; }
html.dpm-compact .att-card .dpm-gs-btn span { display: none; }   /* icon only in the slim chips */
@media (pointer: coarse) { html.dpm-compact .att-card .dpm-gs-btn span { display: inline; } }

.dpm-gs-bar { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.dpm-gs-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 8px 6px 10px; border: 1px solid #b7e1c9; background: #effaf3; border-radius: 10px; font-size: 13px; }
.dpm-gs-row .btn { height: 26px; padding: 0 10px; font-size: 12.5px; text-decoration: none; display: inline-flex; align-items: center; }
.dpm-gs-ic { display: inline-flex; }
.dpm-gs-name { flex: 1 1 160px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
@media (prefers-color-scheme: dark) { .dpm-gs-row { background: rgba(24,128,56,.14); border-color: rgba(24,128,56,.45); } }
:root[data-theme="dark"] .dpm-gs-row { background: rgba(24,128,56,.14); border-color: rgba(24,128,56,.45); }

.dpm-gs-veil { position: fixed; inset: 0; z-index: 120; background: #0a142266; display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 640px) { .dpm-gs-veil { align-items: center; } }
.dpm-gs-sheet { width: min(440px, 100%); background: var(--panel, #fff); color: var(--text); border-radius: 16px 16px 0 0; padding: 18px 18px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px #0f192840; }
@media (min-width: 640px) { .dpm-gs-sheet { border-radius: 14px; } }
.dpm-gs-sheet h3 { margin: 0 0 8px; font-size: 16px; overflow-wrap: anywhere; }
.dpm-gs-sheet p { margin: 0 0 12px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.dpm-gs-acts { display: flex; flex-direction: column; gap: 8px; }
.dpm-gs-acts .btn { height: 42px; font-size: 15px; justify-content: center; }
@media (min-width: 640px) { .dpm-gs-acts { flex-direction: row-reverse; } .dpm-gs-acts .btn { height: 34px; font-size: 14px; } }

.dpm-gs-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 130; max-width: min(92vw, 520px); background: #0f1a2b; color: #fff; padding: 10px 14px; border-radius: 10px; font-size: 14px; box-shadow: 0 8px 30px #0006; transition: opacity .3s; }
.dpm-gs-toast.bad { background: #912018; }
.dpm-gs-toast.out { opacity: 0; }
