:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#20282d;background:#f4f5f7;font-synthesis:none;--ink:#20282d;--muted:#657078;--line:#e9edef;--accent:#246a5e;--tint:#e9f3ef;--red:#b23e42;--radius:22px}*{box-sizing:border-box}body{margin:0;-webkit-text-size-adjust:100%}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:wait;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #4d9285;outline-offset:3px}a{color:var(--accent);text-underline-offset:3px}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}.shell{width:100%;max-width:720px;padding:24px 20px 124px;margin:0 auto}.app-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}.brand{display:flex;gap:9px;align-items:center;font-weight:750;font-size:20px;letter-spacing:-.6px}.brandmark{width:29px;height:29px;background:var(--accent);border-radius:10px 10px 10px 4px;color:#fff;display:grid;place-items:center;font-family:Georgia,serif;font-size:24px;line-height:1}.avatar{background:white;border:1px solid var(--line);border-radius:50%;height:44px;width:44px;display:grid;place-items:center;color:var(--accent);font-weight:700}.eyebrow{font-size:12px;text-transform:uppercase;letter-spacing:1.1px;color:var(--muted);font-weight:650;margin:0 0 7px}.title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}h1{font-size:34px;line-height:1.12;letter-spacing:-1.15px;margin:0 0 9px;font-weight:750}h2{font-size:21px;letter-spacing:-.5px;margin:0 0 14px}h3{font-size:17px;letter-spacing:-.25px;margin:0 0 7px}p{line-height:1.5;margin:0 0 12px}.subtitle{color:var(--muted);font-size:15px}.demo-label{display:inline-flex;gap:6px;align-items:center;background:#e8eeeb;color:#496459;border-radius:20px;padding:5px 9px;font-size:11px;white-space:nowrap;font-weight:650;letter-spacing:.2px}.baby-select{margin:15px 0 20px;display:flex;align-items:center;gap:11px}.baby-symbol{border-radius:50%;height:44px;width:44px;background:#e1ede8;color:#497367;font-size:19px;font-weight:650;display:grid;place-items:center;flex:none}.baby-select label{display:block;color:var(--muted);font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.7px}.baby-select select{border:0;background:transparent;font-size:17px;font-weight:650;color:var(--ink);padding:4px 25px 4px 0;max-width:100%;min-height:33px}.baby-select .baby-details{flex:1;min-width:0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:26px 1px 12px}.section-heading h2{margin:0}.text-button{border:0;background:transparent;color:var(--accent);font-size:14px;font-weight:600;min-height:44px;padding:8px 3px}.card{background:white;border-radius:var(--radius);padding:20px;margin:12px 0;box-shadow:0 2px 7px #253a3503}.card-header{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.card-header h3{margin:0}.card-icon{display:inline-flex;align-items:center;gap:7px;color:var(--accent);font-size:14px;font-weight:650}.card-icon svg{width:18px;height:18px}.muted{color:var(--muted)}.tiny{font-size:12px;line-height:1.45}.small{font-size:14px;line-height:1.5}.range-switch,.segmented{display:flex;padding:4px;background:#e8ebed;border-radius:12px;gap:4px;margin:15px 0}.range-switch button,.segmented button{flex:1;border:0;border-radius:9px;background:transparent;min-height:36px;font-size:13px;font-weight:600;color:var(--muted);padding:7px}.range-switch button.active,.segmented button.active{color:var(--ink);background:#fff;box-shadow:0 1px 4px #152b2510}.metric-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}.metric-grid .card{margin:0;padding:18px 16px}.metric-value{font-size:31px;line-height:1.1;letter-spacing:-1px;font-weight:700;margin:15px 0 7px}.metric-value span{font-size:15px;font-weight:500;color:var(--muted);letter-spacing:0}.metric-sub{color:var(--muted);font-size:12px;line-height:1.4;min-height:33px}.quick-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0 10px}.quick-action{border:0;background:#fff;border-radius:20px;min-height:94px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;padding:17px;color:var(--accent);gap:13px;box-shadow:inset 0 0 0 1px #d9e6e1;font-size:15px;font-weight:650}.quick-action svg{width:25px;height:25px}.quick-action:active{background:var(--tint)}.helper{font-size:12px;line-height:1.5;color:var(--muted);margin:10px 2px}.notice{border-left:3px solid #a9c6b9;background:#edf3ef;border-radius:4px 14px 14px 4px;padding:13px 15px;font-size:13px;line-height:1.5;color:#41594c;margin:16px 0}.notice p:last-child{margin:0}.notice.warning{border-color:#d3b88f;background:#f8f2e9;color:#755a36}.notice.error{border-color:#d19699;background:#faeff0;color:#9c3940}.timer{background:var(--accent);color:white}.timer .muted,.timer .tiny{color:#d5e7df}.timer .card-icon{color:#fff}.timer-value{font-size:38px;font-variant-numeric:tabular-nums;font-weight:650;letter-spacing:-1px;margin:10px 0 15px}.timer button{background:#fff;color:var(--accent)}.btn{border:0;border-radius:14px;min-height:48px;padding:13px 18px;display:inline-flex;gap:8px;align-items:center;justify-content:center;font-size:15px;font-weight:650;line-height:1.3;text-decoration:none;background:var(--accent);color:#fff}.btn.secondary{background:#edf3ef;color:var(--accent)}.btn.neutral{background:#f1f3f4;color:var(--ink)}.btn.danger{background:#faeff0;color:var(--red)}.btn.wide{display:flex;width:100%}.btn-row{display:flex;gap:9px;flex-wrap:wrap;margin-top:15px}.btn-row .btn{flex:1}.badge{display:inline-flex;align-items:center;background:#f0f3f2;color:#637067;font-size:11px;line-height:1.3;border-radius:6px;padding:4px 6px;font-weight:550}.badge.draft{color:#896a38;background:#f8f1e5}.badge.good{background:#e9f3ed;color:#386c52}.list{background:white;border-radius:var(--radius);overflow:hidden;margin:12px 0}.list-item{width:100%;border:0;border-bottom:1px solid var(--line);background:white;display:flex;align-items:center;gap:12px;text-align:left;padding:17px 18px;color:var(--ink);min-height:70px;text-decoration:none}.list-item:last-child{border-bottom:0}.list-item .body{flex:1;min-width:0}.list-item .name{font-size:15px;font-weight:600;overflow-wrap:anywhere}.list-item .meta{font-size:12px;color:var(--muted);margin-top:5px;line-height:1.5}.list-item .chevron{width:16px;color:#a8b0b3}.icon-box{width:36px;height:40px;border-radius:10px;display:grid;place-items:center;background:#f0f4f2;color:#50776a;flex:none}.icon-box svg{width:20px;height:20px}.empty{padding:32px 22px;text-align:center;background:#fff;border-radius:var(--radius);margin:14px 0}.empty svg{width:32px;height:32px;color:#8ca49a;margin:0 auto 12px}.empty h3{font-size:17px}.empty p{font-size:14px;color:var(--muted);margin-bottom:0}.tab-bar{position:fixed;z-index:5;bottom:0;left:0;right:0;background:#f9faf9f5;border-top:1px solid #dce3df;backdrop-filter:blur(20px);padding:8px 10px calc(8px + env(safe-area-inset-bottom));display:flex;justify-content:center;gap:2px}.tab-bar button{border:0;background:transparent;color:#7a8485;display:flex;flex:1;max-width:170px;flex-direction:column;align-items:center;gap:5px;min-height:51px;font-size:10px;font-weight:550;padding:4px 8px}.tab-bar button.active{color:var(--accent)}.tab-bar button.active svg{stroke-width:2.3}.tab-bar svg{width:23px;height:23px}.search-box{background:#e8ebed;border-radius:13px;display:flex;align-items:center;gap:9px;padding:0 13px;margin:18px 0 12px}.search-box svg{color:#81898d;width:20px}.search-box input{width:100%;background:none;border:0;min-height:48px;padding:10px 0;font-size:16px;outline:none}.search-result{display:block;border:0;background:#fff;border-radius:var(--radius);padding:19px;text-align:left;width:100%;margin:12px 0;color:var(--ink)}.search-result h3{margin:9px 0;font-size:17px}.search-result .excerpt{font-size:14px;color:#566269;line-height:1.55;overflow-wrap:anywhere}.citation{font-size:11px;color:#68766d;border-top:1px solid var(--line);padding-top:11px;margin-top:13px;line-height:1.5}.page-back{display:inline-flex;align-items:center;gap:5px;color:var(--accent);background:transparent;border:0;min-height:44px;padding:0;margin-bottom:10px;font-size:15px}.page-back svg{transform:rotate(180deg);width:16px}.timeline{border-left:1px solid #dce4df;margin:20px 0 0 8px;padding-left:22px}.timeline-item{position:relative;margin-bottom:22px}.timeline-item:before{content:"";height:7px;width:7px;background:#86a798;border:4px solid #f4f5f7;border-radius:50%;position:absolute;top:2px;left:-30px}.timeline-item p{margin:0 0 4px}.timeline-item .text-button{min-height:30px;padding:3px 0;font-size:12px}.prewrap{white-space:pre-wrap;overflow-wrap:anywhere}.details-row{display:grid;grid-template-columns:110px 1fr;gap:12px;margin:12px 0;font-size:13px;line-height:1.5}.details-row dt{color:var(--muted)}.details-row dd{margin:0;overflow-wrap:anywhere}.audit-item{font-size:13px;padding:14px 0;border-bottom:1px solid var(--line);line-height:1.5;overflow-wrap:anywhere}.audit-item:last-child{border-bottom:0}.audit-item .tiny{margin-top:5px}.form-field{display:flex;flex-direction:column;gap:7px;margin:0 0 17px}.form-field label,.form-label{font-size:13px;font-weight:650;color:#48554f}.form-field input,.form-field select,.form-field textarea{width:100%;min-height:48px;border:1px solid #dbe2de;border-radius:12px;padding:12px;background:#fff;color:var(--ink);font-size:16px;max-width:100%}.form-field textarea{min-height:110px;resize:vertical}.form-field input[type=file]{padding:11px;font-size:13px}.form-field input[type=checkbox]{width:22px;min-height:22px;accent-color:var(--accent)}.check-field{display:flex;gap:10px;align-items:flex-start;margin:16px 0;font-size:13px;line-height:1.5}.check-field input{width:20px;height:20px;accent-color:var(--accent);flex:none}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.form-grid .form-field{min-width:0}.form-hint{font-size:12px;color:var(--muted);font-weight:400;line-height:1.45}.field-error{padding:12px 14px;border-radius:12px;background:#faeff0;color:var(--red);font-size:13px;line-height:1.5;margin:0 0 16px}.loading{font-size:15px;color:var(--muted);padding:36px 0;text-align:center}.footer-note{font-size:11px;color:#808b86;line-height:1.6;text-align:center;padding:30px 16px 0}.sync-dot{height:5px;width:5px;border-radius:50%;background:#8aa89a;display:inline-block;margin-right:5px}.toast{position:fixed;z-index:30;bottom:calc(88px + env(safe-area-inset-bottom));left:20px;right:20px;max-width:660px;margin:auto;border-radius:14px;background:#243d33;color:#fff;padding:14px 17px;font-size:14px;box-shadow:0 5px 25px #12251b20;line-height:1.4}.toast.error{background:#8e343b}dialog{border:0;border-radius:26px 26px 0 0;padding:0;background:#fff;color:var(--ink);width:min(100%,680px);max-width:100%;max-height:92dvh;margin:auto auto 0;box-shadow:0 -10px 60px #13281b15;overscroll-behavior:contain}dialog::backdrop{background:#172c2455;backdrop-filter:blur(3px)}.sheet-head{position:sticky;top:0;z-index:2;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:22px 22px 17px;background:#fff;border-bottom:1px solid var(--line)}.sheet-head h2{font-size:22px;margin:2px 0;letter-spacing:-.5px;overflow-wrap:anywhere}.close-button{height:36px;width:36px;min-width:36px;border:0;border-radius:50%;background:#f0f2f3;color:#6b7670;display:grid;place-items:center}.close-button svg{width:19px;height:19px}.sheet-body{padding:21px 22px calc(28px + env(safe-area-inset-bottom))}.sheet-body h3{margin-top:20px}.sheet-body .notice:first-child{margin-top:0}.sheet-body .card{background:#f5f7f6}.sheet-body details{border-top:1px solid var(--line);padding:15px 0}.sheet-body summary{cursor:pointer;font-size:14px;font-weight:600;min-height:28px}.sheet-body details .tiny{margin-top:10px}.version{border-left:2px solid #dbe6df;margin:15px 0;padding-left:13px}.chip-row{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.chip{padding:7px 10px;background:#ecf1ee;border-radius:20px;color:#4f6d5e;border:0;font-size:12px;min-height:34px}.media-preview{width:100%;max-height:340px;background:#f3f5f4;border-radius:14px;margin:12px 0;object-fit:contain}.hash{font:11px/1.6 ui-monospace,SFMono-Regular,monospace;word-break:break-all;color:var(--muted)}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.skip-link{position:fixed;top:-100px;left:15px;z-index:100;background:#fff;padding:12px}.skip-link:focus{top:15px}.no-margin{margin:0}.divider{border:0;border-top:1px solid var(--line);margin:22px 0}[hidden]{display:none!important}@media(min-width:760px){.shell{padding-top:35px;max-width:680px}.tab-bar{left:50%;transform:translateX(-50%);max-width:680px;border-radius:22px 22px 0 0;border:1px solid #dce3df}.metric-grid .card{padding:22px}.quick-action{min-height:100px}dialog{margin:auto;border-radius:26px;max-height:88dvh}.sheet-body{padding-bottom:28px}}@media(max-width:360px){.shell{padding-left:14px;padding-right:14px}h1{font-size:30px}.metric-grid{gap:9px}.metric-grid .card{padding:16px 13px}.metric-value{font-size:28px}.quick-action{padding:15px;font-size:14px}.sheet-body,.sheet-head{padding-left:17px;padding-right:17px}}@media(prefers-reduced-motion:no-preference){.card,.list{animation:appear .22s ease both}@keyframes appear{from{opacity:.3;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}} @media(prefers-contrast:more){:root{--muted:#46524c;--line:#bcc9c1}.card,.list{border:1px solid var(--line)}}
:root{background:#fff;--tint:#edf4f0;--accent:#286658;--soft:#f5f7f6;--pastel:#e5f0e9}
:root[data-gender=female]{--tint:#fbf0f3;--pastel:#f6e4eb;--accent:#845669}
:root[data-gender=male]{--tint:#edf3fa;--pastel:#e3edf8;--accent:#466a8b}
body{background:#fff}.shell{padding-bottom:160px}.card{background:var(--soft);box-shadow:none}.list{border:1px solid #eef1ef}.empty{background:#f7f9f8}.demo-label{background:var(--tint);color:var(--accent)}.baby-symbol{background:var(--pastel);color:var(--accent)}.quick-action{background:var(--tint);box-shadow:none}.range-switch,.segmented{background:#f1f3f2}.timer{background:var(--accent)}.timer .btn{color:var(--accent);background:white}.notice{background:#f0f5f2;border-color:#b4cdbf;color:#4a6254}.timeline-item:before{border-color:#fff}.header-actions{display:flex;align-items:center;gap:10px}.contact-top{display:flex;align-items:center;gap:6px;color:var(--accent);background:none;border:0;padding:9px 7px;min-height:44px;font-size:12px;font-weight:600}.contact-top svg{height:18px;width:18px}.add-fab{position:fixed;bottom:calc(86px + env(safe-area-inset-bottom));right:max(20px,calc((100vw - 680px)/2 + 20px));z-index:5;width:56px;height:56px;border:1px solid #ffffff88;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;box-shadow:0 3px 15px #173e2c20}.add-fab svg{width:27px;height:27px}.assistant-entry h3{margin-top:16px}.contact-inline{display:flex;align-items:center;gap:8px;width:100%;min-height:48px;border:1px solid #dbe6df;border-radius:13px;color:var(--accent);background:#f3f7f4;font-size:14px;font-weight:600;padding:11px 13px;margin:0 0 17px}.chat-question{margin:20px 0 12px 35px;padding:13px 15px;border-radius:16px 16px 3px 16px;background:var(--tint)}.chat-answer{padding:5px 0 12px;border-bottom:1px solid var(--line);margin-bottom:17px}.chat-citation{width:100%;padding:12px;display:flex;gap:10px;text-align:left;border:1px solid #e1e7e3;border-radius:12px;background:#fff;color:var(--accent);font-size:13px;margin:8px 0;line-height:1.5}.chat-citation svg{width:18px;height:18px}.chat-citation small{color:var(--muted)}.update-banner{display:flex;align-items:center;justify-content:space-between;background:#f0f5f1;border-radius:13px;padding:4px 13px;font-size:13px;margin:0 0 20px;gap:10px}.top-space{margin-top:17px}.intro-title{margin-top:35px}.list-item .chevron,.list-item>svg:last-child{width:16px;color:#a4afa8;flex:none}.list-item .meta{display:block}.form-field input[type=file]::file-selector-button{border:0;border-radius:7px;padding:7px 10px;background:#edf3ef;color:#466453;margin-right:10px}.sheet-body .list{border-color:#e9eeea}.sheet-body .notice.warning{background:#f8f2e9;color:#755a36}.sheet-body .notice.error{background:#faeff0;color:#9c3940}@media(min-width:760px){.shell{padding-bottom:155px}}@media(max-width:360px){.header-actions{gap:4px}.contact-top{font-size:11px;gap:3px}.brand{font-size:19px}.brandmark{width:26px;height:26px}.tab-bar{padding-left:2px;padding-right:2px}.tab-bar button{padding-left:4px;padding-right:4px;font-size:9px}}

.baby-select select{min-height:44px}.range-switch button,.segmented button,.chip,.text-button{min-height:44px}.close-button{height:44px;width:44px;min-width:44px}.timer-sides{display:flex;gap:9px;margin:12px 0 15px}.timer-sides button{flex:1;min-height:44px;border:1px solid #ffffff66;border-radius:11px;background:#ffffff1c;color:#fff;font-size:13px;font-weight:600}.timer-sides button:disabled{opacity:1;background:#fff;color:var(--accent);cursor:default}

/* Contacto siempre disponible; el aviso deja libre la acción +. */
.app-header{position:sticky;top:0;z-index:8;background:#fffffff5;backdrop-filter:blur(16px);padding-top:10px;padding-bottom:10px;margin-top:-10px;border-bottom:1px solid #edf1ee}.toast{bottom:calc(154px + env(safe-area-inset-bottom));max-height:30dvh;overflow:auto}.draft-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;background:#f7f4ed;border-radius:14px;margin:12px 0 18px}.draft-banner strong{display:block;font-size:13px;font-weight:650;color:#695b40}.draft-banner span{display:block;font-size:11px;line-height:1.5;color:#82755e;margin-top:3px}.draft-banner .text-button{flex:none;font-size:12px;max-width:110px;line-height:1.4}

.app-header{top:env(safe-area-inset-top,0px)}.shell{padding-top:calc(24px + env(safe-area-inset-top,0px))}

.auth-shell{max-width:520px}.auth-shell h1{margin-top:26px}.auth-card{margin-top:25px;padding:23px}.auth-card .text-button{display:block;width:100%;margin-top:9px}.auth-shell .helper{margin:18px 5px;line-height:1.6}

.exam-state{display:inline-block;color:#667b6d;margin-top:4px;font-size:11px}.json-editor,.json-preview{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px;line-height:1.6}.json-editor{min-height:160px!important}.json-preview{white-space:pre-wrap;overflow-wrap:anywhere;background:#f2f5f3;border-radius:12px;padding:12px;max-width:100%}

.auth-code-actions{display:flex;gap:10px;justify-content:space-between}.auth-code-actions .text-button{width:auto;flex:1;font-size:13px}.auth-card input[name=code]{font-size:24px;letter-spacing:7px;font-variant-numeric:tabular-nums;text-align:center}.auth-card .notice{margin-top:0}.auth-shell .segmented{margin-top:24px;margin-bottom:0}

/* El entorno sintético permanece identificado también en hojas y acceso. */
.app-header,.sheet-head{flex-wrap:wrap;row-gap:9px}.sheet-head h2{flex:1;min-width:0}.synthetic-banner{flex:0 0 100%;display:flex;flex-direction:column;gap:3px;border:1px solid #d8e7df;background:#eef6f1;color:#365d49;border-radius:11px;padding:9px 11px;font-size:12px;line-height:1.45}.synthetic-banner strong{font-size:12px;font-weight:700}.synthetic-banner span{font-size:11px}.sheet-head .synthetic-banner{margin-bottom:3px}
