.sf-backdrop,.sf-favorites-page{position:fixed;inset:auto 0;top:var(--sf-top,0);height:var(--sf-height,100vh);width:100%;box-sizing:border-box;z-index:2147483010;color:#263440;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;font-size:14px;line-height:1.5;-webkit-text-size-adjust:100%;}
.sf-backdrop{display:flex;align-items:center;justify-content:center;padding:12px;background:rgba(22,36,52,.4);overscroll-behavior:contain;}
.sf-dialog,.sf-page-shell{box-sizing:border-box;display:flex;flex-direction:column;min-height:0;max-width:440px;width:100%;max-height:100%;background:#fff;overflow:hidden;box-shadow:0 18px 70px rgba(18,37,58,.15);}
.sf-dialog{border-radius:18px;}
.sf-favorites-page{background:#f5f7fa;display:flex;justify-content:center;}
.sf-page-shell{height:100%;max-width:700px;box-shadow:none;}
.sf-header{display:flex;flex:none;align-items:center;justify-content:space-between;gap:12px;padding:15px 16px;border-bottom:1px solid #edf0f4;min-height:56px;box-sizing:border-box;background:#fff;}
.sf-header strong{font-size:17px;font-weight:600;color:#25313e;}
.sf-dialog button,.sf-page-shell button{font-family:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent;box-sizing:border-box;}
.sf-header button{border:0;background:transparent;color:#328bcf;font-size:14px;padding:5px 0;min-height:30px;white-space:nowrap;}
.sf-header-count{font-size:12px;color:#89939e;min-width:28px;text-align:right;}
.sf-scroll{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;}
.sf-map{height:230px;min-height:180px;width:100%;background:#eaf0f3;z-index:0;position:relative;text-align:left;}
.sf-viewer-map{flex:1 1 250px;min-height:150px;max-height:340px;}
.sf-map .leaflet-container{font:12px/1.4 inherit;}
.sf-map .leaflet-control-attribution{font-size:10px;line-height:1.3;max-width:95%;background:rgba(255,255,255,.9);}
.sf-map .leaflet-control-attribution a{color:#216ca0;}
.sf-map .leaflet-control-zoom a{color:#253440;}
.sf-detail{padding:14px 16px;display:flex;flex-direction:column;gap:10px;box-sizing:border-box;}
.sf-detail h3,.sf-detail p{margin:0;}
.sf-detail h3{font-size:17px;line-height:1.4;overflow-wrap:anywhere;}
.sf-detail small{color:#84909c;font-size:12px;}
.sf-field{display:flex;flex-direction:column;gap:5px;min-width:0;color:#677481;font-size:12px;}
.sf-field input,.sf-search input{box-sizing:border-box;min-width:0;width:100%;height:40px;border:1px solid #dfe6ed;background:#fff;border-radius:9px;padding:8px 10px;font:16px/1.4 inherit;font-size:16px;color:#263440;outline:none;box-shadow:none;}
.sf-field input:focus,.sf-search input:focus{border-color:#55a4df;box-shadow:0 0 0 2px rgba(50,143,212,.1);}
.sf-coordinates{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;}
.sf-primary,.sf-secondary,.sf-locate{box-sizing:border-box;border:0;border-radius:10px;min-height:40px;padding:9px 12px;font-family:inherit;font-size:14px;text-align:center;display:inline-flex;align-items:center;justify-content:center;gap:6px;line-height:1.4;}
.sf-primary{background:#278fe2;color:#fff;font-weight:500;}
.sf-secondary{background:#f0f5f9;color:#4c718e;border:1px solid #e0eaf1;}
.sf-locate{color:#2787ca;background:#edf7fe;}
.sf-dialog button:disabled,.sf-page-shell button:disabled{opacity:.5;cursor:default;}
.sf-footer{flex:none;box-sizing:border-box;padding:12px 16px max(12px,env(safe-area-inset-bottom));border-top:1px solid #edf0f4;background:#fff;}
.sf-footer>.sf-primary{width:100%;}
.sf-detail-actions{display:flex;gap:10px;}
.sf-detail-actions>button{flex:1;min-width:0;}
.sf-detail-actions>.sf-primary{width:auto;}
.sf-hint{margin:0;font-size:12px;color:#89939e;line-height:1.6;overflow-wrap:anywhere;}
.sf-error{margin:0;flex:none;padding:10px 16px;background:#fff2f1;color:#b45651;font-size:13px;line-height:1.5;overflow-wrap:anywhere;}
.sf-error button{border:0;background:transparent;color:#2787ca;padding:2px 6px;}
.sf-map-link{flex:none;margin:0 16px max(14px,env(safe-area-inset-bottom));text-decoration:none;}
.sf-location-card{border:1px solid rgba(84,131,165,.17);border-radius:12px;background:#fff;box-sizing:border-box;width:240px;max-width:min(100%,65vw);padding:13px 12px;display:flex;align-items:center;gap:11px;text-align:left;color:#2c3d4b;font-family:inherit;cursor:pointer;line-height:1.5;}
.sf-location-symbol{display:grid;place-items:center;flex:none;width:38px;height:42px;background:#edf6fc;border-radius:10px;color:#278bce;font-size:31px;}
.sf-location-copy{display:flex;flex-direction:column;min-width:0;gap:3px;}
.sf-location-copy strong{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.sf-location-copy small{font-size:12px;line-height:1.4;color:#82909a;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:break-word;}
.sf-location-copy em{font-size:10px;color:#929da6;font-style:normal;}
.sf-favorites-controls{flex:none;padding-top:10px;background:#fff;border-bottom:1px solid #edf0f4;}
.sf-search{display:flex;gap:8px;padding:0 14px 10px;}
.sf-search button{border:0;background:#edf6fd;border-radius:9px;padding:0 13px;color:#2586cf;font-size:14px;white-space:nowrap;}
.sf-filters{display:flex;gap:2px;overflow-x:auto;white-space:nowrap;padding:0 10px;scrollbar-width:none;}
.sf-filters button{border:0;background:transparent;color:#7f8994;font-size:13px;min-height:40px;min-width:45px;padding:8px;position:relative;flex:none;}
.sf-filters button.active{color:#278bce;font-weight:600;}
.sf-filters button.active:after{content:"";position:absolute;bottom:0;height:2px;background:#278bce;left:12px;right:12px;border-radius:1px;}
.sf-favorite-content{padding:12px;background:#f5f7fa;}
.sf-favorite-row{display:flex;align-items:center;gap:12px;width:100%;background:#fff;border:1px solid #eaf0f5;border-radius:12px;margin-bottom:9px;padding:13px 12px;text-align:left;}
.sf-favorite-icon{flex:none;width:38px;height:40px;border-radius:9px;background:#edf6fc;color:#3b92ce;display:grid;place-items:center;font-size:24px;}
.sf-favorite-row-copy{display:flex;flex:1;flex-direction:column;min-width:0;gap:5px;}
.sf-favorite-row-copy strong{font-size:14px;color:#344554;font-weight:500;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}
.sf-favorite-row-copy small{font-size:11px;color:#96a1ab;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;}
.sf-chevron{color:#b6c1ca;font-size:23px;}
.sf-empty{min-height:150px;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;color:#8f9ca7;padding:20px 15px;box-sizing:border-box;}
.sf-empty strong{font-size:16px;font-weight:500;}
.sf-empty p{font-size:12px;line-height:1.7;max-width:240px;}
.sf-favorite-detail{padding:16px;background:#fff;border-radius:12px;display:flex;flex-direction:column;gap:16px;overflow-wrap:anywhere;}
.sf-saved-text{white-space:pre-wrap;word-break:break-word;margin:0;font-size:15px;line-height:1.7;}
.sf-saved-contact{display:flex;flex-direction:column;gap:6px;padding:14px;border:1px solid #e1edf6;background:#f8fcff;border-radius:10px;}
.sf-saved-contact small{color:#84929f;}
.sf-saved-image{max-width:100%;max-height:350px;object-fit:contain;border-radius:10px;}
.sf-saved-media-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;}
.sf-saved-media-grid img,.sf-saved-media-grid video{width:100%;max-height:160px;object-fit:contain;}
.sf-saved-file{color:#2688ce;text-decoration:none;}
.sf-favorite-detail audio{width:100%;}
.sf-danger{color:#ba655f;background:#fff7f6;border-color:#f3e0dd;}
@media(max-height:540px){.sf-map{height:180px;min-height:150px;}.sf-header{min-height:46px;padding:9px 14px;}.sf-detail{padding:10px 14px;gap:8px;}.sf-footer{padding-top:8px;}.sf-dialog{border-radius:12px;}}
