/* Tutor presentation only. Existing modules keep their styles and handlers. */
:root{--hv-ink:#0d2f4e;--hv-navy:#193d5d;--hv-sky:#d9f1fa;--hv-ice:#b8e4f4;--hv-orange:#f3a344;--hv-bg:#f6fafd;--hv-muted:#4e6177;--hv-shadow:0 9px 26px #193d5d15}
:is(#tutorHome,#tutorWellbeing,#tutorHuella)>.brandbar{background:radial-gradient(ellipse at 88% 85%,#2d668e,transparent 64%),linear-gradient(150deg,#193c61,#174f75);border-radius:0;isolation:isolate;padding-bottom:33px;margin-bottom:10px}
:is(#tutorHome,#tutorWellbeing,#tutorHuella)>.brandbar>.row{position:relative;z-index:1;align-items:flex-start}
:is(#tutorHome,#tutorWellbeing,#tutorHuella)>.brandbar .eyebrow{letter-spacing:.16em}
:is(#tutorHome,#tutorWellbeing,#tutorHuella)>.brandbar .eyebrow:after{content:"";display:block;width:24px;height:2px;background:#86d9f0;border-radius:3px;margin:6px 0}
#tutorHome>.brandbar h1{font-size:clamp(1.32rem,5vw,2.3rem);overflow-wrap:anywhere}
.visualHeaderPaw{position:absolute;z-index:-1;color:#9ddaf1;opacity:.20;right:29%;bottom:-3px;width:clamp(70px,19%,142px);transform:rotate(-12deg);pointer-events:none}
.visualHeaderPaw svg,.visualWave{display:block;width:100%}.visualWave{position:absolute;height:clamp(20px,5vw,42px);bottom:-1px;left:0;fill:var(--hv-bg);pointer-events:none}
#tutorHome:has(.visualDogCard)>#phPlanIntro{background:none;border:0;box-shadow:none;overflow:visible}
#tutorHome:has(.visualDogCard)>.sectionTitle{display:none}
.visualDogCard{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.9fr);gap:clamp(9px,3vw,24px);padding:6px 10px 6px 6px;background:#fff;border:1px solid #fff;border-radius:25px;box-shadow:var(--hv-shadow);align-items:center;color:var(--hv-ink)}
#phPlanIntro .visualDogCard .storyHeroPhoto{height:auto;aspect-ratio:1.12;border-radius:20px;min-height:135px}
#phPlanIntro .visualDogCard .storyPhotoMain{position:absolute;inset:0;display:grid;place-items:center}
#phPlanIntro .visualDogCard .storyPhotoMain img{width:100%;height:100%;object-fit:cover;object-position:center;border-radius:0}
.visualDogCopy{min-width:0;padding:4px 0}.visualDogCopy h2{margin:5px 0;color:var(--hv-ink);font-size:clamp(1.32rem,6.2vw,2.5rem);line-height:1.03;overflow-wrap:anywhere}
.visualDogCopy h2 svg,.wellbeingHeroHead h2 svg{width:.74em;color:#b96007;vertical-align:top;margin-left:.23em;transform:rotate(-13deg)}
.visualDogCopy p{color:var(--hv-muted);font-size:clamp(.78rem,3.4vw,1rem);margin:6px 0;line-height:1.22}
#phPlanIntro .visualDogCopy :is(.storyPlanPill,.storyProfilePill){position:static;display:inline-block;background:linear-gradient(130deg,#d9f1fa,#bfe7f5);color:var(--hv-ink);border:0;font-weight:750;font-size:clamp(.67rem,2.6vw,.91rem);white-space:normal;line-height:1.15;padding:5px 9px}
#phPlanIntro .visualDogCopy .storyProfilePill{min-height:44px;padding-inline:12px}
.visualDogTools{display:flex;flex-wrap:wrap;align-items:center;gap:5px 8px;margin:6px 0 10px}.visualDogTools p:empty{display:none}.visualDogTools .storyEditPhoto,.visualDogTools button{min-height:44px}
.visualActions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(5px,2vw,14px);margin-bottom:12px}
.visualActions button{border:1px solid #fff;background:#fff;color:var(--hv-ink);padding:11px 4px;min-width:0;border-radius:clamp(12px,5vw,24px);box-shadow:var(--hv-shadow);display:flex;flex-direction:column;align-items:center;gap:5px;text-align:center;line-height:1.16;font:inherit;cursor:pointer}
.visualActions strong{font-size:clamp(.76rem,3.3vw,1.08rem);line-height:1.15;overflow-wrap:anywhere}.visualActions button>span:last-child{font-size:clamp(.68rem,2.8vw,.9rem);color:var(--hv-muted);line-height:1.18}
.visualTileIcon{display:grid;place-items:center;width:clamp(35px,12vw,55px);aspect-ratio:1.25;border-radius:50%;background:#e0f2f9}.visualActions button:nth-child(2) .visualTileIcon{background:#fff0e0}
.visualTileIcon svg{width:65%;height:auto}.visualStory,.visualRecords{position:relative;isolation:isolate;overflow:hidden;border:1px solid white;border-radius:22px;box-shadow:var(--hv-shadow);color:var(--hv-ink);background:linear-gradient(145deg,#eef9fd,#d8eff8);padding:15px;width:100%;text-align:left}
.visualStory{cursor:pointer;font:inherit}.visualStory strong,.visualRecords h3{display:block;font-size:clamp(1rem,4vw,1.35rem);line-height:1.15;overflow-wrap:anywhere}.visualStory>span:last-child{display:block;margin-top:6px;max-width:81%;color:var(--hv-muted);font-size:.87rem;line-height:1.3}
.visualTrail{position:absolute;z-index:-1;right:-8px;bottom:-15px;width:30%;height:80%;border-radius:90% 5% 0 10%;background:#abdcec66;color:#28658a;display:flex;justify-content:center;align-items:flex-start;gap:7px}
.visualTrail svg{width:28%;margin-top:-4px;transform:rotate(-18deg)}.visualTrail svg:first-child path{stroke-dasharray:2.5 3.4}
.visualMemory{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:49px;border:0;border-radius:28px;margin:12px 0;color:white;background:linear-gradient(140deg,#0c83a9,#087898);box-shadow:var(--hv-shadow);font:inherit;cursor:pointer}
.visualMemory svg{width:34px;height:26px;border-right:1px solid #ffffff82;padding-right:9px}
#tutorHome #phPlanIntro .storyHeroContent{background:#fff;border-radius:21px;padding:14px 16px;box-shadow:var(--hv-shadow)}
#tutorWellbeing .wellbeingHero{border:0;background:transparent;box-shadow:none;padding:0;color:var(--hv-ink)}
#tutorWellbeing .wellbeingPawHub{max-width:680px;margin-inline:auto}
#tutorWellbeing .wellbeingHeroHead{max-width:680px;margin:0 auto 4px}#tutorWellbeing .wellbeingHeroHead h2{font-size:clamp(1.36rem,5.35vw,2.35rem);line-height:1.12;margin:0;color:var(--hv-ink)}
#tutorWellbeing .wellbeingPawIntro{text-align:left;margin:0 0 10px;color:var(--hv-muted);max-width:none}
#tutorWellbeing .wellbeingPawVisual{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
#tutorWellbeing .wellbeingDogPortrait{height:auto;width:100%;max-width:none;aspect-ratio:2.28;object-fit:cover;border:4px solid white;border-radius:clamp(17px,5vw,30px);box-shadow:var(--hv-shadow)}
#tutorWellbeing .wellbeingPawSvg{width:100%;max-width:580px;min-width:0;height:auto}
#tutorWellbeing .wellbeingPawPart{color:#0b617b}#tutorWellbeing .wellbeingPawPart[data-wellbeing-area=estado_mental]{color:#fff}
#tutorWellbeing .wellbeingPawPart>ellipse{stroke:#fff;stroke-width:3}#tutorWellbeing .wellbeingPawPart>path{stroke:var(--hv-orange);stroke-width:4}
#tutorWellbeing .wellbeingPawPart:focus-visible>:is(path,ellipse),#tutorWellbeing .wellbeingPawPart[aria-pressed=true]>ellipse{stroke:#0b617b;stroke-width:4}
#tutorWellbeing .wellbeingPawCaption{display:flex;align-items:center;gap:10px;background:var(--hv-sky);color:var(--hv-ink);border-radius:24px;border:1px solid white;padding:9px 13px;text-align:left;margin:0 0 10px}
.wellbeingPawCaption svg{flex:0 0 27px;width:27px;height:23px;padding-right:7px;border-right:1px solid #75aecb;color:#0b617b}
.visualRecords{background:#fff;margin-bottom:12px}.visualRecordsTitle{display:flex;align-items:center;gap:8px}.visualRecords h3{margin:0}.visualRecordsTitle svg{color:#0b617b;width:25px;flex:none}.visualRecords p{color:var(--hv-muted);font-size:.85rem;margin:6px 0 10px;max-width:76%}
.visualRecords button{min-height:44px;background:var(--hv-sky);color:var(--hv-ink);border:0;border-radius:24px;padding:0 13px;font:inherit;font-weight:700;cursor:pointer}
#tutorGlobalNav{border-top:1px solid #e7f0f5;border-radius:22px 22px 0 0;background:#fff;box-shadow:0 -5px 22px #193d5d10;padding-bottom:max(5px,env(safe-area-inset-bottom))}
#tutorGlobalNav .navitem{color:#4e6177;min-height:44px;min-width:0;padding-inline:1px;font-size:clamp(.58rem,2.3vw,.77rem);overflow-wrap:anywhere}
#tutorGlobalNav .navitem.active{color:#006f9a;background:#def2fa;border-radius:24px}
#tutorGlobalNav .navitem b svg{display:block;width:20px;height:20px;margin:auto}
.visualActions button:focus-visible,.visualStory:focus-visible,.visualMemory:focus-visible,.visualRecords button:focus-visible{outline:3px solid #126a91;outline-offset:2px}
@media(prefers-reduced-motion:no-preference){.visualActions button,.visualStory,.visualMemory{transition:transform .16s ease}.visualActions button:active,.visualStory:active,.visualMemory:active{transform:scale(.98)}}
@media(max-width:359px){.visualDogCard{padding-right:6px}.visualActions button{padding-inline:2px}.visualStory>span:last-child{max-width:90%}}
#tutorHome.active:has(.visualDogCard){display:flex;flex-direction:column}#tutorHome.active:has(.visualDogCard)>*{min-width:0}
#tutorHome.active:has(.visualDogCard)>.brandbar{order:-2}#tutorHome.active:has(.visualDogCard)>#phPlanIntro{order:-1}
#tutorHome>.brandbar #phPawsHome:not([hidden]){position:relative;z-index:1;margin-left:auto;max-width:max-content;background:#143c5c75;border:1px solid #80b9d488;border-radius:22px;padding:3px 8px}
#tutorHome .visualDogTools .storyEditPhoto{margin:0;display:inline-flex;align-items:center}
#tutorWellbeing .wellbeingHeroHead h2{text-align:left}
#tutorWellbeing .wellbeingPawPart .visualPillarIcon{pointer-events:none}
#tutorWellbeing .wellbeingPawPart .visualPillarIcon path{stroke:currentColor;stroke-width:1.7;stroke-dasharray:none}
#tutorWellbeing:has(.wellbeingHero)>.huellaBack{margin:4px 0;min-height:44px;align-self:flex-start}
#tutorWellbeing:has(.wellbeingHero)>.huellaCenterTabs{margin:5px 0 8px;gap:4px}
#tutorWellbeing .huellaCenterTabs .btn{min-width:0;min-height:44px;padding:5px 3px;font-size:clamp(.7rem,3vw,.9rem)}
#tutorWellbeing>.card:has(#wellbeingDogSelector){padding:6px 10px;box-shadow:none}
#tutorWellbeing>.card:has(#wellbeingDogSelector option:only-child){display:none}
@media(prefers-reduced-motion:no-preference){#tutorWellbeing #wellbeingAreaDetail>*{animation:hv-detail-in .18s ease-out}@keyframes hv-detail-in{from{opacity:.65;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}}
