:root{
  --anr-green:#2F6F6B;
  --anr-green-2:#607058;
  --anr-soft:#EEF8F6;
  --anr-cream:#F8F5EF;
  --anr-text:#1F2937;
  --anr-muted:#6B7280;
  --anr-border:#D7E8E4;
  --anr-amber:#D9A441;
  --anr-red:#B94A48;
  --anr-white:#fff;
  --anr-radius:24px;
  --anr-shadow:0 10px 30px rgba(31,41,55,.08);
}

.anr-app,.anr-public,.anr-app *,.anr-public *{box-sizing:border-box}
.anr-app,.anr-public{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--anr-text)}
.anr-app{min-height:100vh;background:linear-gradient(135deg,#f8f6f1 0%,#eef7e8 48%,#f9fbf4 100%);padding:14px 14px 92px;max-width:1280px;margin:0 auto}
.anr-shell{min-height:72vh;background:linear-gradient(135deg,#f8f6f1 0%,#eef7e8 60%,#fff 100%);border-radius:32px;padding:28px;margin:12px}
.anr-topbar{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;align-items:center;gap:12px;background:rgba(255,255,255,.86);backdrop-filter:blur(10px);border:1px solid var(--anr-border);border-radius:24px;padding:10px 14px;box-shadow:0 4px 18px rgba(31,41,55,.06);margin-bottom:14px}
.anr-brand-wrap{display:flex;align-items:center;gap:12px;min-width:0}
.anr-logo-small{width:58px;height:auto;display:block}
.anr-brand-wrap strong{display:block;font-size:16px;line-height:1.1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.anr-brand-wrap span{display:block;font-size:12px;color:var(--anr-muted);margin-top:2px}
.anr-user-link{color:var(--anr-green);text-decoration:none;font-weight:800;font-size:13px;background:var(--anr-soft);padding:10px 12px;border-radius:999px}
.anr-main{display:block}
.anr-screen{display:none;animation:mimFade .18s ease-out}
.anr-screen.active{display:block}
@keyframes mimFade{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
.anr-welcome-card,.anr-card,.anr-zone-card,.anr-crop-card,.anr-diary-item,.anr-advice-card,.anr-empty{background:rgba(255,255,255,.9);border:1px solid var(--anr-border);border-radius:var(--anr-radius);box-shadow:var(--anr-shadow)}
.anr-welcome-card{padding:22px;margin-bottom:14px;background:linear-gradient(135deg,#ffffff 0%,#eef7e8 100%)}
.anr-eyebrow{margin:0 0 6px;text-transform:uppercase;letter-spacing:.08em;color:var(--anr-green-2);font-size:12px;font-weight:900}
.anr-welcome-card h1,.anr-section-head h1{font-size:clamp(26px,5vw,42px);margin:0 0 8px;line-height:1.02;color:var(--anr-text)}
.anr-welcome-card p,.anr-section-head p{color:var(--anr-muted);margin:0;font-size:15px}
.anr-action-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:14px 0}
.anr-action-tile{min-height:104px;border:0;border-radius:26px;background:#fff;box-shadow:var(--anr-shadow);border:1px solid var(--anr-border);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--anr-text);font-weight:900;font-size:16px;cursor:pointer;-webkit-tap-highlight-color:transparent}
.anr-action-tile span{font-size:32px;line-height:1}.anr-action-tile:active{transform:scale(.98)}
.anr-two-col{display:grid;grid-template-columns:1fr;gap:14px}.anr-card{padding:16px}.anr-card h2{font-size:19px;margin:0}.anr-card-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:12px}.anr-mini-btn{border:1px solid var(--anr-border);background:var(--anr-soft);color:var(--anr-green);border-radius:999px;padding:10px 12px;font-weight:900;cursor:pointer}
.anr-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin:6px 0 14px;flex-wrap:wrap}.anr-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;border-radius:18px;border:1px solid var(--anr-border);padding:11px 16px;text-decoration:none;font-weight:900;cursor:pointer;font-size:15px}.anr-btn-primary{background:var(--anr-green);border-color:var(--anr-green);color:white}.anr-btn-secondary{background:white;color:var(--anr-text)}
.anr-zone-grid,.anr-advice-grid,.anr-calendar-grid{display:grid;grid-template-columns:1fr;gap:14px}.anr-zone-card{padding:16px;display:grid;grid-template-columns:58px 1fr;gap:12px;align-items:start}.anr-zone-icon,.anr-crop-icon,.anr-diary-icon,.anr-advice-icon{width:54px;height:54px;display:grid;place-items:center;border-radius:18px;background:var(--anr-soft);font-size:28px}.anr-zone-card h2{margin:0 0 8px;font-size:20px}.anr-chip{display:inline-flex;align-items:center;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:900;background:#e9f5e5;color:var(--anr-green);margin:2px}.anr-chip.soft{background:#f3f4f6;color:#4b5563}.anr-zone-crops{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:7px;margin-top:4px}.anr-zone-crops span,.anr-mini-crops span{background:#fff;border:1px solid var(--anr-border);border-radius:999px;padding:8px 10px;font-weight:800;font-size:13px}.anr-card-action{grid-column:1/-1;border:0;background:var(--anr-green);color:white;border-radius:16px;min-height:46px;font-weight:900;margin-top:4px;cursor:pointer}
.anr-crop-list{display:grid;grid-template-columns:1fr;gap:10px}.anr-crop-card{padding:12px;display:grid;grid-template-columns:54px 1fr;gap:10px;align-items:center}.anr-crop-card h3{margin:0;font-size:17px}.anr-crop-card p{margin:4px 0;color:var(--anr-muted);font-size:13px}.anr-status-select{grid-column:1/-1;width:100%;min-height:44px;border:1px solid var(--anr-border);border-radius:14px;padding:8px 10px;background:white;font-weight:800;color:var(--anr-text)}
.anr-diary-list{display:grid;gap:10px}.anr-diary-item{padding:12px;display:grid;grid-template-columns:54px 1fr;gap:10px}.anr-diary-body strong{display:block;font-size:16px}.anr-diary-body small{display:block;color:var(--anr-muted);font-size:12px;margin-top:2px}.anr-diary-body p{margin:7px 0 0;color:#374151}.anr-diary-rel{font-weight:800;color:var(--anr-green)!important}.anr-diary-photo{margin-top:10px;width:100%;max-height:240px;object-fit:cover;border-radius:18px;border:1px solid var(--anr-border)}
.anr-calendar-grid .anr-card{min-height:160px}.anr-mini-crops{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.anr-tip-card{background:linear-gradient(135deg,#fff,#fff7e8)}.anr-advice-card{padding:16px}.anr-advice-card h2{font-size:20px;margin:8px 0}.anr-advice-card p{margin:7px 0;color:#374151}.anr-advice-card small{display:block;margin-top:10px;color:var(--anr-green);font-weight:800}.anr-empty{padding:20px;text-align:center}.anr-empty.compact{padding:16px}.anr-empty strong{display:block;font-size:17px}.anr-empty p{color:var(--anr-muted);margin:8px 0 14px}.anr-bottom-nav{position:fixed;z-index:50;left:10px;right:10px;bottom:10px;display:grid;grid-template-columns:repeat(6,1fr);gap:4px;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);border:1px solid var(--anr-border);border-radius:24px;padding:8px;box-shadow:0 8px 30px rgba(31,41,55,.16);max-width:980px;margin:0 auto}.anr-bottom-nav button{border:0;background:transparent;border-radius:16px;min-height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;color:var(--anr-muted);font-weight:900;cursor:pointer}.anr-bottom-nav button span{font-size:21px}.anr-bottom-nav button small{font-size:10px}.anr-bottom-nav button.active{background:var(--anr-green);color:#fff}.anr-modal-backdrop{position:fixed;inset:0;background:rgba(17,24,39,.45);z-index:90;backdrop-filter:blur(4px)}.anr-modal{position:fixed;z-index:100;left:10px;right:10px;bottom:10px;max-width:620px;margin:0 auto;background:#fff;border:1px solid var(--anr-border);border-radius:28px;box-shadow:0 20px 60px rgba(0,0,0,.25);padding:16px;max-height:88vh;overflow:auto}.anr-modal-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.anr-modal-head h2{margin:0;font-size:24px}.anr-modal-head button{border:0;border-radius:999px;width:42px;height:42px;background:#f3f4f6;font-size:28px;line-height:1;cursor:pointer}.anr-form{display:grid;gap:12px}.anr-form label{display:grid;gap:6px;font-weight:900;color:#374151}.anr-form input,.anr-form select,.anr-form textarea{width:100%;border:1px solid var(--anr-border);border-radius:16px;min-height:50px;padding:11px 12px;font:inherit;background:#fff;color:var(--anr-text)}.anr-form textarea{min-height:110px;resize:vertical}.anr-form details{border:1px solid var(--anr-border);border-radius:18px;padding:12px;background:#fbfdf9}.anr-form summary{cursor:pointer;font-weight:900;color:var(--anr-green)}.anr-form details label{margin-top:12px}.anr-form-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.anr-file-label{display:inline-flex!important;align-items:center;justify-content:center;min-height:48px;border-radius:18px;border:1px solid var(--anr-border);padding:11px 16px;background:white;font-weight:900;cursor:pointer}.anr-file-label input{display:none}.anr-voice-status{margin:0;color:var(--anr-green);font-weight:800}.anr-login-gate{display:grid;place-items:center;min-height:70vh}.anr-login-card,.anr-hero{text-align:center;background:rgba(255,255,255,.92);border:1px solid var(--anr-border);border-radius:32px;padding:28px;box-shadow:var(--anr-shadow);max-width:720px;margin:auto}.anr-logo{width:min(320px,86vw);height:auto}.anr-hero h1,.anr-login-card h1{font-size:clamp(30px,6vw,58px);line-height:1;margin:18px 0 10px}.anr-hero p,.anr-login-card p{font-size:18px;color:var(--anr-muted);margin:0 auto 20px;max-width:620px}.anr-hero-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
@media (min-width:720px){.anr-app{padding:22px 22px 96px}.anr-action-grid{grid-template-columns:repeat(4,1fr)}.anr-two-col{grid-template-columns:1fr 1fr}.anr-zone-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.anr-crop-list.large{grid-template-columns:repeat(2,minmax(0,1fr))}.anr-calendar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.anr-advice-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.anr-status-select{grid-column:auto}.anr-crop-card{grid-template-columns:54px 1fr 180px}.anr-bottom-nav{left:50%;right:auto;transform:translateX(-50%);width:min(980px,calc(100vw - 24px))}}
@media (min-width:1080px){.anr-app{padding-left:28px;padding-right:28px}.anr-zone-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.anr-advice-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.anr-calendar-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.anr-action-grid{grid-template-columns:repeat(8,1fr)}.anr-action-tile{min-height:118px}.anr-bottom-nav{position:sticky;bottom:16px;margin-top:20px}.anr-main{padding-bottom:0}}
@media (max-width:420px){.anr-bottom-nav{grid-template-columns:repeat(3,1fr)}.anr-app{padding-bottom:158px}.anr-action-tile{min-height:94px}.anr-brand-wrap span{display:none}}

/* ------------------------------------------------------------
   v0.1.1 · Modo app / pantalla completa
   ------------------------------------------------------------ */
html body.anr-page-app,
body.anr-page-app{
  margin:0!important;
  padding:0!important;
  width:100%!important;
  min-height:100%!important;
  overflow-x:hidden!important;
  background:#F8F6F1!important;
}
body.anr-page-app.anr-blank-body{
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
body.anr-page-app.anr-modal-open{
  overflow:hidden!important;
}
body.anr-page-app #wpadminbar{
  position:fixed;
}
body.anr-page-app .anr-blank-root,
body.anr-page-app #anr-app,
body.anr-page-app .anr-app,
body.anr-page-app .anr-public-wrap{
  width:100%!important;
  max-width:none!important;
  min-height:100vh;
  min-height:calc(var(--anr-vh, 1vh) * 100);
  margin:0!important;
}
@supports (height:100dvh){
  body.anr-page-app .anr-blank-root,
  body.anr-page-app #anr-app,
  body.anr-page-app .anr-app,
  body.anr-page-app .anr-public-wrap{min-height:100dvh;}
}
body.anr-page-app .anr-app{
  border-radius:0!important;
  isolation:isolate;
}
body.anr-page-app .anr-shell{
  width:min(1280px,100%);
  max-width:1280px;
  margin-inline:auto!important;
}
body.anr-page-app .anr-topbar{
  top:calc(env(safe-area-inset-top,0px) + 8px);
}
body.anr-page-app .anr-bottom-nav{
  bottom:calc(env(safe-area-inset-bottom,0px) + 10px);
}
body.anr-page-app .anr-modal{
  bottom:calc(env(safe-area-inset-bottom,0px) + 10px);
}
body.anr-page-app .anr-action-tile,
body.anr-page-app .anr-btn,
body.anr-page-app .anr-mini-btn,
body.anr-page-app .anr-card-action,
body.anr-page-app .anr-bottom-nav button{
  touch-action:manipulation;
}
body.anr-page-app .anr-action-tile{
  min-height:112px;
}
body.anr-page-app .anr-btn,
body.anr-page-app .anr-mini-btn,
body.anr-page-app .anr-card-action,
body.anr-page-app .anr-form input,
body.anr-page-app .anr-form select,
body.anr-page-app .anr-form textarea{
  font-size:16px;
}
@media (display-mode: standalone){
  body.anr-page-app .anr-topbar{top:calc(env(safe-area-inset-top,0px) + 10px)}
}
@media (max-width:719px){
  body.anr-page-app .anr-app{
    padding-left:max(12px,env(safe-area-inset-left,0px));
    padding-right:max(12px,env(safe-area-inset-right,0px));
  }
  body.anr-page-app .anr-topbar{
    border-radius:22px;
  }
  body.anr-page-app .anr-logo-small{
    width:54px;
  }
  body.anr-page-app .anr-brand-wrap strong{
    font-size:15px;
  }
  body.anr-page-app .anr-user-link{
    min-width:54px;
    text-align:center;
  }
}
@media (min-width:720px) and (max-width:1079px){
  body.anr-page-app .anr-action-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  body.anr-page-app .anr-zone-grid,
  body.anr-page-app .anr-advice-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media (min-width:1080px){
  body.anr-page-app .anr-app{
    padding-top:24px;
  }
  body.anr-page-app .anr-bottom-nav{
    border-radius:28px;
  }
}


/* ------------------------------------------------------------
   v0.2.0 · PWA instalable
   ------------------------------------------------------------ */
.anr-pwa-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  background:linear-gradient(135deg,#ffffff 0%,#eef7e8 100%);
  border:1px solid var(--anr-border);
  border-radius:24px;
  padding:14px;
  margin:0 0 14px;
  box-shadow:var(--anr-shadow);
}
.anr-pwa-card strong{display:block;font-size:17px;margin-bottom:3px;color:var(--anr-text)}
.anr-pwa-card p{margin:0;color:var(--anr-muted);font-size:14px;line-height:1.35}
.anr-pwa-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.anr-pwa-actions .anr-btn{min-height:44px;padding:10px 14px;font-size:14px}
.anr-offline-pill{
  position:sticky;
  top:76px;
  z-index:30;
  width:max-content;
  max-width:100%;
  margin:0 auto 12px;
  background:#fff7e8;
  color:#7a5200;
  border:1px solid #f3d9a8;
  border-radius:999px;
  padding:9px 13px;
  font-weight:900;
  box-shadow:0 6px 18px rgba(31,41,55,.08);
}
body.anr-is-offline .anr-topbar{border-color:#f3d9a8}
@media (max-width:719px){
  .anr-pwa-card{align-items:stretch;flex-direction:column}
  .anr-pwa-actions{justify-content:stretch}
  .anr-pwa-actions .anr-btn{flex:1 1 130px}
  .anr-offline-pill{top:86px;font-size:13px}
}


/* ------------------------------------------------------------
   v0.2.1 · Ajustes iPhone / Safari
   ------------------------------------------------------------ */
body.anr-page-app,
body.anr-page-app .anr-app,
body.anr-page-app .anr-modal{
  -webkit-overflow-scrolling: touch;
}
body.anr-page-app .anr-bottom-nav,
body.anr-page-app .anr-topbar{
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.anr-ios-help{
  display:none;
  margin-top:8px;
  font-size:13px;
  color:#4b5563;
  line-height:1.35;
}
body.anr-ios .anr-ios-help{display:block;}
body.anr-ios .anr-pwa-card{border-color:#cfe5c7;}

/* ------------------------------------------------------------
   v0.2.3 · Entrada propia, registro, demo y páginas legales
   ------------------------------------------------------------ */
body.anr-page-app .anr-auth-screen,
.anr-auth-screen{
  min-height:100vh;
  min-height:calc(var(--anr-vh, 1vh) * 100);
  display:grid;
  place-items:center;
  padding:18px;
}
.anr-auth-card{
  width:min(760px,100%);
  margin:auto;
  background:rgba(255,255,255,.94);
  border:1px solid var(--anr-border);
  border-radius:34px;
  box-shadow:0 18px 60px rgba(31,41,55,.12);
  padding:clamp(20px,4vw,34px);
  text-align:center;
}
.anr-auth-card .anr-logo{width:min(300px,80vw);}
.anr-auth-card h1{font-size:clamp(32px,6vw,56px);line-height:1;margin:12px 0 10px;color:var(--anr-text)}
.anr-auth-intro{font-size:18px;color:var(--anr-muted);max-width:580px;margin:0 auto 18px;line-height:1.45}
.anr-auth-actions-main{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:16px 0 18px}.anr-auth-actions-main .anr-btn{min-width:160px}
.anr-auth-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;background:#eef7e8;border:1px solid var(--anr-border);border-radius:22px;padding:6px;margin:10px auto 16px;max-width:520px}.anr-auth-tabs button{border:0;background:transparent;border-radius:16px;min-height:48px;font-weight:900;color:var(--anr-green);cursor:pointer}.anr-auth-tabs button.active{background:var(--anr-green);color:#fff;box-shadow:0 6px 16px rgba(47,111,62,.2)}
.anr-auth-panel{display:none}.anr-auth-panel.active{display:block;animation:mimFade .18s ease-out}.anr-auth-form{display:grid;gap:12px;text-align:left;max-width:520px;margin:0 auto}.anr-auth-form label{display:grid;gap:6px;font-weight:900;color:#374151}.anr-auth-form input[type="text"],.anr-auth-form input[type="email"],.anr-auth-form input[type="password"]{width:100%;border:1px solid var(--anr-border);border-radius:18px;min-height:54px;padding:12px 14px;font:inherit;font-size:16px;background:#fff;color:var(--anr-text)}.anr-auth-form .anr-btn{width:100%;margin-top:4px}.anr-optional{color:var(--anr-muted);font-weight:700;font-size:12px}.anr-check-row{grid-template-columns:24px 1fr!important;align-items:start;gap:10px!important;font-weight:700!important;line-height:1.35}.anr-check-row input{width:20px;height:20px;margin-top:2px;accent-color:var(--anr-green)}.anr-check-row a{color:var(--anr-green);font-weight:900}.anr-auth-small{text-align:center;margin:4px 0 0}.anr-auth-small a{color:var(--anr-green);font-weight:900;text-decoration:none}.anr-auth-legal-links{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin:18px 0 0}.anr-auth-legal-links a{font-size:13px;color:var(--anr-green);font-weight:900;text-decoration:none;background:var(--anr-soft);border:1px solid var(--anr-border);padding:8px 10px;border-radius:999px}.anr-legal-note{margin:18px auto 0;max-width:620px;text-align:left;background:#fff7e8;border:1px solid #f3d9a8;border-radius:20px;padding:12px 14px;color:#674700;font-size:13px;line-height:1.35}.anr-demo-app .anr-demo-disabled{opacity:.9}.anr-demo-cta{position:sticky;bottom:94px;z-index:45;display:flex;justify-content:center;margin:16px 0}.anr-demo-cta .anr-btn{box-shadow:0 8px 28px rgba(47,111,62,.25)}.anr-legal-page{padding-bottom:28px!important}.anr-legal-card{width:min(900px,100%);margin:0 auto;background:rgba(255,255,255,.94);border:1px solid var(--anr-border);border-radius:28px;box-shadow:var(--anr-shadow);padding:clamp(18px,4vw,34px)}.anr-legal-card h1{font-size:clamp(30px,5vw,48px);line-height:1;margin:0 0 14px}.anr-legal-card h2{font-size:22px;margin:22px 0 8px;color:var(--anr-text)}.anr-legal-card p{font-size:16px;line-height:1.55;color:#374151}.anr-legal-warning{background:#fff7e8;border:1px solid #f3d9a8;border-radius:20px;padding:14px;color:#674700!important}.anr-legal-links-bottom{justify-content:flex-start}.anr-toast{max-width:calc(100vw - 28px);text-align:center}
@media (max-width:520px){.anr-auth-card{border-radius:28px;padding:18px}.anr-auth-actions-main{display:grid}.anr-auth-actions-main .anr-btn{width:100%;min-width:0}.anr-auth-tabs{grid-template-columns:1fr}.anr-demo-cta{bottom:160px}.anr-auth-card h1{font-size:34px}.anr-auth-intro{font-size:16px}.anr-legal-card{border-radius:22px}}


/* ------------------------------------------------------------
   v0.2.4 · Barra inferior responsive real
   ------------------------------------------------------------ */
:root{
  --anr-nav-h:82px;
}
body.anr-page-app .anr-app,
.anr-app{
  padding-bottom:calc(var(--anr-nav-h, 82px) + env(safe-area-inset-bottom,0px) + 28px)!important;
}
.anr-bottom-nav,
body.anr-page-app .anr-bottom-nav{
  position:fixed!important;
  left:50%!important;
  right:auto!important;
  bottom:calc(env(safe-area-inset-bottom,0px) + 10px)!important;
  transform:translateX(-50%) translateZ(0)!important;
  width:min(1120px,calc(100vw - 28px))!important;
  max-width:none!important;
  margin:0!important;
  display:grid!important;
  grid-template-columns:repeat(6,minmax(62px,1fr))!important;
  gap:6px!important;
  padding:8px!important;
  border-radius:26px!important;
  background:rgba(255,255,255,.96)!important;
  box-shadow:0 12px 34px rgba(31,41,55,.16)!important;
  z-index:120!important;
}
.anr-bottom-nav button{
  min-width:0!important;
  min-height:58px!important;
  padding:6px 4px!important;
  overflow:hidden!important;
}
.anr-bottom-nav button span{
  font-size:22px!important;
  line-height:1!important;
}
.anr-bottom-nav button small{
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:10px!important;
  line-height:1.1!important;
}
.anr-toast{
  bottom:calc(var(--anr-nav-h, 82px) + env(safe-area-inset-bottom,0px) + 20px)!important;
}
.anr-demo-cta{
  bottom:calc(var(--anr-nav-h, 82px) + env(safe-area-inset-bottom,0px) + 16px)!important;
}
@media (min-width:1280px){
  .anr-bottom-nav,
  body.anr-page-app .anr-bottom-nav{
    width:min(1180px,calc(100vw - 56px))!important;
    padding:9px!important;
  }
  .anr-bottom-nav button{
    min-height:60px!important;
  }
  .anr-bottom-nav button span{
    font-size:23px!important;
  }
  .anr-bottom-nav button small{
    font-size:11px!important;
  }
}
@media (max-width:719px){
  .anr-bottom-nav,
  body.anr-page-app .anr-bottom-nav{
    width:calc(100vw - 16px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px))!important;
    bottom:calc(env(safe-area-inset-bottom,0px) + 8px)!important;
    grid-template-columns:repeat(6,minmax(0,1fr))!important;
    gap:3px!important;
    padding:6px!important;
    border-radius:22px!important;
  }
  .anr-bottom-nav button{
    min-height:56px!important;
    border-radius:16px!important;
    padding:5px 2px!important;
  }
  .anr-bottom-nav button span{
    font-size:20px!important;
  }
  .anr-bottom-nav button small{
    font-size:9px!important;
    letter-spacing:-.01em;
  }
}
@media (max-width:390px){
  .anr-bottom-nav,
  body.anr-page-app .anr-bottom-nav{
    width:calc(100vw - 12px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px))!important;
    gap:2px!important;
    padding:5px!important;
  }
  .anr-bottom-nav button{
    min-height:52px!important;
  }
  .anr-bottom-nav button span{
    font-size:19px!important;
  }
  .anr-bottom-nav button small{
    font-size:8px!important;
  }
}
@media (max-width:340px){
  .anr-bottom-nav button small{
    display:none!important;
  }
  .anr-bottom-nav button{
    min-height:48px!important;
  }
  .anr-bottom-nav button span{
    font-size:21px!important;
  }
}
@media (orientation:landscape) and (max-height:520px){
  body.anr-page-app .anr-app,
  .anr-app{
    padding-bottom:calc(var(--anr-nav-h, 66px) + env(safe-area-inset-bottom,0px) + 16px)!important;
  }
  .anr-bottom-nav,
  body.anr-page-app .anr-bottom-nav{
    width:min(760px,calc(100vw - 24px))!important;
    padding:5px!important;
    border-radius:20px!important;
  }
  .anr-bottom-nav button{
    min-height:46px!important;
  }
  .anr-bottom-nav button span{
    font-size:18px!important;
  }
  .anr-bottom-nav button small{
    font-size:8px!important;
  }
}


/* ------------------------------------------------------------
   v0.2.5 · Respiración interior en contenedores
   ------------------------------------------------------------ */
:root{
  --anr-edge-gap: clamp(12px, 1.8vw, 18px);
  --anr-edge-gap-sm: clamp(10px, 1.2vw, 14px);
}
.anr-topbar,
.anr-shell,
.anr-welcome-card,
.anr-card,
.anr-zone-card,
.anr-crop-card,
.anr-diary-item,
.anr-advice-card,
.anr-empty,
.anr-modal,
.anr-auth-card,
.anr-legal-card,
.anr-pwa-card{
  padding: var(--anr-edge-gap) !important;
}
.anr-topbar{
  padding-inline: calc(var(--anr-edge-gap) + 2px) !important;
}
.anr-brand-wrap,
.anr-card-head,
.anr-section-head,
.anr-modal-head,
.anr-auth-actions-main,
.anr-auth-tabs,
.anr-form,
.anr-form-row,
.anr-zone-crops,
.anr-mini-crops,
.anr-diary-list,
.anr-crop-list,
.anr-zone-grid,
.anr-advice-grid,
.anr-calendar-grid,
.anr-action-grid{
  gap: max(8px, var(--anr-edge-gap-sm)) !important;
}
.anr-zone-card,
.anr-crop-card,
.anr-diary-item{
  column-gap: var(--anr-edge-gap-sm) !important;
  row-gap: var(--anr-edge-gap-sm) !important;
}
.anr-zone-icon,
.anr-crop-icon,
.anr-diary-icon,
.anr-advice-icon{
  margin: 2px;
}
.anr-zone-card h2,
.anr-crop-card h3,
.anr-diary-body strong,
.anr-advice-card h2,
.anr-card h2{
  margin-top: 2px !important;
}
.anr-zone-crops,
.anr-mini-crops{
  margin-top: 8px !important;
}
.anr-zone-crops span,
.anr-mini-crops span,
.anr-chip{
  padding: 9px 12px !important;
}
.anr-chip.soft{
  padding-inline: 11px !important;
}
.anr-btn,
.anr-mini-btn,
.anr-card-action,
.anr-file-label,
.anr-auth-legal-links a,
.anr-user-link,
.anr-bottom-nav button,
.anr-action-tile,
.anr-form input,
.anr-form select,
.anr-form textarea,
.anr-status-select,
.anr-auth-form input[type="text"],
.anr-auth-form input[type="email"],
.anr-auth-form input[type="password"]{
  padding-left: 14px !important;
  padding-right: 14px !important;
}
.anr-bottom-nav{
  padding: max(8px, var(--anr-edge-gap-sm)) !important;
}
.anr-bottom-nav button{
  border-radius: 18px !important;
}
.anr-card-action{
  margin-top: 8px !important;
}
.anr-empty p,
.anr-advice-card p,
.anr-welcome-card p,
.anr-section-head p,
.anr-hero p,
.anr-login-card p,
.anr-auth-intro,
.anr-legal-card p{
  padding-inline: 2px;
}
@media (max-width: 719px){
  .anr-app{
    padding-inline: 12px !important;
  }
  .anr-shell,
  .anr-topbar,
  .anr-welcome-card,
  .anr-card,
  .anr-zone-card,
  .anr-crop-card,
  .anr-diary-item,
  .anr-advice-card,
  .anr-empty,
  .anr-modal,
  .anr-auth-card,
  .anr-legal-card,
  .anr-pwa-card{
    padding: 12px !important;
  }
  .anr-zone-icon,
  .anr-crop-icon,
  .anr-diary-icon,
  .anr-advice-icon{
    width: 50px !important;
    height: 50px !important;
  }
}


/* ------------------------------------------------------------
   v0.2.6 · Rediseño visual con aire real y contenedores más claros
   ------------------------------------------------------------ */
:root{
  --anr-space-1: 8px;
  --anr-space-2: 12px;
  --anr-space-3: 16px;
  --anr-space-4: 20px;
  --anr-space-5: 24px;
  --anr-space-6: 30px;
  --anr-card-pad: clamp(18px, 2.4vw, 28px);
  --anr-card-gap: clamp(14px, 2vw, 22px);
  --anr-card-radius: 30px;
  --anr-inner-radius: 22px;
  --anr-shadow-strong: 0 18px 46px rgba(31,41,55,.11);
  --anr-shadow-soft: 0 9px 28px rgba(31,41,55,.075);
  --anr-line: rgba(47,111,62,.14);
}

/* Más separación general dentro de la app */
.anr-app{
  padding-inline: clamp(16px, 2.5vw, 34px) !important;
  padding-top: clamp(14px, 2vw, 26px) !important;
}
.anr-main{
  display: grid !important;
  gap: var(--anr-card-gap) !important;
}
.anr-screen.active{
  display: grid !important;
  gap: var(--anr-card-gap) !important;
}

/* Cabecera con más cuerpo */
.anr-topbar{
  padding: 16px 20px !important;
  border-radius: 30px !important;
  border: 1px solid rgba(47,111,62,.18) !important;
  box-shadow: var(--anr-shadow-soft) !important;
  margin-bottom: 20px !important;
}
.anr-brand-wrap{
  gap: 16px !important;
}
.anr-logo-small{
  width: 66px !important;
  padding: 4px !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  border: 1px solid var(--anr-border) !important;
  box-shadow: 0 8px 22px rgba(31,41,55,.08) !important;
}
.anr-brand-wrap strong{
  font-size: 18px !important;
}
.anr-brand-wrap span{
  font-size: 13px !important;
}

/* Titulares más separados */
.anr-section-head{
  margin: 12px 0 18px !important;
  padding-inline: 2px !important;
}
.anr-eyebrow{
  margin-bottom: 9px !important;
  color: #5f6f7d !important;
  font-size: 13px !important;
}
.anr-welcome-card h1,
.anr-section-head h1{
  margin-bottom: 12px !important;
  letter-spacing: -.035em !important;
}

/* Contenedores principales mucho más respirados */
.anr-welcome-card,
.anr-card,
.anr-zone-card,
.anr-crop-card,
.anr-diary-item,
.anr-advice-card,
.anr-empty,
.anr-pwa-card,
.anr-auth-card,
.anr-legal-card{
  padding: var(--anr-card-pad) !important;
  border-radius: var(--anr-card-radius) !important;
  border: 1px solid rgba(47,111,62,.16) !important;
  box-shadow: var(--anr-shadow-strong) !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.92)) !important;
}

/* Separación entre bloques internos */
.anr-two-col,
.anr-zone-grid,
.anr-crop-list,
.anr-diary-list,
.anr-advice-grid,
.anr-calendar-grid,
.anr-action-grid{
  gap: var(--anr-card-gap) !important;
}

/* Tarjeta de zona rediseñada: icono, texto y acciones con margen real */
.anr-zone-card{
  grid-template-columns: 68px minmax(0,1fr) !important;
  column-gap: 18px !important;
  row-gap: 18px !important;
  align-items: start !important;
  position: relative !important;
  overflow: hidden !important;
}
.anr-zone-card::before,
.anr-card::before,
.anr-crop-card::before,
.anr-diary-item::before,
.anr-advice-card::before{
  content: "" !important;
  position: absolute !important;
  inset: 10px !important;
  border-radius: calc(var(--anr-card-radius) - 10px) !important;
  border: 1px solid rgba(217,234,211,.55) !important;
  pointer-events: none !important;
}
.anr-card,
.anr-crop-card,
.anr-diary-item,
.anr-advice-card{
  position: relative !important;
  overflow: hidden !important;
}
.anr-zone-icon,
.anr-crop-icon,
.anr-diary-icon,
.anr-advice-icon{
  width: 58px !important;
  height: 58px !important;
  border-radius: 20px !important;
  margin: 4px !important;
  background: linear-gradient(135deg,#eef7e8,#ffffff) !important;
  border: 1px solid rgba(47,111,62,.13) !important;
  box-shadow: 0 7px 18px rgba(31,41,55,.07) !important;
  font-size: 28px !important;
}
.anr-zone-card h2,
.anr-card h2,
.anr-crop-card h3,
.anr-advice-card h2{
  margin: 6px 0 12px !important;
  line-height: 1.12 !important;
}
.anr-zone-crops,
.anr-mini-crops{
  grid-column: 1 / -1 !important;
  padding-top: 6px !important;
  margin-top: 8px !important;
  gap: 10px !important;
}
.anr-zone-crops span,
.anr-mini-crops span,
.anr-chip{
  padding: 10px 13px !important;
  min-height: 34px !important;
  border-radius: 999px !important;
  line-height: 1.05 !important;
  box-shadow: 0 3px 10px rgba(31,41,55,.04) !important;
}

/* Botones con separación y presencia clara */
.anr-btn,
.anr-mini-btn,
.anr-card-action,
.anr-file-label,
.anr-user-link{
  min-height: 50px !important;
  padding: 13px 18px !important;
  border-radius: 20px !important;
}
.anr-card-action{
  grid-column: 1 / -1 !important;
  margin-top: 10px !important;
  min-height: 54px !important;
  font-size: 16px !important;
  box-shadow: 0 10px 24px rgba(47,111,62,.22) !important;
}
.anr-mini-btn{
  padding-inline: 16px !important;
}

/* Acciones rápidas más de app */
.anr-action-tile{
  min-height: 124px !important;
  padding: 18px 12px !important;
  border-radius: 30px !important;
  border: 1px solid rgba(47,111,62,.16) !important;
  box-shadow: var(--anr-shadow-soft) !important;
  gap: 12px !important;
}
.anr-action-tile span{
  font-size: 36px !important;
  width: 58px !important;
  height: 58px !important;
  display: grid !important;
  place-items: center !important;
  border-radius: 20px !important;
  background: var(--anr-soft) !important;
}

/* Cultivos y diario con columnas más cómodas */
.anr-crop-card{
  grid-template-columns: 66px minmax(0,1fr) !important;
  gap: 18px !important;
}
.anr-diary-item{
  grid-template-columns: 66px minmax(0,1fr) !important;
  gap: 18px !important;
}
.anr-status-select,
.anr-form input,
.anr-form select,
.anr-form textarea,
.anr-auth-form input[type="text"],
.anr-auth-form input[type="email"],
.anr-auth-form input[type="password"]{
  min-height: 54px !important;
  padding: 13px 16px !important;
  border-radius: 18px !important;
}

/* Barra inferior más limpia, sin ir pegada */
.anr-bottom-nav,
body.anr-page-app .anr-bottom-nav{
  padding: 11px !important;
  border-radius: 30px !important;
  border: 1px solid rgba(47,111,62,.18) !important;
  box-shadow: 0 16px 46px rgba(31,41,55,.20) !important;
  background: rgba(255,255,255,.965) !important;
}
.anr-bottom-nav button{
  min-height: 62px !important;
  padding: 8px 7px !important;
  border-radius: 20px !important;
}
.anr-bottom-nav button span{
  font-size: 24px !important;
}
.anr-bottom-nav button small{
  font-size: 10px !important;
  margin-top: 2px !important;
}

/* Modales y login con aire */
.anr-modal{
  padding: 22px !important;
  border-radius: 32px !important;
}
.anr-modal-head{
  margin-bottom: 18px !important;
}
.anr-auth-tabs{
  padding: 8px !important;
  gap: 8px !important;
}
.anr-auth-form{
  gap: 16px !important;
}

/* Tablet y escritorio */
@media (min-width:720px){
  .anr-card,
  .anr-zone-card,
  .anr-crop-card,
  .anr-diary-item,
  .anr-advice-card,
  .anr-empty{
    min-height: 130px;
  }
  .anr-zone-card{
    min-height: 210px;
  }
  .anr-crop-card{
    grid-template-columns: 66px minmax(0,1fr) 190px !important;
  }
}

/* Móvil: aire visible, sin hacer tarjetas gigantes */
@media (max-width:719px){
  .anr-app{
    padding-inline: max(14px, env(safe-area-inset-left,0px)) !important;
  }
  .anr-topbar{
    padding: 14px 16px !important;
    margin-bottom: 18px !important;
  }
  .anr-logo-small{
    width: 58px !important;
  }
  .anr-zone-card,
  .anr-crop-card,
  .anr-diary-item{
    grid-template-columns: 62px minmax(0,1fr) !important;
    gap: 16px !important;
  }
  .anr-zone-icon,
  .anr-crop-icon,
  .anr-diary-icon,
  .anr-advice-icon{
    width: 54px !important;
    height: 54px !important;
  }
  .anr-welcome-card,
  .anr-card,
  .anr-zone-card,
  .anr-crop-card,
  .anr-diary-item,
  .anr-advice-card,
  .anr-empty,
  .anr-pwa-card{
    padding: 18px !important;
  }
  .anr-action-tile{
    min-height: 112px !important;
  }
  .anr-bottom-nav,
  body.anr-page-app .anr-bottom-nav{
    padding: 8px !important;
    border-radius: 24px !important;
  }
  .anr-bottom-nav button{
    min-height: 58px !important;
    padding: 7px 3px !important;
  }
}

/* Móviles estrechos: mantener legibilidad sin apelotonar */
@media (max-width:390px){
  .anr-welcome-card,
  .anr-card,
  .anr-zone-card,
  .anr-crop-card,
  .anr-diary-item,
  .anr-advice-card,
  .anr-empty,
  .anr-pwa-card{
    padding: 16px !important;
  }
  .anr-zone-card,
  .anr-crop-card,
  .anr-diary-item{
    grid-template-columns: 58px minmax(0,1fr) !important;
    gap: 14px !important;
  }
  .anr-zone-icon,
  .anr-crop-icon,
  .anr-diary-icon,
  .anr-advice-icon{
    width: 50px !important;
    height: 50px !important;
  }
  .anr-bottom-nav button small{
    font-size: 8.5px !important;
  }
}


/* ------------------------------------------------------------
   v0.2.7 · Actualizar app + histórico por bancal
   ------------------------------------------------------------ */
.anr-top-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.anr-refresh-btn{
  border:1px solid rgba(47,111,62,.18);
  background:#fff;
  color:var(--anr-green);
  min-height:42px;
  padding:10px 14px;
  border-radius:999px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(31,41,55,.06);
}
.anr-refresh-btn:disabled{
  opacity:.65;
  cursor:wait;
}
.anr-zone-history{
  grid-column:1 / -1;
  background:linear-gradient(135deg,#f8fbf4,#ffffff);
  border:1px solid rgba(47,111,62,.12);
  border-radius:24px;
  padding:14px;
  margin-top:6px;
}
.anr-zone-history-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
}
.anr-zone-history-head strong{
  font-size:15px;
  color:var(--anr-text);
}
.anr-zone-history-head button{
  border:1px solid var(--anr-border);
  background:var(--anr-soft);
  color:var(--anr-green);
  border-radius:999px;
  min-height:34px;
  padding:7px 11px;
  font-weight:900;
  cursor:pointer;
}
.anr-zone-history-empty{
  margin:0;
  color:var(--anr-muted);
  font-size:13px;
}
.anr-zone-timeline{
  display:grid;
  gap:9px;
}
.anr-zone-history-item{
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  gap:10px;
  align-items:start;
  background:#fff;
  border:1px solid rgba(217,234,211,.85);
  border-radius:18px;
  padding:10px;
}
.anr-zone-history-icon{
  width:34px;
  height:34px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:var(--anr-soft);
  box-shadow:0 4px 12px rgba(31,41,55,.06);
}
.anr-zone-history-item strong{
  display:block;
  font-size:13px;
  line-height:1.2;
  margin-bottom:5px;
}
.anr-zone-history-item strong em{
  font-style:normal;
  color:var(--anr-green);
  background:#e9f5e5;
  border-radius:999px;
  padding:3px 7px;
  margin-left:4px;
  font-size:11px;
}
.anr-zone-history-item p{
  margin:6px 0 0;
  color:#4b5563;
  font-size:13px;
  line-height:1.35;
}
.anr-date-pill{
  display:inline-flex;
  align-items:center;
  width:max-content;
  max-width:100%;
  border:1px solid rgba(47,111,62,.16);
  background:#ffffff;
  color:#5f6f7d;
  border-radius:999px;
  padding:5px 9px;
  font-weight:800;
  font-size:12px;
  line-height:1;
  cursor:pointer;
}
.anr-date-pill::before{
  content:"📅";
  margin-right:5px;
}
.anr-date-input{
  position:fixed!important;
  left:0!important;
  bottom:0!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
  padding:0!important;
  border:0!important;
  margin:0!important;
  pointer-events:none!important;
}
.anr-auto-date-note{
  margin:0;
  color:var(--anr-muted);
  font-size:13px;
  line-height:1.35;
  background:#f8fbf4;
  border:1px solid rgba(217,234,211,.8);
  border-radius:16px;
  padding:10px 12px;
}
.anr-general-note-row small{
  display:block;
  margin-top:3px;
  color:var(--anr-muted);
  font-weight:700;
}
.anr-diary-body .anr-date-pill{
  margin-top:5px;
}
@media (max-width:719px){
  .anr-topbar{
    align-items:flex-start!important;
  }
  .anr-top-actions{
    gap:7px;
  }
  .anr-refresh-btn,
  .anr-user-link{
    min-height:40px!important;
    padding:9px 11px!important;
    font-size:12px!important;
  }
  .anr-zone-history{
    padding:12px;
    border-radius:22px;
  }
}
@media (max-width:390px){
  .anr-topbar{
    display:grid!important;
    grid-template-columns:1fr;
  }
  .anr-top-actions{
    justify-content:stretch;
  }
  .anr-refresh-btn,
  .anr-user-link{
    flex:1;
    text-align:center;
  }
}


/* ------------------------------------------------------------
   v0.2.8 · Ajuste de bordes reales + modales usables
   ------------------------------------------------------------ */
/* Quitamos el marco interior decorativo: en móvil parecía que iconos,
   chips y botones se montaban encima de los bordes. Dejamos un solo borde claro. */
.anr-zone-card::before,
.anr-card::before,
.anr-crop-card::before,
.anr-diary-item::before,
.anr-advice-card::before{
  display:none!important;
  content:none!important;
}
.anr-zone-card,
.anr-crop-card,
.anr-diary-item,
.anr-card,
.anr-advice-card,
.anr-empty{
  overflow:visible!important;
  box-sizing:border-box!important;
}
.anr-zone-card{
  padding:clamp(20px,2.6vw,30px)!important;
  gap:18px!important;
  border-radius:30px!important;
}
.anr-crop-card,
.anr-diary-item{
  padding:clamp(18px,2.2vw,24px)!important;
  border-radius:28px!important;
}
.anr-zone-icon,
.anr-crop-icon,
.anr-diary-icon,
.anr-advice-icon{
  margin:0!important;
  flex:0 0 auto!important;
}
.anr-zone-crops,
.anr-mini-crops{
  padding:4px 2px 2px!important;
  margin-inline:0!important;
  width:100%!important;
  box-sizing:border-box!important;
}
.anr-zone-history{
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  margin:8px 0 0!important;
  padding:16px!important;
  border-radius:24px!important;
}
.anr-card-action{
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  margin:16px 0 0!important;
  border-radius:20px!important;
  justify-self:stretch!important;
}
.anr-zone-card > *,
.anr-crop-card > *,
.anr-diary-item > *{
  min-width:0!important;
}
.anr-status-select{
  width:100%!important;
  max-width:100%!important;
  box-sizing:border-box!important;
  justify-self:stretch!important;
}
@media (min-width:720px){
  .anr-crop-card{
    grid-template-columns:64px minmax(0,1fr) minmax(180px,220px)!important;
    align-items:center!important;
  }
  .anr-crop-card .anr-status-select{
    grid-column:auto!important;
  }
}
@media (max-width:719px){
  .anr-zone-card{
    padding:18px!important;
    border-radius:26px!important;
  }
  .anr-crop-card,
  .anr-diary-item{
    padding:16px!important;
    border-radius:24px!important;
  }
  .anr-zone-history{
    padding:14px!important;
    border-radius:22px!important;
  }
  .anr-card-action{
    margin-top:14px!important;
  }
}

/* Modal: que el botón Guardar nunca quede debajo de la barra inferior.
   Al abrir un modal, ocultamos temporalmente la barra inferior y hacemos el modal desplazable. */
body.anr-page-app.anr-modal-open .anr-bottom-nav,
body.anr-modal-open .anr-bottom-nav{
  opacity:0!important;
  pointer-events:none!important;
  transform:translateX(-50%) translateY(110%) translateZ(0)!important;
}
body.anr-page-app .anr-modal,
.anr-modal{
  top:calc(env(safe-area-inset-top,0px) + 14px)!important;
  bottom:calc(env(safe-area-inset-bottom,0px) + 14px)!important;
  left:50%!important;
  right:auto!important;
  width:min(640px,calc(100vw - 28px))!important;
  max-width:640px!important;
  max-height:none!important;
  transform:translateX(-50%)!important;
  overflow-y:auto!important;
  -webkit-overflow-scrolling:touch!important;
  padding:22px 22px 26px!important;
  box-sizing:border-box!important;
}
.anr-modal .anr-form{
  padding-bottom:12px!important;
}
.anr-modal .anr-form > button[type="submit"]{
  position:sticky!important;
  bottom:0!important;
  z-index:5!important;
  min-height:56px!important;
  margin-top:12px!important;
  box-shadow:0 14px 30px rgba(47,111,62,.26)!important;
}
.anr-modal-head{
  position:sticky!important;
  top:0!important;
  z-index:6!important;
  background:#fff!important;
  padding-bottom:12px!important;
  border-bottom:1px solid rgba(217,234,211,.65)!important;
}
@media (max-width:520px){
  body.anr-page-app .anr-modal,
  .anr-modal{
    top:calc(env(safe-area-inset-top,0px) + 8px)!important;
    bottom:calc(env(safe-area-inset-bottom,0px) + 8px)!important;
    width:calc(100vw - 16px)!important;
    padding:18px 16px 22px!important;
    border-radius:26px!important;
  }
}


/* ------------------------------------------------------------
   v0.2.9 · Histórico limpio: una sola fecha visible
   ------------------------------------------------------------ */
.anr-zone-history-item{
  position:relative;
}
.anr-zone-history-item .anr-date-input,
.anr-diary-item .anr-date-input{
  position:fixed!important;
  left:0!important;
  bottom:0!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
  padding:0!important;
  border:0!important;
  margin:0!important;
  pointer-events:none!important;
}
.anr-zone-history-item .anr-date-pill,
.anr-diary-body .anr-date-pill{
  margin:5px 0 8px!important;
}
.anr-zone-history-item p{
  margin-top:8px!important;
}


/* ------------------------------------------------------------
   v0.2.10 · Acceso directo arriba y sin tarjeta central de instalación
   ------------------------------------------------------------ */
.anr-pwa-card,
[data-anr-install-card]{
  display:none!important;
}
.anr-shortcut-btn{
  border:1px solid rgba(47,111,62,.18);
  background:#fff;
  color:var(--anr-green);
  min-height:42px;
  padding:10px 14px;
  border-radius:999px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(31,41,55,.06);
  position:relative;
}
.anr-shortcut-btn:hover,
.anr-shortcut-btn:focus{
  background:var(--anr-soft);
  outline:0;
}
.anr-shortcut-btn::after{
  content:"Móvil/tablet: Compartir o Exportar → + Añadir a pantalla de inicio";
  position:absolute;
  top:calc(100% + 10px);
  right:0;
  width:min(320px, 80vw);
  padding:10px 12px;
  border-radius:16px;
  background:#1f2937;
  color:#fff;
  font-size:12px;
  line-height:1.35;
  font-weight:800;
  box-shadow:0 14px 34px rgba(31,41,55,.25);
  opacity:0;
  transform:translateY(-4px);
  pointer-events:none;
  transition:.18s ease;
  z-index:50;
}
@media (hover:hover){
  .anr-shortcut-btn:hover::after,
  .anr-shortcut-btn:focus::after{
    opacity:1;
    transform:translateY(0);
  }
}
.anr-access-popover{
  position:fixed;
  top:88px;
  right:clamp(14px, 3vw, 30px);
  width:min(390px, calc(100vw - 28px));
  background:#fff;
  border:1px solid rgba(47,111,62,.18);
  border-radius:24px;
  padding:18px 44px 18px 18px;
  box-shadow:0 18px 48px rgba(31,41,55,.18);
  z-index:1200;
}
.anr-access-popover strong{
  display:block;
  font-size:17px;
  margin-bottom:8px;
  color:var(--anr-text);
}
.anr-access-popover p{
  margin:8px 0 0;
  color:var(--anr-muted);
  line-height:1.42;
  font-size:14px;
}
.anr-access-popover b{
  color:var(--anr-text);
}
.anr-access-popover-close{
  position:absolute;
  top:10px;
  right:10px;
  width:34px;
  height:34px;
  border:0;
  border-radius:999px;
  background:var(--anr-soft);
  color:var(--anr-green);
  font-size:22px;
  font-weight:900;
  line-height:1;
  cursor:pointer;
}
@media (max-width:719px){
  .anr-top-actions{
    display:grid;
    grid-template-columns:1fr 1fr;
    width:100%;
  }
  .anr-top-actions .anr-user-link{
    grid-column:auto;
  }
  .anr-refresh-btn,
  .anr-shortcut-btn,
  .anr-user-link{
    width:100%;
    justify-content:center;
    text-align:center;
  }
  .anr-access-popover{
    top:auto;
    right:12px;
    left:12px;
    bottom:calc(var(--anr-nav-h, 86px) + 18px);
    width:auto;
  }
}
@media (max-width:420px){
  .anr-top-actions{
    grid-template-columns:1fr;
  }
}


/* ------------------------------------------------------------
   v0.2.11 · Instalación PWA sin botón visible por ahora
   ------------------------------------------------------------ */
.anr-shortcut-btn,
.anr-access-popover,
[data-anr-access-popover],
[data-anr-access-help]{
  display:none!important;
}


/* ------------------------------------------------------------
   v0.2.12 · Nueva nota usable en móvil: cuerpo desplazable + pie fijo
   ------------------------------------------------------------ */
body.anr-modal-open{
  overflow:hidden!important;
}
body.anr-modal-open .anr-bottom-nav{
  opacity:0!important;
  pointer-events:none!important;
  transform:translateX(-50%) translateY(120%) translateZ(0)!important;
}
body.anr-page-app .anr-modal,
.anr-modal{
  overflow:hidden!important;
  padding:0!important;
  display:flex!important;
  flex-direction:column!important;
}
.anr-modal .anr-form{
  display:flex!important;
  flex-direction:column!important;
  min-height:0!important;
  height:100%!important;
  gap:0!important;
}
.anr-modal-head{
  position:relative!important;
  top:auto!important;
  flex:0 0 auto!important;
  margin:0!important;
  padding:18px 18px 14px!important;
  background:#fff!important;
  border-bottom:1px solid rgba(217,234,211,.8)!important;
  z-index:3!important;
}
.anr-modal-head .anr-eyebrow{
  margin:0 0 4px!important;
  font-size:11px!important;
}
.anr-modal-head h2{
  margin:0!important;
}
.anr-modal-body{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow-y:auto!important;
  -webkit-overflow-scrolling:touch!important;
  display:grid!important;
  gap:14px!important;
  padding:16px 18px 18px!important;
  background:linear-gradient(180deg,#fff,#fbfdf8)!important;
}
.anr-modal-footer{
  flex:0 0 auto!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:12px!important;
  padding:14px 18px calc(14px + env(safe-area-inset-bottom,0px))!important;
  background:#fff!important;
  border-top:1px solid rgba(217,234,211,.9)!important;
  box-shadow:0 -10px 28px rgba(31,41,55,.07)!important;
  z-index:4!important;
}
.anr-modal-footer span{
  color:var(--anr-muted)!important;
  font-size:12px!important;
  line-height:1.25!important;
  font-weight:800!important;
}
.anr-modal-footer .anr-btn{
  min-width:170px!important;
  min-height:56px!important;
  box-shadow:0 12px 26px rgba(47,111,62,.24)!important;
}
.anr-modal-block{
  display:grid!important;
  gap:12px!important;
  background:#fff!important;
  border:1px solid rgba(217,234,211,.9)!important;
  border-radius:22px!important;
  padding:14px!important;
}
.anr-action-picker{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:9px!important;
}
.anr-action-picker button{
  border:1px solid rgba(217,234,211,.95)!important;
  background:#fff!important;
  border-radius:18px!important;
  min-height:74px!important;
  padding:10px 6px!important;
  display:grid!important;
  place-items:center!important;
  gap:4px!important;
  cursor:pointer!important;
  color:var(--anr-text)!important;
  box-shadow:0 4px 14px rgba(31,41,55,.045)!important;
}
.anr-action-picker button span{
  font-size:24px!important;
  line-height:1!important;
}
.anr-action-picker button strong{
  font-size:11px!important;
  line-height:1.1!important;
}
.anr-action-picker button.active{
  border-color:rgba(47,111,62,.36)!important;
  background:var(--anr-soft)!important;
  color:var(--anr-green)!important;
  box-shadow:inset 0 0 0 1px rgba(47,111,62,.16), 0 6px 18px rgba(47,111,62,.08)!important;
}
.anr-form-row-2{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
.anr-media-row{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
}
.anr-media-row .anr-btn,
.anr-media-row .anr-file-label{
  width:100%!important;
  min-height:54px!important;
  justify-content:center!important;
  text-align:center!important;
}
.anr-diary-form > button[type="submit"],
.anr-modal .anr-form > button[type="submit"]{
  position:static!important;
}
@media (max-width:720px){
  body.anr-page-app .anr-modal,
  .anr-modal{
    top:calc(env(safe-area-inset-top,0px) + 8px)!important;
    bottom:calc(env(safe-area-inset-bottom,0px) + 8px)!important;
    width:calc(100vw - 16px)!important;
    border-radius:26px!important;
  }
  .anr-modal-head{
    padding:16px 16px 12px!important;
  }
  .anr-modal-body{
    padding:14px!important;
  }
  .anr-modal-footer{
    grid-template-columns:1fr!important;
    padding:12px 14px calc(12px + env(safe-area-inset-bottom,0px))!important;
  }
  .anr-modal-footer .anr-btn{
    width:100%!important;
  }
  .anr-action-picker{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
  .anr-form-row-2,
  .anr-media-row{
    grid-template-columns:1fr!important;
  }
}
@media (max-height:640px){
  .anr-action-picker button{
    min-height:60px!important;
  }
  .anr-modal-block{
    padding:12px!important;
  }
}


/* ------------------------------------------------------------
   v0.2.13 · FIX urgente: los modales ocultos no deben verse
   ------------------------------------------------------------ */
.anr-modal[hidden],
.anr-modal-backdrop[hidden],
[data-modal][hidden],
[data-modal-backdrop][hidden]{
  display:none!important;
  opacity:0!important;
  pointer-events:none!important;
  visibility:hidden!important;
}
.anr-modal:not([hidden]){
  display:flex!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}
.anr-modal-backdrop:not([hidden]){
  display:block!important;
  visibility:visible!important;
  opacity:1!important;
  pointer-events:auto!important;
}
body:not(.anr-modal-open) .anr-bottom-nav{
  opacity:1;
  pointer-events:auto;
}


/* ------------------------------------------------------------
   v0.2.14 · Histórico editable y fecha compacta
   ------------------------------------------------------------ */
.anr-zone-history-content{
  min-width:0;
}
.anr-zone-history-top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
}
.anr-zone-history-top > div{
  min-width:0;
}
.anr-edit-entry-btn{
  border:1px solid rgba(47,111,62,.18);
  background:#fff;
  color:var(--anr-green);
  border-radius:999px;
  padding:7px 10px;
  min-height:32px;
  font-size:11px;
  font-weight:900;
  letter-spacing:.02em;
  cursor:pointer;
  flex:0 0 auto;
  box-shadow:0 5px 14px rgba(31,41,55,.055);
}
.anr-edit-entry-btn:hover,
.anr-edit-entry-btn:focus{
  background:var(--anr-soft);
  outline:0;
}
.anr-edit-entry-btn-inline{
  margin-top:8px;
  width:max-content;
}
.anr-zone-history-item .anr-date-pill{
  font-size:11px!important;
  padding:5px 8px!important;
  color:#6b7280!important;
  background:#fff!important;
}
.anr-zone-history-item .anr-date-pill::before{
  content:"📅";
}
.anr-zone-history-item p{
  color:#374151!important;
  font-size:13.5px!important;
  line-height:1.35!important;
}
.anr-edit-diary-modal .anr-modal-footer .anr-btn{
  min-width:180px!important;
}
@media (max-width:520px){
  .anr-zone-history-top{
    align-items:flex-start;
  }
  .anr-edit-entry-btn{
    padding:7px 9px;
    font-size:10.5px;
  }
  .anr-zone-history-item{
    grid-template-columns:34px minmax(0,1fr)!important;
  }
}


/* ------------------------------------------------------------
   v0.3.0 · Exportar histórico + módulo Luna
   ------------------------------------------------------------ */
.anr-history-actions{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.anr-history-actions button{
  border:1px solid var(--anr-border);
  background:#fff;
  color:var(--anr-green);
  border-radius:999px;
  min-height:34px;
  padding:7px 11px;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 4px 12px rgba(31,41,55,.045);
}
.anr-history-actions button:last-child{
  background:var(--anr-soft);
}
.anr-export-zone-title{
  margin:0;
  font-weight:900;
  color:var(--anr-text);
  font-size:17px;
}
.anr-bottom-nav{
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
}
.anr-bottom-nav button small{
  white-space:nowrap;
}
.anr-luna-wrap{
  display:grid;
  gap:var(--anr-card-gap, 18px);
}
.anr-luna-current{
  display:grid!important;
  grid-template-columns:120px minmax(0,1fr)!important;
  align-items:center;
  gap:22px!important;
}
.anr-luna-big{
  width:110px;
  height:110px;
  display:grid;
  place-items:center;
  border-radius:36px;
  background:linear-gradient(135deg,#1f2937,#4b5563);
  color:#fff;
  font-size:62px;
  box-shadow:0 16px 34px rgba(31,41,55,.18);
}
.anr-luna-current h2{
  margin:0 0 8px!important;
  font-size:28px!important;
}
.anr-luna-current h3{
  margin:14px 0 6px!important;
  font-size:18px!important;
}
.anr-luna-current p{
  margin:0 0 8px!important;
  color:var(--anr-muted);
}
.anr-luna-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}
.anr-luna-tags span{
  display:inline-flex;
  padding:8px 11px;
  border-radius:999px;
  background:var(--anr-soft);
  color:var(--anr-green);
  font-weight:900;
  font-size:12px;
}
.anr-luna-list-card{
  padding-bottom:16px!important;
}
.anr-luna-list{
  display:grid;
  gap:10px;
  max-height:min(62vh, 620px);
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
  padding:2px 4px 2px 2px;
}
.anr-luna-day{
  display:grid;
  grid-template-columns:58px 48px minmax(0,1fr);
  gap:12px;
  align-items:center;
  background:#fff;
  border:1px solid rgba(217,234,211,.9);
  border-radius:20px;
  padding:12px;
}
.anr-luna-day.today{
  border-color:rgba(47,111,62,.38);
  background:linear-gradient(135deg,#eef7e8,#fff);
}
.anr-luna-day-date{
  display:grid;
  gap:2px;
  text-align:center;
}
.anr-luna-day-date strong{
  font-size:17px;
}
.anr-luna-day-date small{
  color:var(--anr-muted);
  font-weight:800;
  text-transform:capitalize;
}
.anr-luna-day-icon{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:#1f2937;
  color:#fff;
  font-size:25px;
}
.anr-luna-day-body strong{
  display:block;
  margin-bottom:4px;
}
.anr-luna-day-body p{
  margin:0;
  color:var(--anr-muted);
  font-size:13px;
  line-height:1.35;
}
.anr-luna-note p{
  color:var(--anr-muted);
}
@media (max-width:719px){
  .anr-bottom-nav button small{
    font-size:8.4px!important;
  }
  .anr-bottom-nav button span{
    font-size:21px!important;
  }
  .anr-luna-current{
    grid-template-columns:1fr!important;
    text-align:center;
  }
  .anr-luna-big{
    margin:0 auto;
  }
  .anr-luna-tags{
    justify-content:center;
  }
  .anr-luna-day{
    grid-template-columns:50px 42px minmax(0,1fr);
    gap:9px;
    padding:10px;
  }
  .anr-luna-day-icon{
    width:40px;
    height:40px;
    font-size:22px;
  }
  .anr-history-actions{
    width:100%;
    justify-content:stretch;
  }
  .anr-history-actions button{
    flex:1;
  }
}
@media (max-width:390px){
  .anr-bottom-nav button small{
    display:none!important;
  }
  .anr-bottom-nav button{
    min-height:52px!important;
  }
}


/* ------------------------------------------------------------
   v0.3.1 · Calendario lunar interactivo y día tipo con iconos
   ------------------------------------------------------------ */
.anr-luna-current{
  display:grid!important;
  grid-template-columns:96px minmax(0,1fr)!important;
  gap:20px!important;
  align-items:start!important;
}
.anr-luna-current.bad{
  border-color:rgba(185,74,72,.38)!important;
  box-shadow:0 18px 46px rgba(185,74,72,.12)!important;
}
.anr-luna-current-body{
  display:grid;
  gap:10px;
}
.anr-luna-big{
  width:86px;
  height:86px;
  display:grid;
  place-items:center;
  border-radius:30px;
  background:linear-gradient(135deg,#1f2937,#2f6f3e);
  color:#fff;
  font-size:46px!important;
  box-shadow:0 16px 34px rgba(31,41,55,.18);
}
.anr-luna-focus{
  display:grid;
  grid-template-columns:48px minmax(0,1fr);
  gap:8px 12px;
  align-items:center;
  background:linear-gradient(135deg,#eef7e8,#fff);
  border:1px solid rgba(47,111,62,.16);
  border-radius:22px;
  padding:12px;
}
.anr-luna-focus span{
  grid-row:1 / span 2;
  width:48px;
  height:48px;
  display:grid;
  place-items:center;
  border-radius:18px;
  background:#fff;
  font-size:28px;
  box-shadow:0 6px 18px rgba(31,41,55,.06);
}
.anr-luna-focus strong{
  color:var(--anr-green);
  font-size:15px;
}
.anr-luna-focus small{
  color:var(--anr-muted);
  line-height:1.3;
}
.anr-luna-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:4px;
}
.anr-luna-actions span{
  display:inline-flex;
  align-items:center;
  gap:6px;
  border:1px solid rgba(47,111,62,.16);
  background:#fff;
  border-radius:999px;
  padding:8px 10px;
  font-weight:900;
  color:var(--anr-text);
  box-shadow:0 4px 13px rgba(31,41,55,.05);
}
.anr-luna-actions b{
  font-size:18px;
  line-height:1;
}
.anr-luna-actions small{
  font-size:12px;
}
.anr-luna-actions.bad span{
  border-color:rgba(185,74,72,.22);
  background:#fff4f4;
  color:#8f2f2f;
}
.anr-luna-bad-alert{
  background:#fff1f1;
  color:#8f2f2f;
  border:1px solid rgba(185,74,72,.26);
  border-radius:18px;
  padding:12px 14px;
  font-weight:950;
  line-height:1.35;
}
.anr-luna-day{
  cursor:pointer;
  grid-template-columns:64px 48px minmax(0,1fr) auto!important;
  gap:12px!important;
  align-items:center!important;
}
.anr-luna-day:hover,
.anr-luna-day.selected{
  background:linear-gradient(135deg,#ffffff,#eef7e8)!important;
  border-color:rgba(47,111,62,.28)!important;
  box-shadow:0 10px 28px rgba(47,111,62,.10)!important;
}
.anr-luna-day.bad{
  border-color:rgba(185,74,72,.25)!important;
  background:#fffafa!important;
}
.anr-luna-day.bad .anr-luna-day-body strong{
  color:#8f2f2f!important;
}
.anr-luna-day-side{
  display:flex;
  align-items:center;
  gap:8px;
  justify-content:flex-end;
}
.anr-luna-type-icon{
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  border-radius:16px;
  background:var(--anr-soft);
  border:1px solid rgba(47,111,62,.14);
  font-size:22px;
}
.anr-luna-day.bad .anr-luna-type-icon{
  background:#fff1f1;
  border-color:rgba(185,74,72,.22);
}
.anr-luna-day-actions{
  display:flex;
  gap:5px;
  flex-wrap:wrap;
  justify-content:flex-end;
  max-width:112px;
}
.anr-luna-day-actions span{
  width:28px;
  height:28px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(217,234,211,.95);
  font-size:15px;
}
.anr-luna-day.bad .anr-luna-day-actions span:first-child{
  background:#fff1f1;
  border-color:rgba(185,74,72,.24);
}
@media (max-width:760px){
  .anr-luna-current{
    grid-template-columns:1fr!important;
  }
  .anr-luna-big{
    width:76px;
    height:76px;
    border-radius:26px;
    font-size:40px!important;
  }
  .anr-luna-day{
    grid-template-columns:54px 42px minmax(0,1fr) 48px!important;
    gap:9px!important;
  }
  .anr-luna-day-side{
    display:grid;
    justify-items:end;
    gap:6px;
  }
  .anr-luna-day-actions{
    max-width:48px;
    gap:4px;
  }
  .anr-luna-day-actions span{
    width:22px;
    height:22px;
    font-size:13px;
  }
  .anr-luna-type-icon{
    width:36px;
    height:36px;
    font-size:20px;
  }
  .anr-luna-actions span{
    padding:8px 9px;
  }
}


/* ------------------------------------------------------------
   v0.3.2 · Menú inferior en una sola línea
   ------------------------------------------------------------ */
body.anr-page-app .anr-bottom-nav,
.anr-bottom-nav{
  display:grid!important;
  grid-template-columns:repeat(7,minmax(0,1fr))!important;
  gap:6px!important;
  width:min(1180px,calc(100vw - 24px))!important;
  max-width:1180px!important;
  left:50%!important;
  right:auto!important;
  transform:translateX(-50%)!important;
  padding:8px!important;
  border-radius:26px!important;
  overflow:hidden!important;
}
body.anr-page-app .anr-bottom-nav button,
.anr-bottom-nav button{
  min-width:0!important;
  min-height:58px!important;
  padding:7px 4px!important;
  border-radius:18px!important;
  gap:3px!important;
}
body.anr-page-app .anr-bottom-nav button span,
.anr-bottom-nav button span{
  font-size:22px!important;
  line-height:1!important;
}
body.anr-page-app .anr-bottom-nav button small,
.anr-bottom-nav button small{
  display:block!important;
  max-width:100%!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
  white-space:nowrap!important;
  font-size:10px!important;
  line-height:1.05!important;
}
body.anr-page-app .anr-app,
.anr-app{
  padding-bottom:calc(var(--anr-nav-h, 86px) + env(safe-area-inset-bottom,0px) + 26px)!important;
}
@media (min-width:1080px){
  body.anr-page-app .anr-bottom-nav,
  .anr-bottom-nav{
    position:sticky!important;
    bottom:16px!important;
    margin:20px auto 0!important;
    left:auto!important;
    right:auto!important;
    transform:none!important;
    width:min(1180px,100%)!important;
  }
  body.anr-page-app .anr-app,
  .anr-app{
    padding-bottom:22px!important;
  }
}
@media (max-width:719px){
  body.anr-page-app .anr-bottom-nav,
  .anr-bottom-nav{
    grid-template-columns:repeat(7,minmax(0,1fr))!important;
    gap:3px!important;
    width:calc(100vw - 12px)!important;
    padding:6px!important;
    border-radius:22px!important;
  }
  body.anr-page-app .anr-bottom-nav button,
  .anr-bottom-nav button{
    min-height:54px!important;
    padding:6px 2px!important;
    border-radius:15px!important;
  }
  body.anr-page-app .anr-bottom-nav button span,
  .anr-bottom-nav button span{
    font-size:20px!important;
  }
  body.anr-page-app .anr-bottom-nav button small,
  .anr-bottom-nav button small{
    font-size:8.5px!important;
    letter-spacing:-.02em!important;
  }
}
@media (max-width:390px){
  body.anr-page-app .anr-bottom-nav button small,
  .anr-bottom-nav button small{
    display:none!important;
  }
  body.anr-page-app .anr-bottom-nav button,
  .anr-bottom-nav button{
    min-height:48px!important;
  }
  body.anr-page-app .anr-bottom-nav button span,
  .anr-bottom-nav button span{
    font-size:21px!important;
  }
}


/* ------------------------------------------------------------
   v0.3.3 · Legal + anti-bots
   ------------------------------------------------------------ */
.anr-hp-field{
  position:absolute!important;
  left:-99999px!important;
  width:1px!important;
  height:1px!important;
  opacity:0!important;
  pointer-events:none!important;
  tabindex:-1;
}
.anr-legal-card ul{
  margin:10px 0 18px;
  padding-left:22px;
  color:var(--anr-text);
}
.anr-legal-card li{
  margin:7px 0;
  line-height:1.45;
}
.anr-legal-card a{
  color:var(--anr-green);
  font-weight:800;
}


/* ------------------------------------------------------------
   v0.3.4 · Legal con exposición reducida y noindex reforzado
   ------------------------------------------------------------ */
.anr-legal-muted{
  color:var(--anr-muted);
  font-size:13px;
  background:#f8fbf4;
  border:1px solid rgba(217,234,211,.8);
  border-radius:16px;
  padding:10px 12px;
}
.anr-legal-card code{
  background:#f3f6ef;
  border:1px solid rgba(217,234,211,.85);
  border-radius:8px;
  padding:2px 6px;
  font-size:.9em;
}


/* ------------------------------------------------------------
   v0.3.6 · Versión pública: sin botones internos y footer legal
   ------------------------------------------------------------ */
.anr-refresh-btn,
.anr-shortcut-btn,
.anr-access-popover,
[data-anr-refresh-app],
[data-anr-access-help],
[data-anr-access-popover]{
  display:none!important;
}
.anr-regenera-link{
  background:#fff!important;
  color:var(--anr-green)!important;
}
.anr-app-footer{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:10px 16px;
  color:var(--anr-muted);
  font-size:12px;
  font-weight:800;
  padding:20px 10px 8px;
  text-align:center;
}
.anr-app-footer a{
  color:var(--anr-green);
  text-decoration:none;
  font-weight:900;
}
.anr-app-footer a:hover{
  text-decoration:underline;
}
.anr-app-footer nav{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:8px 12px;
}
.anr-app-footer nav a{
  color:#6b7280;
}
@media (max-width:719px){
  .anr-app-footer{
    padding-bottom:2px;
    font-size:11px;
  }
}


/* ------------------------------------------------------------
   v0.3.7 · Campo de uso en registro
   ------------------------------------------------------------ */
.anr-auth-form select[name="usage_type"]{
  min-height:54px;
  border-radius:18px;
}


/* ------------------------------------------------------------
   v0.3.8 · Encabezado móvil más limpio
   ------------------------------------------------------------ */
.anr-top-actions{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  min-width:0;
}
.anr-top-actions .anr-user-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
}
@media (max-width: 640px){
  .anr-topbar{
    display:grid!important;
    grid-template-columns:1fr;
    gap:10px;
    align-items:start;
    padding:10px 12px;
    margin-bottom:12px;
  }
  .anr-brand-wrap{
    width:100%;
    gap:10px;
    align-items:center;
  }
  .anr-logo-small{
    width:42px;
    flex:0 0 42px;
  }
  .anr-brand-wrap > div{
    min-width:0;
    flex:1 1 auto;
  }
  .anr-brand-wrap strong{
    font-size:15px;
    line-height:1.15;
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
    word-break:break-word;
  }
  .anr-brand-wrap span{
    font-size:11px;
    line-height:1.2;
    margin-top:3px;
  }
  .anr-top-actions{
    width:100%;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto;
    gap:8px;
    justify-content:stretch;
  }
  .anr-top-actions .anr-user-link{
    width:100%;
    padding:9px 10px;
    font-size:12px;
    line-height:1.1;
    text-align:center;
    border-radius:14px;
  }
  .anr-regenera-link{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
}
@media (max-width: 380px){
  .anr-topbar{
    padding:10px;
  }
  .anr-brand-wrap{
    gap:8px;
  }
  .anr-logo-small{
    width:38px;
    flex-basis:38px;
  }
  .anr-brand-wrap strong{
    font-size:14px;
  }
  .anr-brand-wrap span{
    font-size:10px;
  }
  .anr-top-actions{
    grid-template-columns:minmax(0,1fr) 74px;
  }
  .anr-top-actions .anr-user-link{
    font-size:11px;
    padding:8px 8px;
    min-height:38px;
  }
}


/* ------------------------------------------------------------
   v0.3.9 · Dictado por voz: estado grabando
   ------------------------------------------------------------ */
[data-voice-btn].is-recording{
  background:#fff1f1!important;
  color:#8f2f2f!important;
  border-color:rgba(185,74,72,.28)!important;
  box-shadow:0 8px 22px rgba(185,74,72,.12)!important;
}


/* ------------------------------------------------------------
   v0.4.0 · Guía rápida dentro de la aplicación
   ------------------------------------------------------------ */
.anr-guide-btn{
  border:1px solid rgba(47,111,62,.16)!important;
  background:var(--anr-soft)!important;
  color:var(--anr-green)!important;
  cursor:pointer!important;
  font:inherit!important;
  font-weight:900!important;
}
.anr-guide-modal{
  width:min(980px,calc(100vw - 24px))!important;
  height:min(92vh,980px)!important;
  max-height:calc(100vh - 24px)!important;
  padding:0!important;
  overflow:hidden!important;
}
.anr-guide-modal-inner{
  display:flex!important;
  flex-direction:column!important;
  height:100%!important;
  min-height:0!important;
  background:#fff!important;
}
.anr-guide-head{
  flex:0 0 auto!important;
}
.anr-guide-body{
  flex:1 1 auto!important;
  min-height:0!important;
  overflow:auto!important;
  -webkit-overflow-scrolling:touch!important;
  background:#f8f6f1!important;
  padding:14px!important;
  display:flex!important;
  justify-content:center!important;
  align-items:flex-start!important;
}
.anr-guide-body img{
  display:block!important;
  width:100%!important;
  max-width:900px!important;
  height:auto!important;
  border-radius:22px!important;
  box-shadow:0 14px 40px rgba(31,41,55,.12)!important;
  background:#fff!important;
}
.anr-guide-footer{
  flex:0 0 auto!important;
}
@media (max-width:640px){
  .anr-top-actions{
    grid-template-columns:1fr 1fr auto!important;
  }
  .anr-guide-btn{
    font-size:11px!important;
    padding-left:8px!important;
    padding-right:8px!important;
  }
  .anr-guide-modal{
    width:calc(100vw - 10px)!important;
    height:calc(100vh - 16px)!important;
    max-height:calc(100vh - 16px)!important;
    border-radius:24px!important;
  }
  .anr-guide-body{
    padding:8px!important;
  }
  .anr-guide-body img{
    border-radius:16px!important;
    max-width:none!important;
  }
  .anr-guide-footer{
    grid-template-columns:1fr!important;
  }
  .anr-guide-footer .anr-btn{
    width:100%!important;
  }
}
@media (max-width:380px){
  .anr-top-actions{
    grid-template-columns:1fr 1fr 64px!important;
  }
  .anr-regenera-link{
    font-size:10px!important;
  }
}


/* ------------------------------------------------------------
   v0.4.1 - Separacion estable de iconos en tarjetas
   ------------------------------------------------------------ */
.anr-zone-card,
.anr-crop-card,
.anr-diary-item{
  --anr-card-icon-size:54px;
  --anr-card-icon-track:72px;
  padding:clamp(22px,2.6vw,32px)!important;
  column-gap:0!important;
  row-gap:18px!important;
}
.anr-zone-card{
  grid-template-columns:var(--anr-card-icon-track) minmax(0,1fr)!important;
}
.anr-crop-card,
.anr-diary-item{
  grid-template-columns:var(--anr-card-icon-track) minmax(0,1fr)!important;
}
.anr-zone-icon,
.anr-crop-icon,
.anr-diary-icon{
  width:var(--anr-card-icon-size)!important;
  height:var(--anr-card-icon-size)!important;
  margin:0!important;
  justify-self:start!important;
  align-self:start!important;
}
.anr-crop-card .anr-crop-icon{
  align-self:center!important;
}
.anr-zone-history-item{
  grid-template-columns:44px minmax(0,1fr)!important;
  padding:12px!important;
  gap:12px!important;
}
.anr-zone-history-icon{
  justify-self:start!important;
  margin:0!important;
}
@media (min-width:720px){
  .anr-crop-card{
    grid-template-columns:var(--anr-card-icon-track) minmax(0,1fr) minmax(180px,220px)!important;
  }
}
@media (max-width:719px){
  .anr-zone-card,
  .anr-crop-card,
  .anr-diary-item{
    --anr-card-icon-size:50px;
    --anr-card-icon-track:64px;
    padding:18px!important;
  }
  .anr-zone-history-item{
    grid-template-columns:40px minmax(0,1fr)!important;
    padding:11px!important;
  }
}


/* ------------------------------------------------------------
   v0.4.3 - Respiracion en contenedores generales
   ------------------------------------------------------------ */
.anr-card{
  padding:clamp(24px,3vw,32px)!important;
  border-radius:30px!important;
}
.anr-card-head,
.anr-section-head,
.anr-zone-history-head{
  padding-inline:clamp(4px,.9vw,8px)!important;
  gap:14px!important;
}
.anr-card-head{
  margin-bottom:18px!important;
}
.anr-card-head .anr-mini-btn,
.anr-section-head .anr-btn,
.anr-history-actions{
  margin-right:2px!important;
}
.anr-zone-crops small{
  padding-inline:6px!important;
}
.anr-card-action{
  width:auto!important;
  max-width:none!important;
  margin:18px 8px 0!important;
  justify-self:stretch!important;
}
.anr-crop-list,
.anr-diary-list{
  gap:18px!important;
}
.anr-card .anr-crop-card,
.anr-card .anr-diary-item,
.anr-crop-list.large .anr-crop-card{
  --anr-card-icon-size:54px;
  --anr-card-icon-track:78px;
  padding:clamp(24px,2.8vw,30px)!important;
}
.anr-card .anr-crop-icon,
.anr-card .anr-diary-icon,
.anr-crop-list.large .anr-crop-icon{
  justify-self:start!important;
}
.anr-card .anr-status-select,
.anr-crop-list.large .anr-status-select{
  justify-self:end!important;
  width:min(100%,220px)!important;
}
.anr-zone-history{
  padding:clamp(18px,2.4vw,24px)!important;
  border-radius:26px!important;
}
.anr-zone-history-item{
  grid-template-columns:50px minmax(0,1fr)!important;
  padding:16px!important;
  gap:14px!important;
}
.anr-zone-history-icon{
  width:38px!important;
  height:38px!important;
}
.anr-edit-entry-btn,
.anr-history-actions button{
  margin-right:2px!important;
}
@media (min-width:720px){
  .anr-card .anr-crop-card,
  .anr-crop-list.large .anr-crop-card{
    grid-template-columns:var(--anr-card-icon-track) minmax(0,1fr) minmax(190px,230px)!important;
  }
}
@media (max-width:719px){
  .anr-card{
    padding:18px!important;
    border-radius:26px!important;
  }
  .anr-card-head,
  .anr-section-head,
  .anr-zone-history-head{
    padding-inline:2px!important;
  }
  .anr-card .anr-crop-card,
  .anr-card .anr-diary-item,
  .anr-crop-list.large .anr-crop-card{
    --anr-card-icon-size:50px;
    --anr-card-icon-track:68px;
    padding:18px!important;
  }
  .anr-zone-history{
    padding:15px!important;
  }
  .anr-zone-history-item{
    grid-template-columns:42px minmax(0,1fr)!important;
    padding:13px!important;
  }
  .anr-card-action{
    margin-inline:4px!important;
  }
}


/* ------------------------------------------------------------
   v0.4.6 · Datos legales de empresa con lectura humana y menos scraping simple
   ------------------------------------------------------------ */
.anr-legal-obf{
  display:inline;
  white-space:normal;
  word-break:normal;
}
.anr-legal-obf span{
  display:inline;
}
.anr-legal-obf .anr-obf-space{
  display:inline;
}
.anr-legal-id{
  line-height:1.65;
}
.anr-legal-email{
  font-weight:800;
  color:var(--anr-green);
}


/* ------------------------------------------------------------
   v0.4.9 · Contacto simple y recuperación navegación
   ------------------------------------------------------------ */
.anr-contact-btn{
  gap:6px!important;
}
@media (max-width:640px){
  .anr-contact-btn span{
    display:none!important;
  }
}


/* ------------------------------------------------------------
   Animalia Regeneratusuelo 0.1.0 · separación visual de iconos y controles
   ------------------------------------------------------------ */
.anr-app{
  background:linear-gradient(135deg,#f8f5ef 0%,#eef8f6 52%,#f8fbf7 100%)!important;
}
.anr-card,
.anr-zone-card,
.anr-crop-card,
.anr-diary-item,
.anr-zone-history{
  border-color:var(--anr-border)!important;
}
.anr-zone-card,
.anr-crop-card,
.anr-diary-item,
.anr-zone-history-item{
  column-gap:clamp(16px,2.2vw,24px)!important;
}
.anr-zone-icon,
.anr-crop-icon,
.anr-diary-icon,
.anr-zone-history-icon{
  margin-left:2px!important;
  flex:0 0 auto!important;
  overflow:hidden!important;
}
.anr-zone-photo{
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  border-radius:inherit!important;
}
.anr-card-head .anr-mini-btn,
.anr-section-head .anr-btn,
.anr-status-select,
.anr-edit-entry-btn,
.anr-history-actions{
  margin-right:clamp(2px,.9vw,8px)!important;
}
.anr-crop-card,
.anr-diary-item,
.anr-zone-history-item{
  padding-inline:clamp(16px,2.4vw,24px)!important;
}
@media (min-width:720px){
  .anr-crop-card{
    grid-template-columns:minmax(62px,74px) minmax(0,1fr) minmax(190px,230px)!important;
  }
  .anr-diary-item{
    grid-template-columns:minmax(62px,74px) minmax(0,1fr)!important;
  }
}
