/* Editable proposed settings only; this stylesheet starts no background work. */
.sync-rules-panel{max-width:100%;min-width:0}
.sync-rules-body{padding:20px 23px 24px}
.sync-rules-notice{font-size: 1rem;color:#5c674b;background:#edf2e2;border:1px solid #dce5cc;border-radius:8px;padding:11px 13px;margin:0 0 16px;overflow-wrap:anywhere}
.sync-rules-summary{border-left:3px solid #99b66e;padding:2px 0 2px 13px;margin:0 0 22px}
.sync-rules-summary>strong{display:block;font-size:17px;font-weight:600}
.sync-rules-summary p{font-size: 1rem;line-height:1.6;margin-top:5px;max-width:780px}
.sync-rules-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.sync-rules-field{display:grid;align-content:start;gap:7px;min-width:0;font-size: 1rem;font-weight:600}
.sync-rules-field select{width:100%;min-width:0;min-height:44px;font-size: 1rem;font-weight:400}
.sync-rules-help{font-size: 1rem;font-weight:400;line-height:1.5;color:var(--muted)}
.sync-rules-check{display:flex;align-items:flex-start;gap:10px;min-height:44px;margin:19px 0 13px;padding:5px 0;font-size: 1rem;cursor:pointer}
.sync-rules-check input{flex:none;width:17px;height:17px;margin:1px 0 0;accent-color:var(--green)}
.sync-rules-check span{min-width:0;overflow-wrap:anywhere}
.sync-rules-check small{letter-spacing:0;font-size: 1rem;line-height:1.5;font-weight:400;color:var(--muted);margin-top:4px}
.sync-rules-actions{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:14px}
.sync-rules-actions button{min-height:44px}
.sync-rules-actions>span{font-size: 1rem;color:var(--muted);min-width:0;overflow-wrap:anywhere}
.sync-rules-error{font-size: 1rem;color:#9a4935;padding:10px 12px;background:#f9eee8;border-radius:7px}
.sync-rules-error[hidden]{display:none}
.sync-rules-proposal{border-top:1px solid var(--line);margin-top:24px;padding-top:20px}
.sync-rules-proposal h3{font-size: 1rem;font-weight:600;margin:0 0 13px}
.sync-rules-proposal dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px 26px;margin:0}
.sync-rules-proposal dl>div{min-width:0}
.sync-rules-proposal dt{font-size: 1rem;font-weight:600}
.sync-rules-proposal dd{font-size: 1rem;line-height:1.6;margin:5px 0 0;color:var(--muted);overflow-wrap:anywhere}
@media(max-width:1000px){.sync-rules-fields{grid-template-columns:minmax(0,1fr)}}
@media(max-width:700px){
  .sync-rules-body{padding:16px}
  .sync-rules-summary{margin-bottom:20px}
  .sync-rules-summary>strong{font-size: 1rem}
  .sync-rules-fields{gap:17px}
  .sync-rules-proposal dl{grid-template-columns:minmax(0,1fr);gap:17px}
  .sync-rules-actions{align-items:stretch;flex-direction:column;gap:9px}
  .sync-rules-actions button{width:100%}
}

/* Compact pull-rule preferences without hiding the rules or reducing touch targets. */
html[data-layout="accountant"] .sync-rules-body { padding: 14px 16px 16px; }
html[data-layout="accountant"] .sync-rules-notice { padding: 9px 11px; margin-bottom: 11px; line-height: 1.5; }
html[data-layout="accountant"] .sync-rules-notice p { margin-top: 4px; }
html[data-layout="accountant"] .sync-rules-summary { padding-left: 10px; margin-bottom: 13px; }
html[data-layout="accountant"] .sync-rules-summary > strong { font-size: 1rem; }
html[data-layout="accountant"] .sync-rules-summary p { line-height: 1.5; margin-top: 4px; }
html[data-layout="accountant"] .sync-rules-fields { gap: 10px; }
html[data-layout="accountant"] .sync-rules-field { gap: 5px; }
html[data-layout="accountant"] .sync-rules-actions { gap: 8px 11px; margin-top: 10px; }
html[data-layout="accountant"] .sync-rules-error { padding: 8px 10px; }
html[data-layout="accountant"] .sync-rules-proposal { margin-top: 16px; padding-top: 13px; }
html[data-layout="accountant"] .sync-rules-proposal h3 { margin-bottom: 10px; }
html[data-layout="accountant"] .sync-rules-proposal dl { gap: 11px 20px; }
html[data-layout="accountant"] .sync-rules-proposal dd { margin-top: 3px; line-height: 1.5; }
@media (max-width: 700px) {
  html[data-layout="accountant"] .sync-rules-body { padding: 12px; }
  html[data-layout="accountant"] .sync-rules-notice { padding: 8px 10px; }
  html[data-layout="accountant"] .sync-rules-summary { margin-bottom: 12px; }
  html[data-layout="accountant"] .sync-rules-proposal dl { gap: 11px; }
  html[data-layout="accountant"] .sync-rules-actions { gap: 7px; }
  html[data-layout="accountant"] .sync-rules-actions button,
  html[data-layout="accountant"] .sync-rules-field select { min-height: 44px; }
  html[data-layout="accountant"] .sync-rules-help { font-size: 1rem; }
}
