/* GerSync — страница настроек */
.gersync { max-width: 1100px; }
.gersync-title { display: flex; align-items: baseline; gap: 10px; }
.gersync-version { font-size: 13px; font-weight: 400; color: #646970; }
.gersync-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 16px 0; }
.gersync-tile { background: #fff; border: 1px solid #dcdcde; border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; border-top: 3px solid #2271b1; }
.gersync-tile--ok { border-top-color: #00a32a; }
.gersync-tile--warn { border-top-color: #dba617; }
.gersync-tile__label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #646970; }
.gersync-tile__value { font-size: 18px; line-height: 1.3; color: #1d2327; }
.gersync-tile__hint { font-size: 12px; color: #646970; }
.gersync-banner { margin: 0 0 10px; }
.gersync-tabs { margin-bottom: 16px; }
.gersync-card { background: #fff; border: 1px solid #dcdcde; border-radius: 8px; margin: 0 0 16px; }
.gersync-card__title { font-size: 15px; margin: 0; padding: 14px 18px; border-bottom: 1px solid #f0f0f1; }
details.gersync-card > summary { cursor: pointer; list-style-position: inside; }
details.gersync-card:not([open]) > summary { border-bottom: 0; }
.gersync-card__body { padding: 8px 18px 14px; }
.gersync-field { display: grid; grid-template-columns: 220px 1fr; gap: 6px 20px; padding: 12px 0; border-bottom: 1px solid #f6f7f7; }
.gersync-field:last-child { border-bottom: 0; }
.gersync-field__label { font-weight: 600; padding-top: 5px; }
.gersync-field__control .description, .gersync-toggle-row .description { margin: 6px 0 0; }
.gersync-toggle-row { padding: 10px 0; }
.gersync-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 16px; padding-bottom: 6px; border-bottom: 1px solid #f6f7f7; }
.gersync-toggle { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; }
.gersync-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gersync-toggle__track { position: relative; flex: 0 0 36px; height: 20px; border-radius: 20px; background: #c3c4c7; transition: background .15s; }
.gersync-toggle__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.gersync-toggle input:checked + .gersync-toggle__track { background: #2271b1; }
.gersync-toggle input:checked + .gersync-toggle__track::after { transform: translateX(16px); }
.gersync-toggle input:focus-visible + .gersync-toggle__track { outline: 2px solid #2271b1; outline-offset: 2px; }
.gersync-lead { margin-top: 6px; }
.gersync-note { background: #f6f7f7; border-radius: 6px; padding: 8px 12px; margin: 12px 0 4px; }
.gersync-checks { display: flex; flex-wrap: wrap; gap: 6px 18px; padding-top: 5px; }
.gersync-check { white-space: nowrap; }
.gersync-copy { display: flex; gap: 8px; }
.gersync-copy input { flex: 1; }
.gersync-pre { background: #f6f7f7; padding: 10px 12px; border-radius: 6px; overflow-x: auto; }
.gersync-list { list-style: disc; padding-left: 20px; }
.gersync-list li { margin-bottom: 4px; }
.gersync-actions, .gersync-tool { display: inline-flex; gap: 8px; flex-wrap: wrap; margin: 4px 8px 4px 0; }
.gersync-badge { display: inline-block; background: #f0f6fc; color: #0a4b78; border-radius: 12px; padding: 3px 10px; }
.gersync-badge--warn { background: #fcf9e8; color: #8a6d00; }
.gersync-savebar { position: sticky; bottom: 0; background: #f0f0f1; padding: 12px 0; display: flex; align-items: center; gap: 12px; z-index: 5; }
.gersync-js .gersync-panel { display: none; }
.gersync-js .gersync-panel.is-active { display: block; }
.gersync-js.is-service .gersync-savebar { display: none; }
@media (max-width: 782px) {
    .gersync-field { grid-template-columns: 1fr; }
    .gersync-field__label { padding-top: 0; }
    .gersync-copy { flex-direction: column; }
}
.gersync-support { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 8px 0 24px; padding: 12px 16px; background: #fff; border: 1px dashed #c3c4c7; border-radius: 8px; }
.gersync-support__text { color: #50575e; }
.gersync-coffee { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.gersync-coffee__amount { width: 80px; }
.gersync-support__author { margin-left: auto; }
@media (max-width: 782px) { .gersync-support__author { margin-left: 0; } }
