:root{--nb-ink:#202b25;--nb-muted:#59675e;--nb-green:#245c43;--nb-line:#dce3dc;--nb-bg:#f6f7f4}
body[data-notebook=true]{color:var(--nb-ink);background:var(--nb-bg);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
body[data-notebook=true] #bottomNav,body[data-notebook=true] #agendaAdd{display:none!important}
body.locked #notebookNav,body.locked #nbMessage,body[data-notebook=false] #nbFromHealth{display:none!important}
body[data-notebook=true] h1,body[data-notebook=true] h2,body[data-notebook=true] h3,body[data-notebook=true] .portal-card b{font-family:inherit!important;letter-spacing:-.025em}
body[data-notebook=true] button{min-height:48px;border-radius:12px!important;box-shadow:none;touch-action:manipulation}
body[data-notebook=true] .primary{background:var(--nb-green)!important;color:white!important;border:1px solid var(--nb-green)}
body[data-notebook=true] .header-home-link{min-height:44px;min-width:64px;display:inline-flex!important;align-items:center;justify-content:center;background:white!important;color:var(--nb-green)!important;font-size:14px!important;box-shadow:none!important;border-color:var(--nb-line)!important}
body[data-notebook=true] header strong{font-family:inherit;white-space:normal!important}
body[data-notebook=true] .module-card,body[data-notebook=true] .treatment-form-card{border-radius:16px!important;box-shadow:none}
body[data-notebook=true] #treatmentFormCard h1{font-size:26px;line-height:1.2}
body[data-notebook=true] input,body[data-notebook=true] select,body[data-notebook=true] textarea{font-family:inherit;font-size:16px!important}
body[data-notebook=true] button:focus-visible,body[data-notebook=true] a:focus-visible,body[data-notebook=true] summary:focus-visible{outline:3px solid #9b631a;outline-offset:3px}
.nb{color:var(--nb-ink);font:16px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}
.nb *{box-sizing:border-box}.nb h1{font-size:32px;line-height:1.18;margin:0}.nb h2{font-size:22px;line-height:1.25;margin:26px 0 14px}.nb h3{font-size:16px;margin:24px 0 10px}.nb p{color:var(--nb-muted)}
.nb button,.nb input,.nb textarea,.nb select{font:inherit}.nb button{width:auto;min-height:48px;padding:10px 16px;background:#fff;border:1px solid var(--nb-line);color:var(--nb-ink);font-weight:600;cursor:pointer;box-shadow:none!important}
.nb button:active{transform:translateY(1px);background:#e7eee8}.nb button:disabled{opacity:.6;cursor:wait}.nb svg,#notebookNav svg{width:22px;height:22px;flex-shrink:0}
.nb label{display:block;font-size:14px;font-weight:600;margin:14px 0;color:var(--nb-ink)}.nb input,.nb select,.nb textarea{display:block;width:100%;min-height:48px;border:1px solid #becbbf;background:white;border-radius:10px;padding:11px 12px;margin:6px 0 0;color:var(--nb-ink);box-shadow:none}.nb input:focus,.nb textarea:focus,.nb select:focus{outline:2px solid var(--nb-green);outline-offset:2px}
.nb-page{max-width:1360px;margin:0 auto;padding:36px 32px 100px}.nb-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:30px}.nb-heading p{margin:10px 0 0}.nb-heading .nb-eyebrow{margin:0 0 10px}.nb-eyebrow{font-size:12px!important;font-weight:650;letter-spacing:.1em;text-transform:uppercase;color:var(--nb-muted)}.nb-heading-actions{display:flex;gap:10px;align-items:center;flex-shrink:0}.nb-heading-actions #nbAccount{padding:10px;width:48px}
.nb-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:24px 0}.nb-metrics button{text-align:left;padding:20px;border-radius:14px!important}.nb-metrics strong{display:block;font-size:30px}.nb-metrics span{font-size:14px;color:var(--nb-muted);font-weight:400}.nb-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}
.nb-row{display:flex!important;justify-content:space-between;align-items:center;gap:16px;width:100%!important;text-align:left;border:0!important;border-bottom:1px solid var(--nb-line)!important;border-radius:0!important;background:transparent!important;padding:20px 8px!important}.nb-row:hover,.nb-row[aria-current=true]{background:#eaf0e9!important}.nb-row b{font-size:16px;overflow-wrap:anywhere}.nb-row small{display:block;margin-top:5px;font-size:14px;font-weight:400;color:var(--nb-muted)}.nb-row-tags{display:flex;gap:6px;flex-direction:column;align-items:flex-end}.nb-tag{font-size:12px;line-height:1.4;font-weight:600;font-style:normal;background:#e8efe9;color:#245c43;border-radius:6px;padding:5px 8px;white-space:nowrap}.nb-tag.attention{background:#fff0e8;color:#913a20}
.nb-filters{display:flex;align-items:end;gap:12px;margin-bottom:22px;flex-wrap:wrap}.nb-filters>label{margin:0;flex:1;min-width:140px}.nb-search{flex:2!important}.nb-filters details{position:relative}.nb summary{cursor:pointer;min-height:48px;padding:12px 8px;color:var(--nb-green);font-weight:600}.nb-more-filters{position:absolute;z-index:12;right:0;width:290px;background:white;border:1px solid var(--nb-line);padding:20px;box-shadow:0 14px 30px #243e251a;border-radius:14px}.nb-list-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,.85fr);gap:32px}.nb-list{min-width:0}.nb-count{font-size:14px}.nb-empty{padding:24px 0;color:var(--nb-muted);font-size:15px}.nb-loading{padding:64px 32px}
#nbDetailPanel{position:sticky;top:24px;align-self:start;max-height:calc(100vh - 48px);overflow:auto;padding:24px;background:white;border:1px solid var(--nb-line);border-radius:16px}.nb-detail h2{margin-top:12px}.nb-detail dl{display:grid;grid-template-columns:110px 1fr;gap:9px;font-size:14px;margin:24px 0}.nb-detail dt{color:var(--nb-muted)}.nb-detail dd{margin:0;overflow-wrap:anywhere}.nb-pre{white-space:pre-wrap;overflow-wrap:anywhere}.nb-history{border-top:1px solid var(--nb-line);padding:14px 0}.nb-history small{display:block;color:var(--nb-muted);font-size:13px}.nb-history p{margin:8px 0 0}
#notebookDialog{border:0;border-radius:18px;width:min(660px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:24px;background:var(--nb-bg);box-shadow:0 20px 80px #16281940}#notebookDialog:not([open]){display:none}#notebookDialog::backdrop{background:#17261cb0}.nb-close{margin-bottom:14px}.nb-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.nb-product{padding:16px;background:white;border:1px solid var(--nb-line);border-radius:12px;margin:14px 0}.nb-product label{margin-top:0}.nb-check{display:flex!important;align-items:flex-start;gap:12px;font-weight:400!important}.nb-check input{width:24px;min-width:24px;min-height:24px;margin-top:0}.nb-form-error,#nbStatusError{color:#a33326}.nb-helper{font-size:13px}.nb-export{display:block;color:var(--nb-green);padding:12px 0}.nb-fields{display:grid;grid-template-columns:1fr 1fr;gap:24px}.nb-fields article{background:white;border:1px solid var(--nb-line);border-radius:16px;padding:24px}.nb-fields h2{margin:6px 0}
#nbPickCanvas{width:100%;height:300px;background:#edf1e8;border-radius:12px;touch-action:manipulation}#nbMessage{position:fixed;bottom:96px;left:50%;transform:translateX(-50%);max-width:calc(100vw - 32px);background:#203d2c;color:white;z-index:1000;border-radius:12px;padding:12px 18px;opacity:0;pointer-events:none}#nbMessage.show{opacity:1}
#notebookNav{position:fixed;left:0;top:0;bottom:0;width:216px;padding:32px 18px;border-right:1px solid var(--nb-line);background:#fff;z-index:100;display:flex;flex-direction:column;gap:8px}#notebookNav .nb-brand{font-size:23px;font-weight:700;line-height:1.2;padding:0 12px 30px;color:#245c43}#notebookNav button{display:flex;align-items:center;gap:12px;text-align:left;background:transparent;border:0;min-height:48px;padding:12px;color:#59675e;font-size:15px;width:100%}#notebookNav button[aria-current=page]{background:#e8efe9;color:#245c43;font-weight:650}#notebookNav .nb-account{margin-top:auto}
@media(min-width:1100px){body[data-notebook=true].authenticated{padding-left:216px!important;padding-bottom:0!important}body[data-notebook=true] #taskNavigator{left:216px}body[data-notebook=true] #app>header,body[data-notebook=true] .module-app>header{padding-inline:32px!important}}
@media(max-width:1099px){#nbDetailPanel{display:none}.nb-list-layout{display:block}#notebookNav{top:auto;bottom:0;right:0;width:auto;flex-direction:row;padding:8px 8px max(8px,env(safe-area-inset-bottom));border-top:1px solid var(--nb-line);border-right:0;gap:2px;justify-content:center}#notebookNav .nb-brand,#notebookNav .nb-account{display:none}#notebookNav button{flex:1;max-width:140px;flex-direction:column;gap:4px;padding:8px 4px;font-size:12px;text-align:center;min-height:60px}#notebookNav svg{width:22px;height:22px}body[data-notebook=true].authenticated{padding-bottom:88px!important}.nb-page{padding:24px 20px 40px}.nb-heading{align-items:flex-start}.nb h1{font-size:28px}.nb-heading-actions{flex-wrap:wrap}}
@media(max-width:600px){.nb-heading{display:block}.nb-heading-actions{margin-top:18px}.nb-heading-actions #nbAccount{margin-left:auto}.nb-metrics{gap:8px}.nb-metrics button{padding:12px 10px}.nb-metrics strong{font-size:26px}.nb-metrics span{font-size:12px}.nb-filters{gap:10px}.nb-filters>label.nb-search{flex-basis:100%}.nb-more-filters{position:static;width:100%;box-shadow:none}.nb-filters details{width:100%}.nb-grid{gap:10px}.nb-fields{grid-template-columns:1fr}.nb-row{padding:17px 0!important}.nb-row-tags{max-width:110px}.nb-tag{white-space:normal;text-align:right}.nb-detail dl{grid-template-columns:90px 1fr}#notebookDialog{width:100%;height:100dvh;max-height:100dvh;margin:0;border-radius:0;padding:20px 20px max(24px,env(safe-area-inset-bottom))}.nb-product{padding:12px}.nb .primary{min-height:50px}.nb-form-error{font-size:14px}}
@media(prefers-reduced-motion:reduce){body[data-notebook=true] *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
@media(max-width:600px){#notebookDialog{max-width:100vw}.nb-filters>label.nb-search{flex:1 1 100%!important}}
/* V104: acceso, mapas y gestión comparten estructura y lenguaje visual. */
body{--green:#245c43;--green2:#e8efe9;--orange:#245c43;--ink:#202b25;--cream:#f6f7f4}
body.locked{background:#f6f7f4!important;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important}
#login{background:radial-gradient(ellipse at 20% 0%,#e4ece1,transparent 60%),#f6f7f4!important;padding:32px 20px!important;min-height:100dvh}
#loginForm{background:white!important;border:1px solid #dce3dc!important;border-radius:24px!important;box-shadow:0 16px 60px #203d2c0a!important;padding:40px!important;width:min(440px,100%)!important;max-width:440px!important}
#loginForm h1{font:700 32px/1.16 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;letter-spacing:-.04em;color:#245c43!important;margin:12px 0!important}
#loginForm .login-kicker{font-size:11px;letter-spacing:.13em;color:#59675e!important}#loginForm .login-heading p{font-size:16px!important;line-height:1.5;color:#59675e!important}#loginForm .login-heading{margin-bottom:24px!important}
.nb-login-label{display:block!important;text-align:left;font-size:14px;font-weight:600;color:#202b25;margin:18px 0 0!important}#loginForm input:not([type=hidden]){width:100%!important;border:1px solid #bdc9bf!important;border-radius:10px!important;min-height:52px!important;font-size:16px!important;padding:12px!important;margin:8px 0 0!important;background:#fff!important;box-sizing:border-box!important}
#loginForm button.primary{background:#245c43!important;border:0!important;border-radius:12px!important;min-height:52px!important;color:white!important;font:600 16px -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif!important;box-shadow:none!important;margin-top:24px!important}
#nbShowPassword{background:transparent!important;border:0!important;color:#245c43!important;font-size:14px!important;min-height:44px!important;width:auto!important;padding:8px 0!important;display:block;margin-left:auto!important;box-shadow:none!important}
#loginError{font-size:14px;line-height:1.5}#loginForm :focus-visible{outline:3px solid #73967d;outline-offset:3px}
.nb-spinner{display:inline-block;width:26px;height:26px;border:3px solid #d7e3d8;border-top-color:#245c43;border-radius:50%;animation:nb-spin .85s linear infinite;flex-shrink:0}@keyframes nb-spin{to{transform:rotate(360deg)}}
.nb-loading{display:flex;gap:16px;align-items:center;min-height:240px;justify-content:center;color:var(--nb-muted)}
.nb-team-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:18px}.nb-person{display:grid;grid-template-columns:48px 1fr;gap:16px;align-items:center;text-align:left;padding:24px!important;border-radius:16px!important}.nb-person:hover{border-color:#72947a}.nb-avatar{display:flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;background:#e8efe9;color:#245c43}.nb-person small{display:block;color:#59675e;font-size:14px;font-weight:400;margin-top:5px}.nb-person-work{grid-column:1/-1;border-top:1px solid #dce3dc;padding-top:16px;font-size:14px;font-weight:400}.nb-person-work strong{font-size:25px;margin-right:5px;color:#202b25}.nb-person .nb-overdue{color:#913a20}.nb-account-options{display:grid;gap:12px;margin:24px 0}
.nb-journal-date{font-size:15px!important;font-weight:650;letter-spacing:0!important;margin:28px 0 8px!important}.nb-journal-item{border-left:2px solid #d0dfd1;padding-left:20px;position:relative}.nb-journal-item:before{content:'';position:absolute;left:-5px;top:30px;width:8px;height:8px;border-radius:50%;background:#73967d}.nb-journal-item .nb-row{align-items:flex-start}.nb-journal-item .nb-tag{background:#e8efe9}
body[data-notebook=true] #app{height:auto!important;min-height:100dvh!important;overflow:visible!important;background:var(--nb-bg)!important;padding-bottom:24px!important}
body[data-notebook=true]:has(#app.form-mode:not([hidden])){height:auto!important;overflow:visible!important}
body[data-notebook=true] #app>header{display:none!important}
.nb-map-heading{max-width:1360px;margin:0 auto;padding:28px 32px 24px;display:flex;align-items:center;gap:24px}.nb-map-heading h1{font-size:28px}.nb-map-heading p{margin:6px 0 0}.nb-map-heading .nb-eyebrow{margin:0 0 8px}.nb-map-heading #nbMapAccount{margin-left:auto}
body[data-notebook=true] #app>main{display:block!important;width:100%!important;max-width:1360px!important;height:auto!important;min-height:0!important;margin:0 auto!important;padding:0 32px!important;overflow:visible!important;box-sizing:border-box}
body[data-notebook=true] #selectionStep{height:auto!important;min-height:0!important;margin:0!important;padding:0!important;overflow:hidden!important;border:1px solid var(--nb-line)!important;border-radius:18px!important;background:white!important;box-shadow:none!important;display:block}
body[data-notebook=true] #selectionStep[hidden]{display:none!important}
body[data-notebook=true] .map-toolbar{padding:16px 20px!important;display:flex!important;align-items:center!important;flex-wrap:wrap;gap:12px!important;min-height:0!important;background:white!important;border:0!important}
body[data-notebook=true] .field-flight{margin-right:auto;gap:20px;align-items:center;display:flex}.field-picker select{color:#202b25!important}.field-flight .label{font-size:11px!important;color:#59675e!important;letter-spacing:.05em}.field-flight select{background:#fff!important;border:1px solid #bdc9bf!important;border-radius:10px!important;min-height:48px!important;font-size:16px!important;box-shadow:none!important;padding:8px 12px!important}.field-flight .flight-date{min-width:80px}.field-flight .flight-date b{font-size:13px!important;color:#59675e!important}
body[data-notebook=true] #locateBtn,body[data-notebook=true] #nbHealthLayer{background:#fff!important;color:#245c43!important;border:1px solid #dce3dc!important;padding:10px 14px!important;font-size:14px!important;width:auto!important;min-height:48px!important;font-weight:600!important;box-shadow:none!important}body[data-notebook=true] #nbHealthLayer[aria-pressed=true]{background:#e8efe9!important;border-color:#73967d!important}
body[data-notebook=true] #map{height:clamp(440px,65dvh,820px)!important;min-height:0!important;max-height:none!important;flex:none!important;width:100%!important;border:0!important;border-radius:0!important;background:#edf0e9!important;position:relative!important}
body[data-notebook=true] #mapCanvas{width:100%!important;height:100%!important}
body[data-notebook=true] .zoom-controls{right:16px!important;bottom:60px!important;gap:6px!important;display:flex!important;flex-direction:column!important}body[data-notebook=true] .zoom-controls button{width:48px!important;height:48px!important;min-height:48px!important;border:1px solid #dce3dc!important;background:#fffffff5!important;color:#245c43!important;font-size:24px!important;box-shadow:0 2px 8px #142a2420!important}
body[data-notebook=true] #areaSelectBtn{top:14px!important;left:14px!important;bottom:auto!important;right:auto!important;background:#fffffff0!important;color:#245c43!important;border:1px solid #dce3dc!important;min-height:48px!important;padding:10px 14px!important;font-size:14px!important;box-shadow:0 2px 8px #142a2420!important}
body[data-notebook=true] .health-legend{bottom:12px!important;left:14px!important;right:auto!important;top:auto!important;padding:8px 10px!important;border-radius:8px!important;background:#152a24df!important;color:white!important;gap:12px!important;max-width:calc(100% - 28px);font-size:11px!important;flex-wrap:wrap!important}.health-legend span{color:inherit!important}body[data-notebook=true] #app:not(.nb-health-layer) .health-legend span:has(.review),body[data-notebook=true] #app:not(.nb-health-layer) .health-legend span:has(.priority){display:none}
body[data-notebook=true] .north{top:16px!important;right:16px!important;color:#fff!important;background:#152a24c9!important;padding:6px 10px!important;border-radius:8px!important;font-size:13px!important}
body[data-notebook=true] #mapContoursLoading{position:absolute!important;inset:0!important;z-index:20!important;transform:none!important;width:auto!important;height:auto!important;border-radius:0!important;background:#f1f4edfa!important;border:0!important;box-shadow:none!important;display:flex!important;align-items:center!important;justify-content:center!important;flex-direction:column!important;gap:14px!important;padding:32px!important;text-align:center;color:#245c43!important;backdrop-filter:none!important}body[data-notebook=true] #mapContoursLoading[hidden]{display:none!important}#mapContoursLoading small{color:#59675e!important;font-size:14px!important;max-width:320px}#mapContoursLoading b{font-size:17px!important}#mapContoursLoading button{width:auto;padding:12px 20px}
#mapDetailStatus{position:absolute;top:74px;left:14px;z-index:8;max-width:calc(100% - 90px);font:600 12px -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#245c43;background:#fffffff5;border:1px solid #dce3dc;padding:8px 12px;min-height:40px!important}#mapDetailStatus.loading:before{content:'';display:inline-block;vertical-align:middle;width:12px;height:12px;border:2px solid #d7e3d8;border-top-color:#245c43;border-radius:50%;animation:nb-spin .85s linear infinite;margin-right:8px}
body[data-notebook=true] .location-summary{background:white!important;border:0!important;padding:16px 20px!important;border-radius:0!important;gap:12px!important;min-height:0!important}body[data-notebook=true] .location-summary b{font-size:14px!important}body[data-notebook=true] .location-summary small{font-size:13px!important;color:#59675e!important}.location-summary>span{background:#e8efe9!important;color:#245c43!important}
body[data-notebook=true] #mapChoice{position:static!important;background:#f1f5ef!important;border:0!important;border-top:1px solid #dce3dc!important;border-radius:0!important;padding:20px!important;box-shadow:none!important;display:flex;gap:16px;flex-wrap:wrap;align-items:center}body[data-notebook=true] #mapChoice[hidden]{display:none!important}body[data-notebook=true] #mapChoice button{font-size:14px!important;padding:10px 14px!important;width:auto!important}body[data-notebook=true] #mapChoice .choice-actions{display:flex;flex-wrap:wrap;gap:8px}.selected-icon{background:#245c43!important;color:white!important}body[data-notebook=true] #nbFromHealth{background:white!important;color:#245c43!important;border:1px solid #b7caba!important}
body[data-notebook=true] #formStep{max-width:760px!important;height:auto!important;min-height:0!important;margin:0 auto!important;padding:24px!important;border:1px solid #dce3dc!important;border-radius:18px!important;overflow:visible!important;background:white!important;box-shadow:none!important}body[data-notebook=true] .save-bar{position:static!important;background:transparent!important;padding:20px 0 0!important;box-shadow:none!important}body[data-notebook=true] #app footer{max-width:1360px;margin:0 auto;padding:16px 32px;color:#59675e;font-size:12px}.nb-map-heading button{flex-shrink:0}
body[data-notebook=true] #taskNavigator section{border-radius:18px!important;background:#f6f7f4!important;box-shadow:none!important}body[data-notebook=true] #taskNavigator header{background:#fff!important;border-bottom:1px solid #dce3dc!important}body[data-notebook=true] #taskNavigator strong{font-size:22px!important}
#nbDemoBar{position:relative;z-index:101;background:#edf2e8;color:#365640;padding:10px 24px;display:flex;justify-content:center;align-items:center;gap:20px;font:13px -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;border-bottom:1px solid #d1ddcd}#nbDemoBar[hidden]{display:none}#nbDemoBar label{display:flex;align-items:center;gap:8px}#nbDemoBar select{min-height:44px;border:1px solid #b7caba;border-radius:8px;background:white;color:#245c43;padding:6px 10px;font-size:14px!important}
@media(max-width:1099px){.nb-map-heading{padding:20px;gap:16px;flex-wrap:wrap}.nb-map-heading h1{font-size:26px}.nb-map-heading>div{order:3;flex-basis:100%}.nb-map-heading #nbMapAccount{margin-left:auto}body[data-notebook=true] #app>main{padding:0 20px!important}body[data-notebook=true] #map{height:58dvh!important;min-height:380px!important}.nb-map-heading p{font-size:14px}.nb-map-heading .nb-eyebrow{display:none}body[data-notebook=true] #app footer{padding:16px 20px}}
@media(max-width:600px){#loginForm{padding:28px 24px!important}#loginForm h1{font-size:30px!important}.nb-team-grid{grid-template-columns:1fr}.nb-map-heading{padding:12px 16px 20px}.nb-map-heading h1{font-size:25px}body[data-notebook=true] #app>main{padding:0 12px!important}body[data-notebook=true] .map-toolbar{padding:12px!important;gap:8px!important}body[data-notebook=true] .field-flight{width:100%!important;justify-content:space-between!important;gap:12px!important}body[data-notebook=true] .field-picker{flex:1}body[data-notebook=true] .field-picker select{width:100%!important}body[data-notebook=true] #locateBtn,body[data-notebook=true] #nbHealthLayer{flex:1!important;font-size:12px!important;padding:8px!important}body[data-notebook=true] #map{height:55dvh!important;min-height:360px!important}body[data-notebook=true] #formStep{padding:18px!important}.nb-map-heading #nbBackFields,.nb-map-heading #nbMapAccount{font-size:14px!important;min-height:44px!important;padding:8px 12px}.nb-journal-item{padding-left:14px}#nbDemoBar{flex-wrap:wrap;gap:8px;padding:8px 16px;font-size:12px}}
@media(prefers-reduced-motion:reduce){.nb-spinner,#mapDetailStatus.loading:before{animation:none!important}.nb-page{animation:none!important}}
body[data-notebook=true] .map-toolbar{height:auto!important;overflow:visible!important;box-sizing:border-box!important}body[data-notebook=true] #locateBtn{max-width:none!important;min-width:0!important;height:auto!important;max-height:none!important;flex:0 0 auto}
body[data-notebook=true] #app footer a{color:#245c43!important}
@media(max-width:600px){body[data-notebook=true] #locateBtn{flex:1!important}}
.nb-nav-loading{position:absolute;inset:0;background:#f1f4edfa;z-index:9;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;color:#245c43;font-size:15px}.nb-nav-loading[hidden]{display:none}.nb-nav-loading button{padding:12px 20px;background:white;border:1px solid #b7caba;color:#245c43}#navDetailStatus{position:absolute;top:16px;left:16px;z-index:8;background:#fffffff5;color:#245c43;padding:8px 12px;border:1px solid #dce3dc;font-size:12px;max-width:calc(100% - 90px)}
body[data-notebook=true] #formStep .back-button{background:#fff!important;color:#245c43!important;border:1px solid #dce3dc!important}body[data-notebook=true] #formStep .eyebrow{color:#59675e!important}body[data-notebook=true] #formStep .photo-box{background:#f1f5ef!important;border:1px dashed #9fb6a2!important;border-radius:12px!important;color:#245c43!important}body[data-notebook=true] #formStep .camera{background:#e0eade!important;color:#245c43!important}body[data-notebook=true] #formStep textarea{border:1px solid #bdc9bf!important;background:#fff!important;border-radius:12px!important}body[data-notebook=true] #formStep textarea:focus{outline:2px solid #245c43!important;outline-offset:2px;box-shadow:none!important}body[data-notebook=true] .location-summary small{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}
@media(max-width:600px){.nb-map-heading>div>p:not(.nb-eyebrow){display:none}.nb-map-heading{gap:12px;padding-bottom:16px}body[data-notebook=true] #locateBtn{flex-basis:0!important}body[data-notebook=true] #nbHealthLayer{flex-basis:0!important}}
.nb-map-source{display:block;color:#59675e;font-size:11px;margin-top:4px;font-weight:400}body[data-notebook=true] #installPrompt section{background:#f6f7f4!important;border:1px solid #dce3dc!important;border-radius:20px!important;color:#202b25!important}body[data-notebook=true] #installPrompt .eyebrow{color:#59675e!important}
#nbPickCanvas{touch-action:none}#nbPickControls small{flex-basis:100%;color:#59675e;font-size:13px}#nbPickControls button{min-width:48px}
body[data-notebook=true] #formStep .form-heading{background:transparent!important;box-shadow:none!important;border:0!important;border-bottom:1px solid #dce3dc!important;margin:0 0 24px!important;padding:0 0 20px!important;color:#202b25!important;display:flex!important;gap:16px!important;flex-wrap:wrap!important}body[data-notebook=true] #formStep .form-heading h2{color:#202b25!important;font-size:24px!important;line-height:1.2!important;margin:4px 0!important}body[data-notebook=true] #formStep .severity-card{background:#f6f8f3!important;border:1px solid #dce3dc!important;border-radius:14px!important;box-shadow:none!important}body[data-notebook=true] #formStep .severity-card .label{color:#59675e!important}body[data-notebook=true] #severityValue{background:#e8efe9!important;color:#245c43!important;box-shadow:none!important}body[data-notebook=true] #formStep textarea{font-weight:400!important;font-size:16px!important;line-height:1.5!important}body[data-notebook=true] #formStep .problem-field{font-size:16px!important;font-weight:600!important}body[data-notebook=true] .severity-slider::-webkit-slider-thumb{background:#245c43!important;box-shadow:0 2px 6px #203d2c30!important}body[data-notebook=true] .severity-slider::-moz-range-thumb{background:#245c43!important}
@media(max-width:600px){body[data-notebook=true] #formStep .form-heading>div{flex-basis:100%}body[data-notebook=true] #formStep .form-heading h2{font-size:23px!important}}
#nbPickCanvas,#taskNavigatorCanvas{touch-action:none;overscroll-behavior:contain}#mapContourRetry{margin:0 20px 16px;padding:10px 16px;border:1px solid #bdc9bf;background:white;color:#245c43}#mapContourRetry[hidden]{display:none}.nb-contours-busy:before{content:'';display:inline-block;width:12px;height:12px;border:2px solid #d7e3d8;border-top-color:#245c43;border-radius:50%;vertical-align:middle;margin-right:8px;animation:nb-spin .85s linear infinite}

/* V106: identidad del cuaderno y acceso en verde. */
body{--apple-orange:#245c43;--app-orange:#245c43;--paper:#f6f7f4;--muted:#59675e;--line:#dce3dc}
#login{overflow-y:auto!important}
#loginForm .login-heading{margin:0 0 24px!important;padding:0!important;background:none!important;text-align:left}
#loginForm .login-heading:after{display:none}
.nb-brand-icon{display:block;width:64px;height:64px;border-radius:16px;margin-bottom:22px}
#entryLoading{background:#f6f7f4;color:#202b25}
#entryLoading small{color:#59675e}
#entryLoading .entry-spinner{border-color:#d7e3d8;border-top-color:#245c43}
#notebookNav .nb-brand{align-items:center;gap:10px;padding:0 4px 24px;font-size:20px;line-height:1.25;letter-spacing:-.025em}
#notebookNav .nb-brand img{flex:0 0 40px;border-radius:10px}
#notebookNav .nb-brand-name{display:block;min-width:0}
#notebookNav .nb-brand-name>span{display:block;white-space:nowrap}
.map-contours-loading{background:rgba(246,247,244,.94);color:#202b25}
.map-contours-loading small{color:#59675e}
.map-contours-loading img{box-shadow:0 8px 22px #245c431a}
.install-prompt .eyebrow{color:#245c43}
.install-prompt .primary{background:#245c43;color:#fff;box-shadow:none}
@media(min-width:1100px){#notebookNav .nb-brand{display:flex}}
@media(max-width:600px){#loginForm{padding:28px!important}#loginForm h1{font-size:30px!important}}

#photoPreview>span{display:flex;flex-direction:column;gap:6px}#photoPreview>span>button{min-height:44px;background:white;color:#812f2f;border:1px solid #d8bdbd;border-radius:8px;padding:8px}

/* V108: identidad Bancal aprobada. */
:root{--nb-green:#284b3d}
body{--green:#284b3d;--apple-orange:#284b3d;--app-orange:#284b3d}
#notebookNav .nb-brand{color:#284b3d;font-size:25px;letter-spacing:-.05em}
#notebookNav .nb-brand-name{white-space:nowrap}
#loginForm h1{color:#284b3d!important;font-weight:600!important;letter-spacing:-.055em;font-size:42px!important}
#loginForm button.primary{background:#284b3d!important}

/* V109: ubicación visible, acciones accesibles y navegación por cometido. */
#notebookDialog:has(#nbCreateForm){display:flex;flex-direction:column;height:min(900px,94dvh);overflow:hidden}
#notebookDialog:not([open]){display:none!important}
#notebookDialog:has(#nbCreateForm)>h2{margin:8px 0 14px}
#notebookDialog:has(#nbCreateForm)>.nb-close{align-self:flex-start;flex-shrink:0;margin:0}
#nbCreateForm{display:flex;flex-direction:column;min-height:0;flex:1;overflow:hidden}
.nb-form-body{overflow-y:auto;flex:1;min-height:0;padding:0 4px 16px;overscroll-behavior:contain}
.nb-form-footer{flex-shrink:0;background:#f6f7f4;border-top:1px solid #dce3dc;padding:10px 0 max(8px,env(safe-area-inset-bottom))}
.nb-form-footer .primary{margin:0;width:100%}.nb-form-footer p:empty{display:none}
.nb-location-section{border-block:1px solid #dce3dc;margin-top:20px;padding-bottom:16px}.nb-location-section h3{margin:18px 0 0}.nb-location-section small{font-weight:400;color:#59675e}
#nbPickCanvas{height:260px}#nbPickControls[hidden],#nbFieldLabel[hidden]{display:none!important}
.nb button.nb-delete,#nbDetailPanel .nb-delete{color:#973c32;border-color:#dfc8c3;margin:10px 0}
.nb-fields article{padding:20px}.nb-fields h2{font-size:24px}.nb-fields .primary{width:100%;margin-top:14px}
body[data-notebook=true] #mapChoice{position:fixed!important;z-index:130;left:232px!important;right:16px!important;bottom:16px!important;top:auto!important;max-height:38dvh;overflow:auto;padding:12px!important;border:1px solid #b7caba!important;border-radius:14px!important;box-shadow:0 4px 24px #203d2c20!important}
body[data-notebook=true] #mapChoice small{display:none}body[data-notebook=true] .save-bar{position:sticky!important;bottom:0!important;background:#fff!important;z-index:10;padding:12px 0!important}
body[data-notebook=true]:has(#mapChoice:not([hidden])) #app{padding-bottom:160px!important}
#nbStatusForm .nb-form-footer,#nbEventForm>button.primary,#nbUserForm>button.primary{position:sticky;bottom:0;z-index:2}
@media(max-width:1099px){body[data-notebook=true] #mapChoice{left:10px!important;right:10px!important;bottom:calc(88px + env(safe-area-inset-bottom))!important}#notebookNav button{font-size:11px!important;min-width:0}#notebookNav .nb-account{display:none!important}}
@media(max-width:600px){#notebookDialog:has(#nbCreateForm){height:100dvh;max-height:100dvh}.nb-fields{gap:12px}.nb-fields article{padding:16px}.nb-fields h2{font-size:22px}.nb-fields .primary{min-height:48px!important}.nb-page:has(.nb-fields){padding-bottom:24px}.nb-page:has(.nb-fields) .nb-heading{margin-bottom:18px}.nb-location-section .nb-grid{grid-template-columns:1fr}}

.nb-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.nb-grid>*{min-width:0}.nb input,.nb select,.nb textarea{min-width:0;max-width:100%}.nb-form-body{overflow-x:hidden}.nb-actions[hidden],#nbLocationModeLabel[hidden]{display:none!important}
@media(max-width:600px){.nb-location-section .nb-grid{grid-template-columns:1fr}}

/* V111: resumen y autoría compartida */
.nb-dashboard{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.nb-box{background:#fff;border:1px solid #dde4dc;border-radius:18px;padding:18px;margin-bottom:18px;min-width:0}.nb-box h2{font-size:18px;margin:0 0 12px}.nb-dashboard .nb-box{margin:0}.nb-row{display:flex;align-items:center;gap:12px}.nb-row-copy{flex:1;min-width:0}.nb-row small{white-space:normal}.nb-symbol{display:block;flex:0 0 11px;width:11px;height:11px;background:var(--author-color);border-radius:50%}.nb-symbol.square{border-radius:2px}.nb-symbol.diamond{border-radius:1px;transform:rotate(45deg)}.nb-symbol.event{border-radius:2px;background:transparent;border:3px solid var(--author-color)}.nb-date-options{margin:8px 0 20px}.nb-date-options>label{margin-top:12px}.nb-create-actions{margin-bottom:22px}.nb-heading-actions{flex-wrap:wrap}
@media(max-width:760px){.nb-dashboard{grid-template-columns:1fr}#notebookNav{overflow-x:auto;justify-content:flex-start}#notebookNav>button:not(.nb-account){flex:0 0 75px;min-width:75px}.nb-box{padding:12px}.nb-row-tags{max-width:100px}.nb-row-tags em{white-space:normal}.nb-date-options .nb-grid{grid-template-columns:1fr}}
@media(min-width:1100px){.nb-dashboard{grid-template-columns:repeat(6,minmax(0,1fr))}.nb-dashboard .nb-box{grid-column:span 2;max-height:270px;overflow:auto}.nb-dashboard .nb-box:nth-child(n+4){grid-column:span 3}}
@media(min-width:1100px){body[data-notebook=true] #app #mapChoice{position:fixed!important;left:232px!important;right:16px!important;bottom:16px!important;z-index:130}}

/* V114: inicio destacado y navegación completa, sin desplazamiento horizontal. */
#notebookNav{overflow:visible!important}#notebookNav .nb-home-route{font-size:17px!important;font-weight:750;border-bottom:1px solid #dce3dc;margin-bottom:8px;min-height:48px}.nb-health-treatments{margin-top:20px}
.nb-heading{position:relative;padding-right:100px}.nb-heading-actions #nbAccount{position:absolute;right:52px;top:0}.nb-heading-actions #nbRefresh{position:absolute;right:0;top:0;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:10px!important;border-radius:50%!important;display:grid;place-items:center}.nb-refresh svg{width:22px;height:22px;display:block}
@media(max-width:1099px){#notebookNav{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:0!important;padding:4px 6px calc(4px + env(safe-area-inset-bottom))!important;height:auto!important}#notebookNav:not(:has(.nb-home-route)){grid-template-columns:repeat(4,minmax(0,1fr))}#notebookNav .nb-home-route{grid-column:1/-1;display:flex!important;flex-direction:row!important;align-items:center;justify-content:center;gap:8px;min-height:36px!important;margin:0 0 3px!important;padding:4px!important;font-size:16px!important}#notebookNav>button.nb-section-route{width:100%!important;min-width:0!important;flex:none!important;padding:5px 1px!important;min-height:53px!important;font-size:10px!important;overflow:visible!important}#notebookNav>button span{white-space:nowrap}body:has(#notebookNav .nb-home-route) .nb-page{padding-bottom:125px!important}.nb-heading{padding-right:0;padding-top:50px}.nb-heading-actions #nbAccount,.nb-heading-actions #nbRefresh{top:0}}
/* V115: one compact action row in the layout, never over map commands. */
body[data-notebook=true] #app #mapChoice{position:static!important;inset:auto!important;display:flex!important;flex:0 0 auto!important;flex-wrap:nowrap!important;align-items:center!important;gap:5px!important;width:auto!important;max-height:none!important;overflow:visible!important;margin:0!important;padding:5px 6px!important;border-radius:0!important;box-shadow:none!important}
body[data-notebook=true] #app #mapChoice[hidden]{display:none!important}
body[data-notebook=true] #app #mapChoice>div:first-child{display:none!important}
body[data-notebook=true] #app #mapChoice .choice-actions{display:contents!important}
body[data-notebook=true] #app #mapChoice button{height:44px!important;min-height:44px!important;min-width:0!important;margin:0!important;padding:5px 7px!important;white-space:nowrap!important;font-size:12px!important;line-height:1.15!important;box-shadow:none!important}
body[data-notebook=true] #app #mapChoice #continueBtn{order:0;flex:1 1 85px!important;width:auto!important}
body[data-notebook=true] #app #mapChoice #nbFromHealth{order:1;flex:1.3 1 105px!important;width:auto!important}
body[data-notebook=true] #app #mapChoice #deleteReviewBtn{order:2;flex:0 0 44px!important;width:44px!important;font-size:18px!important}
body[data-notebook=true] #app #mapChoice #clearSelectionBtn{order:3;flex:0 0 44px!important;width:44px!important;background:#fff!important;color:#ba1e22!important;border:1px solid #e7b8b8!important;font-size:28px!important;font-weight:700!important}
body[data-notebook=true]:has(#mapChoice:not([hidden])) #app{padding-bottom:0!important}

/* V117: selection popup belongs to the map, not the page or navigation bar. */
body[data-notebook=true] #app #map #mapChoice{position:absolute!important;top:auto!important;bottom:10px!important;left:8px!important;right:68px!important;width:auto!important;max-width:430px!important;z-index:16!important;border:1px solid #b7caba!important;border-radius:10px!important;background:#fff!important;box-shadow:0 3px 12px #163c3026!important;animation:selection-pop .12s ease-out}
body[data-notebook=true] #app #map #mapChoice #continueBtn{flex:1 1 auto!important;min-width:0!important;font-size:13px!important;font-weight:800!important;background:#245c43!important;color:white!important}
body[data-notebook=true] #app #map #mapChoice #nbFromHealth{flex:0 0 auto!important;width:auto!important;padding:5px 6px!important;font-size:11px!important;font-weight:500!important;border:0!important;background:#f1f5f2!important;color:#385347!important}
@keyframes selection-pop{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){body[data-notebook=true] #app #map #mapChoice{animation:none}}
/* V116: acceso principal en cuarto de círculo, anclado a la barra móvil. */
@media(max-width:1099px){
 #notebookNav .nb-home-route{position:absolute!important;grid-area:auto!important;left:0!important;bottom:100%!important;top:auto!important;right:auto!important;width:88px!important;height:88px!important;min-width:88px!important;min-height:88px!important;max-width:88px!important;margin:0!important;padding:0 0 11px 10px!important;border:0!important;border-radius:0 100% 0 0!important;background:#284b3d!important;color:#fff!important;display:flex!important;flex-direction:column!important;justify-content:flex-end!important;align-items:flex-start!important;gap:3px!important;overflow:hidden!important;transform:none!important;box-shadow:2px -2px 8px #18382c18;z-index:2}
 #notebookNav .nb-home-route svg{width:28px!important;height:28px!important;margin-left:9px;flex:none}
 #notebookNav .nb-home-route span{font-size:12px!important;font-weight:750;line-height:17px!important}
 #notebookNav .nb-home-route:focus-visible{outline:3px solid #f4d37d!important;outline-offset:-5px}
 #notebookNav .nb-home-route:active{background:#17382b!important}
 body:has(#notebookNav .nb-home-route) .nb-page{padding-bottom:164px!important}
}

/* V118: inicio más discreto y reparto homogéneo según el perfil. */
@media(max-width:1099px){
 #notebookNav,#notebookNav:not(:has(.nb-home-route)){grid-template-columns:repeat(var(--nb-sections,5),minmax(0,1fr))!important}
 #notebookNav .nb-home-route{width:64px!important;height:64px!important;min-width:64px!important;min-height:64px!important;max-width:64px!important;padding:0 0 7px 5px!important;gap:1px!important}
 #notebookNav .nb-home-route svg{width:22px!important;height:22px!important;margin-left:8px}
 #notebookNav .nb-home-route span{font-size:10px!important;line-height:14px!important}
 body:has(#notebookNav .nb-home-route) .nb-page{padding-bottom:140px!important}
}
