.sync-progress {
  margin-bottom: 14px;
  padding: 17px 18px;
  background: #fff;
  border: 1px solid #99d5d0;
  border-left: 4px solid var(--teal);
  border-radius: 7px;
}
.sync-progress-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sync-progress-head strong, .sync-progress-head span { display: block; }
.sync-progress-head span { margin-top: 5px; color: #52525b; font-size: 13px; }
.sync-progress-head b { color: var(--teal); font-size: 18px; }
.sync-progress-track { height: 8px; margin: 14px 0 8px; background: #e4e4e7; border-radius: 99px; overflow: hidden; }
.sync-progress-track span { display: block; width: 0; height: 100%; background: var(--teal); border-radius: inherit; transition: width .25s ease; }
.sync-progress small { color: #71717a; }
.sync-progress.failed { border-color: #fecaca; border-left-color: var(--red); }
.sync-progress.failed .sync-progress-head b { color: var(--red); }
.actions { align-items: flex-end; }
.actions button { min-height: 38px; padding: 8px 11px; font-size: 13px; border-radius: 6px; }
.actions button svg { width: 15px; height: 15px; }
.actions label { margin-left: 4px; }
.actions select { min-height: 38px; padding: 7px 30px 7px 10px; font-size: 13px; font-weight: 600; }
.actions .primary-action { background: var(--teal); color: #fff; border: 1px solid var(--teal); box-shadow: 0 1px 2px rgba(15,118,110,.18); }
.actions .primary-action:hover { background: #0d6963; border-color: #0d6963; }
dialog { overflow: hidden; background: #fff; }
dialog form > header { padding: 18px 22px; background: #fff; }
dialog form > header h2 { font-size: 19px; letter-spacing: 0; }
dialog form > header .eyebrow { margin-bottom: 5px; }
dialog .dialog-body { padding: 18px 22px 22px; gap: 18px; background: #fafafa; }
dialog .dialog-body section { margin: 0; padding: 16px; background: #fff; border: 1px solid #e4e4e7; border-radius: 7px; }
dialog .dialog-body section h3 { color: #27272a; font-size: 14px; }
dialog form > footer { padding: 13px 22px; background: #fff; gap: 8px; }
dialog form > footer button, dialog #testTelegram { min-height: 36px; padding: 8px 13px; border-radius: 6px; font-size: 13px; }
dialog .icon-button.close { width: 34px; height: 34px; padding: 0; justify-content: center; border: 1px solid #e4e4e7; background: #fff; }
dialog .form-grid { gap: 12px; }
dialog .form-grid label { color: #52525b; font-size: 12px; font-weight: 600; }
dialog input, dialog select { width: 100%; min-height: 40px; border-color: #d4d4d8; background: #fff; font-size: 13px; outline: none; }
dialog input:focus, dialog select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15,118,110,.11); }
dialog .check { min-height: 40px; padding: 9px 11px; border: 1px solid #e4e4e7; border-radius: 6px; background: #fafafa; font-size: 13px; }
dialog .check input { width: 16px; min-height: 16px; accent-color: var(--teal); }
.helper { padding: 11px 13px; border-left: 3px solid var(--teal); background: #f0fdfa; color: #3f3f46; line-height: 1.5; }
.links-list { gap: 7px; }
.link-row { grid-template-columns: minmax(240px,1fr) minmax(260px,1.35fr); padding: 11px 13px; background: #fff; border-color: #e4e4e7; }
.link-row strong { display: block; color: #27272a; font-size: 13px; line-height: 1.35; }
.link-row small { display: block; margin-top: 4px; color: #71717a; font-size: 11px; }
.link-row select { min-height: 38px; }
.store-rules { gap: 7px; }
.store-rule { grid-template-columns: minmax(150px,1.2fr) minmax(110px,.8fr) minmax(110px,.8fr); padding: 10px 12px; background: #fafafa; }
.store-rule > strong { font-size: 12px; color: #3f3f46; }
.store-rule label { display: grid; grid-template-columns: auto 72px; align-items: center; justify-content: end; gap: 7px; color: #71717a; font-size: 11px; }
.store-rule input { min-height: 35px; padding: 7px 8px; }
@media (max-width: 620px) { .link-row, .store-rule { grid-template-columns: 1fr; } .store-rule label { grid-template-columns: 1fr; justify-content: stretch; } }
.sync-mode-dialog { width: min(620px, calc(100vw - 28px)); }
.sync-mode-options { gap: 10px !important; }
.sync-mode-option { width: 100%; display: grid; grid-template-columns: 42px minmax(0,1fr) 18px; align-items: center; gap: 12px; padding: 14px; text-align: left; color: #27272a; background: #fff; border: 1px solid #e4e4e7; border-radius: 7px; }
.sync-mode-option:hover { border-color: #5eead4; background: #f0fdfa; }
.sync-mode-option > span:nth-child(2) { min-width: 0; }
.sync-mode-option strong, .sync-mode-option small { display: block; }
.sync-mode-option strong { font-size: 14px; }
.sync-mode-option small { margin-top: 4px; color: #71717a; font-size: 12px; font-weight: 400; line-height: 1.45; }
.sync-mode-option > svg { width: 17px; color: #71717a; }
.sync-mode-icon { display: grid; place-items: center; width: 40px; height: 40px; color: var(--teal); background: #ccfbf1; border-radius: 6px; }
.sync-mode-icon svg { width: 19px; height: 19px; }
.telegram-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.telegram-config-grid { grid-template-columns: minmax(260px, 1fr) !important; }
.telegram-rule-note { margin: 10px 0 0; color: #52525b; font-size: 12px; line-height: 1.5; }
.telegram-preview-dialog { width: min(590px, calc(100vw - 28px)); }
.telegram-preview-dialog .dialog-body { background: #d9eaf7; }
.telegram-device { padding: 14px; border-radius: 7px; background: #c8deec; box-shadow: inset 0 0 0 1px rgba(51,65,85,.08); }
.telegram-channel { margin-bottom: 7px; color: #0f766e; font-size: 12px; font-weight: 800; }
.telegram-device pre { width: min(100%, 470px); margin: 0; padding: 14px 16px; white-space: pre-wrap; overflow-wrap: anywhere; color: #202124; background: #fff; border-radius: 7px; box-shadow: 0 1px 2px rgba(15,23,42,.14); font: 13px/1.48 Inter, Arial, sans-serif; }
