.save-feedback-overlay{position:fixed;inset:0;z-index:12000;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(19,29,47,.5);overflow:auto}
.save-feedback-overlay[hidden]{display:none}
.save-feedback-panel{box-sizing:border-box;width:100%;max-width:570px;max-height:calc(100dvh - 48px);overflow:auto;padding:28px;border-radius:16px;background:var(--card,#fff);color:var(--text,#172033);box-shadow:0 20px 70px rgba(19,29,47,.25);outline:none}
.save-feedback-panel h2{margin:0 0 14px;font-size:21px;line-height:1.3}
.save-feedback-panel p{margin:0 0 14px;line-height:1.5;overflow-wrap:anywhere}
.save-feedback-reason{padding:12px 14px;border:1px solid #f1c7c7;border-radius:8px;background:#fff1f1;color:#9e3030}
.save-feedback-details{display:grid;grid-template-columns:100px minmax(0,1fr);gap:7px 12px;margin:18px 0;font-size:13px;line-height:1.5}
.save-feedback-details dt{color:var(--muted,#697386)}
.save-feedback-details dd{margin:0;overflow-wrap:anywhere}
.save-feedback-affected{margin:16px 0;padding:12px 14px;border-radius:8px;background:var(--bg,#f4f7fb);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.save-feedback-affected ul{margin:8px 0;padding-left:18px}
[data-save-feedback-issues] li+li{margin-top:12px}
.save-feedback-affected p:last-child{margin-bottom:0}
.save-feedback-actions,.save-feedback-downloads{display:flex;flex-wrap:wrap;gap:8px}
.save-feedback-downloads{margin-top:18px;padding-top:16px;border-top:1px solid var(--border,#e1e6ed)}
.save-feedback-panel .btn{white-space:normal;min-height:38px;line-height:1.3;text-align:center}
.save-feedback-panel button:focus-visible{outline:3px solid #759de8;outline-offset:3px}
.save-feedback-overlay[data-phase="loading"]{cursor:progress;overscroll-behavior:contain}
.save-feedback-overlay[data-phase="loading"] .save-feedback-panel{max-width:430px;padding:32px;text-align:center}
.save-feedback-loading h2{margin:16px 0 8px;font-size:20px}
.save-feedback-loading p{color:var(--muted,#697386);margin-bottom:22px}
.save-feedback-spinner{display:inline-block;width:34px;height:34px;border:3px solid #e5ebf5;border-top-color:var(--accent,#2165df);border-radius:50%;animation:save-feedback-spin .8s linear infinite}
.save-feedback-skeleton{display:grid;gap:10px;text-align:left}
.save-feedback-skeleton i{display:block;height:12px;border-radius:6px;background:linear-gradient(90deg,#edf0f5 25%,#f8f9fb 50%,#edf0f5 75%);background-size:200% 100%;animation:save-feedback-shimmer 1.5s ease-in-out infinite}
.save-feedback-skeleton i:nth-child(2){width:84%}.save-feedback-skeleton i:nth-child(3){width:61%}
@keyframes save-feedback-spin{to{transform:rotate(360deg)}}
@keyframes save-feedback-shimmer{to{background-position:-200% 0}}
@media(prefers-reduced-motion:reduce){.save-feedback-spinner,.save-feedback-skeleton i{animation:none}}
.cloud-st .cloud-status-text{margin-left:5px;font-size:11px;line-height:1.3;max-width:265px;text-align:left;white-space:normal;overflow-wrap:anywhere}
.cloud-st[data-cloud-state="error"] .cloud-status-text{color:var(--danger,#b83232)}
.cloud-st[data-cloud-state="draft"] .cloud-status-text,.cloud-st[data-cloud-state="offline"] .cloud-status-text{color:var(--amber,#8c6500)}
@media(max-width:600px){
 .save-feedback-overlay{padding:12px;align-items:center}
 .save-feedback-panel{padding:21px 18px;max-height:calc(100dvh - 24px);border-radius:12px}
 .save-feedback-panel h2{font-size:19px}
 .save-feedback-actions .btn,.save-feedback-downloads .btn{flex:1 1 100%}
 .save-feedback-details{grid-template-columns:82px minmax(0,1fr);gap:7px 8px}
 body.has-sidebar #topbar.has-cloud-save-status{height:auto;min-height:48px;flex-wrap:wrap;padding-top:8px;padding-bottom:8px}
 body.has-sidebar #topbar.has-cloud-save-status .top-r{flex:1 1 100%;flex-wrap:wrap;min-width:0;padding-left:0;justify-content:flex-end}
 body.has-sidebar .top-r .cloud-st[data-cloud-state="error"],body.has-sidebar .top-r .cloud-st[data-cloud-state="draft"],body.has-sidebar .top-r .cloud-st[data-cloud-state="offline"],body.has-sidebar .top-r .cloud-st[data-cloud-state="busy"]{display:inline-flex!important;min-width:0;flex:1 1 0;margin-right:auto}
 .cloud-st .cloud-status-text{max-width:none;font-size:10px}
}
/* A record save blocks only its own content; navigation stays available. */
.save-feedback-overlay[data-scope="record"]{z-index:55;padding:20px;background:rgba(235,240,248,.8);border-radius:12px}
.save-feedback-overlay[data-scope="record"] .save-feedback-panel{max-height:100%;box-shadow:0 12px 40px rgba(19,29,47,.15)}
.save-feedback-overlay[data-scope="background"]{inset:auto 20px 20px auto;max-width:calc(100vw - 40px);width:400px;padding:0;background:none;overflow:visible;cursor:auto;z-index:12000}
.save-feedback-overlay[data-scope="background"] .save-feedback-panel{max-height:70dvh;padding:18px 20px;text-align:left;border:1px solid var(--border,#e1e6ed);box-shadow:0 8px 32px rgba(19,29,47,.15)}
.save-feedback-overlay[data-phase="confirmed"] .save-feedback-panel{border-color:#b8dfc8;background:#f4fcf7}
.save-operation-status{display:flex;align-items:flex-start;gap:12px;line-height:1.4}
.save-operation-status>div{min-width:0;flex:1}
.save-operation-status b{display:block;font-size:15px}
.save-operation-status p{margin:5px 0 0;font-size:13px;color:var(--muted,#697386)}
.save-operation-status .save-feedback-spinner{flex:none;width:21px;height:21px;margin-top:2px}
.save-operation-status+.save-feedback-actions{margin-top:12px}
.save-feedback-operation{font-size:13px;font-weight:600;color:var(--muted,#697386)}
@media(max-width:600px){.save-feedback-overlay[data-scope="background"]{right:12px;bottom:12px;width:calc(100vw - 24px);max-width:none}.save-feedback-overlay[data-scope="record"]{padding:12px}.save-feedback-overlay[data-scope="background"] .save-feedback-actions .btn{flex:1 1 auto}}

.save-feedback-overlay[data-scope="record"][data-scope-target="form"]{z-index:85}
.save-feedback-technical{margin:16px 0;font-size:13px}
.save-feedback-technical summary{cursor:pointer;color:var(--muted,#697386);padding:4px 0}
.save-feedback-technical .save-feedback-details{margin:12px 0}
