/* ===== Alcendia Local — estilos base ===== */
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:#edf1f8;-webkit-tap-highlight-color:transparent}
body{overscroll-behavior-y:none}

.maple-master-wrap{width:100vw;max-width:100vw;background:linear-gradient(180deg,#f6f7fb 0%,#edf1f8 100%);min-height:100vh;min-height:100dvh;padding:0;overflow:hidden;color:#334066;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.maple-master-shell{display:flex;min-height:100vh;min-height:100dvh;position:relative}
.maple-master-sidebar-toggle{position:fixed;top:18px;left:14px;z-index:90;border:none;border-radius:999px;background:var(--mm-accent);color:#fff;display:flex;align-items:center;gap:8px;padding:12px 18px;box-shadow:0 16px 36px var(--mm-accent-shadow);cursor:pointer;transition:transform .2s ease,box-shadow .2s ease}
.maple-master-sidebar-toggle:hover{transform:translateY(-1px);box-shadow:0 20px 40px var(--mm-accent-shadow)}
.mm-icon{font-size:16px;line-height:1;display:inline-block}
.maple-master-sidebar{width:300px;background:linear-gradient(180deg,#eef2fa 0%,#e8edf7 100%);border-right:1px solid rgba(90,104,150,.10);transition:transform .25s ease,margin .25s ease}
.maple-master-sidebar-inner{padding:88px 18px 28px}
.maple-master-shell.sidebar-collapsed .maple-master-sidebar{transform:translateX(-100%);margin-right:-300px}
.maple-master-brand-head{display:flex;align-items:center;gap:12px;padding:0 4px 14px}
.maple-master-brand-head img{width:36px;height:36px;border-radius:10px}
.maple-master-brand-head h2{margin:0;font-size:21px;letter-spacing:-.03em;color:#39476f}
.maple-master-divider{height:1px;background:rgba(90,104,150,.10);margin:0 -18px 20px}
.maple-master-section-title{font-size:12px;font-weight:900;letter-spacing:.04em;color:#3f4d73;margin:18px 8px 12px;text-transform:uppercase}
.maple-master-nav{display:flex;flex-direction:column;gap:10px}
.maple-master-nav-item{text-decoration:none;display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:18px;color:#4a5678;transition:background .18s ease,transform .18s ease,box-shadow .18s ease;border:none;background:transparent;cursor:pointer;font:inherit;text-align:left;width:100%}
.maple-master-nav-item:hover{background:rgba(255,255,255,.62);transform:translateX(1px)}
.maple-master-nav-item.is-active{background:#ffffff;box-shadow:0 14px 28px rgba(79,93,138,.10)}
.maple-master-nav-icon-wrap{width:36px;height:36px;border-radius:999px;background:#d7dced;display:inline-flex;align-items:center;justify-content:center;flex:0 0 36px}
.maple-master-nav-icon{font-size:16px;width:16px;height:16px;color:#677394;display:inline-flex;align-items:center;justify-content:center}
.maple-master-nav-label{flex:1;font-size:14px;font-weight:700}
.maple-master-nav-arrow{color:#98a2b3}
.maple-master-main{flex:1;min-width:0;padding:22px}
.maple-master-main-card{min-height:calc(100vh - 44px);min-height:calc(100dvh - 44px);background:linear-gradient(180deg,#f6f7fb 0%,#f1f4fa 100%);border:1px solid rgba(168,178,206,.18);border-radius:28px;overflow:hidden;box-shadow:0 28px 60px rgba(76,88,120,.08)}
.maple-master-main-topbar{height:72px;border-bottom:1px solid rgba(168,178,206,.16);display:flex;align-items:center;justify-content:space-between;padding:0 26px;color:#324166;font-weight:900;background:linear-gradient(90deg,rgba(255,255,255,.7),rgba(237,241,249,.65))}
.maple-master-main-topbar-title{font-size:16px;letter-spacing:.01em}
.maple-master-main-topbar-user{font-size:13px;color:#7f8ba8}
.maple-master-main-content{padding:22px 26px 30px;animation:mapleFadeIn .24s ease}
.maple-master-placeholder{max-width:340px;background:#fff;border:1px solid #e6e9f2;border-radius:28px;padding:24px 24px 26px;box-shadow:0 18px 40px rgba(15,23,42,.06)}
.maple-loading,.maple-error,.maple-toast{padding:14px 16px;border-radius:16px;margin-bottom:14px}
.maple-loading{background:var(--mm-accent-soft);color:var(--mm-accent)}
.maple-error{background:#fcecec;color:#a54040;border:1px solid #efcaca}
.maple-toast{position:fixed;right:18px;bottom:20px;z-index:70;background:var(--mm-accent);color:#fff;box-shadow:0 18px 34px var(--mm-accent-shadow);opacity:0;transform:translateY(12px);pointer-events:none;transition:.22s}
.maple-toast.is-visible{opacity:1;transform:translateY(0)}
@keyframes mapleFadeIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}

.maple-module{display:none}
.maple-module.is-active{display:block}

@media (max-width:900px){
  .maple-master-main{padding:12px}
  .maple-master-sidebar{position:fixed;top:0;left:0;bottom:0;z-index:85;box-shadow:0 24px 48px rgba(15,23,42,.18)}
  .maple-master-shell.sidebar-collapsed .maple-master-sidebar{transform:translateX(-100%);margin-right:0}
  .maple-master-main-content{padding:16px}
  .maple-master-main-card{min-height:calc(100vh - 24px);min-height:calc(100dvh - 24px);border-radius:22px}
}

/* ===== Runtime móvil (iPhone) ===== */
@media (max-width: 782px), (hover: none) and (pointer: coarse) {
  html,body{max-width:100%!important;overflow-x:hidden!important}
  .maple-master-wrap{width:100vw!important;max-width:100vw!important;min-height:100dvh!important;overflow-x:hidden!important;background:#f3f6fb!important}
  .maple-master-shell{display:block!important;min-height:100dvh!important}
  .maple-master-sidebar-toggle{top:calc(env(safe-area-inset-top,0px) + 12px)!important;left:14px!important;height:40px!important;padding:0 15px!important;border-radius:14px!important;gap:6px!important;z-index:90!important;box-shadow:0 12px 26px var(--mm-accent-shadow)!important}
  .maple-master-toggle-text{font-size:0!important;line-height:0!important}
  .maple-master-toggle-text:after{content:'Menú';font-size:12px!important;line-height:1!important;font-weight:900!important}
  .maple-master-sidebar{position:fixed!important;top:0!important;left:0!important;bottom:0!important;width:min(86vw,318px)!important;max-width:318px!important;z-index:80!important;overflow-y:auto!important;-webkit-overflow-scrolling:touch!important;border-right:1px solid rgba(90,104,150,.12)!important;box-shadow:0 24px 56px rgba(15,23,42,.22)!important;transform:translateX(0)!important;margin:0!important}
  .maple-master-shell.sidebar-collapsed .maple-master-sidebar{transform:translateX(-112%)!important;margin:0!important}
  .maple-master-shell:not(.sidebar-collapsed):after{content:'';position:fixed;inset:0;z-index:70;background:rgba(15,23,42,.32);backdrop-filter:blur(2px)}
  .maple-master-sidebar-inner{padding:calc(env(safe-area-inset-top,0px) + 64px) 16px 24px!important}
  .maple-master-nav-item{min-height:48px!important;border-radius:16px!important;padding:9px 10px!important}
  .maple-master-main{width:100%!important;min-width:0!important;padding:0!important}
  .maple-master-main-card{min-height:100dvh!important;border:none!important;border-radius:0!important;box-shadow:none!important;background:linear-gradient(180deg,#f8faff 0%,#eef3fa 100%)!important}
  .maple-master-main-topbar{position:sticky!important;top:0!important;z-index:45!important;height:auto!important;min-height:0!important;padding:calc(env(safe-area-inset-top,0px) + 12px) 14px 12px 118px!important;align-items:center!important;gap:8px!important;background:rgba(248,250,255,.92)!important;backdrop-filter:blur(14px)!important;border-bottom:1px solid rgba(168,178,206,.22)!important}
  .maple-master-main-topbar-title{font-size:15px!important;max-width:45vw!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .maple-master-main-topbar-tools{gap:8px!important;flex-wrap:nowrap!important;min-width:0!important}
  .maple-master-theme-btn{height:40px!important;padding:0 14px!important;font-size:12px!important;border-radius:14px!important}
  .maple-master-main-topbar-user{display:none!important}
  .maple-master-theme-menu{right:0!important;min-width:168px!important}
  .maple-master-main-content{padding:14px 12px 24px!important;animation:none!important}
  .maple-toast,.maple-links-toast{left:12px!important;right:12px!important;bottom:calc(env(safe-area-inset-bottom,0px) + 12px)!important;text-align:center!important}

  #mapleDailyRoot{overflow:hidden!important}
  .maple-daily-shell{width:100%!important;max-width:100%!important}
  .maple-daily-header{flex-direction:column!important;align-items:stretch!important;gap:14px!important;margin-bottom:14px!important}
  .maple-daily-title{font-size:clamp(32px,10vw,42px)!important;letter-spacing:-.055em!important;line-height:.96!important}
  .maple-daily-actions{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  .maple-pill-btn,.maple-ghost-btn,.maple-add-habit,.maple-fix-btn{width:100%!important;min-height:46px!important;justify-content:center!important;text-align:center!important}
  .maple-daily-overview{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin-bottom:12px!important}
  .maple-metric{border-radius:18px!important;padding:14px!important;min-height:94px!important}
  .maple-metric strong{font-size:28px!important}
  .maple-daily-table-card{border-radius:22px!important;padding:12px!important;overflow:hidden!important}
  .maple-daily-table-wrap{overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch!important;border-radius:18px!important}
  .maple-daily-table-wrap table{min-width:940px!important}
  .maple-daily-sticky-head,.maple-habit-name{position:sticky!important;left:0!important;z-index:6!important;min-width:156px!important;box-shadow:14px 0 18px rgba(42,55,90,.08)!important}
  .maple-habit-title{font-size:13px!important;max-width:96px!important}
  .maple-day-number{font-size:14px!important}
  .maple-percent-box{min-width:38px!important;font-size:10px!important}
  .maple-daily-bottom{flex-direction:column!important;align-items:stretch!important;gap:12px!important}

  .maple-weekly-header{flex-direction:column!important;align-items:stretch!important;gap:14px!important;margin-bottom:14px!important}
  .maple-weekly-title{font-size:clamp(32px,10vw,42px)!important;letter-spacing:-.055em!important}
  .maple-weekly-toolbar{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;gap:6px!important;width:100%!important;margin-left:0!important}
  .maple-weekly-toolbar .maple-pill-btn,.maple-weekly-toolbar .maple-ghost-btn{flex:1 1 0!important;width:auto!important;min-width:0!important;min-height:44px!important;padding:8px 4px!important;font-size:11px!important;line-height:1.15!important;white-space:normal!important;word-break:break-word!important;text-align:center!important;justify-content:center!important}
  .maple-week-summary{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important}
  .maple-summary-card{border-radius:18px!important;padding:14px!important}
  .maple-summary-card strong{font-size:30px!important}
  .maple-weekly-grid{display:grid!important;grid-template-columns:1fr!important;gap:14px!important}
  .maple-week-day{border-radius:22px!important;padding:14px!important}
  .maple-week-day-title{font-size:20px!important}
  .maple-week-add{grid-template-columns:1fr!important;gap:8px!important}
  .maple-week-add input,.maple-week-add button{height:46px!important;width:100%!important}
  .maple-week-task{align-items:flex-start!important;border-radius:18px!important;padding:12px!important;gap:10px!important}
  .maple-week-task-actions{display:flex!important;opacity:1!important;flex-wrap:wrap!important;gap:8px!important;width:100%!important;margin-top:8px!important}
  .maple-week-link-btn{flex:1 1 auto!important;min-height:34px!important}

  .maple-monthly{max-width:100%!important}
  .maple-monthly .main-head{flex-direction:column!important;align-items:stretch!important;gap:14px!important;margin-bottom:14px!important}
  .maple-monthly .main-actions{display:grid!important;grid-template-columns:1fr!important;gap:10px!important}
  .maple-monthly .ghost-btn,.maple-monthly .blue-btn,.maple-monthly .save,.maple-monthly .cancel,.maple-monthly .menu-btn,.maple-monthly .danger-btn{width:100%!important;min-height:44px!important}
  .maple-monthly .categories{display:grid!important;grid-template-columns:1fr!important;gap:14px!important}
  .maple-monthly .category-card{border-radius:22px!important;padding:16px!important;min-width:0!important}
  .maple-monthly input,.maple-monthly textarea,.maple-monthly select{max-width:100%!important;font-size:16px!important}

  .maple-ideas-top{flex-direction:column!important;gap:12px!important;margin-bottom:14px!important}
  .maple-ideas-title{font-size:clamp(32px,10vw,42px)!important;letter-spacing:-.055em!important}
  .maple-ideas-sub{font-size:15px!important;line-height:1.55!important}
  .maple-ideas-panel,.maple-idea-card{border-radius:22px!important;padding:16px!important}
  .maple-ideas-input{min-height:150px!important;font-size:16px!important;border-radius:18px!important}
  .maple-ideas-actions{display:grid!important;grid-template-columns:1fr!important}
  .maple-ideas-primary,.maple-ideas-secondary{width:100%!important;min-height:46px!important}

  .maple-links-header{flex-direction:column!important;align-items:stretch!important;gap:12px!important;margin-bottom:14px!important}
  .maple-links-title{font-size:clamp(32px,10vw,42px)!important;letter-spacing:-.055em!important}
  .maple-links-toolbar{flex-direction:column!important;align-items:stretch!important;gap:10px!important}
  .maple-links-toolbar-left,.maple-links-toolbar-right{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;width:100%!important}
  .maple-links-btn,.maple-links-ghost{width:100%!important;min-height:46px!important;justify-content:center!important}
  .maple-links-grid{display:grid!important;grid-template-columns:1fr!important;gap:14px!important}
  .maple-links-card{border-radius:22px!important;padding:16px!important}
  .maple-links-link-actions{opacity:1!important}
  .maple-links-color-menu{right:12px!important;left:12px!important;grid-template-columns:repeat(6,1fr)!important}
}

@media (max-width: 430px){
  .maple-daily-overview,.maple-week-summary{grid-template-columns:1fr!important}
  .maple-master-main-content{padding-left:10px!important;padding-right:10px!important}
  .maple-master-main-topbar-title{max-width:38vw!important}
  .maple-master-theme-btn{padding:0 9px!important}
}

/* backface-visibility:hidden fue eliminado: en iOS/WebKit convierte a este
   contenedor en el "containing block" de los elementos position:fixed
   dentro de él, rompiendo los modales de pantalla completa. */
.maple-master-main-content,.maple-daily-shell,.maple-weekly-shell,.maple-monthly,.maple-links-shell,.maple-ideas-shell{contain:style}
.maple-week-day{contain:layout style}
.maple-links-card,.maple-idea-card,.maple-monthly .category-card,.maple-monthly .goal-row{contain:layout style paint}
@media (prefers-reduced-motion: reduce){.maple-master-wrap *{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}

/* ===== Tema (colores) ===== */
.maple-master-wrap{--mm-accent:#4c63db;--mm-accent-strong:#3f56cf;--mm-accent-soft:#eef2fb;--mm-accent-text:#6f7fab;--mm-accent-shadow:rgba(76,99,219,.24);--mm-grad-1:#4c63db;--mm-grad-2:#6b84f0;--mm-pill:#4c63db;--mm-pill-shadow:rgba(76,99,219,.22);}
.maple-master-wrap.theme-azul{--mm-accent:#4c63db;--mm-accent-strong:#3f56cf;--mm-accent-soft:#eef2fb;--mm-accent-text:#6f7fab;--mm-accent-shadow:rgba(76,99,219,.24);--mm-grad-1:#4c63db;--mm-grad-2:#6b84f0;--mm-pill:#4c63db;--mm-pill-shadow:rgba(76,99,219,.22);}
.maple-master-wrap.theme-verde{--mm-accent:#22a06b;--mm-accent-strong:#1a8b5c;--mm-accent-soft:#e9faf2;--mm-accent-text:#3d8e6b;--mm-accent-shadow:rgba(34,160,107,.24);--mm-grad-1:#22a06b;--mm-grad-2:#2cb67d;--mm-pill:#22a06b;--mm-pill-shadow:rgba(34,160,107,.22);}
.maple-master-wrap.theme-rosa{--mm-accent:#d64f9a;--mm-accent-strong:#bd3f85;--mm-accent-soft:#fff0f8;--mm-accent-text:#c26195;--mm-accent-shadow:rgba(214,79,154,.24);--mm-grad-1:#d64f9a;--mm-grad-2:#e57ab4;--mm-pill:#d64f9a;--mm-pill-shadow:rgba(214,79,154,.22);}
.maple-master-wrap.theme-rojo{--mm-accent:#d9485f;--mm-accent-strong:#c0364d;--mm-accent-soft:#fff0f2;--mm-accent-text:#c75d72;--mm-accent-shadow:rgba(217,72,95,.24);--mm-grad-1:#d9485f;--mm-grad-2:#ee6a7f;--mm-pill:#d9485f;--mm-pill-shadow:rgba(217,72,95,.22);}
.maple-master-wrap.theme-negro{--mm-accent:#2b2f38;--mm-accent-strong:#1f232b;--mm-accent-soft:#eef0f4;--mm-accent-text:#6b7280;--mm-accent-shadow:rgba(43,47,56,.24);--mm-grad-1:#2b2f38;--mm-grad-2:#4a5260;--mm-pill:#2b2f38;--mm-pill-shadow:rgba(43,47,56,.22);}
.maple-master-sidebar-toggle,.maple-toast,.blue-btn,.maple-ideas-primary,.maple-pill-btn,.maple-fix-btn,.maple-add-habit,.maple-links-btn{background:var(--mm-accent)!important;color:#fff!important;box-shadow:0 16px 36px var(--mm-accent-shadow)!important;border-color:transparent!important}
.maple-master-sidebar-toggle:hover,.blue-btn:hover,.maple-ideas-primary:hover,.maple-pill-btn:hover,.maple-fix-btn:hover,.maple-add-habit:hover,.maple-links-btn:hover{background:var(--mm-accent-strong)!important}
.maple-master-nav-item.is-active .maple-master-nav-icon-wrap,.maple-master-nav-item:hover .maple-master-nav-icon-wrap{background:var(--mm-accent-soft)!important}
.maple-master-nav-item.is-active .maple-master-nav-icon,.maple-master-nav-item:hover .maple-master-nav-icon{color:var(--mm-accent)!important}
.maple-daily-sticky-head{background:linear-gradient(135deg,var(--mm-grad-1),var(--mm-grad-2))!important}
.maple-percent-box.maple-p-high{background:#edf8f1!important;color:#3d8e6b!important}
.maple-monthly .complete{background:var(--mm-accent)!important}
#mapleDailyRoot input[type=checkbox],.maple-week-task input[type=checkbox]{accent-color:var(--mm-accent)!important}
.maple-master-theme-wrap{position:relative;display:flex;align-items:center;gap:10px}
.maple-master-main-topbar-tools{display:flex;align-items:center;gap:12px}
.maple-master-theme-btn{height:38px;border:none;border-radius:999px;padding:0 14px;background:var(--mm-accent-soft);color:#56637f;font-weight:800;display:inline-flex;align-items:center;gap:8px;cursor:pointer;box-shadow:0 10px 22px rgba(78,93,130,.08)}
.maple-master-theme-btn .mm-icon{font-size:16px;color:var(--mm-accent)}
.maple-master-theme-menu{position:absolute;top:calc(100% + 10px);right:0;min-width:190px;padding:10px;background:#fff;border:1px solid #e4eaf5;border-radius:18px;box-shadow:0 22px 48px rgba(49,66,105,.16);z-index:60}
.maple-master-theme-menu.hidden{display:none}
.maple-master-theme-option{width:100%;display:flex;align-items:center;gap:10px;border:none;background:transparent;padding:10px 12px;border-radius:12px;font-weight:700;color:#52617b;cursor:pointer;text-align:left}
.maple-master-theme-option:hover{background:#f5f7fb}
.maple-master-theme-option .swatch{width:16px;height:16px;border-radius:50%;display:inline-block;border:1px solid rgba(0,0,0,.06)}
.swatch.azul{background:#4c63db}.swatch.verde{background:#22a06b}.swatch.rosa{background:#d64f9a}.swatch.rojo{background:#d9485f}.swatch.negro{background:#2b2f38}
.maple-master-wrap.theme-negro .maple-master-sidebar-toggle,.maple-master-wrap.theme-negro .blue-btn,.maple-master-wrap.theme-negro .maple-pill-btn,.maple-master-wrap.theme-negro .maple-ideas-primary,.maple-master-wrap.theme-negro .maple-fix-btn,.maple-master-wrap.theme-negro .maple-add-habit{color:#fff!important}

/* ===== Diálogo modal genérico (MapleDialog) ===== */
.maple-dialog-backdrop{position:fixed;inset:0;z-index:1000000;display:flex;align-items:center;justify-content:center;padding:18px;background:rgba(20,29,48,.22);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);animation:mapleDialogFade .16s ease}
.maple-dialog-box{width:min(460px,calc(100vw - 28px));max-height:calc(100vh - 32px);overflow:auto;background:linear-gradient(180deg,#ffffff 0%,#f6f8fd 100%);border:1px solid rgba(221,228,240,.96);border-radius:26px;box-shadow:0 28px 72px rgba(26,38,67,.24);padding:18px;color:#1f2b45;animation:mapleDialogPop .18s ease}
.maple-dialog-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:14px}
.maple-dialog-icon{width:42px;height:42px;border-radius:16px;background:var(--mm-accent-soft,#e8eefc);color:var(--mm-accent,#5278e5);display:flex;align-items:center;justify-content:center;font-size:18px;font-weight:900;flex:0 0 42px}
.maple-dialog-title{margin:0;color:#202944;font-size:22px;line-height:1.05;font-weight:900;letter-spacing:-.04em}
.maple-dialog-message{margin:6px 0 0;color:#71809a;font-size:14px;line-height:1.45}
.maple-dialog-form{display:grid;gap:10px;margin:10px 0 2px}
.maple-dialog-field{display:grid;gap:6px}
.maple-dialog-label{font-size:12px;font-weight:900;color:#63708f;letter-spacing:.04em;text-transform:uppercase}
.maple-dialog-input,.maple-dialog-textarea,.maple-dialog-select{width:100%;border:1px solid #dfe6f3;border-radius:16px;background:#fff;color:#111827;outline:none;padding:12px 13px;font:700 14px/1.35 Inter,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;box-shadow:inset 0 1px 0 rgba(255,255,255,.8);transition:border-color .14s ease,box-shadow .14s ease}
.maple-dialog-textarea{min-height:118px;resize:vertical}
.maple-dialog-input:focus,.maple-dialog-textarea:focus,.maple-dialog-select:focus{border-color:var(--mm-accent,#5278e5);box-shadow:0 0 0 4px var(--mm-accent-soft,#e8eefc)}
.maple-dialog-help{font-size:12px;color:#8a95b2;line-height:1.4}
.maple-dialog-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:16px}
.maple-dialog-btn{border:0;border-radius:16px;min-height:44px;padding:0 18px;font-size:14px;font-weight:900;cursor:pointer;transition:transform .14s ease,box-shadow .14s ease,opacity .14s ease}
.maple-dialog-btn:hover{transform:translateY(-1px)}
.maple-dialog-cancel{background:#edf2f8;color:#44516a}
.maple-dialog-primary{background:var(--mm-accent,#5278e5);color:#fff;box-shadow:0 12px 24px var(--mm-accent-shadow,rgba(82,120,229,.20))}
.maple-dialog-danger .maple-dialog-primary{background:#e85f5f;box-shadow:0 12px 24px rgba(232,95,95,.20)}
body.maple-dialog-open{overflow:hidden}
@keyframes mapleDialogFade{from{opacity:0}to{opacity:1}}
@keyframes mapleDialogPop{from{opacity:0;transform:translateY(10px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:560px){.maple-dialog-backdrop{align-items:flex-end;padding:10px}.maple-dialog-box{width:100%;border-radius:24px;padding:16px}.maple-dialog-actions{display:grid;grid-template-columns:1fr 1fr}.maple-dialog-alert .maple-dialog-actions{grid-template-columns:1fr}.maple-dialog-btn{width:100%}}
.maple-dialog-daypicker{position:relative}
.maple-dialog-daypicker-btn{width:100%;text-align:left;border:1px solid #dfe6f3;border-radius:16px;background:#fff;color:#111827;outline:none;padding:12px 13px;font:700 14px/1.35 Inter,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;box-shadow:inset 0 1px 0 rgba(255,255,255,.8);cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:8px;transition:border-color .14s ease,box-shadow .14s ease}
.maple-dialog-daypicker-btn:hover{border-color:#c7d2eb}
.maple-dialog-daypicker-btn .mm-icon{color:#8a95b2;flex:0 0 auto}
.maple-dialog-daypicker-panel{position:absolute;top:calc(100% + 6px);left:0;right:0;z-index:20;background:#fff;border:1px solid #e3e8f2;border-radius:16px;padding:8px;box-shadow:0 18px 40px rgba(20,30,55,.16);display:grid;gap:2px;max-height:220px;overflow:auto}
.maple-dialog-daypicker-panel.hidden{display:none}
.maple-dialog-day-opt{display:flex;align-items:center;gap:10px;padding:9px 10px;border-radius:12px;cursor:pointer;font-weight:700;color:#3f4d73;font-size:13px}
.maple-dialog-day-opt:hover{background:#f3f6fc}
.maple-dialog-day-opt input{width:18px;height:18px;flex:0 0 18px;accent-color:var(--mm-accent,#5278e5)}

/* ===== Hábitos Diarios ===== */
#mapleDailyRoot{font-family:Inter,system-ui,-apple-system,sans-serif;color:#111827;position:relative}#mapleDailyRoot,#mapleDailyRoot *{box-sizing:border-box}.maple-daily-shell{width:100%;contain:style}.maple-daily-header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:14px}.maple-daily-title{margin:0;font-size:54px;line-height:.96;letter-spacing:-.06em;color:#0f172a}.maple-daily-actions{display:flex;gap:10px;flex-wrap:wrap}.maple-pill-btn{border:none;background:var(--mm-pill);color:#fff;border-radius:999px;padding:14px 20px;font-weight:800;cursor:pointer;box-shadow:0 12px 26px var(--mm-pill-shadow)}.maple-ghost-btn{border:1px solid #dde4f0;background:#fff;color:#586680;border-radius:16px;padding:12px 16px;font-weight:800;cursor:pointer}.maple-daily-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:14px}.maple-metric{background:#fff;border:1px solid #e7ebf3;border-radius:20px;padding:14px 16px;box-shadow:0 14px 30px rgba(15,23,42,.05)}.maple-metric small{display:block;text-transform:uppercase;letter-spacing:.16em;font-size:10px;color:#94a0bc;font-weight:800;margin-bottom:8px}.maple-metric strong{font-size:24px;letter-spacing:-.04em;color:#101826}.maple-metric span{display:block;margin-top:8px;color:#7f8aa7;font-size:13px}.maple-daily-table-card{background:linear-gradient(180deg,#eceff6 0%,#e8ebf3 100%);border:1px solid #e3e8f2;border-radius:28px;box-shadow:0 18px 40px rgba(60,72,100,.08);overflow:hidden}.maple-daily-table-wrap{padding:14px;overflow:auto;scrollbar-gutter:stable;isolation:isolate}.maple-daily-table-wrap table{border-collapse:separate;border-spacing:8px 10px;width:max-content;min-width:100%}#mapleDailyRoot thead th,#mapleDailyRoot tbody td{border:none;background:#f8f9fc;border-radius:14px;background-clip:padding-box}#mapleDailyRoot thead th{min-width:56px;padding:10px 6px;text-align:center;color:#7e89aa;font-size:11px;letter-spacing:.12em;text-transform:uppercase;font-weight:800;position:sticky;top:0;z-index:3}.maple-daily-sticky-head{min-width:300px!important;background:linear-gradient(135deg,var(--mm-grad-1),var(--mm-grad-2))!important;color:#fff!important;font-size:18px;left:0;z-index:7!important;box-shadow:18px 0 26px rgba(232,235,243,.98)}.maple-day-name{display:block;font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:#7f8aaa;font-weight:800;margin-bottom:4px}.maple-day-number{display:block;font-size:22px;font-weight:800;letter-spacing:-.04em;color:#5c6889;line-height:1;margin-bottom:6px}.maple-percent-box{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:26px;padding:0 6px;border-radius:10px;font-size:12px;font-weight:800;background:#eef2fb;color:#8290b4}.maple-p-low{background:#f7edef;color:#d88484}.maple-p-midlow{background:#fbf3e5;color:#d39a4d}.maple-p-mid{background:#f7f4df;color:#b59c3c}.maple-p-high{background:#edf8f1;color:#3d8e6b}.maple-habit-name{position:sticky;left:0;z-index:6;min-width:300px;max-width:300px;background:transparent!important;padding:0;box-shadow:18px 0 26px rgba(232,235,243,.98)}.maple-habit-name-inner{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:10px 14px;min-height:56px;border-radius:14px;background:#f7f7fb;border:1px solid #eef1f7}.maple-habit-label{display:flex;align-items:flex-start;gap:10px;min-width:0;flex:1}.maple-habit-handle{cursor:grab;color:#d1d7e7;line-height:1.35;user-select:none;touch-action:none}.maple-habit-title{font-size:14px;font-weight:800;color:#677394;line-height:1.35;letter-spacing:.03em;text-transform:uppercase;word-break:break-word;flex:1}.maple-habit-actions{display:flex;align-items:center;gap:6px;flex:0 0 auto}.maple-habit-delete,.maple-note-btn{width:28px;height:28px;flex:0 0 28px;border-radius:10px;border:1px solid #eceff5;background:#fafbfd;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;line-height:1}.maple-habit-delete{color:#e38d8d;font-size:16px}.maple-note-btn{position:relative;color:#8a95b2;font-weight:900;font-size:12px;letter-spacing:-1px}.maple-note-btn:hover,.maple-note-btn.active{color:var(--mm-accent,#2f80ed);border-color:#d8e5ff;background:#f3f7ff}.maple-note-btn.active::after{content:"";position:absolute;top:4px;right:4px;width:8px;height:8px;border-radius:999px;background:var(--mm-accent,#2f80ed);border:2px solid #fff;box-shadow:0 2px 8px rgba(47,128,237,.35)}.maple-check-cell{display:flex;align-items:center;justify-content:center;min-height:46px}#mapleDailyRoot input[type=checkbox]{appearance:none;-webkit-appearance:none;position:relative;width:26px;height:26px;border-radius:9px;border:2px solid #d8dfef;background:#fff;cursor:pointer;transition:border-color .14s ease,background-color .14s ease,box-shadow .14s ease}#mapleDailyRoot input[type=checkbox]:hover{border-color:#c7d2eb}#mapleDailyRoot input[type=checkbox]:checked{background:linear-gradient(180deg,#95aaf6,#88a0f0);border-color:#95aaf6;box-shadow:0 8px 18px rgba(116,143,236,.18)}#mapleDailyRoot input[type=checkbox]:checked::after{content:"";position:absolute;left:8px;top:3px;width:6px;height:11px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}.maple-daily-bottom{padding:0 14px 14px;display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap}.maple-rule-tools{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.maple-rule-select{min-height:46px;border-radius:16px;border:1px solid #dde4f0;background:#fff;color:#5e6d92;font-weight:800;padding:0 14px;outline:none;cursor:pointer}.maple-add-habit,.maple-add-rule{border:1px solid #dde4f0;background:#fff;color:#5e6d92;border-radius:16px;padding:12px 18px;font-weight:800;cursor:pointer}.maple-rule-row td{background:transparent!important;padding:0!important;border-radius:0!important;box-shadow:none!important}.maple-color-rule{position:relative;width:100%;height:16px;border-radius:999px;cursor:grab;box-shadow:0 8px 18px rgba(15,23,42,.10);border:1px solid rgba(255,255,255,.55);touch-action:none}.maple-color-rule:active{cursor:grabbing}.maple-rule-drag{position:sticky;left:14px;display:inline-flex;align-items:center;justify-content:center;width:36px;height:14px;border-radius:999px;color:rgba(255,255,255,.82);font-size:11px;letter-spacing:-1px;user-select:none}.maple-rule-blue{background:linear-gradient(90deg,#2f80ed,#5e8df2)}.maple-rule-red{background:linear-gradient(90deg,#ff2d2d,#ff6b6b)}.maple-rule-green{background:linear-gradient(90deg,#00b96b,#21d98c)}.maple-rule-yellow{background:linear-gradient(90deg,#f5b72f,#ffd166)}.maple-rule-purple{background:linear-gradient(90deg,#8b5cf6,#a78bfa)}.sortable-ghost .maple-color-rule,.sortable-ghost .maple-habit-name-inner{opacity:.45}.sortable-chosen .maple-color-rule,.sortable-chosen .maple-habit-name-inner{box-shadow:0 16px 34px rgba(47,128,237,.16)}.maple-note-backdrop{display:none;position:fixed;inset:0;z-index:999998;background:transparent;pointer-events:auto}.maple-note-backdrop.open{display:block}.maple-note-modal{display:none;position:absolute;width:min(380px,calc(100vw - 32px));max-height:calc(100vh - 40px);overflow:auto;padding:16px;border:1px solid #dfe6f3;border-radius:22px;background:#fff;box-shadow:0 24px 60px rgba(25,36,65,.20);z-index:999999;contain:style}.maple-note-modal.open{display:block}.maple-note-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}.maple-note-title{color:#111827;font-size:17px;line-height:1.2;font-weight:900;letter-spacing:-.02em;word-break:break-word}.maple-note-close{width:34px;height:34px;flex:0 0 34px;border-radius:12px;border:1px solid #eceff5;background:#fafbfd;color:#e38d8d;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-size:18px;line-height:1}.maple-note-input{width:100%;min-height:116px;resize:vertical;border:1px solid #e1e7f2;border-radius:14px;padding:10px 12px;background:#f9fbff;color:#111827;font:600 13px/1.45 Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;outline:none}.maple-note-input:focus{border-color:#9bb7f2;box-shadow:0 0 0 4px rgba(47,128,237,.10)}.maple-note-preview{display:none;margin-top:10px;max-height:120px;overflow:auto;padding:10px 12px;border-radius:14px;background:#f4f6fb;color:#657291;font-size:13px;line-height:1.45;white-space:pre-wrap;word-break:break-word}.maple-note-preview.has-links{display:block}.maple-note-preview a{color:var(--mm-accent,#2f80ed);font-weight:800;text-decoration:none}.maple-note-preview a:hover{text-decoration:underline}.maple-daily-categorybar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:0 0 14px}.maple-daily-category-left,.maple-daily-category-right{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.maple-daily-menu-wrap{position:relative;display:inline-flex}.maple-daily-menu-btn{min-width:210px;border:none;background:linear-gradient(135deg,var(--mm-grad-1),var(--mm-grad-2));color:#fff;border-radius:18px;padding:13px 18px;font-weight:900;text-align:left;cursor:pointer;box-shadow:0 12px 26px rgba(47,128,237,.13);text-transform:uppercase;letter-spacing:.04em}.maple-daily-menu-btn span{float:right;margin-left:12px}.maple-daily-menu-panel{position:absolute;top:calc(100% + 8px);left:0;min-width:240px;max-height:260px;overflow:auto;background:#fff;border:1px solid #e3e8f2;border-radius:18px;padding:8px;box-shadow:0 22px 44px rgba(20,30,55,.16);z-index:40}.maple-daily-menu-panel.hidden{display:none}.maple-daily-menu-item{width:100%;display:block;text-align:left;border:none;background:transparent;color:#64708f;border-radius:12px;padding:10px 12px;font-weight:850;cursor:pointer}.maple-daily-menu-item:hover,.maple-daily-menu-item.is-active{background:#f1f5ff;color:var(--mm-accent,#2f80ed)}.maple-daily-danger{border:1px solid #f3d7d7;background:#fff;color:#e38d8d;border-radius:16px;padding:12px 15px;font-weight:900;cursor:pointer}.maple-daily-empty{padding:34px 18px;text-align:center;color:#7f8aa7;font-weight:800}.maple-daily-table-wrap.is-empty table{width:100%;min-width:100%}@media(max-width:1100px){.maple-daily-overview{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:760px){.maple-daily-overview{grid-template-columns:1fr}.maple-daily-header{flex-direction:column}.maple-daily-title{font-size:40px}.maple-daily-actions,.maple-rule-tools{width:100%}.maple-rule-select,.maple-add-rule,.maple-add-habit{flex:1 1 100%}.maple-daily-sticky-head,.maple-habit-name{min-width:240px!important;max-width:240px}.maple-habit-title{font-size:12px}.maple-daily-table-wrap table{border-spacing:6px 8px}#mapleDailyRoot thead th{min-width:50px;padding:8px 4px}.maple-day-number{font-size:18px}}

/* ===== Hábitos Semanales ===== */
#mapleWeeklyRoot{font-family:Inter,system-ui,-apple-system,sans-serif;color:#111827}.maple-weekly-shell{width:100%}.maple-weekly-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}.maple-weekly-title{margin:0;font-size:54px;line-height:.96;letter-spacing:-.06em;color:#0f172a}.maple-weekly-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin-left:auto}.maple-weekly-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.maple-week-day{background:linear-gradient(180deg,#e9eef8 0%,#e3e9f6 100%);border-radius:20px;padding:16px;box-shadow:0 18px 36px rgba(15,23,42,.10)}.maple-week-day-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.maple-week-day-title{margin:0;color:#354264;font-size:20px}.maple-week-task-list{display:flex;flex-direction:column;gap:8px;min-height:36px}.maple-week-task{display:flex;align-items:flex-start;gap:10px;background:#f5f6fb;color:#1f2937;border-radius:12px;padding:10px 12px;position:relative}.maple-week-task.pinned{border-left:4px solid #00c853}.maple-week-task.is-completed{background:#eef7f0;border:1px solid #cce9d3}.maple-week-task.is-completed .maple-week-task-label{text-decoration:line-through;opacity:.72}.maple-week-task-main{display:flex;gap:8px;flex:1;min-width:0;padding-right:132px}.maple-week-task-label{flex:1;min-width:0;word-break:break-word}.maple-week-task-actions{position:absolute;right:10px;top:10px;display:flex;gap:8px;opacity:0;transition:.18s}.maple-week-task:hover .maple-week-task-actions{opacity:1}.maple-week-link-btn{border:none;background:none;padding:0;color:var(--mm-accent);font-weight:800;font-size:12px;cursor:pointer}.maple-week-link-btn.repeat{color:#7b88b3}.maple-week-task input[type=checkbox]{width:18px;height:18px;accent-color:#7b88b3}.maple-week-add{margin-top:10px;display:flex;gap:6px}.maple-week-add input{flex:1;padding:10px 12px;border-radius:10px;border:none}.maple-week-add button{border:none;border-radius:10px;background:var(--mm-accent);color:#fff;padding:0 14px;font-weight:800;cursor:pointer}.maple-week-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:16px}.maple-summary-card{background:#fff;border:1px solid #e7ebf3;border-radius:18px;padding:14px 16px;box-shadow:0 14px 30px rgba(15,23,42,.05)}.maple-summary-card small{display:block;text-transform:uppercase;letter-spacing:.16em;font-size:10px;color:#94a0bc;font-weight:800;margin-bottom:8px}.maple-summary-card strong{font-size:24px;letter-spacing:-.04em}.maple-summary-card span{display:block;margin-top:8px;color:#7f8aa7;font-size:13px}@media(max-width:1000px){.maple-weekly-grid,.maple-week-summary{grid-template-columns:1fr}}@media(max-width:760px){.maple-weekly-title{font-size:40px}.maple-weekly-header{flex-direction:column}.maple-week-task{display:grid;grid-template-columns:24px minmax(0,1fr);grid-template-areas:"check main" "actions actions";align-items:flex-start;gap:8px 10px;padding:12px 14px}.maple-week-task input[type=checkbox]{grid-area:check;flex:0 0 18px;margin-top:2px}.maple-week-task-main{grid-area:main;padding-right:0;width:100%;min-width:0}.maple-week-task-label{display:block;width:100%;white-space:normal;word-break:normal;overflow-wrap:break-word;line-height:1.42}.maple-week-task-actions{grid-area:actions;opacity:1;position:static;margin:6px 0 0 34px;display:flex;flex-wrap:wrap;justify-content:flex-start;gap:14px}.maple-week-link-btn{font-size:11px;line-height:1.2;white-space:nowrap}.maple-week-day{padding:14px 12px}}.maple-week-confetti{position:fixed;width:10px;height:16px;border-radius:3px;pointer-events:none;z-index:9999;animation:mapleWeekConfettiFall linear forwards}@keyframes mapleWeekConfettiFall{0%{opacity:1;transform:translate3d(0,0,0) rotate(0deg)}100%{opacity:0;transform:translate3d(calc((var(--drift,0) * 1px)),110vh,0) rotate(520deg)}}

/* ===== Tareas (mensual) ===== */
#mapleMonthlyRoot{max-width:100%}.maple-monthly{max-width:1280px;margin:0 auto;font-family:Inter,system-ui,-apple-system,sans-serif;color:#1f2b45}.maple-monthly .main-head{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:22px}.maple-monthly .main-actions{display:flex;gap:12px;flex-wrap:wrap}.maple-monthly .ghost-btn,.maple-monthly .blue-btn,.maple-monthly .save,.maple-monthly .cancel,.maple-monthly .menu-btn,.maple-monthly .danger-btn{border:none;border-radius:16px;padding:12px 18px;font-weight:800;cursor:pointer}.maple-monthly .ghost-btn{background:#eef2fb;color:#586680}.maple-monthly .danger-btn{width:48px;min-width:48px;height:48px;display:inline-flex;align-items:center;justify-content:center;padding:0;border-radius:16px;background:#ffffff;color:#6b7280;border:1px solid #e5e7eb;font-size:18px;line-height:1;box-shadow:0 8px 18px rgba(99,115,145,.08)}.maple-monthly .blue-btn,.maple-monthly .save{background:#5278e5;color:#fff;box-shadow:0 12px 24px rgba(82,120,229,.18)}.maple-monthly .cancel{background:#edf2f8;color:#44516a}.maple-monthly .menu-wrap{position:relative}.maple-monthly .menu-btn{display:inline-flex;align-items:center;justify-content:space-between;gap:12px;min-width:230px;background:linear-gradient(180deg,#f6f8fd 0%,#eef2fb 100%);color:#4f5f83;border:1px solid #e2e8f5;box-shadow:0 10px 22px rgba(77,96,140,.08);padding:12px 18px 12px 20px;transition:transform .18s ease,box-shadow .18s ease,background .18s ease}.maple-monthly .menu-btn:hover{transform:translateY(-1px);box-shadow:0 14px 28px rgba(77,96,140,.12);background:linear-gradient(180deg,#ffffff 0%,#eef3fd 100%)}.maple-monthly .menu-btn .menu-caret{font-size:13px;line-height:1;color:#7b88a9}.maple-monthly .menu-panel{position:absolute;top:calc(100% + 10px);left:0;z-index:25;min-width:260px;padding:10px;background:#fff;border:1px solid #e4eaf5;border-radius:18px;box-shadow:0 22px 48px rgba(49,66,105,.16)}.maple-monthly .menu-panel.hidden{display:none}.maple-monthly .menu-item{display:flex;width:100%;align-items:center;justify-content:space-between;border:none;background:transparent;padding:11px 12px;border-radius:12px;color:#556482;font-weight:700;text-align:left;cursor:pointer;transition:background .16s ease,color .16s ease}.maple-monthly .menu-item:hover{background:#f3f6fc;color:#32486f}.maple-monthly .menu-item.is-active{background:#eef3ff;color:#4568cc}.maple-monthly .categories{display:flex;flex-direction:column;gap:22px}.maple-monthly .category-card{background:#eef0f7;border-radius:34px;padding:26px 34px;box-shadow:0 16px 34px rgba(51,72,112,.05)}.maple-monthly .category-head{display:flex;justify-content:space-between;align-items:center;gap:12px;cursor:pointer}.maple-monthly .category-title{display:flex;align-items:center;gap:18px;flex-wrap:wrap}.maple-monthly .category-title h2{margin:0;font-size:26px;color:#5f6891;letter-spacing:.04em;text-transform:uppercase;cursor:text;transition:opacity .16s ease}.maple-monthly .category-title h2:hover{opacity:.82}.maple-monthly .category-icons{display:flex;align-items:center;gap:16px;font-size:34px;color:#111}.maple-monthly .category-panel{padding-top:18px}.maple-monthly .goals{display:flex;flex-direction:column;gap:12px;padding:10px 10px 0 12px}.maple-monthly .goal-row{display:grid;grid-template-columns:minmax(0,1fr) 190px auto;gap:18px;align-items:center;padding:12px 10px;border-radius:18px;background:rgba(255,255,255,.55)}.maple-monthly .goal-date{font-weight:800;color:#6a7398;text-transform:uppercase;font-size:14px;text-align:right;min-height:18px;white-space:nowrap}.maple-monthly .goal-title{font-size:15px;font-weight:800;color:#58627f;letter-spacing:.02em;text-transform:uppercase;min-width:0;word-break:break-word;cursor:pointer;transition:opacity .16s ease}.maple-monthly .goal-title:hover{opacity:.82}.maple-monthly .goal-actions{display:flex;gap:8px}.maple-monthly .goal-actions button{width:38px;height:38px;border-radius:999px;border:none;background:#fff;color:#4c5a7b;cursor:pointer;box-shadow:0 8px 18px rgba(42,57,88,.08)}.maple-monthly .goal-actions button.complete{background:var(--mm-accent);color:#fff!important}.maple-monthly .empty{padding:10px 4px 4px;color:#77809d}.maple-monthly .hidden{display:none !important}.maple-monthly .modal{position:fixed;inset:0;background:rgba(17,24,39,.32);display:flex;justify-content:center;align-items:center;z-index:99999;padding:20px}.maple-monthly .modal-box{background:#fff;padding:24px;border-radius:20px;width:min(92vw,420px);box-shadow:0 22px 50px rgba(17,24,39,.18)}.maple-monthly .modal-box h3{margin:0 0 14px;color:#24314d}.maple-monthly .modal-box input,.maple-monthly .modal-box select{width:100%;margin-bottom:12px;padding:12px 14px;border-radius:14px;border:1px solid #dde5f2;box-sizing:border-box;background:#fff}.maple-monthly .modal-inline{display:flex;gap:10px;align-items:center}.maple-monthly .modal-inline input{margin-bottom:0;flex:1}.maple-monthly .modal-actions{display:flex;justify-content:space-between;gap:10px;margin-top:8px}.maple-monthly #mapleMonthlyConfetti{position:fixed;inset:0;pointer-events:none;z-index:100000}@media (max-width:980px){.maple-monthly .main-head{flex-direction:column;align-items:flex-start}.maple-monthly .category-card{padding:22px 20px}.maple-monthly .goal-row{grid-template-columns:1fr;gap:8px}.maple-monthly .goal-date{text-align:left}}

/* ===== Mis Enlaces ===== */
#mapleLinksRoot{position:relative;width:100%;max-width:100%;padding:6px 0 0;font-family:Inter,system-ui,-apple-system,sans-serif;color:#334066}#mapleLinksRoot *{box-sizing:border-box}.maple-links-shell{width:100%;max-width:100%}.maple-links-header{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;flex-wrap:wrap;margin-bottom:18px}.maple-links-title{margin:0;font-size:clamp(48px,4vw,64px);line-height:.96;letter-spacing:-.06em;color:#273458}.maple-links-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}.maple-links-toolbar-left,.maple-links-toolbar-right{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.maple-links-btn,.maple-links-ghost{border:none;border-radius:16px;padding:13px 18px;font-weight:800;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease,background .18s ease}.maple-links-btn{box-shadow:0 16px 30px rgba(76,99,219,.22)}.maple-links-btn:hover,.maple-links-ghost:hover{transform:translateY(-1px)}.maple-links-ghost{background:#eef2fb;color:#586680}.maple-links-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:18px}.maple-links-card{position:relative;background:linear-gradient(180deg,var(--card-top,#8091f4) 0%,var(--card-bottom,#7284e8) 100%);color:#fff;border-radius:26px;padding:18px 18px 16px;box-shadow:0 22px 42px rgba(76,99,219,.18);transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;overflow:visible}.maple-links-card:hover{transform:translateY(-2px);box-shadow:0 28px 48px rgba(76,99,219,.2)}.maple-links-card.compact .maple-links-list,.maple-links-card.compact .maple-links-add{display:none}.maple-links-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.maple-links-card-title{margin:0;font-size:22px;line-height:1.1;letter-spacing:-.03em;flex:1;min-width:0;word-break:break-word}.maple-links-card-tools{display:flex;gap:8px;flex-wrap:wrap}.maple-links-tool{width:34px;height:34px;border:none;border-radius:12px;background:rgba(255,255,255,.18);color:#fff;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;backdrop-filter:blur(8px)}.maple-links-tool:hover{background:rgba(255,255,255,.24)}.maple-links-list{display:flex;flex-direction:column;gap:10px;margin-top:16px}.maple-links-link{display:flex;align-items:center;gap:8px}.maple-links-link a{flex:1;min-width:0;text-decoration:none;color:#fff;background:rgba(255,255,255,.16);padding:11px 13px;border-radius:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;border:1px solid rgba(255,255,255,.12)}.maple-links-link a:hover{background:rgba(255,255,255,.20)}.maple-links-link-actions{display:flex;gap:6px;opacity:0;transition:opacity .18s ease}.maple-links-link:hover .maple-links-link-actions{opacity:1}.maple-links-link-btn{width:32px;height:32px;border:none;border-radius:10px;background:rgba(255,255,255,.18);color:#fff;cursor:pointer}.maple-links-link-btn:hover{background:rgba(255,255,255,.24)}.maple-links-add{margin-top:14px;border:none;border-radius:14px;background:rgba(255,255,255,.14);color:#fff;padding:11px 14px;font-weight:800;cursor:pointer;width:100%;text-align:left}.maple-links-add:hover{background:rgba(255,255,255,.20)}.maple-links-empty{background:linear-gradient(180deg,#ffffff 0%,#f7f8fc 100%);border:1px solid #e7ebf3;border-radius:26px;padding:28px;color:#73809d;box-shadow:0 18px 38px rgba(64,78,112,.08)}.maple-links-color-menu{position:absolute;top:58px;right:18px;background:#fff;border:1px solid #e7ebf3;border-radius:18px;padding:10px;display:none;grid-template-columns:repeat(6,1fr);gap:8px;box-shadow:0 18px 38px rgba(64,78,112,.16);z-index:8}.maple-links-color-menu.is-open{display:grid}.maple-links-color-swatch{width:24px;height:24px;border-radius:10px;border:1px solid rgba(0,0,0,.08);cursor:pointer}.maple-links-toast{position:fixed;right:18px;bottom:18px;background:#273458;color:#fff;padding:12px 16px;border-radius:14px;box-shadow:0 16px 32px rgba(39,52,88,.24);opacity:0;transform:translateY(8px);pointer-events:none;transition:opacity .2s ease,transform .2s ease;z-index:60}.maple-links-toast.is-visible{opacity:1;transform:translateY(0)}@media (max-width:900px){.maple-links-grid{grid-template-columns:1fr}.maple-links-link-actions{opacity:1}}

/* ===== Ideas y Notas ===== */
#mapleIdeasRoot{position:relative;width:100%;max-width:100%;margin:0;padding:6px 0 0;font-family:Inter,system-ui,-apple-system,sans-serif;color:#324166;box-sizing:border-box;overflow:hidden}.maple-ideas-shell{width:100%;max-width:100%;margin:0}.maple-ideas-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}.maple-ideas-title{margin:0;font-size:clamp(48px,4vw,64px);line-height:.96;letter-spacing:-.06em;color:#273458}.maple-ideas-sub{margin:10px 0 0;color:#7f8ba8;max-width:720px;line-height:1.65;font-size:clamp(17px,1.4vw,19px)}.maple-ideas-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}.maple-ideas-toolbar-left,.maple-ideas-toolbar-right{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.maple-ideas-menu-wrap{position:relative}.maple-ideas-menu-btn,.maple-ideas-ghost,.maple-ideas-danger{border:none;border-radius:16px;padding:12px 18px;font-weight:800;cursor:pointer}.maple-ideas-menu-btn{display:inline-flex;align-items:center;justify-content:space-between;gap:12px;min-width:230px;background:linear-gradient(180deg,#f6f8fd 0%,#eef2fb 100%);color:#4f5f83;border:1px solid #e2e8f5;box-shadow:0 10px 22px rgba(77,96,140,.08)}.maple-ideas-ghost{background:#eef2fb;color:#586680}.maple-ideas-danger{width:48px;min-width:48px;height:48px;display:inline-flex;align-items:center;justify-content:center;padding:0;background:#fff;color:#6b7280;border:1px solid #e5e7eb;box-shadow:0 8px 18px rgba(99,115,145,.08)}.maple-ideas-menu-panel{position:absolute;top:calc(100% + 10px);left:0;z-index:25;min-width:260px;padding:10px;background:#fff;border:1px solid #e4eaf5;border-radius:18px;box-shadow:0 22px 48px rgba(49,66,105,.16)}.maple-ideas-menu-panel.hidden{display:none}.maple-ideas-menu-item{display:flex;width:100%;align-items:center;justify-content:space-between;border:none;background:transparent;padding:11px 12px;border-radius:12px;color:#556482;font-weight:700;text-align:left;cursor:pointer}.maple-ideas-menu-item:hover{background:#f3f6fc;color:#32486f}.maple-ideas-menu-item.is-active{background:#eef3ff;color:#4568cc}.maple-ideas-active-hint{font-size:12px;color:#8a96b2;margin-top:-6px;margin-bottom:10px}.maple-ideas-board{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:start}.maple-ideas-panel{background:linear-gradient(180deg,#ffffff 0%,#f7f8fc 100%);border:1px solid #e7ebf3;border-radius:26px;box-shadow:0 18px 38px rgba(64,78,112,.08);padding:20px;min-width:0}.maple-ideas-input{width:100%;min-height:180px;background:linear-gradient(180deg,#f9fbff 0%,#f2f5fb 100%);border:1px solid #dfe6f3;border-radius:18px;padding:18px 18px 20px;font-size:17px;color:#334066;resize:vertical;box-sizing:border-box;outline:none;transition:border-color .18s ease,box-shadow .18s ease}.maple-ideas-input:focus{border-color:#aab7ee;box-shadow:0 0 0 4px rgba(76,99,219,.12)}.maple-ideas-input::placeholder{color:#99a5c0}.maple-ideas-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:14px}.maple-ideas-primary,.maple-ideas-secondary{border:none;border-radius:16px;padding:13px 18px;font-weight:800;cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}.maple-ideas-primary:hover{transform:translateY(-1px)}.maple-ideas-secondary{background:#eef2fb;color:#586680}.maple-ideas-list{display:flex;flex-direction:column;gap:16px;margin-top:14px}.maple-idea-card{background:linear-gradient(180deg,#ffffff 0%,#f7f8fc 100%);border:1px solid #e7ebf3;border-radius:22px;padding:20px;box-shadow:0 14px 28px rgba(64,78,112,.06)}.maple-idea-meta{font-size:12px;color:#8d98b2;margin-bottom:10px;letter-spacing:.04em}.maple-idea-text{font-size:16px;line-height:1.8;color:#384667}.maple-rich-p{margin:0 0 10px;white-space:pre-wrap;word-break:break-word}.maple-rich-p:last-child{margin-bottom:0}.maple-rich-list{margin:0 0 10px;padding-left:22px}.maple-rich-list:last-child{margin-bottom:0}.maple-rich-list li{margin-bottom:4px;word-break:break-word}.maple-rich-list li:last-child{margin-bottom:0}ol.maple-rich-list{list-style:decimal}ul.maple-rich-list{list-style:disc}.maple-idea-buttons{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}.maple-idea-buttons button{padding:9px 14px;border-radius:12px;border:1px solid #dbe1ef;background:#f9fbff;color:#596685;cursor:pointer;font-weight:700}.maple-idea-buttons button:hover{background:#eef2fb}.maple-ideas-edit{width:100%;min-height:140px;background:#fff;border:1px solid #dce3f1;border-radius:16px;padding:14px;font-size:16px;color:#334066;resize:vertical;box-sizing:border-box}.maple-ideas-empty{padding:26px;border-radius:18px;background:#f8faff;border:1px dashed #d7deee;color:#7784a6;text-align:center}.maple-ideas-modal{position:fixed;inset:0;background:rgba(17,24,39,.32);display:flex;justify-content:center;align-items:center;z-index:99999;padding:20px}.maple-ideas-modal.hidden{display:none!important}.maple-ideas-modal-box{background:#fff;padding:24px;border-radius:20px;width:min(92vw,420px);box-shadow:0 22px 50px rgba(17,24,39,.18)}.maple-ideas-modal-box h3{margin:0 0 14px;color:#24314d}.maple-ideas-modal-inline{display:flex;gap:10px;align-items:center}.maple-ideas-modal-inline input{flex:1;margin:0;padding:12px 14px;border-radius:14px;border:1px solid #dde5f2;box-sizing:border-box;background:#fff}.maple-ideas-modal-actions{display:flex;justify-content:space-between;gap:10px;margin-top:12px}@media(max-width:1100px){.maple-ideas-board{grid-template-columns:1fr}}@media(max-width:960px){#mapleIdeasRoot{padding:0}.maple-ideas-board{grid-template-columns:1fr}.maple-ideas-title{font-size:40px}.maple-ideas-top{flex-direction:column}.maple-ideas-toolbar{align-items:flex-start}.maple-ideas-menu-btn{min-width:unset;width:100%}}

/* =====================================================================
   PARCHE Alcendia — correcciones de UI
   (1) texto visible al escribir  (2) botones alineados sin tapar
   (3) diálogos/menús por encima del teclado
   ===================================================================== */

/* (3-base) Forzar esquema CLARO: evita que iOS en "modo oscuro" pinte
   los campos oscuros con texto oscuro (causa de "no se ve lo que escribo") */
:root,html,body{color-scheme:light !important}

/* (1) Campos de texto: fondo blanco y texto oscuro SIEMPRE legible.
   -webkit-text-fill-color es obligatorio en iOS para que el texto se vea.
   Se excluyen los checkboxes/radios para no romper sus estilos. */
.maple-week-add input,
.maple-week-composer-input,
.maple-dialog-input,.maple-dialog-textarea,.maple-dialog-select,
.maple-ideas-input,.maple-ideas-edit,.maple-ideas-edit-area,.maple-ideas-modal-inline input,.maple-ideas-modal-box input,
.maple-monthly .modal-box input,.maple-monthly .modal-box select,
.maple-note-input,
.maple-week-composer-select{
  color:#1f2b45 !important;
  -webkit-text-fill-color:#1f2b45 !important;
  background-color:#ffffff !important;
  caret-color:var(--mm-accent,#4c63db) !important;
  opacity:1 !important;
}
.maple-week-add input::placeholder,
.maple-week-composer-input::placeholder,
.maple-dialog-input::placeholder,.maple-dialog-textarea::placeholder,
.maple-ideas-input::placeholder,
.maple-monthly .modal-box input::placeholder{
  color:#9aa6c2 !important;-webkit-text-fill-color:#9aa6c2 !important;opacity:1 !important;
}
/* En móvil 16px evita el zoom automático de iOS al enfocar un campo */
@media (max-width:782px),(hover:none) and (pointer:coarse){
  .maple-week-add input,.maple-week-composer-input,.maple-week-composer-select,
  .maple-dialog-input,.maple-dialog-textarea,.maple-dialog-select{font-size:16px !important}
}

/* (2) Hábitos Semanales: botones SIEMPRE en flujo normal (no absolutos),
   en una fila alineada debajo del texto, sin superponerse. */
@media (max-width:782px),(hover:none) and (pointer:coarse){
  .maple-week-task{
    display:flex !important;flex-wrap:wrap !important;align-items:flex-start !important;
    gap:8px 10px !important;padding:12px 14px !important;
  }
  .maple-week-task input[type=checkbox]{flex:0 0 22px !important;margin-top:2px !important}
  .maple-week-task-main{padding-right:0 !important;flex:1 1 auto !important;min-width:0 !important;width:auto !important}
  .maple-week-task-actions{
    position:static !important;opacity:1 !important;width:100% !important;
    margin:8px 0 0 0 !important;display:flex !important;flex-wrap:wrap !important;
    gap:8px !important;justify-content:flex-start !important;align-items:center !important;
  }
  .maple-week-link-btn{
    flex:0 0 auto !important;min-height:38px !important;padding:0 14px !important;
    border-radius:12px !important;background:#fff !important;border:1px solid #e3e8f2 !important;
    box-shadow:0 6px 14px rgba(42,55,90,.06) !important;font-size:13px !important;line-height:1 !important;
  }
  .maple-week-add{display:flex !important;flex-wrap:nowrap !important;gap:8px !important}
  .maple-week-add input{flex:1 1 auto !important;width:auto !important}
  .maple-week-add button{flex:0 0 auto !important;width:auto !important;padding:0 16px !important}
}

/* (2-extra) Botones de acción de tareas mensuales: alineados también */
@media (max-width:782px),(hover:none) and (pointer:coarse){
  .maple-monthly .goal-actions{display:flex !important;gap:8px !important;flex-wrap:wrap !important}
}

/* (3) Diálogos y modales por ENCIMA del teclado.
   Se ajustan al área visible (visualViewport) calculada en app.js. */
.maple-dialog-backdrop,
.maple-ideas-modal,
.maple-monthly .modal{
  top:var(--mm-vv-top,0px) !important;
  bottom:auto !important;
  height:var(--mm-vv-h,100%) !important;
  align-items:center !important;
  padding-top:14px !important;
  padding-bottom:14px !important;
}
/* La caja nunca más alta que el área visible: si no cabe, hace scroll
   interno y sus botones siguen siendo alcanzables. */
.maple-dialog-box,
.maple-ideas-modal-box,
.maple-monthly .modal-box{
  max-height:calc(var(--mm-vv-h,100vh) - 28px) !important;
  overflow:auto !important;
  -webkit-overflow-scrolling:touch !important;
}

/* ----- Compositor de Hábitos Semanales (texto + menú desplegable de día) ----- */
.maple-week-composer{
  display:flex;gap:10px;align-items:stretch;flex-wrap:wrap;
  background:linear-gradient(180deg,#ffffff 0%,#f4f7fd 100%);
  border:1px solid #e3e8f2;border-radius:18px;padding:12px;margin-bottom:16px;
  box-shadow:0 14px 30px rgba(15,23,42,.06);
}
.maple-week-composer-input{
  flex:1 1 220px;min-width:0;height:46px;border:1px solid #dde4f0;border-radius:14px;
  padding:0 14px;font-weight:700;outline:none;
}
.maple-week-composer-input:focus{border-color:var(--mm-accent,#4c63db);box-shadow:0 0 0 4px var(--mm-accent-soft,#eef2fb)}
.maple-week-composer-select{
  flex:0 0 auto;height:46px;border:1px solid #dde4f0;border-radius:14px;
  padding:0 36px 0 14px;font-weight:800;outline:none;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%237b88a9' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat:no-repeat;background-position:right 13px center;
  -webkit-appearance:none;appearance:none;
}
.maple-week-composer-btn{
  flex:0 0 auto;height:46px;border:none;border-radius:14px;padding:0 22px;font-weight:800;cursor:pointer;
  background:var(--mm-accent,#4c63db) !important;color:#fff !important;
  box-shadow:0 12px 26px var(--mm-accent-shadow,rgba(76,99,219,.22));
}
.maple-week-composer-btn:hover{filter:brightness(.96)}
@media (max-width:782px),(hover:none) and (pointer:coarse){
  .maple-week-composer{gap:8px}
  .maple-week-composer-input{flex:1 1 100%}
  .maple-week-composer-select{flex:1 1 auto}
  .maple-week-composer-btn{flex:1 1 auto}
}

/* =====================================================================
   PARCHE v2 — ocultar tarjetas de métricas + módulo de Respaldo iCloud
   ===================================================================== */

/* Ocultar las tarjetas de resumen/métricas (Semanales y Diarios) */
.maple-week-summary{display:none !important}
.maple-daily-overview{display:none !important}

/* ----- Módulo Respaldo ----- */
.maple-backup-shell{max-width:760px}
.maple-backup-title{margin:0;font-size:clamp(34px,8vw,54px);line-height:.98;letter-spacing:-.05em;color:#0f172a}
.maple-backup-sub{margin:12px 0 0;color:#7f8ba8;line-height:1.6;font-size:clamp(15px,1.4vw,18px)}
.maple-backup-card{background:linear-gradient(180deg,#ffffff 0%,#f7f8fc 100%);border:1px solid #e7ebf3;border-radius:24px;padding:22px;margin-top:20px;box-shadow:0 18px 38px rgba(64,78,112,.08)}
.maple-backup-card h3{margin:0 0 6px;color:#24314d;font-size:19px}
.maple-backup-card p{margin:0 0 16px;color:#73809d;line-height:1.55;font-size:14px}
.maple-backup-actions{display:flex;gap:12px;flex-wrap:wrap}
.maple-backup-btn{border:none;border-radius:16px;padding:14px 20px;font-weight:800;cursor:pointer;font-size:15px;transition:transform .16s ease,filter .16s ease}
.maple-backup-btn:hover{transform:translateY(-1px)}
.maple-backup-btn.primary{background:var(--mm-accent,#4c63db) !important;color:#fff !important;box-shadow:0 12px 26px var(--mm-accent-shadow,rgba(76,99,219,.22))}
.maple-backup-btn.ghost{background:#eef2fb;color:#586680}
.maple-backup-status{margin-top:16px;font-size:13px;color:#7c88a6;min-height:18px}
.maple-backup-status.ok{color:#2f8f5b}
.maple-backup-status.err{color:#c0506a}
.maple-backup-steps{margin:14px 0 0;padding:0;list-style:none;display:grid;gap:10px}
.maple-backup-steps li{display:flex;gap:10px;align-items:flex-start;color:#5b6884;font-size:14px;line-height:1.5}
.maple-backup-steps li b{color:#3a496b}
.maple-backup-num{flex:0 0 24px;height:24px;border-radius:999px;background:var(--mm-accent-soft,#eef2fb);color:var(--mm-accent,#4c63db);display:inline-flex;align-items:center;justify-content:center;font-weight:900;font-size:12px;margin-top:1px}
@media (max-width:782px),(hover:none) and (pointer:coarse){
  .maple-backup-actions{display:grid;grid-template-columns:1fr;gap:10px}
  .maple-backup-btn{width:100%}
}

/* ===================================================================
   Tareas (módulo "Tareas") — refinamiento estético profesional v2
   =================================================================== */
.maple-monthly .category-card{background:linear-gradient(180deg,#f5f7fc 0%,#eef1f8 100%);border:1px solid #e6e9f2;box-shadow:0 18px 40px rgba(51,72,112,.06)}
.maple-monthly .category-title h2{font-size:23px;letter-spacing:.02em;color:#3b466b}
.maple-monthly .category-panel{padding-top:14px}
.maple-monthly .goals{gap:11px;padding:6px 2px 2px}

/* Tarjeta de tarea */
.maple-monthly .goal-row{position:relative;align-items:center;background:#fff;border:1px solid #e9edf6;border-radius:16px;padding:15px 18px 15px 24px;box-shadow:0 10px 24px rgba(40,55,90,.05);transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease}
.maple-monthly .goal-row::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5px;border-radius:16px 0 0 16px;background:linear-gradient(180deg,var(--mm-grad-1,#5278e5),var(--mm-grad-2,#6f8cf0))}
.maple-monthly .goal-row:hover{transform:translateY(-1px);box-shadow:0 16px 34px rgba(40,55,90,.10);border-color:#dbe2f1}

/* Título legible (sin mayúsculas forzadas) */
.maple-monthly .goal-title{font-size:15px;font-weight:700;letter-spacing:0;text-transform:none;color:#27324d;line-height:1.42}

/* Fecha como chip; se oculta cuando no hay fecha */
.maple-monthly .goal-date{justify-self:end;display:inline-flex;align-items:center;gap:6px;min-height:0;padding:6px 12px;border-radius:999px;background:#eef2fb;border:1px solid #e3e9f6;color:#5b6a92;font-size:11.5px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}
.maple-monthly .goal-date:empty{display:none}
.maple-monthly .goal-date:not(:empty)::before{content:"📅";font-size:11px;line-height:1}

/* Botones de acción */
.maple-monthly .goal-actions{gap:8px;align-items:center}
.maple-monthly .goal-actions button{width:36px;height:36px;border-radius:12px;border:1px solid #e7ebf4;background:#fff;color:#9099b4;font-size:16px;line-height:1;box-shadow:0 6px 14px rgba(42,57,88,.06);transition:transform .14s ease,background .14s ease,color .14s ease,border-color .14s ease}
.maple-monthly .goal-actions button:hover{transform:translateY(-1px)}
.maple-monthly .goal-actions button.complete{background:linear-gradient(180deg,var(--mm-grad-1,#5278e5),var(--mm-grad-2,#6f8cf0))!important;border-color:transparent!important;color:#fff!important;box-shadow:0 10px 20px var(--mm-accent-shadow,rgba(82,120,229,.24))!important}
.maple-monthly .goal-actions button[data-delete]:hover{color:#e26d6d;border-color:#f1d2d2;background:#fff6f6}
.maple-monthly .goal-actions button.repeat.is-active{background:linear-gradient(180deg,var(--mm-grad-1,#5278e5),var(--mm-grad-2,#6f8cf0))!important;border-color:transparent!important;color:#fff!important}
.maple-monthly .goal-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.maple-monthly .goal-repeat-badge{display:inline-flex;align-items:center;gap:4px;padding:3px 9px;border-radius:999px;background:#eef2fb;border:1px solid #e3e9f6;color:#5b6a92;font-size:10.5px;font-weight:900;letter-spacing:.03em;text-transform:none;white-space:nowrap}

/* Estado vacío más cuidado */
.maple-monthly .empty{padding:18px 16px;border:1px dashed #d8dfee;border-radius:14px;background:#f8fafd;color:#8a93ad;font-weight:700;text-align:center}

/* En escritorio: la fecha ocupa su contenido (chip), no 190px fijos */
@media (min-width:981px){
  .maple-monthly .goal-row{grid-template-columns:minmax(0,1fr) auto auto;gap:16px}
}
/* En móvil: apilado y alineado a la izquierda */
@media (max-width:980px){
  .maple-monthly .goal-row{padding-left:22px}
  .maple-monthly .goal-date{justify-self:start}
  .maple-monthly .goal-actions{justify-self:start}
}

/* ===== Ideas y Notas — Modal de edición a tamaño completo ===== */
body.maple-ideas-edit-open{overflow:hidden!important}
.maple-ideas-edit-modal{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(17,24,39,.46);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);animation:mapleFadeIn .18s ease}
.maple-ideas-edit-modal.hidden{display:none!important}
.maple-ideas-edit-box{display:flex;flex-direction:column;width:min(860px,94vw);height:min(86vh,760px);background:linear-gradient(180deg,#ffffff 0%,#f7f8fc 100%);border:1px solid #e7ebf3;border-radius:26px;box-shadow:0 40px 90px rgba(17,24,39,.30);overflow:hidden;animation:mapleEditPop .22s cubic-bezier(.2,.9,.3,1.1)}
@keyframes mapleEditPop{from{opacity:0;transform:translateY(14px) scale(.985)}to{opacity:1;transform:none}}
.maple-ideas-edit-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:20px 24px;border-bottom:1px solid #eef1f7;background:linear-gradient(90deg,rgba(255,255,255,.7),rgba(237,241,249,.55))}
.maple-ideas-edit-title{margin:0;font-size:19px;font-weight:900;letter-spacing:-.02em;color:#273458}
.maple-ideas-edit-close{width:40px;height:40px;flex:0 0 40px;border-radius:14px;border:1px solid #eceff5;background:#fafbfd;color:#9aa3b8;font-size:22px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background .16s ease,color .16s ease}
.maple-ideas-edit-close:hover{background:#fdeeee;color:#e26d6d}
.maple-ideas-edit-area{flex:1;min-height:0;width:100%;resize:none;border:none;outline:none;padding:22px 24px;background:#ffffff;color:#2c3957;font:500 17px/1.7 Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:.005em}
.maple-ideas-edit-area::placeholder{color:#aab2c8}
.maple-ideas-edit-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:16px 24px;border-top:1px solid #eef1f7;background:#fbfcff}
.maple-ideas-edit-actions .maple-ideas-primary,.maple-ideas-edit-actions .maple-ideas-secondary{padding:13px 22px;border-radius:14px;font-size:15px}
@media (max-width: 782px), (hover: none) and (pointer: coarse){
  .maple-ideas-edit-modal{padding:0!important;align-items:stretch!important;justify-content:stretch!important}
  .maple-ideas-edit-box{width:100%!important;height:100dvh!important;max-height:100dvh!important;border:none!important;border-radius:0!important}
  .maple-ideas-edit-head{padding:calc(env(safe-area-inset-top,0px) + 16px) 18px 14px!important}
  .maple-ideas-edit-area{padding:18px!important;font-size:17px!important}
  .maple-ideas-edit-actions{padding:14px 18px calc(env(safe-area-inset-bottom,0px) + 14px)!important}
  .maple-ideas-edit-actions .maple-ideas-primary,.maple-ideas-edit-actions .maple-ideas-secondary{flex:1 1 auto!important;min-height:48px!important;text-align:center;justify-content:center}
}

/* ====================== Hábitos Semanales — mejoras ====================== */
/* Manija de arrastre (drag and drop para ordenar) */
#mapleWeeklyRoot .maple-week-handle{flex:0 0 auto;cursor:grab;color:#b8c0d8;font-size:14px;line-height:1;letter-spacing:-2px;user-select:none;touch-action:none;padding:2px 2px;margin-top:2px}
#mapleWeeklyRoot .maple-week-handle:active{cursor:grabbing}
#mapleWeeklyRoot .maple-week-task.sortable-chosen{box-shadow:0 16px 34px rgba(47,128,237,.18);opacity:.97}
#mapleWeeklyRoot .maple-week-list{display:flex;flex-direction:column;gap:8px;min-height:36px}
/* Botón de descripción (…) igual que en Hábitos Diarios */
#mapleWeeklyRoot .maple-week-note-btn{position:relative;font-size:15px;line-height:1;color:#8a95b2;letter-spacing:-1px}
#mapleWeeklyRoot .maple-week-note-btn.has-note{color:var(--mm-accent,#2f80ed)}
#mapleWeeklyRoot .maple-week-note-btn.has-note::after{content:"";position:absolute;top:-2px;right:-4px;width:7px;height:7px;border-radius:999px;background:var(--mm-accent,#2f80ed);border:2px solid #fff}
/* Tarjetas de tareas con fecha (provenientes del módulo "Tareas") */
#mapleWeeklyRoot .maple-week-dated{margin-top:10px;display:flex;flex-direction:column;gap:8px}
#mapleWeeklyRoot .maple-week-goal{display:flex;align-items:flex-start;gap:10px;background:#eef3ff;border:1px solid #d8e3ff;border-left:4px solid var(--mm-accent,#2f80ed);border-radius:12px;padding:10px 12px}
#mapleWeeklyRoot .maple-week-goal.is-late{background:#fdeef0;border-color:#f4c9cf;border-left-color:#e35d6a}
#mapleWeeklyRoot .maple-week-goal input[type=checkbox]{width:18px;height:18px;margin-top:2px;accent-color:var(--mm-accent,#2f80ed);flex:0 0 18px}
#mapleWeeklyRoot .maple-week-goal-main{flex:1;min-width:0}
#mapleWeeklyRoot .maple-week-goal-label{color:#1f2937;font-weight:700;word-break:break-word;line-height:1.35}
#mapleWeeklyRoot .maple-week-goal-date{display:inline-block;margin-top:4px;font-size:11px;font-weight:800;color:#5b6b9a;letter-spacing:.02em}
#mapleWeeklyRoot .maple-week-goal.is-late .maple-week-goal-date{color:#c9485a}
/* En móvil la tarjeta usa grid: sacamos la manija del flujo para no romperlo */
@media(max-width:760px){
  #mapleWeeklyRoot .maple-week-task{position:relative}
  #mapleWeeklyRoot .maple-week-handle{position:absolute;top:10px;right:12px;margin:0;font-size:18px;padding:6px}
  #mapleWeeklyRoot .maple-week-task-main{padding-right:30px!important}
}

/* ====================== Buzón de tareas falladas ====================== */
#mapleWeeklyRoot .maple-week-failed-btn.has-items{border-color:#f3d7d7!important;background:#fff5f5!important;color:#e26d6d!important}
#mapleWeeklyRoot .maple-week-failed-box{height:auto;max-height:min(80vh,620px)}
#mapleWeeklyRoot .maple-week-failed-list{flex:1;min-height:80px;overflow:auto;padding:18px 24px;display:flex;flex-direction:column;gap:10px}
#mapleWeeklyRoot .maple-week-failed-empty{padding:26px 10px;text-align:center;color:#8a95b2;font-weight:700}
#mapleWeeklyRoot .maple-week-failed-row{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#f8f9fc;border:1px solid #eef1f7;border-radius:14px;padding:12px 14px}
#mapleWeeklyRoot .maple-week-failed-main{display:flex;flex-direction:column;gap:3px;min-width:0}
#mapleWeeklyRoot .maple-week-failed-day{font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#c9485a}
#mapleWeeklyRoot .maple-week-failed-text{font-size:14px;font-weight:700;color:#2c3957;word-break:break-word}
#mapleWeeklyRoot .maple-week-failed-actions{display:flex;gap:12px;flex:0 0 auto;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:760px){
  #mapleWeeklyRoot .maple-week-failed-row{flex-direction:column;align-items:flex-start}
  #mapleWeeklyRoot .maple-week-failed-actions{width:100%;justify-content:flex-start}
}

/* --- Buzón de tareas falladas: agrupado por semana --- */
#mapleWeeklyRoot .maple-week-failed-group{display:flex;flex-direction:column;gap:8px}
#mapleWeeklyRoot .maple-week-failed-group + .maple-week-failed-group{margin-top:14px}
#mapleWeeklyRoot .maple-week-failed-group-title{font-size:11px;font-weight:900;letter-spacing:.09em;text-transform:uppercase;color:#8a95b2;padding:0 2px}
#mapleWeeklyRoot .maple-week-failed-box .maple-ideas-edit-actions{flex-wrap:wrap;gap:8px}

/* Número del día del mes en Hábitos Semanales */
.maple-week-day-num{display:inline-flex;align-items:center;justify-content:center;min-width:26px;height:26px;padding:0 6px;margin-left:6px;border-radius:9px;background:rgba(255,255,255,.72);color:#5b6a90;font-size:14px;font-weight:800;vertical-align:middle;box-shadow:inset 0 0 0 1px rgba(53,66,100,.10)}
.maple-week-day.is-today{box-shadow:0 18px 36px rgba(15,23,42,.12),inset 0 0 0 2px var(--mm-accent)}
.maple-week-day.is-today .maple-week-day-num{background:var(--mm-accent);color:#fff;box-shadow:none}

/* --- v7: distinción hábito semanal vs. tarea de un solo uso --- */
.maple-week-recur-badge{margin-right:6px;font-size:12px;opacity:.85}
.maple-week-link-btn[data-recur-id]{color:#9aa5c4}
.maple-week-link-btn[data-recur-id].is-on{color:#00a03c}
.maple-week-task.is-recurring{border-left:4px solid #7c5cff}
.maple-week-task.pinned.is-recurring{border-left:4px solid #00c853}
@media(min-width:761px){.maple-week-task-main{padding-right:212px}}

/* --- v7: columna del día actual en Hábitos Diarios --- */
.maple-daily-table-wrap th.is-today{
  position:relative;
  background:linear-gradient(180deg,var(--mm-grad-1),var(--mm-grad-2))!important;
  color:#fff!important;
  border-radius:14px;
  box-shadow:0 8px 18px rgba(60,72,100,.18);
}
.maple-daily-table-wrap th.is-today .maple-day-name,
.maple-daily-table-wrap th.is-today .maple-day-number{color:#fff!important}
.maple-daily-table-wrap th.is-today .maple-percent-box{background:rgba(255,255,255,.24)!important;color:#fff!important}
.maple-day-today-tag{
  display:block;margin-top:4px;font-size:9px;font-weight:900;
  letter-spacing:.14em;color:#fff;opacity:.9;
}
.maple-daily-table-wrap td.is-today{
  background:var(--mm-accent-soft);
  border-radius:12px;
  box-shadow:inset 0 0 0 2px var(--mm-accent);
}
.maple-daily-table-wrap td.is-today .maple-check-cell input[type=checkbox]{transform:scale(1.12)}


/* ===== v8: acciones de tarea semanal en menú desplegable ===== */
.maple-week-task-actions{flex-wrap:nowrap!important;gap:8px!important;align-items:center!important;justify-content:flex-start!important}
.maple-week-task-actions>*{flex:0 0 auto!important}
.mw-menu-wrap{position:relative;display:inline-flex}
.mw-menu-trigger{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:40px!important;font-size:14px!important;color:#7b88b3!important}
/* Menú semanal: nunca debe quedar recortado por la tarjeta del día.
   El día conserva containment de layout, pero NO de pintura; el menú puede
   salir visualmente de la tarjeta y abrir hacia arriba cuando falta espacio. */
#mapleWeeklyRoot,#mapleWeeklyRoot .maple-weekly-shell,#mapleWeeklyRoot .maple-weekly-grid,#mapleWeeklyRoot .maple-week-day,#mapleWeeklyRoot .maple-week-list,#mapleWeeklyRoot .maple-week-task{overflow:visible}
#mapleWeeklyRoot .maple-week-day.mw-menu-active{position:relative;z-index:120}
#mapleWeeklyRoot .maple-week-task.mw-menu-active{z-index:121}
.mw-menu-pop{display:none;position:absolute;top:calc(100% + 6px);right:0;z-index:122;min-width:190px;max-width:calc(100vw - 24px);max-height:min(70dvh,320px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:6px;background:#fff;border:1px solid #e3e8f2;border-radius:16px;box-shadow:0 22px 44px rgba(20,30,55,.18);flex-direction:column;gap:2px}
.mw-menu-pop.open{display:flex}
.mw-menu-pop.open-up{top:auto;bottom:calc(100% + 6px)}
.mw-menu-pop.to-left{right:auto;left:0}
.mw-menu-pop .maple-week-link-btn{display:block!important;width:100%!important;flex:0 0 auto!important;text-align:left!important;background:transparent!important;border:none!important;box-shadow:none!important;border-radius:10px!important;padding:12px!important;min-height:0!important;font-size:13px!important;letter-spacing:.02em!important}
.mw-menu-pop .maple-week-link-btn:hover,.mw-menu-pop .maple-week-link-btn:active{background:#f1f5ff!important}
.mw-menu-pop .maple-week-link-btn[data-delete-id]{color:#e07575!important}

/* ===== v8: barra superior de Hábitos Diarios ordenada ===== */
@media (max-width:782px),(hover:none) and (pointer:coarse){
  .maple-daily-header{flex-direction:column!important;align-items:stretch!important;gap:10px!important;margin-bottom:10px!important}
  .maple-daily-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;width:100%!important}
  .maple-daily-actions>*{width:100%!important;min-height:46px!important;padding:10px 12px!important;font-size:13px!important;border-radius:16px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;line-height:1.15!important}
  .maple-daily-categorybar{display:grid!important;grid-template-columns:minmax(0,1fr) auto auto!important;gap:8px!important;align-items:stretch!important;flex-wrap:nowrap!important;margin:0 0 12px!important}
  .maple-daily-category-left,.maple-daily-category-right{display:contents!important}
  .maple-daily-menu-wrap{display:flex!important;width:100%!important;min-width:0!important}
  .maple-daily-menu-btn{width:100%!important;min-width:0!important;min-height:46px!important;padding:10px 14px!important;font-size:13px!important;border-radius:16px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
  .maple-daily-category-right .maple-ghost-btn{min-height:46px!important;padding:10px 12px!important;font-size:13px!important;white-space:nowrap!important;border-radius:16px!important}
  .maple-daily-danger{min-height:46px!important;padding:10px 12px!important;border-radius:16px!important}
  .maple-daily-menu-panel{left:0!important;right:auto!important;min-width:min(280px,calc(100vw - 40px))!important}
}

/* =====================================================================
   v10.1 — títulos únicos, simetría, campo de categoría y arrastre
   ===================================================================== */
/* (1) Un solo título por módulo: el de la barra superior (junto a Tema). */
.maple-daily-title,.maple-ideas-title,.maple-ideas-top,.maple-ideas-active-hint{display:none!important}

/* (2) Barra de categoría idéntica en Diarios, Ideas y Tareas:
       [ Categoría ▾ ][ ＋ Categoría ][ 🗑 ]  y debajo la acción principal. */
.maple-daily-categorybar,.maple-ideas-toolbar,.maple-monthly .main-actions{
  display:grid!important;grid-template-columns:minmax(0,1fr) auto 48px!important;gap:8px!important;
  align-items:stretch!important;flex-wrap:nowrap!important;margin:0 0 12px!important}
.maple-daily-category-left,.maple-daily-category-right,.maple-ideas-toolbar-left,.maple-ideas-toolbar-right{display:contents!important}
.maple-daily-menu-wrap,.maple-ideas-menu-wrap,.maple-monthly .menu-wrap{display:flex!important;width:100%!important;min-width:0!important}
.maple-daily-menu-btn,.maple-ideas-menu-btn,.maple-monthly .menu-btn{width:100%!important;min-width:0!important;min-height:46px!important;padding:10px 14px!important;font-size:13px!important;border-radius:16px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.maple-daily-category-right .maple-ghost-btn,.maple-ideas-ghost,.maple-monthly .ghost-btn{width:auto!important;min-height:46px!important;padding:10px 14px!important;font-size:13px!important;white-space:nowrap!important;border-radius:16px!important}
.maple-daily-danger,.maple-ideas-danger,.maple-monthly .danger-btn{width:48px!important;min-width:48px!important;height:auto!important;min-height:46px!important;padding:0!important;border-radius:16px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
.maple-monthly #mapleMonthlyAddBtn{grid-column:1/-1!important;width:100%!important;min-height:46px!important}
.maple-monthly .main-head{margin-bottom:12px!important}
.maple-daily-header{margin-bottom:12px!important}
.maple-daily-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important;width:100%!important}
.maple-daily-actions>*{width:100%!important;min-height:46px!important}
.maple-ideas-shell{padding-top:0!important}#mapleIdeasRoot{padding-top:0!important}
.maple-daily-table-wrap.is-empty{overflow:visible!important}
.maple-daily-table-wrap.is-empty .maple-daily-empty{white-space:normal!important}

/* (3) Campo de nombre de categoría: SIEMPRE a todo el ancho y legible.
       Antes compartía fila con el botón "Crear" y en iPhone quedaba de ~30px,
       por eso el texto "no salía". */
.maple-cat-name-input{display:block!important;width:100%!important;max-width:100%!important;min-width:0!important;flex:none!important;
  box-sizing:border-box!important;margin:0 0 14px!important;min-height:48px!important;padding:12px 14px!important;border-radius:14px!important;
  border:1px solid #dde5f2!important;background:#fff!important;color:#1f2b45!important;-webkit-text-fill-color:#1f2b45!important;
  font:700 16px/1.3 Inter,system-ui,-apple-system,sans-serif!important;opacity:1!important;outline:none!important;
  text-indent:0!important;letter-spacing:normal!important;-webkit-user-select:text!important;user-select:text!important}
.maple-cat-name-input:focus{border-color:var(--mm-accent,#4c63db)!important;box-shadow:0 0 0 4px var(--mm-accent-soft,#eef2fb)!important}
.maple-cat-name-input::placeholder{color:#9aa6c2!important;-webkit-text-fill-color:#9aa6c2!important}
.maple-monthly .modal-actions,.maple-ideas-modal-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:10px!important;margin-top:0!important}
.maple-monthly .modal-actions>button,.maple-ideas-modal-actions>button{width:100%!important;min-height:46px!important}
/* Cualquier fila "campo + botón" deja al campo un ancho mínimo útil. */
.maple-monthly .modal-inline input,.maple-ideas-modal-inline input{min-width:140px!important;flex:1 1 140px!important}

/* (4) Arrastrar en Hábitos Diarios sin seleccionar texto por error. */
#mapleDailyRoot .maple-daily-table-wrap,#mapleDailyRoot .maple-daily-table-wrap *{-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}
html.maple-dnd-lock,html.maple-dnd-lock *:not(input):not(textarea){-webkit-user-select:none!important;user-select:none!important;-webkit-touch-callout:none!important}
#mapleDailyRoot .maple-habit-handle,#mapleDailyRoot .maple-rule-drag{touch-action:none!important;cursor:grab;display:inline-flex!important;align-items:center;justify-content:center;
  min-width:34px;min-height:34px;margin:-8px 2px -8px -8px;border-radius:10px;-webkit-tap-highlight-color:transparent}
#mapleDailyRoot .maple-habit-handle{color:#aab3cc!important;font-size:15px}
#mapleDailyRoot .maple-habit-handle:active,#mapleDailyRoot .sortable-chosen .maple-habit-handle{background:var(--mm-accent-soft,#e8eefc);color:var(--mm-accent,#4c63db)!important;cursor:grabbing}
#mapleDailyRoot .maple-color-rule{touch-action:pan-x pan-y!important;cursor:default}
#mapleDailyRoot .maple-rule-drag{min-height:26px;margin:-6px 0;height:26px!important;background:rgba(0,0,0,.12)}
#mapleDailyRoot tr.sortable-chosen{position:relative;z-index:5}
#mapleDailyRoot tr.sortable-chosen>td{background:var(--mm-accent-soft,#eef2fb)!important}
#mapleDailyRoot tbody.sortable-dragging tr:not(.sortable-chosen){transition:transform .12s ease}

/* =====================================================================
   v11 — Alcendia Web (QR) y vínculo en el iPhone
   ===================================================================== */
.alc-web-overlay{position:fixed;inset:0;z-index:2000000;display:flex;align-items:center;justify-content:center;padding:24px;
  background:linear-gradient(160deg,#f4f7fd 0%,#e8eefc 100%);font-family:Inter,system-ui,-apple-system,sans-serif;color:#1f2b45;transition:opacity .25s ease}
.alc-web-overlay.is-hidden{opacity:0;pointer-events:none;visibility:hidden}
.alc-web-card{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:40px;align-items:center;width:min(920px,100%);
  background:#fff;border:1px solid #e3e8f2;border-radius:28px;padding:44px;box-shadow:0 30px 80px rgba(26,38,67,.14)}
.alc-web-brand{display:flex;align-items:center;gap:10px;font-weight:900;color:var(--mm-accent,#4c63db);margin-bottom:18px}
.alc-web-brand img{width:36px;height:36px;border-radius:10px}
.alc-web-left h1{margin:0 0 22px;font-size:30px;line-height:1.1;letter-spacing:-.03em}
.alc-web-steps{margin:0 0 24px;padding-left:22px;display:grid;gap:12px;font-size:16px;line-height:1.45;color:#3f4d73}
.alc-web-fine{margin:0;padding-top:18px;border-top:1px solid #eef1f7;color:#7f8aa7;font-size:13px;line-height:1.55}
.alc-web-right{display:flex;flex-direction:column;align-items:center;gap:14px}
.alc-web-qr{width:264px;height:264px;padding:10px;border-radius:20px;background:#fff;border:1px solid #e3e8f2;display:flex;align-items:center;justify-content:center;color:#7f8aa7}
.alc-web-qr svg{width:100%;height:100%;display:block}
.alc-web-status{font-weight:800;color:#3f4d73;text-align:center}
.alc-web-note{font-size:13px;color:#b45a5a;text-align:center;min-height:1em}
.alc-web-wait{display:none;flex-direction:column;align-items:center;gap:14px}
.alc-web-wait button{border:0;background:none;color:#7f8aa7;text-decoration:underline;cursor:pointer;font:inherit;font-size:13px}
.alc-web-overlay.is-waiting .alc-web-qr{display:none}
.alc-web-overlay.is-waiting .alc-web-wait{display:flex}
.alc-web-spinner{width:44px;height:44px;border-radius:50%;border:4px solid #e3e8f2;border-top-color:var(--mm-accent,#4c63db);animation:alcSpin 1s linear infinite}
@keyframes alcSpin{to{transform:rotate(360deg)}}
.alc-web-pill{display:inline-flex;align-items:center;gap:10px;margin-right:10px;padding:6px 6px 6px 14px;border-radius:999px;background:#eaf7ef;color:#23794a;font-weight:800;font-size:13px}
.alc-web-pill.is-off{display:none}
.alc-web-pill button{border:0;border-radius:999px;background:#fff;color:#b45a5a;font-weight:800;font-size:12px;padding:7px 12px;cursor:pointer}
@media (max-width:760px){.alc-web-card{grid-template-columns:1fr;padding:26px;gap:24px}.alc-web-left h1{font-size:24px}.alc-web-pill span{display:none}}
.alc-link-banner{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(env(safe-area-inset-bottom,0px) + 12px);z-index:1500000;
  display:flex;align-items:center;gap:10px;padding:8px 8px 8px 14px;border-radius:999px;background:#1f2b45;color:#fff;
  font:800 13px/1.2 Inter,system-ui,-apple-system,sans-serif;box-shadow:0 14px 34px rgba(20,30,55,.28);white-space:nowrap}
.alc-link-dot{width:8px;height:8px;border-radius:50%;background:#3ddc84}
.alc-link-banner.is-waiting .alc-link-dot{background:#f5b84a;animation:alcPulse 1s ease-in-out infinite}
.alc-link-banner button{border:0;border-radius:999px;background:rgba(255,255,255,.14);color:#fff;font:inherit;font-size:12px;padding:8px 12px;cursor:pointer}
@keyframes alcPulse{50%{opacity:.35}}

/* ===== v12 — estado de sincronización ===== */
.alc-sync-pill{position:fixed;left:50%;bottom:calc(env(safe-area-inset-bottom,0px) + 12px);transform:translate(-50%,20px);opacity:0;pointer-events:none;z-index:1400000;
  padding:9px 16px;border-radius:999px;background:#1f2b45;color:#fff;font:800 13px/1.2 Inter,system-ui,-apple-system,sans-serif;box-shadow:0 12px 30px rgba(20,30,55,.25);transition:opacity .2s,transform .2s;white-space:nowrap}
.alc-sync-pill.is-on{opacity:1;transform:translate(-50%,0)}
.alc-sync-pill.is-off{background:#8a5a12}
.alc-sync-pill.is-err{background:#a33a3a}
.alc-web-status.is-err{color:#b45a5a}
.alc-cloud-item{margin-top:8px;border-top:1px solid rgba(120,130,160,.15);padding-top:10px}

/* ===== v13 — selector de apariencia (dentro del menú Tema) ===== */
.alc-mode-row{display:grid;gap:8px;padding:6px 6px 10px;margin-bottom:6px;border-bottom:1px solid #eef1f7}
.alc-mode-label{font-size:11px;font-weight:900;letter-spacing:.06em;text-transform:uppercase;color:#8a95b2}
.alc-mode-label--color{padding:2px 6px 6px}
.alc-mode-seg{display:grid;grid-template-columns:repeat(3,1fr);gap:4px;padding:4px;border-radius:14px;background:#f1f4fa}
.alc-mode-seg button{border:0;border-radius:10px;background:transparent;color:#5b6785;font:800 12px/1 Inter,system-ui,-apple-system,sans-serif;padding:9px 6px;cursor:pointer;white-space:nowrap}
.alc-mode-seg button.is-active{background:#fff;color:var(--mm-accent,#4c63db);box-shadow:0 4px 12px rgba(40,55,90,.12)}
.maple-master-theme-menu{min-width:250px!important}
/* v13: tipografía de la app también en diálogos y avisos (antes salían en serif) */
body,.maple-dialog-backdrop,.maple-toast,.maple-links-toast{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif}

/* ===== v14 — Alcendia Web sin Pro activo / bóveda borrada ===== */
.alc-web-card--lock{grid-template-columns:1fr;width:min(560px,100%)}
.alc-web-card--lock .alc-web-left h1{margin-bottom:14px}
.alc-web-card--lock .alc-web-fine{border-top:0;padding-top:0;font-size:15px;color:#4a5677}
.alc-web-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.alc-web-btn{border:0;border-radius:12px;padding:12px 18px;font:inherit;font-weight:800;font-size:14px;cursor:pointer;background:#4c63db;color:#fff}
.alc-web-btn--ghost{background:#eef1f7;color:#3f4d73}
.alc-web-lock .alc-web-status{text-align:left;margin-top:14px;font-weight:600;font-size:13px;color:#7f8aa7;min-height:1em}

/* ===== v14.4 — Menú "Nube y dispositivos" (borrar escondido en Opciones avanzadas) ===== */
.alc-cloud-actions{display:grid;gap:10px;margin-top:16px}
.alc-cloud-btn{width:100%;min-height:48px;border:1px solid #dfe5f1;border-radius:16px;padding:12px 16px;background:#fff;color:#1f2b45;font:inherit;font-size:15px;font-weight:800;cursor:pointer;text-align:center}
.alc-cloud-btn--main{border-color:transparent;background:var(--mm-accent,#5278e5);color:#fff;box-shadow:0 12px 24px var(--mm-accent-shadow,rgba(82,120,229,.20))}
.alc-cloud-btn--plain{border-color:transparent;background:transparent;color:#71809a}
.alc-cloud-btn--danger{border-color:#f1c4c4;background:#fff5f5;color:#c93f3f}
.alc-cloud-adv-toggle{display:block;margin:14px auto 0;border:0;background:none;color:#8a96ad;font:inherit;font-size:13px;font-weight:700;cursor:pointer;padding:6px 10px}
.alc-cloud-adv-toggle span{display:inline-block;transition:transform .15s}
.alc-cloud-adv-toggle.is-open span{transform:rotate(180deg)}
.alc-cloud-adv{margin-top:10px;padding:14px;border:1px dashed #e7c9c9;border-radius:16px;background:#fffafa}
.alc-cloud-adv p{margin:0 0 12px;color:#71809a;font-size:13.5px;line-height:1.45}

/* ===== v15 — Inglés: etiqueta del botón de menú en iPhone (viene de CSS) ===== */
html[lang="en"] .maple-master-toggle-text:after{content:'Menu' !important}
