/* © 2026 Гореньков М. С. КарЧоо. */
.first-card-preview .pcheck-actions {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.first-card-preview .pcheck-actions .btn { min-height:46px; padding:10px 12px; font-size:14px; }
.first-card-preview .calnotice-caution { display:none; }
.first-card-preview .modal.calnotice { width:620px; max-width:calc(100vw - 32px); }
.first-card-preview .calnotice #btnCalNoticePrintAnyway,
.first-card-preview .calnotice #btnCalNoticeConfirm { grid-column:1 / -1; }
.first-card-preview .calnotice #btnCalNoticeWizard,
.first-card-preview .calnotice #btnCalNoticeManual { grid-column:auto; min-height:46px; }

/* Короткая подсказка у действия, которое создаёт собственную карточку. */
.registry > .panel-head { position:relative; }
#btnNew.sample-new-highlight { animation:sample-new-attention 1s ease-in-out 6; border-color:#dc3b3b; box-shadow:0 0 0 3px #dc3b3b40; }
@keyframes sample-new-attention {
  0%, 100% { border-color:#dc3b3b; box-shadow:0 0 0 3px #dc3b3b40; }
  50% { border-color:#bc2424; box-shadow:0 0 0 6px #dc3b3b75; }
}
@media (prefers-reduced-motion: reduce) {
  #btnNew.sample-new-highlight { animation:none; }
}
.sample-edit-hint { position:absolute; z-index:12; top:calc(100% + 9px); left:12px; right:12px; padding:10px 12px; border:1px solid #acd8ce; border-radius:10px; background:#f2fbf8; color:var(--ink); font-size:12px; font-weight:500; line-height:1.45; box-shadow:0 4px 14px #133e3320; pointer-events:none; }
.sample-edit-hint[hidden] { display:none; }
.sample-edit-hint::before { content:''; position:absolute; top:-5px; left:calc(var(--tip-anchor, 135px) - 5px); width:8px; height:8px; background:#f2fbf8; border-top:1px solid #acd8ce; border-left:1px solid #acd8ce; transform:rotate(45deg); }

/* Основное действие — печать; подписка убирает водяные знаки. */
body[data-first-card-print="1"] .preview-actions { display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch; }
body[data-first-card-print="1"] .preview-actions .btn { min-width: 0; min-height: 42px; white-space: normal; line-height: 1.2; }
#btnRemoveWatermarks, #btnPreviewRemoveWatermarks { padding: 6px 10px; font-size: 12px; color: #087b75; border-color: #8dc6bf; background: #edf8f5; }
#btnRemoveWatermarks:hover, #btnPreviewRemoveWatermarks:hover { background: #dcefeb; border-color: #087b75; }
.print-watermark-status { align-self: center; text-align: center; font-size: 12px; color: #087b75; }
.print-watermark-status::before { content: '✓'; margin-right: 5px; font-weight: 700; }
body[data-first-card-print="1"] #payBackdrop .pay-benefits { flex-wrap: wrap; justify-content: flex-start; gap: 6px 18px; }
body[data-first-card-print="1"] #payBackdrop .pay-benefits li { min-width: 0; white-space: normal; }

/* Кнопка подписки остаётся рядом с печатью; с доступом печать занимает всю строку. */
body.workspace-layout-v2[data-first-card-print="1"] .preview-actions {display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:8px}
body.workspace-layout-v2[data-first-card-print="1"] .preview-actions:has(#btnPreviewRemoveWatermarks[hidden]) {grid-template-columns:minmax(0,1fr)}
