.obb-personal-editor{color:#173a2a;font:16px/1.45 system-ui,sans-serif;box-sizing:border-box;background:#fff}.obb-personal-editor *{box-sizing:border-box}.obb-personal-editor [hidden]{display:none!important}.pe-header{display:flex;align-items:center;justify-content:space-between;gap:10px}.pe-header h2{font:700 1.1rem/1.3 system-ui,sans-serif;margin:0}.pe-body{padding-top:12px}.pe-note{font-size:.875rem;color:#4b6254;line-height:1.5;margin:10px 0}.obb-personal-editor label{display:block;font-size:.9rem;font-weight:600;margin:12px 0}.obb-personal-editor input,.obb-personal-editor select{display:block;width:100%;max-width:100%;margin-top:5px;padding:8px;border:1px solid #9db29f;border-radius:5px;background:#fff;color:#173a2a;font:16px/1.4 system-ui,sans-serif}.obb-personal-editor input[type=file]{padding:6px;font-size:.875rem}.obb-personal-editor input::file-selector-button{font:inherit;padding:6px;border:1px solid #9db29f;background:#edf4e8;border-radius:4px}.obb-personal-editor button{font:600 .875rem/1.4 system-ui,sans-serif;padding:8px 10px;border:1px solid #9db29f;border-radius:5px;background:#fff;color:#173a2a;cursor:pointer}.obb-personal-editor button:disabled{opacity:.5;cursor:default}.obb-personal-editor button:hover:not(:disabled){background:#edf4e8}.obb-personal-editor button:focus-visible,.obb-personal-editor input:focus-visible,.obb-personal-editor select:focus-visible{outline:3px solid #8c611e;outline-offset:2px}.pe-actions{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0}.pe-actions .pe-primary{background:#21533b;color:#fff}.pe-actions .pe-primary:hover:not(:disabled){background:#143e2a}.pe-status{padding:10px;background:#edf4e8;border-radius:5px;font-size:.875rem;overflow-wrap:anywhere;margin:10px 0}.pe-status.pe-error{background:#fff2df;color:#86320f}.pe-list{max-height:210px;overflow:auto;overscroll-behavior:contain;display:grid;gap:5px}.pe-list button{text-align:left;display:block;width:100%;font-weight:400}.pe-list button[aria-pressed=true]{background:#e5f0dc;border-color:#326c4c;box-shadow:inset 3px 0 #326c4c}.pe-list strong,.pe-list small{display:block;overflow-wrap:anywhere}.pe-list small{font-size:.875rem;color:#4b6254}.pe-selection{border-top:1px solid #c5d5c3;margin-top:14px;padding-top:14px}.pe-selection h3{font:700 1rem/1.4 system-ui,sans-serif;margin:0}.pe-coordinate-fields{display:grid;grid-template-columns:1fr 1fr;gap:8px}.pe-coordinate-fields label{min-width:0}.pe-count{font-size:.875rem;margin:10px 0}.pe-vertex{display:flex!important;align-items:center;justify-content:center;background:#fff;border:2px solid #245b3f;border-radius:50%;color:#173a2a;font:bold 12px/1 system-ui,sans-serif;box-shadow:0 1px 4px #0005}.pe-vertex.pe-active{background:#ffdd82;border-color:#7e4e00}.pe-midpoint{display:flex!important;align-items:center;justify-content:center;background:#fff;border:1px solid #245b3f;border-radius:50%;color:#173a2a;font:bold 16px/1 system-ui,sans-serif;cursor:pointer}.obb-personal-host{position:absolute;right:12px;top:190px;width:330px;max-height:calc(100dvh - 270px);overflow:auto;z-index:650;padding:14px;background:#fff;border:1px solid #b9cdbb;border-radius:9px;box-shadow:0 3px 14px #0003}.obb-personal-host.is-collapsed .pe-body{display:none}.obb-personal-host.is-collapsed{width:220px}.pe-embedded [data-pe=collapse]{display:none}.pe-embedded{background:transparent}.pe-embedded .pe-body{padding-top:0}.pe-embedded .pe-note{margin-top:10px}.obb-personal-host .pe-status{margin-bottom:0}.pe-standalone-views{display:flex;gap:7px;margin:10px 0}.pe-embedded .pe-standalone-views{display:none}@media(max-width:700px){.obb-personal-host{left:10px;right:10px;top:auto;bottom:76px;width:auto;max-height:52dvh}.obb-personal-host.is-collapsed{left:auto;width:220px}.pe-list{max-height:150px}}

.pe-help{font-size:.875rem;margin:10px 0}.pe-help summary{cursor:pointer;font-weight:600}.pe-persist-bar{background:#fff;padding:1px 0 3px}.pe-embedded .pe-persist-bar{background:#f4f7f4}.pe-persist-bar .pe-status{margin:8px 0;font-size:.875rem}.pe-persist-bar .pe-actions{margin:6px 0}

/* Palette OBB : même projet personnel, nouvelles emprises et fiches minimales. */
.pe-palette{width:205px;max-width:calc(100vw - 76px);max-height:calc(100dvh - 170px);overflow:auto;overscroll-behavior:contain;background:#fff;color:#173a2a;padding:10px;border:1px solid #b9cdbb!important;border-radius:8px!important;box-shadow:0 2px 10px #0002;font:14px/1.4 system-ui,sans-serif;box-sizing:border-box}
.pe-palette *{box-sizing:border-box}.pe-palette [hidden]{display:none!important}.pe-palette h2{font:650 14px/1.4 system-ui,sans-serif;margin:0 0 8px}.pe-palette button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:38px;border:1px solid #a2b7a4;border-radius:5px;padding:7px;background:#fff;color:#173a2a;font:600 14px/1.35 system-ui,sans-serif;cursor:pointer;text-align:left}.pe-palette button:hover:not(:disabled){background:#edf4e8}.pe-palette button:disabled{opacity:.5;cursor:default}.pe-palette button:focus-visible{outline:3px solid #8c611e;outline-offset:2px}.pe-palette .pp-types{display:grid;gap:6px}.pe-palette .pp-types button{justify-content:flex-start}.pe-palette .pp-types button[aria-pressed=true]{background:#e5f0dc;border-color:#326c4c;box-shadow:inset 3px 0 #326c4c}.pe-palette svg{width:21px;height:21px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.pe-palette .pp-status{font-size:13px;line-height:1.45;margin:10px 0;overflow-wrap:anywhere}.pe-palette .pp-status.pe-error{color:#86320f;background:#fff2df;padding:6px;border-radius:4px}.pe-palette .pp-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.pe-palette [data-pp=save],.pe-palette [data-pp=close]{background:#21533b;color:#fff}.pe-palette [data-pp=save]:hover:not(:disabled),.pe-palette [data-pp=close]:hover:not(:disabled){background:#143e2a}.pe-palette [data-pp=undo],.pe-palette [data-pp=pause]{flex:1;min-width:70px;width:auto}.pe-capturing,.pe-capturing .leaflet-interactive{cursor:crosshair}.pe-reference{border-radius:4px;background:#fff4c8}.pe-area{font-size:.9rem;font-weight:600;line-height:1.5;padding:9px 10px;background:#edf4e8;border-radius:5px;margin:10px 0}.obb-personal-editor textarea{display:block;width:100%;max-width:100%;margin-top:5px;padding:8px;border:1px solid #9db29f;border-radius:5px;background:#fff;color:#173a2a;font:16px/1.4 system-ui,sans-serif;resize:vertical}.obb-personal-editor textarea:focus-visible{outline:3px solid #8c611e;outline-offset:2px}.obb-personal-editor select{appearance:none;padding-right:30px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23173a2a' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 9px center}.obb-personal-editor [data-pe=card-fields]>details{margin-top:12px;padding-top:10px;border-top:1px solid #c5d5c3}.obb-personal-editor [data-pe=card-fields] summary{font-size:.9rem;font-weight:650;cursor:pointer}.pe-reference-coordinates{user-select:text;overflow-wrap:anywhere}.pe-drawing [data-pe=geometry]{display:none!important}
@media(pointer:coarse){.pe-palette button{min-height:44px}.obb-personal-editor button{min-height:44px}}
@media(max-width:700px){.pe-palette{width:190px;padding:8px;max-height:calc(100dvh - 155px)}.pe-palette .pp-status{font-size:13px}.obb-personal-host.is-collapsed{max-width:calc(100% - 20px)}}

/* Relief personnel : calcul distinct des observations, motif indépendant des cultures. */
.pe-relief{margin-top:16px;padding-top:12px;border-top:1px solid #c5d5c3}.pe-relief h4{font:650 16px/1.4 system-ui,sans-serif;margin:0 0 8px}.pe-relief [data-pe=relief-result]>a{font-size:14px;color:#245b3f}.pe-relief details summary{font-size:14px;cursor:pointer;font-weight:600}.pe-aspects{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;font-size:14px}.pe-aspects span{padding:4px 5px;background:#f0f3f0;border:1px solid #d2dbd2;border-radius:4px;white-space:nowrap}.pp-relief{border-top:1px solid #c5d5c3;margin-top:10px;padding-top:9px}.pp-relief label{display:flex;align-items:center;gap:5px;font-size:14px;line-height:1.4;cursor:pointer;margin-bottom:8px}.pp-relief input{width:17px;height:17px;accent-color:#245b3f;flex:none}.pp-relief button+button{margin-top:6px}.pp-legend{font:12px/1.5 system-ui,sans-serif;margin:7px 0 0;color:#506157}.obb-relief-canvas{position:absolute;pointer-events:none}.obb-relief-tip{white-space:normal;max-width:320px;font:14px/1.5 system-ui,sans-serif;color:#173a2a;border:1px solid #9db29f}
@media(max-width:700px){html.obb-map .map-zone:has(.obb-personal-host:not(.is-collapsed)) .pe-palette{max-height:max(80px,calc(52dvh - 230px))}}
/* Parcelles : limites sobres, réglages et liens vers la surface mère. */
.pe-parcels{margin:16px 0;padding:12px;border:1px solid #bbcbbb;border-radius:7px;background:#f6f8f3}
.pe-parcels h4{margin:0 0 8px;font:700 1rem/1.4 system-ui,sans-serif}
.pe-parcels details{margin:10px 0}.pe-parcels summary{cursor:pointer;font-size:.9rem;font-weight:600}
.pe-parcel-list{display:grid;gap:5px;max-height:210px;overflow:auto;overscroll-behavior:contain}
.pe-parcel-list button{text-align:left;overflow-wrap:anywhere}
.obb-personal-editor label.pe-check{display:flex;align-items:center;gap:8px;font-weight:400}
.obb-personal-editor .pe-check input{width:18px;height:18px;margin:0;flex:none}
.pe-exploration{margin:12px 0;padding:12px 0;border-top:1px solid #c5d5c3;border-bottom:1px solid #c5d5c3}.pe-exploration h4{margin:0 0 8px;font:650 1rem/1.4 system-ui,sans-serif}.pe-exploration-list{display:grid;gap:6px;max-height:210px;overflow:auto}.pe-exploration-list button{text-align:left;overflow-wrap:anywhere}.pe-exploration .pe-error{padding:8px;border-radius:5px;background:#fff2df;color:#86320f}.pe-exploration [data-pe=exploration-preview]{margin-top:8px}.pe-exploration [data-pe=exploration-preview] .pe-note{padding:8px;background:#fff7e7}

/* Drawing previews must not intercept clicks on saved surfaces; vertex markers stay interactive. */
.leaflet-obbEdit-pane > canvas { pointer-events: none; }
