/* V8 - Curva S interativa, topbar minimalista e governanca de janelas */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.compact-actions{gap:5px}.top-icon-action{width:34px;height:34px;min-width:34px;min-height:34px;padding:0;border:1px solid #dbe5df;border-radius:9px;background:#fff;color:#43564b;display:inline-flex;align-items:center;justify-content:center;position:relative;transition:background .14s,border-color .14s,color .14s,transform .14s;box-shadow:none}.top-icon-action svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round}.top-icon-action:hover{background:#f4f8f5;border-color:#b9ccbf;color:#126b3d;transform:translateY(-1px)}.top-icon-action:focus-visible{outline:2px solid rgba(21,113,66,.24);outline-offset:2px}.top-icon-action.sync-action .sync-dot{position:absolute;right:4px;bottom:4px;width:6px;height:6px;border:1px solid #fff}.topbar .account-btn{width:34px;min-width:34px;height:34px;min-height:34px;padding:0;border-radius:9px;font-size:11px}

.curve-wrap{position:relative;isolation:isolate}.curve-wrap.zoomed .curve-svg{min-width:1850px}.curve-svg{cursor:crosshair}.curve-chart-title{font-size:15px;font-weight:800;fill:#163c28;letter-spacing:-.1px}.curve-legend{pointer-events:all}.curve-legend-item{cursor:pointer;transition:opacity .15s ease}.curve-legend-item:hover text{font-weight:700}.curve-legend-item.is-off{opacity:.28}.curve-legend-item:focus{outline:none}.curve-legend-item:focus text{text-decoration:underline}.curve-legend-item text{font-size:9px;fill:#46594e;user-select:none}.curve-point{cursor:pointer;transition:stroke-width .12s ease,filter .12s ease}.curve-point.hovered{stroke-width:3;filter:drop-shadow(0 2px 3px rgba(20,47,31,.18))}.curve-value{font-size:7.3px;font-weight:750;paint-order:stroke;stroke:#fff;stroke-width:2.2px;stroke-linejoin:round}
.curve-crosshair{opacity:0;pointer-events:none;transition:opacity .08s}.curve-crosshair.active{opacity:1}.curve-crosshair-v,.curve-crosshair-h{stroke:#7d9186;stroke-width:.85;stroke-dasharray:4 4}.curve-crosshair-dot{fill:#163c28;stroke:#fff;stroke-width:1.6}
.curve-tooltip,.curve-hover-readout{position:absolute;z-index:12;pointer-events:none;opacity:0;transform:translateY(3px);transition:opacity .1s ease,transform .1s ease;background:rgba(18,31,25,.97);color:#fff;border:1px solid rgba(255,255,255,.08);border-radius:10px;box-shadow:0 12px 34px rgba(18,31,25,.2);backdrop-filter:blur(4px)}.curve-tooltip.show,.curve-hover-readout.show{opacity:1;transform:none}.curve-tooltip{min-width:218px;max-width:286px;padding:11px 12px}.curve-tooltip-title{font-size:12px;font-weight:800;margin-bottom:7px;color:#eaf5ee}.curve-tooltip-row{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;font-size:10.5px;line-height:1.45;margin:2px 0}.curve-tooltip-row span{color:#b8cabf}.curve-tooltip-row b{text-align:right;font-weight:700}.curve-tooltip-row b.negative{color:#ffaaa1}.curve-tooltip-note{margin-top:7px;padding-top:7px;border-top:1px solid rgba(255,255,255,.11);font-size:9.5px;line-height:1.4;color:#d9e8df}.curve-hover-readout{min-width:202px;padding:9px 11px}.curve-hover-readout>div{display:flex;justify-content:space-between;gap:14px;font-size:9.5px;line-height:1.55}.curve-hover-readout>div span{color:#b8cabf}.curve-hover-readout>div b{font-weight:700}.curve-readout-head{padding-bottom:5px;margin-bottom:4px;border-bottom:1px solid rgba(255,255,255,.1);font-size:10.5px!important}.curve-readout-head span{color:#d9e8df!important;font-weight:700}

.curve-toolbar{grid-template-columns:repeat(auto-fit,minmax(105px,1fr))}.curve-toolbar .btn.danger{color:#a43831;background:#fff8f7;border-color:#edcbc7}.curve-toolbar .btn.danger:hover{background:#fff0ee;border-color:#e7aaa4}

.settings-modal{width:min(860px,calc(100vw - 32px));max-width:860px}.settings-section{border:1px solid #e2eae5;border-radius:11px;padding:13px;margin-bottom:12px;background:#fbfdfb}.settings-section h4{margin:0 0 8px;font-size:12px}.settings-section-head{display:flex;justify-content:space-between;gap:12px}.settings-section-head p{margin:2px 0 0;font-size:10px;color:#6b7a72}.settings-actions{display:flex;justify-content:flex-end;margin-top:10px}.window-profile-list{display:grid;gap:7px}.window-profile-row{display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid #e2e9e5;background:#fff;border-radius:9px;padding:9px 10px}.window-profile-row>div:first-child{display:flex;flex-direction:column;gap:2px}.window-profile-row b{font-size:11px}.window-profile-row span{font-size:9.5px;color:#6b7b72}.window-profile-row>div:last-child{display:flex;gap:6px;align-items:center}

.danger-confirm-modal .modal-body{padding-top:12px}.danger-notice{display:flex;gap:10px;align-items:flex-start;background:#fff4f2;border:1px solid #efc2bd;color:#7e2923;border-radius:10px;padding:11px 12px}.danger-notice b{font-size:10px;letter-spacing:.7px}.danger-notice span{font-size:10px;line-height:1.45}.curve-edit-bounds{display:flex;gap:18px;margin-top:10px;padding:8px 10px;background:#f5f8f6;border-radius:8px;font-size:10px;color:#53665b}
.admin-curve-admin{margin-top:10px}.admin-edit-icon{width:28px;height:28px;border:1px solid #d9e5dd;background:#fff;color:#166a3d;border-radius:7px;display:inline-flex;align-items:center;justify-content:center;font-size:15px;cursor:pointer}.admin-edit-icon:hover{background:#edf6f0;border-color:#bcd5c6}.admin-curve-admin .table-wrap{max-height:300px}

@media(max-width:820px){.top-icon-action{width:32px;height:32px;min-width:32px;min-height:32px}.compact-actions{gap:3px}.curve-tooltip{min-width:190px}.settings-modal{width:calc(100vw - 16px)}.window-profile-row{align-items:flex-start;flex-direction:column}.window-profile-row>div:last-child{width:100%;justify-content:flex-end}}
