/* Interactive example of data exchange; these panels are not screenshots of 1C. */
.motion-preview #flagman{padding-block:72px}
.sync-heading .h-sec{font-size:clamp(36px,4.2vw,60px);line-height:1.08;letter-spacing:-.05em}
.sync-heading .h-sec>span{color:var(--muted)}
.sync-heading .lead{font-size:15px;max-width:540px;margin-top:24px}
.sync-demo{margin-top:28px}
.sync-toolbar{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}
.sync-tabs{display:flex;gap:8px}
.sync-tabs button{border:1px solid var(--line);background:transparent;color:var(--muted);border-radius:8px;min-height:44px;padding:10px 22px;font-size:14px}
.sync-tabs button[aria-selected=true]{background:var(--ink);border-color:var(--ink);color:var(--paper)}
.sync-example{font-size:12px;color:var(--muted)}
.sync-panels{display:grid;grid-template-columns:1fr 1fr;gap:24px;outline-offset:8px}
.sync-window{min-width:0;padding:0!important;border:1px solid var(--line);border-radius:8px;background:var(--surface);overflow:hidden;transition:border-color .25s}
.sync-window-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding:17px 24px}
.sync-window-bar strong{font-size:22px;letter-spacing:-.05em;line-height:1.2}
.sync-window-bar span{font-size:12px;color:var(--muted)}
.sync-account-body{padding:24px;min-height:310px;display:flex;flex-direction:column}
.sync-item-heading>span,.sync-product-category{font-size:11px;color:var(--muted)}
.sync-item-heading h3,.sync-product-info h3{font-size:23px;letter-spacing:-.035em;font-weight:500;line-height:1.25;margin-top:10px}
.sync-item-heading p,.sync-product-size{font-size:13px;color:var(--muted);margin-top:8px}
.sync-fields{margin:24px 0;display:grid;gap:10px}
.sync-fields>div{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:10px 12px;border-radius:4px}
.sync-fields dt{font-size:14px;color:var(--muted)}
.sync-fields dd{font-size:22px;font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}
.sync-demo[data-scenario=price] [data-field=price],.sync-demo[data-scenario=stock] [data-field=stock]{background:var(--panel)}
.sync-action{display:none;align-items:center;justify-content:center;width:max-content;max-width:100%;min-height:44px;padding:11px 18px;border:0;border-radius:6px;background:var(--lime);color:var(--accent-ink);font-size:13px;font-weight:600;margin-top:auto}
.sync-ready .sync-action{display:flex}
.sync-action:disabled{cursor:wait;opacity:.65}
.sync-shop-body{padding:24px;display:grid;grid-template-columns:minmax(100px,.9fr) minmax(0,1fr);gap:28px;align-items:center;min-height:310px}
.sync-product-photo{width:100%;height:auto;max-height:260px;object-fit:contain;border-radius:4px}
.sync-product-info{min-width:0;display:flex;flex-direction:column;align-items:flex-start}
.sync-shop-price{font-size:30px;letter-spacing:-.04em;font-variant-numeric:tabular-nums;margin-top:26px;white-space:nowrap;font-weight:500;line-height:1.2}
.sync-shop-stock{font-size:13px;color:var(--muted);margin-top:12px}
.sync-product-info .sync-action{margin-top:20px}
.sync-account-order{margin:22px 0 0;padding:17px;background:var(--panel);border-radius:4px}
.sync-account-order>span,.sync-account-order small,.sync-shop-order small{display:block;font-size:12px;color:var(--muted)}
.sync-account-order strong,.sync-shop-order strong{display:block;font-size:18px;font-weight:500;margin:6px 0}
.sync-shop-order{margin-top:18px}
.sync-demo[data-scenario=order] .sync-fields{display:none}
.sync-demo[data-scenario=order] .sync-shop-stock{display:none}
.sync-demo[data-scenario=order] .sync-shop-price{font-size:24px;margin-top:16px}
.sync-status{display:flex;align-items:center;gap:12px;min-height:68px;color:var(--muted);font-size:13px;padding:18px 0}
.sync-status-mark{width:7px;height:7px;border-radius:50%;background:var(--muted);flex:none}
.sync-demo[data-phase=sent] .sync-status-mark{animation:sync-pulse .6s ease-in-out infinite alternate}
.sync-demo[data-phase=received] .sync-status-mark{background:#718b27}
.sync-demo[data-phase=received] .sync-shop,.sync-demo[data-scenario=order][data-phase=received] .sync-account{border-color:#8ca64d}
.sync-demo[data-scenario=order][data-phase=received] .sync-shop{border-color:var(--line)}
.sync-demo[data-phase=received][data-scenario=price] [data-shop-price],.sync-demo[data-phase=received][data-scenario=stock] [data-shop-stock],.sync-demo[data-phase=received][data-scenario=order] .sync-account-order{animation:sync-arrive .45s ease-out}
.sync-demo:not(.sync-ready) .sync-tabs,.sync-demo:not(.sync-ready) .sync-status{display:none}
.sync-nojs{font-size:14px;margin-top:20px;color:var(--muted)}
@keyframes sync-pulse{to{opacity:.2}}
@keyframes sync-arrive{from{transform:translateY(5px);opacity:.25}to{transform:translateY(0);opacity:1}}
@media(max-width:1100px){.sync-account-body,.sync-shop-body{padding:22px}.sync-shop-body{gap:18px;grid-template-columns:minmax(80px,.8fr) minmax(0,1fr)}.sync-product-info h3,.sync-item-heading h3{font-size:20px}.sync-shop-price{font-size:27px}.sync-window-bar{padding:16px 22px}.sync-example{font-size:11px}}
@media(max-width:700px){
 .motion-preview #flagman{padding-block:56px}
 .sync-heading .h-sec{font-size:clamp(30px,7.5vw,48px)}.sync-heading .lead{font-size:14px;margin-top:20px}
 .sync-demo{margin-top:26px}.sync-toolbar{gap:10px;margin-bottom:16px;flex-wrap:wrap}.sync-tabs{gap:6px}.sync-tabs button{padding:10px 17px;font-size:13px}.sync-example{font-size:11px}
 .sync-panels{grid-template-columns:1fr;gap:14px}.sync-window-bar{padding:13px 18px}.sync-window-bar strong{font-size:20px}
 .sync-account-body{min-height:0;padding:20px}.sync-item-heading>span{display:none}.sync-item-heading h3{margin-top:0}.sync-item-heading p{margin-top:4px}
 .sync-fields{margin:14px 0;gap:3px}.sync-fields>div{padding:7px 10px}.sync-fields dd{font-size:21px}.sync-fields dt{font-size:13px}
 .sync-shop-body{min-height:250px;padding:20px;grid-template-columns:minmax(90px,.8fr) minmax(0,1fr);gap:20px}.sync-product-photo{max-height:224px}.sync-product-info h3{font-size:20px}.sync-shop-price{font-size:27px;margin-top:20px}
 .sync-status{min-height:76px;align-items:flex-start;padding-top:20px}.sync-status-mark{margin-top:6px}
 .sync-demo[data-scenario=order] .sync-shop{grid-row:1}.sync-demo[data-scenario=order] .sync-account{grid-row:2}
 .sync-account-order{margin-top:18px}.sync-product-info .sync-action{font-size:12px;padding:10px 12px}
}
@media(min-width:701px) and (max-height:800px){.motion-preview #flagman{padding-block:48px}.sync-heading .h-sec{font-size:46px}.sync-heading .lead{margin-top:16px}.sync-demo{margin-top:22px}.sync-account-body,.sync-shop-body{min-height:286px;padding:20px}.sync-product-photo{max-height:240px}.sync-fields{margin-block:16px}.sync-toolbar{margin-bottom:16px}}
@media(max-width:370px){.sync-example{width:100%}.sync-shop-body{gap:14px;padding:16px}.sync-product-info h3{font-size:18px}.sync-shop-price{font-size:25px}.sync-shop-stock{font-size:12px}}
@media(prefers-reduced-motion:reduce){.sync-demo *{animation:none!important;transition:none!important}}
.motion-is-off .sync-demo *{animation:none!important;transition:none!important}
