/* Acompaña · actualización visual integral 2026. No cambia permisos ni flujos de datos. */
:root{
  --family-font:'DM Sans','Segoe UI',system-ui,sans-serif;
  --display-font:'Outfit','DM Sans',system-ui,sans-serif;
  --motion:cubic-bezier(.22,1,.36,1);
  --glass-edge:rgba(255,255,255,.12);
}
html[data-theme='mike']{
  --display-font:'Space Grotesk','DM Sans',sans-serif;
  --page:#070d1c;--surface:#111b31;--surface-alt:#17233d;--accent-soft:#162c42;
  --ink:#f5f8ff;--muted:#a3b0ca;--line:#2c3b59;--brand:#68e6d2;--brand2:#a0a4ff;
  --glass:rgba(16,25,46,.93);--nav-active:rgba(75,225,203,.14);
  --shadow:0 18px 55px rgba(0,2,20,.30);
}
html[data-theme='catalina']{
  --display-font:'Outfit','DM Sans',sans-serif;
  --page:#fffaf4;--surface:#fffefd;--surface-alt:#fff2e9;--accent-soft:#fff2d6;
  --ink:#493545;--muted:#856878;--line:#eddde4;--brand:#ca4d82;--brand2:#f9b948;
  --glass:rgba(255,253,250,.94);--nav-active:#fce6ee;
  --shadow:0 18px 60px rgba(128,55,92,.09);
}
html[data-theme='renato']{
  --display-font:'Outfit','DM Sans',sans-serif;
  --page:#ecf9f4;--surface:#fcfff9;--surface-alt:#e8f4e4;--accent-soft:#daf0cd;
  --ink:#27483a;--muted:#567568;--line:#c7dfce;--brand:#22804f;--brand2:#8eca5d;
  --glass:rgba(249,255,250,.95);--nav-active:#d5eeda;
  --shadow:0 12px 38px rgba(37,89,57,.09);
}
html{font-family:var(--family-font);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-synthesis:none}
body,button,input,select,textarea{font-family:var(--family-font)}
body{font-size:15px;line-height:1.5;letter-spacing:0;overflow-x:hidden}
html[data-theme='mike'] body{background:radial-gradient(ellipse 690px 620px at 87% -12%,rgba(97,71,164,.20),transparent 75%),radial-gradient(ellipse 800px 750px at -28% 68%,rgba(18,137,151,.09),transparent 74%),#070d1c}
html[data-theme='catalina'] body{background:radial-gradient(ellipse 700px 500px at 103% -8%,rgba(255,201,69,.20),transparent 70%),radial-gradient(ellipse 570px 500px at -18% 65%,rgba(244,117,169,.11),transparent 71%),#fffaf4}
html[data-theme='renato'] body{background-color:#effaf4;background-image:radial-gradient(ellipse 540px 600px at 102% -4%,rgba(141,216,167,.16),transparent 75%),linear-gradient(0deg,rgba(96,159,135,.048) 1px,transparent 1px),linear-gradient(90deg,rgba(96,159,135,.048) 1px,transparent 1px);background-size:auto,36px 36px,36px 36px}
h1,h2,h3,.brand-name,.summaryCount,.tile b,.taskName,.cardtitle,.family-feature strong,.daily-progress-header b,.miniLead,.login-brand h1{font-family:var(--display-font);font-optical-sizing:auto}
/* App shell: restrained wider rhythm and floating glass navigation */
html[data-theme] .app{max-width:960px!important;padding:28px 34px 150px!important}
html[data-theme] .topbar{padding:6px 2px 12px!important;margin:0 0 10px!important;align-items:center;gap:18px}
html[data-theme] .brand{gap:14px;min-width:0}
html[data-theme] .brand-name{font-size:25px!important;letter-spacing:-1.35px!important;line-height:1.06!important;font-weight:800!important}
html[data-theme] .brand-slogan{font-size:11px!important;font-weight:600!important;line-height:1.45;letter-spacing:0!important;margin-top:6px;color:var(--muted)!important;max-width:none!important}
/* Square identity uses art-only badge, full original logo remains available by opening it. */
html[data-theme] .topbar .brand-logo-trigger{
 width:56px!important;height:56px!important;min-width:56px!important;border-radius:18px!important;padding:5px!important;
 background:var(--surface)!important;border:1px solid var(--line)!important;overflow:hidden;
 display:grid!important;place-items:center!important;
 box-shadow:0 9px 30px rgba(0,0,0,.13)!important;transition:transform .25s var(--motion),box-shadow .25s var(--motion)
}
html[data-theme='renato'] .topbar .brand-logo-trigger{border-radius:13px!important}
html[data-theme] .topbar .brand-logo-trigger:hover{transform:translateY(-2px);box-shadow:0 14px 37px rgba(0,0,0,.19)!important}
html[data-theme] .brand-logo-picture{display:block;width:100%!important;height:100%!important;object-fit:contain!important;object-position:center!important;border-radius:12px}
html[data-theme='renato'] .brand-logo-picture{border-radius:8px}
html[data-theme] .top-actions{gap:11px}
html[data-theme] .profile-chip{display:flex;align-items:center;gap:7px;min-height:35px;padding:8px 12px;border:1px solid var(--line);background:var(--surface-alt);border-radius:999px;max-width:175px!important;color:var(--ink);font-size:12px!important;font-weight:700!important}
.status-indicator{width:7px;height:7px;min-width:7px;border-radius:100%;background:#49cda8;box-shadow:0 0 0 3px rgba(73,205,168,.13)}
html[data-theme] .icon-btn{height:42px;width:42px;display:grid;place-items:center;border-radius:14px!important;background:var(--surface)!important;border:1px solid var(--line);box-shadow:0 8px 25px rgba(0,0,0,.06)}
html[data-theme] .icon-btn:hover{background:var(--surface-alt)!important}
html[data-theme] .private-bar{margin:2px 0 19px;padding:9px 4px 13px;font-size:11px;gap:8px;opacity:.97;font-weight:650;color:var(--muted)}
html[data-theme] .private-bar .ui-icon{width:17px;height:17px}
html[data-theme] .private-bar .priv-mark{font-size:11px;font-weight:750;color:var(--brand)}
/* Large vector artwork remains sharp at any display resolution. Text always floats above art. */
html[data-theme] .hero{min-height:260px!important;padding:32px 38px!important;border-radius:28px!important;
 box-shadow:0 24px 70px rgba(0,0,0,.10),var(--shadow)!important;
 border:1px solid var(--line)!important;overflow:hidden;position:relative;isolation:isolate}
html[data-theme='mike'] .hero{background-image:linear-gradient(90deg,rgba(9,14,32,.98) 0%,rgba(9,14,32,.95) 33%,rgba(9,14,32,.31) 66%,transparent 100%),url('./assets/mike.svg')!important;border-color:#384068!important;box-shadow:0 22px 60px rgba(0,0,0,.35),inset 0 0 0 1px rgba(109,217,232,.05)!important}
html[data-theme='catalina'] .hero{background-image:linear-gradient(90deg,#fff8de 0%,rgba(255,248,222,.94) 37%,rgba(255,248,222,.21) 78%,transparent),url('./assets/catalina.svg')!important}
html[data-theme='renato'] .hero{background-image:linear-gradient(90deg,rgba(223,246,253,.99) 0%,rgba(223,246,253,.95) 32%,rgba(223,246,253,.20) 73%,transparent),url('./assets/renato.svg')!important;border-radius:20px!important;border:2px solid #9bcaab!important;box-shadow:0 18px 44px rgba(55,111,84,.12)!important}
html[data-theme] .hero-content{max-width:70%!important;width:70%}
html[data-theme] .eyebrow{font-size:10px!important;letter-spacing:1.85px!important;font-weight:850!important}
html[data-theme] .hero h1{font-family:var(--display-font);font-size:clamp(30px,4vw,44px)!important;font-weight:750!important;letter-spacing:-2px!important;line-height:1.09!important;margin:15px 0 12px!important;text-wrap:balance}
html[data-theme='renato'] .hero h1{font-weight:850!important;letter-spacing:-1.9px!important}
html[data-theme] .hero p{font-size:14px!important;font-weight:500!important;line-height:1.65!important;max-width:340px!important}
.hero-pill{display:inline-flex!important;align-items:center;gap:9px!important;margin-top:24px!important;padding:9px 13px!important;border-radius:13px!important;
 background:rgba(5,13,33,.22);border:1px solid rgba(255,255,255,.23);color:inherit;font-size:12px!important;font-weight:700!important;letter-spacing:0;font-variant-numeric:tabular-nums;
 max-width:100%;flex-wrap:wrap;row-gap:6px}
.hero-pill .ui-icon{width:16px!important;height:16px!important}
.hero-date{text-transform:capitalize}
.clock-divider{width:1px;height:15px;flex:0 0 1px;background:currentColor;opacity:.3;margin:0 2px}
.hero-clock{font-family:var(--display-font);font-size:13px;font-weight:800;letter-spacing:.2px;font-variant-numeric:tabular-nums}
html[data-theme='mike'] .hero-pill{background:rgba(6,18,39,.65)!important;border-color:rgba(117,250,232,.26)!important;color:#e1faf6!important}
html[data-theme='catalina'] .hero-pill{background:rgba(255,255,255,.76)!important;border-color:rgba(200,118,152,.24)!important;color:#6f4761!important}
html[data-theme='renato'] .hero-pill{background:rgba(255,255,255,.87)!important;border:1px solid #9dcfb6!important;border-radius:12px!important;color:#2d5943!important}
/* Clear hierarchy. Larger readable text and deliberate spacing. */
html[data-theme] .sectionhead{margin:36px 0 16px;align-items:center}
.section-eyebrow{font-size:10px!important;font-weight:850!important;letter-spacing:1.6px!important;margin-bottom:6px!important}
html[data-theme] .sectionhead h2{font-size:24px!important;font-weight:740!important;letter-spacing:-.85px!important;line-height:1.13!important}
html[data-theme] .date-pill{padding:8px 12px;font-size:12px;font-weight:700;border-radius:12px;background:var(--surface);color:var(--muted)}
html[data-theme] .grid2{gap:16px!important}
html[data-theme] .tile{padding:24px 25px!important;min-height:198px!important;border-radius:22px!important;border:1px solid var(--line)!important;
 box-shadow:0 16px 42px rgba(0,0,0,.06),inset 0 1px rgba(255,255,255,.05)!important;
 transition:transform .24s var(--motion),box-shadow .24s var(--motion)}
html[data-theme] .tile:hover{transform:translateY(-3px);box-shadow:0 22px 52px rgba(0,0,0,.13)!important}
html[data-theme='renato'] .tile{border-radius:16px!important;border-width:2px!important;box-shadow:0 12px 30px rgba(27,108,68,.08)!important}
.tile-glow{opacity:.48!important;right:-53px!important;top:-85px!important;width:220px!important;height:220px!important}
.metric-icon{width:46px!important;height:46px!important;border-radius:15px!important;margin-bottom:16px!important}
html[data-theme] .summaryCount{font-family:var(--display-font)!important;font-size:39px!important;font-weight:760!important;letter-spacing:-2px!important;margin-bottom:7px!important;font-variant-numeric:tabular-nums}
.summaryCount .metric-muted{font-family:var(--family-font);font-weight:500;font-size:20px}
html[data-theme] .tile b{font-family:var(--display-font);font-size:15px!important;font-weight:740!important;letter-spacing:-.25px!important;margin-bottom:5px!important}
html[data-theme] .tile p{font-size:12px!important;font-weight:500;line-height:1.5;margin:0!important}
html[data-theme] .daily-progress{padding:21px 25px;margin-top:17px!important;border-radius:20px!important;border:1px solid var(--line);box-shadow:0 12px 36px rgba(0,0,0,.035)!important}
html[data-theme='renato'] .daily-progress{border-radius:16px!important;box-shadow:0 10px 29px rgba(0,0,0,.035)!important;border-width:2px}
.daily-progress-header b{font-size:15px!important;font-weight:740!important}
.daily-progress-header span{font-size:12px!important}
.daily-progress-header strong{font-family:var(--display-font);font-size:23px!important;font-weight:760!important}
.progress{height:9px!important;margin-top:17px!important}
/* Cards & notes: editorial typography and consistent components */
html[data-theme] .card{padding:22px 24px!important;border:1px solid var(--line)!important;border-radius:19px!important;
 box-shadow:0 11px 38px rgba(0,0,0,.045)!important;margin:13px 0!important;transition:box-shadow .24s var(--motion),transform .24s var(--motion)}
html[data-theme] .card:hover{box-shadow:0 16px 48px rgba(0,0,0,.095)!important}
html[data-theme='renato'] .card{border:2px solid var(--line)!important;border-radius:14px!important;box-shadow:0 8px 26px rgba(38,97,54,.05)!important}
.note-avatar,.taskIcon,.daily-icon,.empty-illus{border-radius:15px!important;box-shadow:inset 0 1px rgba(255,255,255,.11)}
html[data-theme] .cardtitle{font-size:15px!important;font-weight:750!important;letter-spacing:-.2px}
html[data-theme] .note-body{font-size:14px!important;line-height:1.75!important;margin:17px 0!important;color:var(--ink)}
html[data-theme] .meta,.taskDetails{font-size:12px!important;line-height:1.55!important}
html[data-theme] .taskName{font-size:16px!important;font-weight:750!important;letter-spacing:-.3px}
html[data-theme] .pill{padding:6px 10px;border-radius:999px;font-family:var(--family-font);font-weight:750;font-size:11px;white-space:nowrap}
html[data-theme] .page-intro{margin:38px 0 22px}
html[data-theme] .page-intro h2{font-size:33px!important;letter-spacing:-1.25px!important;font-weight:780}
html[data-theme] .page-intro p,.miniDesc{font-size:14px!important;line-height:1.65!important}
html[data-theme] .empty.clean-empty{padding:32px 20px!important;background:var(--surface);border:1px dashed var(--line);border-radius:20px!important}
html[data-theme] .empty p{font-size:13px!important}
/* Controls */
html[data-theme] .btn{font-family:var(--family-font);font-size:13px!important;font-weight:750!important;letter-spacing:.05px!important;padding:12px 18px;border-radius:14px!important;min-height:46px;
 transition:transform .2s var(--motion),box-shadow .2s var(--motion),background .2s ease}
html[data-theme] .btn:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(0,0,0,.12)}
html[data-theme] .btn.tiny{font-size:12px!important;min-height:39px;padding:9px 14px}
html[data-theme='renato'] .btn{border-radius:12px!important;border-bottom-width:2px!important}
html[data-theme] .input,html[data-theme] .select,html[data-theme] .textarea{padding:14px 15px;border:1px solid var(--line);border-radius:14px;font-size:14px;line-height:1.55;min-height:48px}
html[data-theme] .input:focus,html[data-theme] .textarea:focus,html[data-theme] .select:focus{outline:2px solid var(--brand);outline-offset:1px;box-shadow:0 0 0 5px var(--accent-soft)}
html[data-theme] .switch{border-radius:15px;padding:5px;gap:5px}
html[data-theme] .switch button{min-height:40px;border-radius:12px;font-size:12px;font-weight:700}
html[data-theme] .switch button.on{box-shadow:0 4px 16px rgba(0,0,0,.07)}
html[data-theme] .family-feature{padding:23px 25px;border-radius:20px;box-shadow:var(--shadow)}
html[data-theme] .family-feature strong{font-size:17px;font-weight:760}
html[data-theme] .family-feature span{font-size:13px;line-height:1.5}
html[data-theme] .doc-card{border-radius:18px;padding:23px}
html[data-theme] .doc-card b{font-size:15px;font-weight:750}
html[data-theme] .doc-card span{font-size:12px}
html[data-theme] .modal{border-radius:24px;padding:28px;box-shadow:0 30px 95px rgba(0,0,0,.18)}
html[data-theme] .modal h2{font-size:26px;letter-spacing:-.9px}
html[data-theme] .footerNote{font-size:12px;margin-top:40px;opacity:.85}
/* Floating navigation: cohesive with all three personal themes */
html[data-theme] .bottomnav{max-width:900px!important;bottom:14px!important;left:50%!important;right:auto!important;transform:translateX(-50%)!important;width:calc(100% - 32px)!important;
 border-radius:23px!important;padding:9px 14px calc(9px + env(safe-area-inset-bottom))!important;
 border:1px solid var(--line)!important;background:var(--glass)!important;box-shadow:0 12px 50px rgba(0,0,0,.19)!important;
 justify-content:space-between;gap:4px;backdrop-filter:blur(28px) saturate(1.3);-webkit-backdrop-filter:blur(28px) saturate(1.3)}
html[data-theme] .navbtn{min-width:0;flex:1;min-height:60px;padding:8px 4px;border-radius:15px!important;gap:5px;font-family:var(--family-font);font-size:11px!important;font-weight:700!important;transition:background .2s ease,color .2s ease,transform .2s var(--motion)}
html[data-theme] .navbtn .nav-icon{height:24px;display:grid;place-items:center}
html[data-theme] .navbtn .nav-icon svg{height:22px!important;width:22px!important}
html[data-theme] .navbtn>span:last-child{font-size:11px;font-weight:700}
html[data-theme] .navbtn.active{background:var(--nav-active)!important;color:var(--brand)!important;transform:translateY(0)!important}
html[data-theme='mike'] .navbtn.active{color:#80f6e3!important}
html[data-theme='catalina'] .navbtn.active{color:#c0477f!important}
html[data-theme='renato'] .navbtn.active{color:#2e7b4b!important;border:0!important}
/* A calmer and current log-in screen, independent of profile skin */
html[data-theme='welcome'] body{background:radial-gradient(circle at 50% -5%,#def4f3,transparent 50%),linear-gradient(140deg,#f7fafb,#fff8f3)!important}
.login{max-width:465px;padding-top:48px!important}
.login-brand h1{font-family:'Outfit',system-ui,sans-serif;font-weight:800!important;letter-spacing:-1.8px}
.login-card{border-radius:22px!important;padding:28px!important;box-shadow:0 20px 70px rgba(50,96,126,.12)!important}
.login-card h2{font-family:'Outfit',system-ui,sans-serif;font-size:24px!important;font-weight:760!important}
.login-logo{border-radius:25px;transform:none!important;background:transparent!important;padding:5px!important}
.login-logo img{border-radius:19px;transform:none!important;object-fit:contain!important}
/* Accessibility / responsive refinements */
@media(min-width:1024px){html[data-theme] .app{padding-top:36px!important}}
@media(max-width:700px){
 html[data-theme] .app{padding:18px 17px calc(135px + env(safe-area-inset-bottom))!important}
 html[data-theme] .topbar{margin-bottom:10px!important}
 html[data-theme] .brand-name{font-size:22px!important;letter-spacing:-1.1px!important}
 html[data-theme] .brand-slogan{font-size:10px!important;line-height:1.3;max-width:210px!important}
 html[data-theme] .topbar .brand-logo-trigger{width:48px!important;height:48px!important;min-width:48px!important;border-radius:15px!important;padding:4px!important}
 html[data-theme] .top-actions{gap:7px}
 html[data-theme] .profile-chip{padding:7px 9px;max-width:100px!important;font-size:11px!important}
 html[data-theme] .private-bar{padding:9px 0 12px;margin-bottom:12px;font-size:10px}
 html[data-theme] .hero{min-height:242px!important;padding:25px 23px!important;border-radius:24px!important}
 html[data-theme] .hero-content{width:73%!important;max-width:73%!important}
 html[data-theme] .hero h1{font-size:clamp(28px,7vw,34px)!important;letter-spacing:-1.5px!important;margin:11px 0 8px!important}
 html[data-theme] .hero p{font-size:12px!important;line-height:1.55!important}
 html[data-theme] .hero-pill{font-size:10px!important;margin-top:16px!important;padding:8px 9px!important;gap:5px!important}
 html[data-theme] .hero-pill .ui-icon{width:14px!important;height:14px!important}
 .hero-clock{font-size:11px}
 html[data-theme] .sectionhead{margin:28px 0 12px}
 html[data-theme] .sectionhead h2{font-size:21px!important}
 html[data-theme] .tile{min-height:176px!important;padding:19px!important;border-radius:19px!important}
 html[data-theme] .grid2{gap:10px!important}
 html[data-theme] .summaryCount{font-size:36px!important}
 html[data-theme] .tile b{font-size:13px!important}
 html[data-theme] .daily-progress{padding:18px!important}
 html[data-theme] .card{padding:18px!important}
 html[data-theme] .note-body{font-size:13px!important}
 html[data-theme] .bottomnav{width:calc(100% - 22px)!important;bottom:8px!important;border-radius:21px!important;padding:7px 5px calc(7px + env(safe-area-inset-bottom))!important}
 html[data-theme] .navbtn{min-height:57px!important;padding:7px 2px;gap:4px!important;border-radius:15px!important}
 html[data-theme] .navbtn>span:last-child{font-size:10px!important}
 html[data-theme] .modal{border-radius:22px 22px 0 0;padding:23px 18px calc(23px + env(safe-area-inset-bottom))}
}
@media(max-width:420px){
 html[data-theme] .profile-chip{max-width:76px!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 html[data-theme] .hero{min-height:244px!important;padding:22px 19px!important}
 html[data-theme] .hero-content{width:77%!important;max-width:77%!important}
 html[data-theme] .hero p{max-width:235px!important}
 html[data-theme] .eyebrow{font-size:9px!important;letter-spacing:1px!important}
 html[data-theme] .hero-pill{max-width:260px;white-space:normal}
 html[data-theme] .hero-date{max-width:185px}
 html[data-theme] .tile{padding:16px!important}
 html[data-theme] .tile b{font-size:12.5px!important}
 .metric-icon{width:42px!important;height:42px!important}
 .quick-actions{flex-direction:column}.quick-actions>.btn{width:100%}
 .clock-divider{margin-inline:0}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}


/* Escáner: documentos locales y PDF multipágina. */
.scan-card{text-align:center;margin-bottom:18px!important}
.scan-hero-icon{width:60px;height:60px;margin:auto auto 12px;border-radius:18px;background:var(--accent-soft);color:var(--brand);display:grid;place-items:center}
.scan-hero-icon .ui-icon{height:29px!important;width:29px!important}
.scan-card h3{font-size:20px;font-family:var(--display-font);margin:3px 0 7px}
.scan-actions{justify-content:center;flex-wrap:wrap;gap:10px;margin:17px 0}
.scan-workspace{display:grid;gap:16px;margin:17px 0}
.scan-preview-card{display:grid;place-items:center;overflow:hidden;padding:12px;background:var(--surface);border:1px solid var(--line);border-radius:18px;min-height:190px}
.scan-preview-card canvas{max-width:100%;max-height:430px;object-fit:contain;box-shadow:0 8px 20px rgba(0,0,0,.13);border-radius:3px;background:#fff}
.scan-info{display:flex;flex-wrap:wrap;gap:8px;justify-content:space-between;align-items:center}
.scan-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.scan-controls label{display:grid;gap:7px;font-size:12px;color:var(--ink);font-weight:700}
.scan-controls input{accent-color:var(--brand);width:100%}
.scan-steps{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.scan-steps button{border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);padding:9px 12px;cursor:pointer}
.scan-steps button.current{outline:2px solid var(--brand)}
.scan-export{margin-top:16px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
@media(max-width:500px){.scan-controls{grid-template-columns:1fr}.scan-actions .btn{width:100%}.scan-workspace{gap:12px}}
/* Acompaña Autoescaneo 2026 */
.scan-source-card{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:12px;display:flex;justify-content:center;align-items:center;overflow:hidden;}
.scan-source-card canvas{display:block;max-width:100%;max-height:520px;width:auto;height:auto;object-fit:contain;touch-action:none;cursor:crosshair;border-radius:6px;box-shadow:0 10px 28px rgba(0,0,0,.15)}
.scan-detect-hint{border:1px solid color-mix(in srgb,var(--brand),transparent 55%);border-radius:13px;background:var(--accent-soft);padding:11px 14px;font-size:13px;line-height:1.5;color:var(--ink)}
.scan-hint{font-size:13px;color:var(--muted);margin:0}
@media(max-width:500px){.scan-source-card{padding:7px}.scan-source-card canvas{max-height:410px}}

/* Acompaña — APP, avisos importantes y agenda familiar */
.brand-app-badge{font-family:'Outfit',system-ui,sans-serif;vertical-align:middle;font-size:9px;letter-spacing:.17em;font-weight:800;display:inline-block;padding:3px 5px;border:1px solid currentColor;border-radius:6px;opacity:.7;transform:translateY(-3px)}
.login-app-word{text-align:center;color:#416f88;font-family:'Outfit',system-ui,sans-serif;font-weight:800;font-size:12px;letter-spacing:.44em;margin-top:-4px;margin-bottom:10px}
.note-important{border:1px solid #e77e6d!important;box-shadow:0 0 0 2px rgba(228,102,72,.11)!important}
.urgent-tag{display:flex;align-items:center;gap:7px;color:#e7894a;font-family:'Outfit',system-ui,sans-serif;font-size:11px;letter-spacing:.04em;font-weight:800;text-transform:uppercase;margin-bottom:13px}
.urgent-tag svg{width:18px!important;height:18px!important;}
.alert-detail{border-radius:13px;padding:10px;background:rgba(220,80,40,.09)}
.priority-toggle{border:1px solid var(--line);border-radius:14px;background:var(--surface);padding:14px;margin-block:14px}
.priority-toggle label{display:grid;grid-template-columns:24px 1fr;gap:3px 9px;align-items:center;font-size:13px;cursor:pointer}
.priority-toggle label span{grid-column:2;color:var(--muted);font-size:12px;line-height:1.5}
.priority-toggle input,.event-reminders input{accent-color:var(--brand);width:19px;height:19px}
.important-cta{background:#ac513d!important;color:#fff!important;}
.agenda-home{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:19px;margin-bottom:13px}
.agenda-home-copy>b{font:800 17px 'Outfit',system-ui,sans-serif}
.agenda-home-copy p{color:var(--muted);font-size:13px;margin:7px 0 0;line-height:1.45}
.calendar-event{display:flex!important;flex-direction:row!important;align-items:flex-start;gap:15px;margin-bottom:12px!important}
.event-datebox{width:61px;min-width:61px;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:10px;border-radius:15px;background:var(--accent-soft);color:var(--brand);text-transform:uppercase}
.event-datebox>b{font:800 25px 'Outfit',system-ui,sans-serif;line-height:1}.event-datebox>small{font-size:12px;font-weight:750;margin-top:4px}
.event-info{flex:1;min-width:0}.event-info>b{font:800 16px 'Outfit',system-ui,sans-serif}.event-info p{font-size:13px;color:var(--muted);line-height:1.5;margin:9px 0 3px}.event-remind{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:6px;margin-top:11px}.event-remind svg{width:14px!important;height:14px!important}
.event-note{display:flex;align-items:flex-start;gap:11px;border-radius:14px;padding:14px;background:var(--accent-soft);color:var(--ink);font-size:12px;line-height:1.55;margin-block:15px}.event-note svg{width:21px!important;min-width:21px!important}
.event-toolbar{display:flex;flex-wrap:wrap;gap:10px}.event-row{display:grid;grid-template-columns:1fr 1fr;gap:11px}.event-reminders{padding:16px;border-radius:14px;border:1px solid var(--line);display:grid;gap:12px;margin:15px 0}.event-reminders label{display:flex;align-items:center;gap:12px;font-size:13px;font-weight:650}
.event-detail b{font:800 22px 'Outfit',system-ui,sans-serif}.event-detail p{font-size:14px;line-height:1.5;color:var(--muted)}
@media(max-width:520px){.agenda-home{flex-direction:column;align-items:stretch}.agenda-home .btn{align-self:flex-start}.calendar-event{padding:14px!important;gap:10px}.event-datebox{width:54px;min-width:54px}.event-row{grid-template-columns:1fr}}

.important-home-banner{margin:15px 0;padding:16px;border:1px solid rgba(240,120,76,.55);background:rgba(240,120,76,.12);border-radius:19px;display:flex;gap:16px;align-items:center;justify-content:space-between}.important-home-banner b{font-family:'Outfit',system-ui;font-size:15px}.important-home-banner p{font-size:12px;color:var(--muted);margin:5px 0 0}.important-home-banner .btn{flex-shrink:0}@media(max-width:520px){.important-home-banner{flex-direction:column;align-items:flex-start}}
@media(max-width:700px){html[data-theme] .navbtn>span:last-child{font-size:9px!important}html[data-theme] .navbtn{min-height:55px!important;padding-inline:1px!important}.bottomnav .ui-icon{width:20px!important;height:20px!important}}
#toast{pointer-events:none!important}
/* Acompaña · fechas compartidas y documentos mejorados */
.event-share-pick{border:1px solid var(--line);border-radius:17px;padding:16px;margin:16px 0;background:var(--surface);display:grid;gap:10px;min-width:0}
.event-share-pick legend{font-family:var(--display-font);font-size:14px;font-weight:750;padding:0 6px}
.event-share-pick .checkboxline{display:flex;gap:12px;align-items:center;border:1px solid var(--line);border-radius:12px;padding:12px;font-size:14px;font-weight:650;cursor:pointer}
.event-share-pick input[type='checkbox']{width:19px;height:19px;accent-color:#15bfa9;flex-shrink:0}
.event-share-note{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--accent);margin:8px 0;line-height:1.4}
.event-share-note .ui-icon{width:15px;height:15px}
.scan-confirm-card{padding:15px 16px;margin:12px 0 16px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.scan-confirm-card b{font-family:var(--display-font);font-size:15px}
.scan-confirm-card p{margin:8px 0 12px}
.scan-compare{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.scan-compare button{justify-content:center}
.scan-preview-card canvas{max-width:100%;height:auto}
@media (max-width:520px){.event-share-pick{padding:12px}.event-share-pick .checkboxline{padding:11px}.scan-compare{grid-template-columns:1fr 1fr}}

/* Scanner one-tap: show the corrected document, not the photographed table */
.scan-document-sheet{background:color-mix(in srgb,var(--surface),#8ca3b7 6%);padding:clamp(12px,4vw,28px);min-height:240px}
.scan-document-sheet canvas{display:block;width:auto;max-width:100%;max-height:65vh;object-fit:contain;border-radius:2px;box-shadow:0 13px 35px rgba(3,16,32,.18);background:#fff}
.scan-manual-header{display:flex;gap:9px;align-items:center;flex-wrap:wrap}
.scan-attention{border-color:#e6ac74;background:color-mix(in srgb,var(--surface),#ffd09c 9%)}
.scan-ready{border-color:color-mix(in srgb,var(--brand),transparent 50%)}
.scan-workspace .scan-preview-card{margin:0}
.scan-workspace .scan-compare{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:0}
.scan-workspace .scan-compare button{min-width:0}
@media(max-width:500px){.scan-document-sheet{padding:12px}.scan-document-sheet canvas{max-height:57vh}.scan-workspace .scan-export .btn{flex:1 1 140px}}

/* Escáner: controles de acabado opcionales, Auto es el valor predeterminado */
.scan-advanced{border:1px solid var(--border,rgba(170,180,200,.25));border-radius:15px;padding:12px;margin-top:10px}
.scan-advanced summary{cursor:pointer;font-weight:600;font-size:.92rem;list-style:disclosure-closed}
.scan-advanced[open] summary{margin-bottom:12px}
