:root {
  --td-navy:#14344f; --td-blue:#08779c; --td-sky:#e4f2f8; --td-paper:#fffdf9;
  --td-bg:#f4f7fa; --td-muted:#4d6475; --td-line:#dce6ec; --td-orange:#ad5609;
  --td-1:4px; --td-2:8px; --td-3:12px; --td-4:16px; --td-5:24px;
  --td-radius:20px; --td-shadow:0 4px 18px #193d5d0d;
}

.td-screen {
  --td-edge:clamp(16px,4vw,24px);
  color:var(--td-navy);
  font:400 1rem/1.48 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
.td-screen :where(h1,h2,h3,p) { overflow-wrap:break-word; }
.td-screen h1 { font-size:clamp(1.65rem,7vw,2rem); line-height:1.1; }
.td-screen h2 { font-size:clamp(1.23rem,5vw,1.5rem); line-height:1.2; }
.td-screen h3 { font-size:clamp(1.06rem,4vw,1.2rem); line-height:1.24; }
.td-screen :where(.sub,.mini) { font-size:.875rem; line-height:1.42; color:var(--td-muted); }
.td-screen :where(.eyebrow) { font-size:.75rem; letter-spacing:.07em; }
.td-screen :where(.card,.hid-card) { border-radius:var(--td-radius); box-shadow:var(--td-shadow); }
.td-screen :where(button,select,input:not([type=checkbox],[type=radio],[type=file]),textarea) { min-height:44px; }
.td-screen :where(select,input:not([type=checkbox],[type=radio],[type=file]),textarea) { font-size:max(16px,1rem); }
.td-screen :where(button,input,textarea,select,a,summary):focus-visible { outline:2px solid var(--td-blue); outline-offset:3px; }
.td-screen :where(.btn.blue) { background:var(--td-blue); color:white; }
.td-screen :where(.btn.light) { background:var(--td-sky); color:var(--td-navy); }
.td-screen :where(fieldset) { min-inline-size:0; }
.td-screen .brandbar :where(.sub,.mini), .td-screen .hid-brandbar p { color:#e3f2fa; }
.td-screen > .brandbar > .row { align-items:flex-start; gap:var(--td-3); }
.td-screen > .brandbar > .row > :first-child { min-width:0; }
.td-screen .dt-full-logo { max-width:100%; width:clamp(84px,23vw,145px); }
.td-screen > .brandbar .brandWordmark { flex:0 0 auto; max-width:32%; }
.td-screen > .brandbar { padding-bottom:30px; }

/* Navigation and menu rows use the same compact controls. */
.td-menu { display:grid; gap:var(--td-4); margin-block:var(--td-4); }
.td-menu-group { min-width:0; }
.td-menu-group > h2 { margin:0 0 6px 8px; color:var(--td-muted); font-size:.875rem; font-weight:700; }
.td-menu-list { min-width:0; padding:0 var(--td-3); background:var(--td-paper); border:1px solid var(--td-line); border-radius:var(--td-radius); box-shadow:var(--td-shadow); }
#tutorMore .td-menu-row {
  margin:0; width:100%; min-width:0; padding:10px 1px; border:0; border-radius:0;
  background:transparent; box-shadow:none; text-align:start; color:var(--td-navy);
}
#tutorMore .td-menu-row:not(.hidden,[hidden]) ~ .td-menu-row:not(.hidden,[hidden]) { border-top:1px solid var(--td-line); }
#tutorMore .td-menu-row .td-row-inner {
  display:grid; grid-template-columns:34px minmax(0,1fr) 16px; align-items:center; gap:10px;
}
.td-row-icon { display:grid; place-items:center; width:34px; height:34px; border-radius:11px; color:var(--td-blue); background:var(--td-sky); }
.td-row-icon svg { width:18px; height:18px; }
.td-row-title { display:block; font-size:1rem; line-height:1.22; }
.td-row-description { display:block; color:var(--td-muted); font-size:.8125rem; line-height:1.28; margin-top:3px; }
.td-row-chevron { color:var(--td-muted); font-size:1.15rem; }
.td-menu-version { padding:10px 0; margin:0; text-align:start; font-size:.8125rem; color:var(--td-muted); }
#tutorMore .td-menu-root-back { display:none; }
:is(#tutorStory,#tutorFreeLearn,#tutorMore) > [data-app-back] { display:none; }
#tutorMore .td-menu-extra { padding:8px 0; margin:0; border:0; border-top:1px solid var(--td-line); border-radius:0; box-shadow:none; background:transparent; }
#tutorMore [data-story-more] h2, #tutorMore [data-story-more] [data-story-route=plans] { display:none; }
#tutorMore .td-menu-extra .storyActions { display:flex; flex-wrap:wrap; gap:4px; margin:0; }
#tutorMore .td-menu-extra .storyActions .btn { margin:0; text-align:start; width:auto; }

/* Home prioritizes the photo, then the next actions. */
#tutorHome .visualDogCard { position:relative; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); padding:8px; gap:clamp(10px,3vw,20px); background:var(--td-paper); box-shadow:var(--td-shadow); }
#tutorHome .visualDogCopy { padding:8px 6px 8px 0; }
#phPlanIntro .visualDogCard .storyHeroPhoto { min-height:0; aspect-ratio:1 / 1.05; }
#phPlanIntro .visualDogCard .storyPhotoMain img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
#tutorHome .visualActions { gap:7px; }
#tutorHome .visualActions button { padding:10px 4px; min-width:0; }
#tutorHome .visualActions strong { font-size:clamp(.78rem,3vw,1rem); }
#tutorHome .visualActions button > span:last-child { font-size:.75rem; }
.td-home-links { display:flex; flex-wrap:wrap; gap:var(--td-2); margin:var(--td-3) 0 var(--td-4); }
.td-home-links button { padding:6px 12px; background:var(--td-sky); border:0; border-radius:12px; color:var(--td-navy); font:inherit; font-weight:650; }
.td-home-score { display:flex; gap:var(--td-3); align-items:center; justify-content:space-between; padding:12px 14px; margin:var(--td-3) 0; background:var(--td-paper); border:1px solid var(--td-line); border-radius:var(--td-radius); }
.td-home-score button { flex:none; }
.td-home-score[hidden], #tutorHuellaId .td-id-summary[hidden] { display:none; }

/* The five interactive pads keep their existing SVG and handlers. */
#tutorWellbeing .wellbeingHero { margin-inline:0; padding:0; }
#tutorWellbeing .wellbeingPawHub, #tutorWellbeing .wellbeingHeroHead { max-width:760px; width:100%; }
#tutorWellbeing .wellbeingPawSvg { width:100%; max-width:660px; margin-inline:auto; }
.td-screen :where(.wellbeingChartWrap,.hid-chart-dates) { max-width:100%; }
.td-screen :where(.wellbeingChart,.hid-chart-dates svg) { max-width:100%; height:auto; }

/* Community keeps its existing feed and visibility controls. */
#tutorStory .phStoryHeader { background:var(--td-paper); }
#tutorStory .phStoryHeader h2 { margin:6px 0 4px; }
#tutorStory .phStoryHeader p { margin-block:6px; }
#tutorStory .phStoryHeader label:has([data-story-team-consent]) { display:flex; align-items:center; gap:8px; min-height:44px; }
#tutorStory [data-story-team-consent] { flex:none; width:20px; }
#tutorStory .phStoryTabs { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; padding:4px; background:var(--td-sky); border-radius:14px; }
#tutorStory .phStoryTabs button { width:100%; margin:0; padding:6px 5px; box-shadow:none; border:0; border-radius:10px; }
#tutorStory .phStoryTabs .blue { color:var(--td-navy); background:white; box-shadow:var(--td-shadow); }
#tutorStory .phStoryFilters { display:flex; gap:4px; flex-wrap:wrap; }
#tutorStory .phStoryCard { padding:0; overflow:hidden; }
#tutorStory .phStoryCaption { padding:14px 16px; }
#tutorStory .phStoryCaption .eyebrow { font-size:.78rem; }
#tutorStory .phStoryMedia:empty { display:none; }
#tutorStory .chapterCommunityPrompt { padding:12px; border-radius:14px; background:#f5f2eb; border-inline-start:3px solid #cb8638; }
#tutorStory .chapterCommunityPrompt button { display:block; margin:8px 0 0; }

/* Learning keeps choices readable at one or two columns. */
#tutorFreeLearn .phMicroCard { background:linear-gradient(138deg,#fffdf9,#eaf5fb); border:1px solid #d3e7ef; padding:clamp(14px,4vw,24px); }
#tutorFreeLearn .storyLearningLead h2 { margin:6px 0; }
#tutorFreeLearn .phMicroChoices { display:grid; grid-template-columns:1fr; gap:var(--td-2); }
#tutorFreeLearn .phMicroChoices button { margin:0; text-align:start; white-space:normal; }
#tutorFreeLearn .storyLearningLead { padding:14px 16px; }
@media (min-width:660px) { #tutorFreeLearn .phMicroChoices { grid-template-columns:repeat(2,minmax(0,1fr)); } }

/* Huella ID keeps sharing above the records without changing the QR flow. */
#tutorHuellaId .hid-brandbar { margin-inline:calc(-1 * var(--td-edge)); padding-inline:var(--td-edge); }
#tutorHuellaId .hid-body { display:flex; flex-direction:column; gap:var(--td-2); padding:12px 0 0; }
#tutorHuellaId .hid-body > :empty { display:none; }
#tutorHuellaId [data-experiments] { order:-1; }
#tutorHuellaId .td-id-summary { order:-2; }
#tutorHuellaId .hid-body > label { order:-3; }
#tutorHuellaId .hid-body > .td-id-single { display:none; }
#tutorHuellaId .hid-brand-top [data-close] { background:transparent; color:#e3f2fa; padding-inline:0; font-size:.875rem; }
#tutorHuellaId .hid-card { padding:14px; margin:4px 0; }
#tutorHuellaId [data-experiments] .hid-card { border-inline-start:4px solid #79b9d3; }
#tutorHuellaId .td-id-summary { display:grid; grid-template-columns:auto minmax(0,1fr); gap:12px; align-items:center; padding:12px; border:1px solid var(--td-line); border-radius:var(--td-radius); background:var(--td-paper); }
#tutorHuellaId .td-id-summary h3,#tutorHuellaId .td-id-summary p { margin:0; }
#tutorHuellaId .td-id-summary img { width:64px; height:64px; object-fit:cover; border-radius:13px; }
#tutorHuellaId .td-id-summary.td-id-no-photo { grid-template-columns:minmax(0,1fr); }

@media (max-width:767px) {
  .td-screen { padding-inline:var(--td-edge); padding-top:env(safe-area-inset-top); padding-bottom:max(var(--td-nav-height,80px),calc(78px + env(safe-area-inset-bottom))); }
  .td-screen > .brandbar { margin-inline:calc(-1 * var(--td-edge)); padding-inline:var(--td-edge); margin-top:0; }
  #tutorGlobalNav.td-nav:not(.hidden) { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); grid-auto-flow:row; gap:0 1px; padding:4px 3px max(4px,env(safe-area-inset-bottom)); }
  #tutorGlobalNav.td-nav .navitem { width:100%; min-width:0; min-height:48px; padding:5px 0; line-height:1.05; text-align:center; font-size:clamp(.65rem,2.5vw,.76rem); overflow-wrap:anywhere; }
  #tutorGlobalNav.td-nav .navitem b { margin-inline:auto; }
  #tutorGlobalNav.td-nav .navitem b svg { width:19px; height:19px; }
  #tutorHuellaId .hid-body { padding-bottom:12px; }
}
@media (min-width:768px) {
  #tutorHuellaId .hid-brandbar { margin-inline:0; }
  .td-menu { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
}
@media (prefers-reduced-motion:reduce) {
  .td-screen, .td-screen .td-menu-row { scroll-behavior:auto; transition:none; }
}

/* Compact, photographic first screens. */
/* Photo layers share one responsive mask: the face stays sharp; only the wash is blurred. */
#tutorHome > .td-mast .td-greeting-image {
  position:absolute; inset:0 0 0 auto; width:55%; max-width:none; height:100%;
  object-fit:cover; object-position:50% 46%; z-index:-1; pointer-events:none; border-radius:0;
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,#0006 24%,#000 48%,#000 86%,transparent 100%),linear-gradient(180deg,transparent 0%,#0008 14%,#000 30%,#000 68%,transparent 100%);
  mask-image:linear-gradient(90deg,transparent 0%,#0006 24%,#000 48%,#000 86%,transparent 100%),linear-gradient(180deg,transparent 0%,#0008 14%,#000 30%,#000 68%,transparent 100%);
  -webkit-mask-composite:source-in; mask-composite:intersect;
}
#tutorHome > .td-mast .td-home-photo-wash {
  display:block; position:absolute; inset:-8px -8px -8px auto; width:76%; height:calc(100% + 16px);
  object-fit:cover; object-position:50% 46%; z-index:-3; pointer-events:none;
  filter:blur(10px) saturate(.85); opacity:.42;
  -webkit-mask-image:linear-gradient(90deg,transparent,#0009 65%,transparent),linear-gradient(transparent,#000 25%,#000 60%,transparent);
  mask-image:linear-gradient(90deg,transparent,#0009 65%,transparent),linear-gradient(transparent,#000 25%,#000 60%,transparent);
  -webkit-mask-composite:source-in; mask-composite:intersect;
}
@media(min-width:768px) {
  #tutorHome > .td-mast .td-greeting-image { width:auto; max-width:54%; right:8%; object-fit:contain; object-position:center; }
}

.td-screen > .brandbar { min-height:0; padding-top:16px; padding-bottom:25px; margin-bottom:10px; }
.td-screen > .brandbar h1 { margin:3px 0 4px; }
.td-screen > .brandbar p { margin:2px 0; line-height:1.3; font-size:.875rem; }
.td-screen > .brandbar .eyebrow { font-size:.69rem; letter-spacing:.12em; }
#tutorHome > .brandbar { min-height:148px; position:relative; }

#tutorHome > .brandbar .visualWave { z-index:2; }
#tutorHome > .brandbar.td-greeting-has-photo .visualHeaderPaw { display:none; }
#tutorHome > .brandbar.td-greeting-has-photo .row > :first-child { max-width:59%; }
#tutorHome .visualDogCard { grid-template-columns:62px minmax(0,1fr); min-height:76px; gap:12px; border-radius:18px; padding:9px 12px; }
#phPlanIntro .visualDogCard .storyHeroPhoto { aspect-ratio:1; border-radius:50%; }
#tutorHome .visualDogCopy { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:2px 8px; align-items:center; padding:0; }
#tutorHome .visualDogCopy h2 { grid-column:1; grid-row:1; font-size:clamp(1.08rem,4.5vw,1.35rem); margin:0; }
#tutorHome .visualDogCopy h2 svg { display:none; }
#tutorHome .visualDogCopy p { display:none; }
#tutorHome .visualDogCopy .storyPlanPill { grid-column:1; grid-row:2; justify-self:start; background:none; padding:0; color:var(--td-muted); font-size:.78rem; }
#tutorHome .visualDogCopy .storyProfilePill { grid-column:2; grid-row:1 / span 2; border-radius:12px; font-size:.78rem; }
#tutorHome .visualActions { grid-template-columns:minmax(0,1fr); gap:6px; }
#tutorHome .visualActions button {
  position:relative; display:grid; grid-template-columns:38px minmax(0,1fr) 14px; grid-template-rows:auto auto;
  gap:2px 9px; padding:7px 11px; text-align:left; border:1px solid var(--td-line); border-radius:15px; min-height:56px;
}
#tutorHome .visualActions [data-open-weekly] { order:-2; }
#tutorHome .visualActions [data-micro-open] { order:-1; }
#tutorHome .visualActions .visualTileIcon { grid-column:1; grid-row:1 / span 2; width:34px; height:34px; justify-self:center; border-radius:10px; aspect-ratio:1; }
#tutorHome .visualActions button strong { grid-column:2; font-size:.97rem; align-self:end; }
#tutorHome .visualActions button > span:last-child { grid-column:2; align-self:start; }
#tutorHome .visualActions button::after { content:"›"; grid-column:3; grid-row:1 / span 2; align-self:center; color:var(--td-blue); }
#tutorHome .visualActions :is([data-open-weekly],[data-story-panel]) .visualTileIcon { color:var(--td-orange); background:#fff0de; }
#tutorHome .visualStory { padding:12px 14px; }

.td-wellbeing-overview { display:grid; gap:10px; margin-bottom:10px; }
.td-wellbeing-profile { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,.92fr); align-items:center; gap:12px; }
.td-wellbeing-profile.td-id-no-photo { grid-template-columns:1fr; }
#tutorWellbeing .td-wellbeing-profile .wellbeingDogPortrait { width:100%; aspect-ratio:1.34; border:0; border-radius:14px; }
.td-wellbeing-profile h2,.td-wellbeing-profile p { margin:0; }
.td-wellbeing-profile p { font-size:.82rem; color:var(--td-muted); }
.td-wellbeing-profile button { margin-top:4px; }
.td-index-ring {
  --td-index:0%;
  display:grid; place-items:center; margin:1px auto 0; width:clamp(140px,43vw,190px); aspect-ratio:1;
  border-radius:50%; padding:7px;
  background:conic-gradient(#197b9d 0%,#299485 calc(var(--td-index)*.72),#349c90 var(--td-index),#dbe8ef var(--td-index));
}
.td-index-ring.td-index-empty { background:#dbe8ef; }
.td-index-ring > div { width:100%; height:100%; border-radius:50%; background:#f8fbfd; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; }
.td-index-ring strong { font-size:clamp(1.1rem,5.4vw,1.6rem); }
.td-index-ring small { font-size:.78rem; color:var(--td-muted); }
.td-index-ring svg { width:27px; height:27px; color:#16698a; }
.td-domain-grid { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:4px; }
.td-domain-grid button {
  min-width:0; min-height:66px; border:1px solid var(--td-line); border-radius:11px; padding:4px 1px;
  background:var(--td-paper); display:grid; place-items:center; gap:1px; color:var(--td-navy); font:inherit;
}
.td-domain-grid button[aria-pressed=true] { border-color:#4695b3; background:var(--td-sky); }
.td-domain-grid button svg { color:#167b9a; width:17px; height:17px; }
.td-domain-grid button:nth-child(2n) svg { color:#805673; }
.td-domain-grid button:nth-child(3) svg { color:var(--td-orange); }
.td-domain-grid button span { font-size:clamp(.6rem,2.65vw,.78rem); line-height:1.13; overflow-wrap:anywhere; }
.td-domain-grid button strong { font-size:.75rem; }
.td-evolution-row { display:flex; gap:9px; align-items:center; width:100%; min-height:52px; padding:6px 10px; background:var(--td-paper); border:1px solid var(--td-line); border-radius:13px; color:var(--td-navy); text-align:left; font:inherit; }
.td-evolution-row svg { width:22px; height:22px; color:var(--td-blue); }
.td-evolution-row span:nth-child(2) { flex:1; }
.td-evolution-row small { display:block; color:var(--td-muted); line-height:1.2; }
.td-original-paw { margin-block:6px; }
.td-original-paw summary { color:var(--td-blue); cursor:pointer; }
#tutorWellbeing .wellbeingPawIntro { margin:6px 0; font-size:.875rem; }
#tutorWellbeing .td-wellbeing-overview ~ .wellbeingPawCaption { margin:5px 0; padding:7px 9px; font-size:.8rem; }

#tutorFreeLearn .td-lesson-start > summary { display:block; cursor:pointer; padding:8px 14px; background:#1c5d84; color:white; border-radius:14px; font-weight:750; text-align:center; }
#tutorFreeLearn .td-lesson-start[open] > summary { margin-bottom:8px; }
#tutorFreeLearn .phMicroCard { position:relative; }
#tutorFreeLearn .phMicroCard h2 { margin:6px 0; }
#tutorFreeLearn .td-lesson-art { float:right; display:grid; place-items:center; width:60px; height:65px; margin:0 0 5px 8px; border-radius:14px; background:#d5ecf4; color:#126889; }
#tutorFreeLearn .td-lesson-art svg { width:36px; height:36px; }
#tutorStory .phStoryHeader { display:flex; flex-direction:column; }
#tutorStory .phStoryHeader .phStoryTabs { order:-2; }
#tutorStory .phStoryHeader .chapterCommunityPrompt { order:-1; }
#tutorStory .phStoryHeader .chapterCommunityPrompt button { width:auto; }
#tutorStory > .card:has(#phStoryDog option:only-child) { display:none; }
#tutorMore .td-menu { gap:8px; }
#tutorMore .td-menu-list { border-radius:15px; }
#tutorHuellaId .td-id-disclosure { padding:0; }
#tutorHuellaId .td-id-disclosure > summary { display:grid; grid-template-columns:28px minmax(0,1fr) 12px; gap:9px; align-items:center; min-height:54px; padding:8px 12px; cursor:pointer; }
#tutorHuellaId .td-id-disclosure > summary svg { width:22px; height:22px; color:#137b9d; }
#tutorHuellaId .td-id-disclosure > summary small { display:block; color:var(--td-muted); }
#tutorHuellaId .td-id-disclosure > .hid-card { border:0; box-shadow:none; margin:0; padding-top:0; }
#tutorHuellaId .td-id-disclosure > .hid-card > h3 { font-size:.98rem; }

@media (max-width:767px) {
  #tutorHome > .brandbar { padding-bottom:22px; }
  #tutorWellbeing .wellbeingHeroHead { display:none; }
  #tutorWellbeing :is(.huellaCenterTabs,[data-app-back]) { margin-block:0 6px; }
  #tutorHuellaId .hid-brandbar { padding-top:10px; padding-bottom:22px; }
  #tutorHuellaId .hid-brandbar h2 { margin-top:0; }
}

/* Keep the small Huella signature separate from the feature illustrations. */
.td-screen > .td-mast {
  --td-mast-accent:#bfeafa;
  position:relative;
  min-height:0;
  padding-top:12px;
  padding-bottom:20px;
  isolation:isolate;
  overflow:hidden;
  margin-bottom:8px;
  background:linear-gradient(154deg,#113b53 0%,#1c5578 72%,#286789 100%);
}
.td-mast .brandWordmark, .td-mast .dt-full-logo, .td-mast .eyebrow,
.td-mast .visualHeaderPaw, .td-mast:not(:has(.visualWave))::before { display:none; }
.td-mast-brand { display:flex; align-items:center; gap:5px; margin-bottom:8px; color:white; }
.td-mast-brand > svg { width:22px; height:22px; }
.td-mast-brand strong { display:block; font-size:.68rem; font-weight:800; letter-spacing:.13em; line-height:1.04; }
.td-mast-brand small { display:block; font-size:.52rem; line-height:1.1; }
.td-screen > .td-mast :is(h1,h2) { position:relative; width:fit-content; max-width:calc(100% - 45px); font-size:clamp(1.28rem,5.7vw,1.82rem); margin:0 0 3px; color:white; }
.td-screen > .td-mast p.td-mast-subtitle { position:relative; max-width:70%; margin:0; color:#e5f4fb; font-size:.78rem; line-height:1.3; }
#tutorPreventiveCare > .td-mast > .row { display:block; }
#tutorPreventiveCare > .td-mast :is(h1,h2,p.td-mast-subtitle) { max-width:calc(100% - 96px); }
.td-mast-art { position:absolute; z-index:-1; inset:auto max(24px,var(--td-edge)) 44px auto; color:var(--td-mast-accent); opacity:.82; }
.td-mast-art svg { width:clamp(44px,11vw,56px); display:block; }
:is(#tutorWellbeing,#tutorHuella) .td-mast-art { opacity:.27; }
.td-mast-alerts { position:absolute; top:7px; right:var(--td-edge); width:44px; height:44px; display:grid; place-items:center; border:0; background:none; color:#e7f7ff; }
.td-mast-alerts svg { width:20px; height:20px; }
#tutorHome > .td-mast { min-height:151px; padding-bottom:30px; }

#tutorHome > .td-mast.td-greeting-has-photo .td-mast-subtitle { max-width:50%; }
#tutorHome > .td-mast [data-huella-streak], #tutorHome > .td-mast .homePawCounter { z-index:1; }
#tutorHuellaId .hid-brandbar.td-mast { margin-bottom:6px; }
#tutorHuellaId .hid-brandbar.td-mast [data-close] { position:absolute; right:var(--td-edge); top:1px; font-size:.75rem; }
#tutorHome .visualDogCard { margin-top:-5px; z-index:3; }
#tutorHome .visualStory.td-story-has-photo {
  display:grid; align-content:center; min-height:114px; position:relative;
  background:#d8e8eb; padding:14px; border-color:#edf5f6; text-shadow:0 1px 7px #f2f9fbe0;
}
#tutorHome .visualStory.td-story-has-photo .visualTrail { display:none; }
#tutorHome .visualStory.td-story-has-photo :is(strong,span:last-child) { max-width:60%; position:relative; color:#14344f; }
.td-story-photo { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:72% center; z-index:-1; mask-image:linear-gradient(to right,transparent 11%,#000 70%); }
@media (min-width:768px) {
  .td-screen > .td-mast { padding-bottom:26px; }
  #tutorHome > .td-mast { min-height:176px; }
}

.td-id-care-links { order:0; display:grid; gap:6px; }
#tutorHuellaId [data-experiments] { order:-1; }
#tutorHuellaId .td-weight-row { order:1; }
.td-reference-action {
  display:grid; grid-template-columns:26px minmax(0,1fr) 12px; align-items:center; gap:8px; width:100%;
  min-height:48px; padding:7px 10px; border:1px solid #dfebf2; border-radius:11px;
  background:#fbfdff; color:#14344f; text-align:left; font:inherit;
}
.td-reference-action > svg { width:21px; height:21px; color:#167b9a; }
.td-reference-action strong,.td-reference-action small { display:block; line-height:1.2; }
.td-reference-action strong { font-size:.9rem; }
.td-reference-action small { font-size:.74rem; color:var(--td-muted); }
.td-reference-action small:empty { display:none; }
.td-reference-action > b { color:#53748a; }
#tutorHuellaId .td-id-disclosure { margin:0; }
#tutorHuellaId .td-id-disclosure > summary { min-height:48px; padding:6px 10px; }
#tutorHuellaId .td-id-summary { border-radius:12px; padding:8px 10px; }
#tutorHuellaId .td-id-summary img { width:38px; height:38px; border-radius:50%; }
#tutorHuellaId .td-id-summary h3 { font-size:.97rem; }
#tutorHuellaId .td-id-summary p { font-size:.76rem; }
#tutorHuellaId .hid-body:has(.td-id-care-links) [data-records] { order:2; }
#tutorHuellaId .hid-body:has(.td-id-care-links) [data-profile-details] { order:3; }
#tutorHuellaId .hid-body > p:not([role]) { order:4; margin:0; color:var(--td-muted); font-size:.8rem; }
.td-learning-quick { margin:12px 0; }
.td-learning-quick h2 { font-size:1rem; }
.td-learning-quick > div { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(88px,100%),1fr)); gap:6px; }
.td-learning-quick .td-reference-action { display:grid; grid-template-columns:minmax(0,1fr); justify-items:center; padding:7px 4px; min-height:60px; text-align:center; }
.td-learning-quick .td-reference-action strong { font-size:.78rem; }
.td-learning-quick .td-reference-action > b { display:none; }
#tutorHome .visualDogTools { margin-block:8px; }
#tutorHome .visualStory :is(strong,span:last-child) { font-size:.87rem; }
#tutorHome .visualStory.td-story-has-photo { min-height:104px; }
#tutorStory .phStoryHeader .chapterCommunityPrompt { margin:5px 0; padding:8px; }

/* Reference proportions and first-view density. */
.td-screen {
  --td-edge:clamp(12px,3.6vw,22px);
  --td-radius:15px;
  background:#eff5fa;
}
.td-screen > .td-mast .td-mast-subtitle { max-width:72%; }
.td-mast-brand { margin-bottom:7px; }
.td-mast-brand strong { font-size:.72rem; }

#tutorHome > .td-mast.td-greeting-has-photo { background:linear-gradient(166deg,#123f56 3%,#266584 62%,#89a6a4 100%); }
#tutorHome .visualDogCard { top:-11px; margin:0 0 -5px; box-shadow:0 4px 14px #163a5420; }
#tutorHome .visualActions button { background:#fff; min-height:52px; padding-block:5px; }
#tutorHome .visualStory.td-story-has-photo { min-height:115px; }
.td-story-photo { mask-image:linear-gradient(to right,transparent 5%,#0005 43%,#000 70%); }

#tutorWellbeing .td-wellbeing-overview { width:100%; gap:8px; }
#tutorWellbeing .td-wellbeing-profile { grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); }
#tutorWellbeing .td-wellbeing-profile.td-id-no-photo { grid-template-columns:1fr; }
.td-index-ring {
  --td-arc:calc(var(--td-index) * .75);
  background:conic-gradient(from 225deg,#31a590 0%,#238da8 calc(var(--td-arc)*.76),#1a608c var(--td-arc),#d7e5ee var(--td-arc) 75%,transparent 75%);
}
.td-domain-grid button { border-radius:12px; min-height:61px; box-shadow:0 2px 6px #193d5d0a; }
.td-domain-grid button span { letter-spacing:-.008em; }
.td-evolution-row { min-height:48px; }

#tutorFreeLearn .phMicroCard { border-radius:14px; padding:12px; }
#tutorFreeLearn .phMicroCard .eyebrow { font-size:.71rem; max-width:65%; }
#tutorFreeLearn .td-lesson-art { width:31%; height:auto; aspect-ratio:.72; overflow:hidden; }
#tutorFreeLearn .td-lesson-art img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; }
#tutorFreeLearn .td-lesson-excerpt { margin:5px 0 8px; color:var(--td-muted); font-size:.85rem; }
#tutorFreeLearn .phMicroCard:has(.td-lesson-start[open]) .td-lesson-excerpt { display:none; }
#tutorFreeLearn .td-lesson-start { display:flow-root; }
#tutorFreeLearn .td-lesson-start[open] { clear:both; }
#tutorFreeLearn .td-lesson-start > summary { min-height:40px; padding-block:8px; font-size:.89rem; }
#tutorFreeLearn .td-learning-quick h2 { margin:6px 0; }

#tutorStory .phStoryHeader.td-feed-controls { display:grid; gap:8px; padding:0; background:none; border:0; box-shadow:none; }
#tutorStory .td-feed-controls .phStoryTabs { margin:0; }
#tutorStory .td-feed-controls .phStoryTabs button { min-height:42px; font-size:.83rem; }
#tutorStory .td-feed-controls .phStoryTabs .blue { background:#205b82; color:#fff; }
.td-story-invitation { display:grid; grid-template-columns:32px minmax(0,1fr); align-items:start; gap:8px; padding:9px; background:white; border:1px solid #dce8ef; border-radius:13px; }
.td-story-invitation > span { grid-column:1; grid-row:1; display:grid; place-items:center; width:32px; height:32px; border-radius:50%; color:#ad5609; background:#fff0dc; }
.td-story-invitation > span svg { width:18px; height:18px; }
#tutorStory .td-story-invitation .chapterCommunityPrompt { grid-column:2; grid-row:1; order:0; min-width:0; margin:0; padding:0; background:none; border:0; font-size:.81rem; }
#tutorStory .td-story-invitation .chapterCommunityPrompt button { min-height:42px; margin-top:6px; font-size:.81rem; }
.td-story-feed-heading { display:flex; flex-wrap:wrap; align-items:baseline; gap:5px 10px; justify-content:space-between; }
#tutorStory .td-story-feed-heading > h2 { margin:0; font-size:1rem; }
.td-story-filter-menu { color:#315b75; font-size:.78rem; }
.td-story-filter-menu summary { cursor:pointer; padding-block:6px; }
.td-story-filter-menu[open] { width:100%; background:#fbfdff; border-radius:10px; padding:8px; }
#tutorStory .phStoryList:not(.isAlbum) .phStoryCard .phStoryMedia { border-radius:0; margin:0; }

/* Comunidad and Mi historia share the editorial layout and existing media players. */
#tutorStory { --story-ink:#113750; --story-line:#dbe8f0; }
#tutorStory > .td-mast {
  margin-bottom:12px; padding-bottom:24px;
  background:radial-gradient(ellipse at 85% 110%,#367a9f 0,transparent 54%),linear-gradient(140deg,#123b51,#205b82);
}
#tutorStory .td-mast-art { color:#d6f3ff; opacity:.97; }
#tutorStory .td-mast-art svg { width:clamp(54px,18vw,86px); }
#tutorStory .td-mast-art::after {
  content:""; position:absolute; inset:3px -3px auto auto; width:12px; height:2px;
  background:#ffaf58; border-radius:2px; transform:rotate(-36deg);
  box-shadow:-5px -6px #ffaf58;
}
#tutorStory #phMemories { display:grid; gap:12px; padding-bottom:8px; }
#tutorStory .td-feed-controls { gap:12px; margin:0; }
#tutorStory .td-feed-controls .phStoryTabs {
  padding:3px; border-radius:24px; background:#e1eef5; border:1px solid #d8e9f2;
}
#tutorStory .td-feed-controls .phStoryTabs button {
  min-height:44px; border-radius:22px; font-size:.86rem; font-weight:750;
}
#tutorStory .td-feed-controls .phStoryTabs .blue {
  background:linear-gradient(115deg,#174866,#24658e); box-shadow:0 2px 5px #17486626;
}
#tutorStory .td-story-invitation {
  grid-template-columns:38px minmax(0,1fr); align-items:center; gap:7px 10px; padding:11px 12px;
  border-radius:16px; background:radial-gradient(ellipse at 100% 0,#fff0dc88,transparent 60%),#fff;
  border-color:var(--story-line); box-shadow:0 5px 15px #205b8210;
}
#tutorStory .td-story-invitation > .td-story-invitation-icon {
  width:38px; height:38px; color:#98460c; background:#ffeedc;
}
#tutorStory .chapterCommunityPrompt { line-height:1.42; color:#40596d; }
#tutorStory .chapterCommunityPrompt b { color:var(--story-ink); font-size:.92rem; }
#tutorStory .td-story-share {
  grid-column:2; justify-self:start; display:inline-flex; align-items:center; gap:7px;
  width:auto; min-height:44px; margin:0; padding:6px 12px; font-size:.82rem;
  color:#145274; background:#e6f5fb; border:1px solid #d0e9f4; border-radius:12px;
}
#tutorStory .td-story-share svg { width:17px; height:17px; flex:none; }
#tutorStory .td-story-feed-heading { gap:6px 8px; align-items:start; }
#tutorStory .td-story-feed-heading h2 { color:var(--story-ink); font-size:clamp(.98rem,4.3vw,1.19rem); letter-spacing:-.025em; align-self:center; }
#tutorStory .td-story-filter-menu { margin:0; }
#tutorStory .td-story-filter-menu summary {
  display:flex; align-items:center; gap:5px; min-height:44px; padding:5px 8px; font-weight:700;
}
#tutorStory .td-story-filter-menu summary::after { content:"⌄"; }
#tutorStory .td-story-filter-menu[open] { border:1px solid var(--story-line); }
#tutorStory .phStoryList:not(.isAlbum) { gap:12px; }
#tutorStory .phStoryList:not(.isAlbum) .phStoryCard {
  min-width:0; margin:0; border:1px solid var(--story-line); border-radius:17px;
  background:#fff; box-shadow:0 5px 16px #16496012;
}
#tutorStory .phStoryList:not(.isAlbum) .phStoryMedia:has(img,video) { background:#10283a; }
#tutorStory .phStoryList:not(.isAlbum) .phStoryMedia img {
  display:block; width:100%; max-height:420px; object-fit:contain; background:#e4eff5;
}
#tutorStory .phStoryCaption { padding:12px 14px; color:var(--story-ink); overflow-wrap:anywhere; }
#tutorStory .phStoryCaption .eyebrow { color:#225d81; letter-spacing:.065em; }
#tutorStory .phStoryCaption .phStoryText { font-size:.96rem; line-height:1.48; }
#tutorStory .phStoryCaption .phStoryType { color:#345874; background:#eaf4fa; border-radius:20px; }
#tutorStory .phStoryActions button { min-height:44px; }
#tutorStory .phStoryComposer, #tutorStory .td-story-empty {
  border:1px solid var(--story-line); border-radius:16px; background:#fbfdff; margin:0;
}
#tutorStory .phStoryComposer summary { min-height:44px; align-content:center; color:#145274; }
#tutorStory .td-story-empty {
  grid-column:1/-1; display:grid; justify-items:center; gap:6px; padding:20px 14px; text-align:center;
  background:linear-gradient(155deg,#fff,#edf7fb);
}
#tutorStory .td-story-empty > :is(h3,p) { margin:0; }
#tutorStory .td-story-empty p { max-width:35ch; color:#435e72; }
#tutorStory .td-story-empty-mark {
  display:grid; place-items:center; width:42px; height:42px; border-radius:50%; color:#235b7c; background:#def0f8;
}
#tutorStory .td-story-empty-mark svg { width:25px; height:25px; }
#tutorStory .td-story-invitation:has(.td-story-share) { padding:12px; gap:8px 10px; }
#tutorStory .td-story-invitation .chapterCommunityPrompt { font-size:.8rem; }
#tutorStory .td-story-invitation .td-story-share {
  grid-column:1/-1; justify-self:center; justify-content:center; min-width:min(100%,13rem);
  border:0; border-radius:24px; background:#def2fb;
}
#tutorStory .phStoryList:not(.isAlbum) .td-story-post:has(.phStoryMedia img) {
  display:grid; grid-template-columns:minmax(0,1fr);
}
#tutorStory .phStoryList:not(.isAlbum) .td-story-post:has(.phStoryMedia img) .phStoryMedia {
  min-width:0; grid-area:1/1; overflow:hidden;
}
#tutorStory .phStoryList:not(.isAlbum) .td-story-post .phStoryMedia img {
  height:auto; aspect-ratio:2.05; object-fit:cover;
}
#tutorStory .phStoryList:not(.isAlbum) .td-story-short-caption:has(.phStoryMedia img) .phStoryCaption { display:contents; }
#tutorStory .phStoryList:not(.isAlbum) .td-story-short-caption:has(.phStoryMedia img) .phStoryText {
  grid-area:1/1; align-self:end; z-index:1; pointer-events:none; min-width:0; margin:0;
  padding:23px 13px 11px; overflow-wrap:anywhere; color:white; font-weight:750;
  background:linear-gradient(transparent,#09283be8);
}
#tutorStory .phStoryList:not(.isAlbum) .td-story-short-caption:has(.phStoryMedia img) .phStoryCaption > :not(.phStoryText) {
  grid-column:1; margin:3px 12px;
}
#tutorStory .phStoryList:not(.isAlbum) .td-story-short-caption:has(.phStoryMedia img) .phStoryCaption > :first-child { margin-top:8px; }
#tutorStory .phStoryActions { display:flex; flex-wrap:wrap; align-items:flex-start; gap:4px; }
#tutorStory .phStoryActions > [data-story-react] { margin:0; padding-inline:10px; font-size:.81rem; }
#tutorStory .td-story-post-menu { margin:0 0 0 auto; }
#tutorStory .td-story-post-menu > summary {
  display:grid; place-items:center; min-width:44px; min-height:44px; cursor:pointer;
  list-style:none; border-radius:50%; color:#195b7f; background:#eff6fa; font-weight:750;
}
#tutorStory .td-story-post-menu > summary::-webkit-details-marker { display:none; }
#tutorStory .td-story-post-menu[open] { display:flex; flex-wrap:wrap; gap:4px; align-items:center; }
#tutorStory .td-story-post-menu button { margin:0; padding-inline:9px; font-size:.81rem; }
@media (max-width:767px) {
  #tutorStory > .td-mast { padding-top:max(12px,env(safe-area-inset-top)); }
  body:has(#tutorStory.active) #tutorGlobalNav.td-nav:not(.hidden) {
    border-radius:17px 17px 0 0; background:#fbfdff; padding-bottom:max(4px,env(safe-area-inset-bottom));
    box-shadow:0 -4px 18px #1b466b15;
  }
}

#tutorHuellaId .td-weight-row > summary:has(.td-mini-chart) { grid-template-columns:27px minmax(0,1fr) minmax(45px,66px) 12px; }
#tutorHuellaId .td-weight-row svg.td-mini-chart { width:100%; max-height:40px; border-radius:6px; background:#e6f5fb; }
#tutorHuellaId .hid-brandbar.td-mast {
  margin-bottom:11px; padding-bottom:27px;
  background:radial-gradient(ellipse at 80% 110%,#3477a0,transparent 58%),linear-gradient(133deg,#10364e,#235e86);
}
#tutorHuellaId .td-mast-art {
  display:grid; place-items:center; padding:8px; border-radius:18px;
  color:#e0f6ff; background:#b3e5ff19; border:1px solid #b6e7ff38;
}
#tutorHuellaId .td-mast-art svg { width:clamp(34px,11vw,58px); height:auto; }
#tutorHuellaId .hid-brandbar.td-mast [data-close] { min-height:40px; top:4px; padding:5px 9px; }
#tutorHuellaId .hid-body { gap:8px; }
#tutorHuellaId .td-id-selector { order:-3; position:relative; min-width:0; }
#tutorHuellaId .td-id-selector:has(.td-id-summary:not([hidden])) > label {
  position:absolute; inset:0; z-index:1; display:none; margin:0; font-size:0;
}
#tutorHuellaId .td-id-selector.td-id-can-choose:has(.td-id-summary:not([hidden])) > label { display:block; }
#tutorHuellaId .td-id-selector:has(.td-id-summary:not([hidden])) [data-dog] {
  position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer;
}
#tutorHuellaId .td-id-selector:focus-within .td-id-summary { outline:2px solid #1d729e; outline-offset:2px; }
#tutorHuellaId .td-id-summary {
  grid-template-columns:38px minmax(0,1fr) auto; gap:10px; min-height:55px; padding:7px 11px;
  border-radius:15px; color:#113750; background:linear-gradient(120deg,#fff,#f0f8fd);
  box-shadow:0 4px 12px #1b466b11;
}
#tutorHuellaId .td-id-summary[hidden] { display:none; }
#tutorHuellaId .td-id-avatar {
  position:relative; display:grid; place-items:center; width:38px; height:38px;
  border-radius:50%; overflow:hidden; background:#deeff8; color:#23648a;
}
#tutorHuellaId .td-id-avatar svg { width:20px; height:20px; }
#tutorHuellaId .td-id-avatar img { position:absolute; inset:0; }
#tutorHuellaId .td-id-picker-caret { color:#23648a; display:none; }
#tutorHuellaId .td-id-can-choose .td-id-picker-caret { display:block; }
/* Keep native editor and chart components inside compact dashboard modules. */
#tutorHuellaId .td-id-care-links { gap:7px; }
#tutorHuellaId .td-id-care-links .td-reference-action,
#tutorHuellaId .td-id-disclosure {
  border:1px solid #dceaf2; border-radius:14px; color:#113750;
}
#tutorHuellaId .td-id-care-links .td-reference-action,
#tutorHuellaId .td-id-disclosure > summary { min-height:55px; gap:10px; padding:8px 11px; }
#tutorHuellaId .td-id-care-links .td-reference-action > svg,
#tutorHuellaId .td-id-disclosure > summary > svg:first-child:not(.td-mini-chart) {
  box-sizing:content-box; width:17px; height:17px; padding:5px; border-radius:8px;
  color:#1a6489; background:#e4f4fb;
}
#tutorHuellaId .td-id-disclosure > summary { list-style:none; }
#tutorHuellaId .td-id-disclosure > summary::-webkit-details-marker { display:none; }
#tutorHuellaId .td-id-disclosure[open] > summary b { transform:rotate(90deg); }
#tutorHuellaId .td-id-disclosure > summary strong { display:block; font-size:.91rem; line-height:1.22; }
#tutorHuellaId .td-id-disclosure > summary small { margin-top:2px; font-size:.75rem; line-height:1.3; }
#tutorHuellaId [data-experiments] > .td-id-disclosure { border-inline-start:1px solid #d0e4f0; background:linear-gradient(110deg,#e8f5fd,#fbfdff 70%); }
#tutorHuellaId .td-id-activity { order:2; }
#tutorHuellaId :is([data-weight-status],[data-record-status]):not(:empty) {
  font-size:.83rem; color:#435f73; margin:8px 0; padding:8px 10px; border-radius:9px; background:#edf6fb;
}
@media (max-width:767px) {
  #tutorHuellaId .hid-brandbar.td-mast { padding-top:max(12px,env(safe-area-inset-top)); }
  #tutorHuellaId .hid-brandbar.td-mast [data-close] { top:max(4px,env(safe-area-inset-top)); }
  body:has(#tutorHuellaId.active) #tutorGlobalNav.td-nav:not(.hidden) {
    border-radius:17px 17px 0 0; background:#fbfdff; padding-bottom:max(4px,env(safe-area-inset-bottom));
    box-shadow:0 -4px 18px #1b466b15;
  }
}
#tutorHuellaId .td-id-care-links .td-reference-action,
#tutorHuellaId .td-id-disclosure { background:#fcfdff; box-shadow:0 2px 5px #15344f08; }

/* More is a single grouped menu of the account's existing actions. */
#tutorMore > .td-mast {
  margin-bottom:12px; padding-bottom:25px;
  background:radial-gradient(ellipse at 85% 110%,#397d9f,transparent 56%),linear-gradient(135deg,#123b51,#24618a);
}
#tutorMore .td-mast-art { opacity:.96; color:#dcf3ff; }
#tutorMore .td-mast-art svg { width:clamp(43px,14vw,72px); }
#tutorMore .td-menu { gap:12px; margin:0 0 8px; }
#tutorMore .td-menu-group > h2 {
  margin:0 0 4px 3px; color:#2a516d; font-size:.78rem; line-height:1.25; font-weight:750;
}
#tutorMore .td-menu-list {
  padding:0 10px; border-color:#dceaf2; border-radius:14px;
  background:linear-gradient(135deg,#fcfeff,#f5faff); box-shadow:0 4px 13px #1748660c;
}
#tutorMore .td-menu-row { min-height:47px; padding:5px 0; }
#tutorMore .td-menu-row[hidden] { display:none; }
#tutorMore .td-menu-row .td-row-inner { grid-template-columns:29px minmax(0,1fr) 12px; gap:8px; }
#tutorMore .td-row-icon { width:29px; height:29px; border-radius:9px; background:#e5f4fb; color:#216184; }
#tutorMore .td-row-icon svg { width:17px; height:17px; }
#tutorMore .td-row-title { font-size:.89rem; line-height:1.22; font-weight:750; }
#tutorMore .td-row-description { margin-top:1px; font-size:.74rem; line-height:1.25; color:#466177; }
#tutorMore .td-row-chevron { justify-self:end; font-size:1rem; color:#31688b; }
#tutorMore .td-menu-row:focus-visible { outline:2px solid #246b94; outline-offset:2px; }
#tutorMore .td-menu-extra.pushCard { box-shadow:none; }
#tutorMore .td-menu-logout { width:auto; padding-inline:4px; }
#tutorMore .td-menu-logout .td-row-chevron { display:none; }
#tutorMore .td-menu-version { padding:2px 4px 9px; }
#tutorMore .td-menu-version .eyebrow { display:none; }
@media (max-width:767px) {
  #tutorMore > .td-mast { padding-top:max(12px,env(safe-area-inset-top)); }
  body:has(#tutorMore.active) #tutorGlobalNav.td-nav:not(.hidden) {
    border-radius:17px 17px 0 0; background:#fbfdff; padding-bottom:max(4px,env(safe-area-inset-bottom));
    box-shadow:0 -4px 18px #1b466b15;
  }
}
@media (max-width:767px) {
  #tutorGlobalNav.td-nav:not(.hidden) { padding-top:3px; gap:0; border-radius:15px 15px 0 0; }
  #tutorGlobalNav.td-nav .navitem { min-height:45px; padding-block:4px; font-size:clamp(.62rem,2.55vw,.72rem); }
  #tutorGlobalNav.td-nav .navitem.active { border-radius:12px; }
  #tutorGlobalNav.td-nav .navitem b svg { width:18px; height:18px; }
}

/* Home reference treatment. Other routes keep their existing composition. */
#tutorHome.td-screen { background:#f0f5fa; }
#tutorHome > .td-mast {
  min-height:168px; padding-bottom:31px; margin-bottom:0;
  background:#153f57;
}
#tutorHome > .td-mast .td-mast-brand { margin-bottom:13px; }
#tutorHome > .td-mast .row { position:relative; z-index:1; }
#tutorHome > .td-mast.td-greeting-has-photo .row > :first-child { width:60%; max-width:none; }
#tutorHome > .td-mast #tutorGreeting {
  max-width:none; margin:0 0 4px; font-size:clamp(1.35rem,5.75vw,1.95rem); line-height:1.03;
  letter-spacing:-.025em; text-wrap:balance;
}
#tutorHome > .td-mast .td-mast-subtitle {
  max-width:154px; color:#e6f4f8; font-size:.82rem; line-height:1.32;
}

#tutorHome > .td-mast.td-greeting-has-photo::after {
  content:""; display:block; position:absolute; inset:0; height:auto; pointer-events:none; z-index:-2;
  background:linear-gradient(180deg,#143f58 4%,#143f58d9 24%,#16455b43 77%,#d3e4dc16 100%),
             linear-gradient(90deg,#19445ccc 5%,#19445c88 42%,transparent 75%);
}

#tutorHome > .brandbar.td-mast #phPawsHome:not([hidden]) {
  position:relative; inset:auto; margin:8px auto 0 0; z-index:2;
  padding:3px 8px; font-size:.8rem; background:#123b52cc; border-color:#d1eff466;
}
#tutorHome > .td-mast #phPawsHome svg { width:15px; height:15px; }
#tutorHome .visualDogCard {
  top:-9px; margin-bottom:-2px; min-height:70px; grid-template-columns:54px minmax(0,1fr);
  background:#fffdfa; box-shadow:0 5px 15px #173a5729; padding:7px 10px; border-radius:15px;
}
#tutorHome .visualDogCopy h2 { font-size:1.18rem; letter-spacing:-.015em; }
#tutorHome .visualDogCopy .td-home-dog-facts { display:block; grid-column:1; grid-row:2; color:#4e6475; margin:0; font-size:.775rem; line-height:1.25; }
#tutorHome .visualDogCopy .storyPlanPill { grid-row:3; font-size:.68rem; margin-top:1px; }
#tutorHome .visualDogCopy .td-home-profile-arrow {
  grid-row:1 / span 3; padding:0; width:44px; min-width:44px; height:44px;
  color:#276789; background:#e9f4fa; border:0; border-radius:50%; font-size:1.35rem;
}
#tutorHome .visualActions { gap:6px; margin-block:8px; }
#tutorHome .visualActions button {
  padding:5px 9px; grid-template-columns:34px minmax(0,1fr) 26px; gap:2px 8px;
  border-radius:12px; border-color:#e8eef3; background:#fff; box-shadow:0 3px 7px #14395310;
}
#tutorHome .visualActions .visualTileIcon { width:32px; height:32px; background:transparent; }
#tutorHome .visualActions .visualTileIcon svg { width:25px; height:25px; }
#tutorHome .visualActions button::after {
  display:grid; place-items:center; width:25px; height:25px; border-radius:50%;
  background:#e8f5fa; color:#256a88; font-size:1.15rem;
}
#tutorHome .visualActions button strong { font-size:.94rem; }
#tutorHome .visualActions button > span:last-child { font-size:.76rem; color:#53697a; }
#tutorHome .visualStory.td-story-has-photo {
  min-height:124px; margin:1px 0 0; padding:13px 12px; border-radius:16px; background:#d1e4ec;
  background:linear-gradient(94deg,#eaf3f5 5%,#dcebf1 50%,#bad3df 100%);
}
#tutorHome .visualStory.td-story-has-photo .td-story-photo {
  object-position:77% 52%; mask-image:linear-gradient(to right,transparent 11%,#0003 42%,#000 72%);
}
#tutorHome .visualStory.td-story-has-photo strong { max-width:57%; font-size:1rem; line-height:1.16; }
#tutorHome .visualStory.td-story-has-photo span:last-child { max-width:57%; font-size:.78rem; }
#tutorHome .visualMemory {
  min-height:45px; margin-block:8px; border-radius:13px; gap:8px;
  background:linear-gradient(125deg,#246690,#194c75); box-shadow:0 4px 10px #194c7530; font-size:.92rem;
}
#tutorHome .visualMemory svg { height:20px; width:25px; border:0; padding:0; }
#tutorHome .visualDogTools { font-size:.82rem; margin-top:6px; }
@media (max-width:767px) {
  #tutorHome.td-screen { padding-top:env(safe-area-inset-top); }
  body:has(#tutorHome.active) #tutorGlobalNav.td-nav:not(.hidden) {
    border-radius:17px 17px 0 0; background:#fbfdff;
    padding-bottom:max(4px,env(safe-area-inset-bottom)); box-shadow:0 -4px 18px #1b466b15;
  }
  body:has(#tutorHome.active) #tutorGlobalNav.td-nav .navitem.active { background:#e4f2fa; color:#146285; }
}

/* Mi Huella reference layout. The live overview owns the first fold. */
#tutorWellbeing.td-screen {
  --td-edge:clamp(12px,3.55vw,22px);
  background:#f0f5fa;
}
#tutorWellbeing:has(.td-wellbeing-overview) > [data-huella-center-tabs],
#tutorWellbeing:has(.td-wellbeing-overview) > [data-app-back],
#tutorWellbeing:has(.td-wellbeing-overview) .wellbeingHeroHead { display:none; }
#tutorWellbeing > .td-mast { margin-bottom:9px; padding-bottom:24px; }
#tutorWellbeing > .td-mast .td-mast-art { opacity:.32; }
#tutorWellbeing > .td-mast .td-mast-art svg { width:clamp(44px,12vw,56px); }
#tutorWellbeing #wellbeingBody,
#tutorWellbeing .wellbeingHero,
#tutorWellbeing .wellbeingPawHub { width:100%; min-width:0; }
#tutorWellbeing .wellbeingHero { margin:0; }
#tutorWellbeing .td-wellbeing-overview {
  display:grid; grid-template-columns:minmax(0,1fr); gap:9px;
  margin:0 auto 10px;
}
#tutorWellbeing .td-wellbeing-profile {
  min-width:0; gap:12px; padding:5px; grid-template-columns:minmax(0,1.03fr) minmax(0,1fr);
  background:#f9fcfe; border:1px solid #e6eef4; border-radius:16px;
}
#tutorWellbeing .td-wellbeing-profile.td-id-no-photo { grid-template-columns:1fr; padding:14px; }
#tutorWellbeing .td-wellbeing-profile .wellbeingDogPortrait {
  margin:0; aspect-ratio:1.35; width:100%; border-radius:11px;
  object-fit:cover; object-position:center; box-shadow:none;
}
#tutorWellbeing .td-wellbeing-profile h2 { font-size:clamp(1.15rem,5.2vw,1.55rem); }
#tutorWellbeing .td-wellbeing-profile p { margin:2px 0 6px; font-size:.8rem; }
#tutorWellbeing .td-wellbeing-profile button { margin:0; min-height:44px; padding:5px 10px; border-radius:12px; font-size:.81rem; }
#tutorWellbeing .td-index-ring {
  width:clamp(173px,52vw,216px); margin:3px auto -11px; padding:10px;
  background:conic-gradient(from 225deg,#43b8a4 0%,#329db5 calc(var(--td-arc)*.75),#24698d var(--td-arc),#dbe8f1 var(--td-arc) 75%,transparent 75%);
}
#tutorWellbeing .td-index-ring.td-index-empty {
  background:conic-gradient(from 225deg,#dbe8f1 0 75%,transparent 75%);
}
#tutorWellbeing .td-index-ring > div { background:#f0f5fa; }
#tutorWellbeing .td-index-ring strong { font-size:clamp(1.55rem,7vw,2.05rem); line-height:1.08; }
#tutorWellbeing .td-index-ring strong small { color:#14344f; font-size:.58em; }
#tutorWellbeing .td-index-ring div > small { font-size:.81rem; margin-top:3px; }
#tutorWellbeing .td-index-ring svg { width:30px; height:30px; margin-bottom:3px; }
#tutorWellbeing .td-domain-grid { gap:5px; }
#tutorWellbeing .td-domain-grid button {
  align-content:center; min-width:0; padding:5px 2px; min-height:67px; gap:2px;
  border:1px solid #e1eaf2; border-radius:12px; background:#fcfdff; box-shadow:0 3px 7px #15344f0b;
}
#tutorWellbeing .td-domain-grid button[aria-pressed=true] { border-color:#76abc0; background:#e7f4fa; }
#tutorWellbeing .td-domain-grid button svg { width:21px; height:21px; }
#tutorWellbeing .td-domain-grid button span { font-size:clamp(.61rem,2.58vw,.79rem); font-weight:650; text-align:center; }
#tutorWellbeing .td-domain-grid button strong { font-size:.82rem; }
#tutorWellbeing .td-domain-grid [data-wellbeing-area=entorno] svg { color:#278477; }
#tutorWellbeing .td-domain-grid [data-wellbeing-area=estado_mental] svg { color:#78578e; }
#tutorWellbeing .td-evolution-row,
#tutorWellbeing .td-huella-shortcuts button,
#tutorWellbeing .td-original-paw > summary { background:#fbfdff; border:1px solid #dfeaf1; border-radius:12px; }
#tutorWellbeing .td-evolution-row { min-height:49px; font-size:.9rem; }
#tutorWellbeing .td-evolution-row small { font-size:.74rem; }
.td-huella-shortcuts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
#tutorWellbeing .td-huella-shortcuts button { min-height:46px; padding-inline:7px; gap:5px; }
#tutorWellbeing .td-huella-shortcuts button strong { font-size:.82rem; }
#tutorWellbeing .td-original-paw > summary {
  display:flex; align-items:center; gap:8px; color:#235e7b; min-height:46px; padding:7px 10px;
  font-size:.85rem; font-weight:650;
}
#tutorWellbeing .td-original-paw > summary svg { width:19px; height:19px; }
#tutorWellbeing .td-original-paw > summary::after { content:"›"; margin-inline-start:auto; }
#tutorWellbeing .td-original-paw[open] > summary::after { transform:rotate(90deg); }
@media (max-width:767px) {
  body:has(#tutorWellbeing.active,#tutorHuella.active) #tutorGlobalNav.td-nav:not(.hidden) {
    border-radius:17px 17px 0 0; background:#fbfdff; padding-bottom:max(4px,env(safe-area-inset-bottom));
    box-shadow:0 -4px 18px #1b466b15;
  }
  body:has(#tutorWellbeing.active,#tutorHuella.active) #tutorGlobalNav.td-nav .navitem.active { background:#e4f2fa; color:#146285; }
}

/* Aprender reference layout. The full lesson remains available beneath its preview. */
#tutorFreeLearn.td-screen { --td-edge:clamp(12px,3.55vw,22px); background:#f0f5fa; }
#tutorFreeLearn > .td-mast { margin-bottom:10px; padding-bottom:24px; }
#tutorFreeLearn .td-mast-art { padding:5px; }
#tutorFreeLearn .td-mast-art::after { content:""; position:absolute; width:13px; height:8px; right:1px; top:-4px; border-inline-end:2px solid #d89443; border-block-start:2px solid #d89443; border-start-end-radius:7px; }
#tutorFreeLearn .phMicroCard:has(.td-lesson-hero) {
  padding:9px; border:1px solid #e4edf3; border-radius:16px;
  background:#fbfdff; box-shadow:0 4px 14px #14395312;
}
#tutorFreeLearn .td-lesson-hero {
  display:grid; grid-template-columns:minmax(0,1fr) clamp(78px,30%,124px); align-items:stretch; gap:9px;
}
#tutorFreeLearn .td-lesson-copy { min-width:0; padding:2px 0 2px 3px; }
#tutorFreeLearn .td-lesson-copy .eyebrow {
  display:inline-block; max-width:none; padding:3px 6px; border-radius:8px;
  background:#e5f3fb; color:#145a7c; font-size:.72rem; letter-spacing:.02em;
}
#tutorFreeLearn #phMicroTitle { font-size:clamp(1.08rem,4.95vw,1.5rem); margin:5px 0 3px; line-height:1.14; letter-spacing:-.014em; }
#tutorFreeLearn .td-lesson-category { display:block; color:#296381; font-size:.74rem; line-height:1.2; font-weight:650; }
#tutorFreeLearn .td-lesson-excerpt { color:#4b6275; margin:4px 0 7px; font-size:.8rem; line-height:1.37; }
#tutorFreeLearn .td-lesson-hero .td-lesson-art {
  display:grid; place-items:center; width:100%; height:100%; min-height:118px; aspect-ratio:auto;
  position:relative; margin:0; background:#dceef6; border-radius:12px; overflow:hidden;
}
#tutorFreeLearn .td-lesson-hero .td-lesson-art img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
#tutorFreeLearn .td-lesson-start { margin-top:6px; }
#tutorFreeLearn .td-lesson-start > summary {
  display:flex; align-items:center; justify-content:space-between; min-height:44px; padding:6px 10px;
  margin:0; border-radius:11px; background:linear-gradient(120deg,#286a91,#174e77); box-shadow:0 3px 7px #143d5d28;
  font-size:.88rem; list-style:none;
}
#tutorFreeLearn .td-lesson-start summary::-webkit-details-marker { display:none; }
#tutorFreeLearn .td-lesson-start[open] summary span { transform:rotate(90deg); }
#tutorFreeLearn .td-lesson-start[open] { clear:none; }
#tutorFreeLearn .td-lesson-interaction { margin-top:10px; padding:10px; border-radius:12px; background:#eff7fb; }
#tutorFreeLearn .td-lesson-interaction[hidden] { display:none; }
#tutorFreeLearn .td-lesson-interaction p { margin:0 0 8px; font-size:.88rem; line-height:1.42; }
#tutorFreeLearn .td-lesson-interaction #phMicroQuestion { margin-top:12px; color:#153750; }
#tutorFreeLearn .phMicroChoices { counter-reset:td-answer; }
#tutorFreeLearn .phMicroChoices button {
  counter-increment:td-answer; display:grid; grid-template-columns:25px minmax(0,1fr); align-items:center; gap:7px;
  min-height:44px; padding:6px 8px; background:#fff; border:1px solid #dce9f1; border-radius:11px; color:#14344f;
  font-size:.84rem; font-weight:650; line-height:1.25;
}
#tutorFreeLearn .phMicroChoices button::before {
  content:counter(td-answer, upper-alpha); display:grid; place-items:center; width:24px; height:24px;
  border-radius:8px; color:#1d6287; background:#e4f2fa; font-size:.75rem;
}
#tutorFreeLearn .phMicroChoices button:is(:focus-visible,:hover) { border-color:#78aabf; background:#f4fbff; }
#tutorFreeLearn .phMicroResult { margin:8px 0; padding:10px; background:#e9f6f1; border-radius:12px; }
#tutorFreeLearn .td-learning-quick { margin:10px 0; }
#tutorFreeLearn .td-learning-quick h2 { margin:0 0 5px; }
#tutorFreeLearn .td-learning-quick > div { grid-template-columns:repeat(auto-fit,minmax(82px,1fr)); }
#tutorFreeLearn .td-learning-quick .td-reference-action { min-height:62px; background:#fbfdff; box-shadow:0 2px 5px #143d5d0d; }
#tutorFreeLearn .td-learning-quick .td-reference-action:hover { border-color:#8bb7ce; }
#tutorFreeLearn .td-academy-about { margin:5px 0; color:#365f78; font-size:.82rem; }
#tutorFreeLearn .td-academy-about summary { cursor:pointer; padding:6px 0; font-weight:700; }
#tutorFreeLearn #huellaLearningBody .storyLearningLead { padding:10px 12px; border-radius:14px; }
@media (max-width:767px) {
  body:has(#tutorFreeLearn.active) #tutorGlobalNav.td-nav:not(.hidden) {
    border-radius:17px 17px 0 0; background:#fbfdff; padding-bottom:max(4px,env(safe-area-inset-bottom));
    box-shadow:0 -4px 18px #1b466b15;
  }
}

/* Huella ID reference refinement: identity, modules and measurement emphasis. */
#tutorHuellaId .hid-brandbar.td-mast [data-close] { display:none; }
#tutorHuellaId .hid-brandbar.td-mast { padding-bottom:25px; background:linear-gradient(125deg,#123c55,#205d84 76%,#2b6d92); }
#tutorHuellaId .td-mast-art { border:0; background:none; padding:0; }
#tutorHuellaId .td-mast-art svg { width:48px; }
#tutorHuellaId .hid-body { gap:9px; }
#tutorHuellaId .td-id-summary { min-height:64px; padding:10px 13px; border-radius:16px; background:#fffefd; box-shadow:0 5px 15px #193d5b13; }
#tutorHuellaId .td-id-summary h3 { font-size:1.04rem; }
#tutorHuellaId .td-id-summary p { margin-top:2px; font-size:.78rem; color:#4d6578; }
#tutorHuellaId .td-id-avatar { outline:3px solid #e7f3f9; }
#tutorHuellaId .td-id-care-links .td-reference-action,
#tutorHuellaId .td-id-disclosure { box-shadow:0 3px 11px #193d5b0b; background:#fffefd; border-color:#d9e8f1; }
#tutorHuellaId .td-id-care-links .td-reference-action,
#tutorHuellaId .td-id-disclosure > summary { min-height:61px; padding:10px 12px; gap:11px; }
#tutorHuellaId .td-id-disclosure > summary strong,
#tutorHuellaId .td-reference-action strong { font-size:.95rem; font-weight:750; }
#tutorHuellaId .td-id-disclosure > summary small,
#tutorHuellaId .td-reference-action small { font-size:.78rem; line-height:1.35; margin-top:2px; }
#tutorHuellaId .td-weight-row { background:linear-gradient(120deg,#e4f4fc,#f7fcff); border-color:#c6e2f1; }
#tutorHuellaId .td-weight-row > summary { min-height:88px; }
#tutorHuellaId .td-weight-row > summary small { font-size:.89rem; color:#215d80; font-weight:650; }
#tutorHuellaId .td-weight-row > summary span::after { content:"Ver historial"; display:block; margin-top:5px; font-size:.76rem; font-weight:500; color:#41677e; }
#tutorHuellaId .td-weight-row > summary > svg:first-child:not(.td-mini-chart) { background:#d1ebf8; padding:7px; width:19px; height:19px; }
#tutorHuellaId .td-id-activity { background:linear-gradient(115deg,#eff8fc,#fffefd); }
#tutorHuellaId .td-id-refresh { order:4; display:flex; justify-content:flex-end; margin-top:-4px; }
#tutorHuellaId .td-id-refresh button { min-height:44px; padding:6px 11px; font-size:.78rem; background:#e7f2f8; border:1px solid #d6e7f0; border-radius:12px; color:#285d7b; }
#tutorHuellaId .hid-body > p:not([role]) { order:5; border-top:1px solid #dce8ef; padding:9px 2px; font-size:.76rem; line-height:1.4; }

/* Structural identity layout: feature, two tiles and expanded measurement panel. */
#tutorHuellaId .hid-brandbar.td-mast { min-height:145px; padding-top:max(16px,env(safe-area-inset-top)); }
#tutorHuellaId .hid-body { gap:14px; }
#tutorHuellaId .td-id-summary { grid-template-columns:68px minmax(0,1fr) auto; min-height:92px; padding:12px; border-radius:20px; }
#tutorHuellaId .td-id-avatar,#tutorHuellaId .td-id-avatar img { width:68px; height:68px; }
#tutorHuellaId .td-id-summary h3 { font-size:1.3rem; }
#tutorHuellaId .td-id-summary p { font-size:.84rem; }
#tutorHuellaId [data-experiments] > .td-identity-feature { background:linear-gradient(125deg,#153f5a,#276d95); border:0; border-radius:20px; overflow:hidden; }
#tutorHuellaId .td-identity-feature > summary { grid-template-columns:56px minmax(0,1fr); padding:18px 15px; color:white; gap:14px; }
#tutorHuellaId .td-identity-feature > summary > svg:first-child { box-sizing:border-box; width:56px; height:56px; padding:8px; color:#daf4ff; background:#ffffff17; border-radius:14px; }
#tutorHuellaId .td-identity-feature > summary strong { font-size:1.2rem; color:white; }
#tutorHuellaId .td-identity-feature > summary small { font-size:.85rem; line-height:1.4; color:#dfedf6; margin-top:5px; }
#tutorHuellaId .td-qr-cta { display:inline-flex; align-items:center; justify-content:center; min-height:44px; padding:7px 12px; margin-top:12px; background:#dbf2ff; color:#174864; border-radius:13px; font-size:.87rem; font-weight:750; }
#tutorHuellaId .td-identity-feature > .hid-card { margin:0; padding:14px; background:#fff; color:#173c55; border-radius:0; }
#tutorHuellaId .td-id-care-links { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
#tutorHuellaId .td-id-care-links .td-reference-action { grid-template-columns:1fr; align-content:start; gap:9px; padding:14px; min-height:134px; border-radius:18px; background:#f6fbfe; }
#tutorHuellaId .td-id-care-links .td-reference-action > b { display:none; }
#tutorHuellaId .td-id-care-links .td-reference-action > svg { width:24px; height:24px; padding:7px; }
#tutorHuellaId .td-reference-action strong { font-size:1rem; }
#tutorHuellaId .td-reference-action small { font-size:.82rem; margin-top:5px; }
#tutorHuellaId .td-weight-row { border-radius:20px; overflow:hidden; background:linear-gradient(125deg,#e3f3fc,#fff); }
#tutorHuellaId .td-weight-row > summary { min-height:66px; padding:14px; }
#tutorHuellaId .td-weight-row > summary strong { font-size:1.16rem; }
#tutorHuellaId .td-weight-row > summary span::after { content:"Ver mediciones y registrar peso"; }
#tutorHuellaId .td-weight-row > .hid-card { background:transparent; padding:0 14px 10px; }
#tutorHuellaId .td-weight-row [data-weight] > h3,#tutorHuellaId .td-weight-row [data-weight] > p:first-of-type { display:none; }
#tutorHuellaId .td-weight-row [data-weight-chart] > strong { display:block; font-size:1.45rem; color:#174d70; padding:4px 0 12px; }
#tutorHuellaId .td-weight-row .td-id-refresh { display:flex; padding:0 14px 12px; margin:0; }
#tutorHuellaId .td-weight-row .td-mini-chart { display:none; }
#tutorHuellaId .td-weight-row > summary:has(.td-mini-chart) { grid-template-columns:28px minmax(0,1fr) 12px; }
#tutorHuellaId .td-id-activity > summary { min-height:68px; }
@media(max-width:330px) { #tutorHuellaId .td-id-care-links { grid-template-columns:1fr; } }

/* Final Huella ID finishing, preserving the approved module order. */
#tutorHuellaId .hid-brandbar.td-mast {
  min-height:151px; padding-top:max(16px,env(safe-area-inset-top));
  background:radial-gradient(ellipse at 80% 5%,#397b9e80,transparent 58%),linear-gradient(125deg,#103850,#245f85);
}
#tutorHuellaId .td-mast-brand { margin-bottom:12px; }
#tutorHuellaId .hid-brandbar.td-mast h2 { font-size:27px; letter-spacing:-.035em; line-height:1.15; }
#tutorHuellaId .hid-brandbar .td-mast-subtitle { font-size:13px; line-height:1.4; max-width:76%; }
#tutorHuellaId .td-mast-art { opacity:.8; }
#tutorHuellaId .td-mast-art svg { width:42px; }
#tutorHuellaId .td-id-summary { grid-template-columns:74px minmax(0,1fr) auto; gap:14px; min-height:100px; padding:12px 14px; }
#tutorHuellaId .td-id-avatar,#tutorHuellaId .td-id-avatar img { width:74px; height:74px; }
#tutorHuellaId .td-id-avatar { outline:3px solid #edf6fa; box-shadow:0 3px 9px #17486620; }
#tutorHuellaId .td-id-avatar img { object-fit:cover; object-position:center; }
#tutorHuellaId .td-id-summary h3 { font-size:23px; line-height:1.15; letter-spacing:-.03em; }
#tutorHuellaId .td-id-summary p { font-size:13px; line-height:1.4; margin-top:4px; }
#tutorHuellaId [data-experiments] > .td-identity-feature {
  background:radial-gradient(ellipse at 100% 10%,#5c9bb13b,transparent 64%),linear-gradient(120deg,#153e59,#286b90);
  box-shadow:0 7px 20px #153e5923;
}
#tutorHuellaId .td-identity-feature > summary {
  grid-template-columns:minmax(0,1fr) 60px; gap:14px; padding:20px 17px;
}
#tutorHuellaId .td-identity-feature > summary > span { grid-column:1; grid-row:1; }
#tutorHuellaId .td-identity-feature > summary > svg:first-child {
  grid-column:2; grid-row:1; align-self:center; width:60px; height:60px; padding:10px;
  border:1px solid #d5f4ff55; border-radius:16px; background:#edfaff12;
}
#tutorHuellaId .td-identity-feature > summary strong { font-size:18px; line-height:1.25; letter-spacing:-.02em; }
#tutorHuellaId .td-identity-feature > summary small { font-size:13px; line-height:1.5; margin-top:7px; color:#ecf7fc; }
#tutorHuellaId .td-qr-cta { font-size:13px; min-height:44px; padding:8px 13px; margin-top:14px; background:#e4f5fd; box-shadow:0 3px 8px #092b4724; border:1px solid #ffffff8c; }
#tutorHuellaId .td-id-care-links .td-reference-action {
  min-height:144px; padding:15px 13px; gap:10px; background:linear-gradient(145deg,#fffefd,#edf7fc);
  box-shadow:0 5px 13px #1748660d; border-color:#d6e6ef;
}
#tutorHuellaId .td-id-care-links .td-reference-action > svg { width:23px; height:23px; padding:7px; border-radius:11px; color:#225d80; background:#dceff8; }
#tutorHuellaId .td-id-care-links .td-reference-action strong { font-size:16px; line-height:1.25; }
#tutorHuellaId .td-id-care-links .td-reference-action small { font-size:13px; line-height:1.4; margin-top:5px; }
#tutorHuellaId .td-weight-row > summary { padding:15px 15px 9px; }
#tutorHuellaId .td-weight-row > summary strong { font-size:18px; line-height:1.25; }
#tutorHuellaId .td-weight-row > summary small { font-size:13px; font-weight:500; }
#tutorHuellaId .td-weight-row > .hid-card { padding-inline:15px; }
#tutorHuellaId .td-weight-row [data-weight-chart] > strong { font-size:27px; font-weight:800; line-height:1.25; letter-spacing:-.025em; padding:7px 0 13px; }
#tutorHuellaId .td-weight-row [data-weight] details > summary { min-height:44px; align-content:center; font-size:13px; }
#tutorHuellaId .td-id-activity > summary { padding:14px; min-height:78px; }
#tutorHuellaId .td-id-activity > summary strong { font-size:16px; }
#tutorHuellaId .td-id-activity > summary small { font-size:13px; line-height:1.4; }
#tutorHuellaId .td-id-disclosure > summary:focus-visible { outline:2px solid #73c7ef; outline-offset:-3px; border-radius:18px; }

#tutorHuellaId .td-weight-latest-date { font-size:13px; color:#466177; margin:-5px 0 9px; }

/* Comunidad v22 — real media, editorial memories, scoped to this screen. */
#tutorStory > .td-mast { min-height:150px; padding-bottom:26px; margin-bottom:16px; }
#tutorStory .td-mast h1 { font-size:29px; line-height:1.12; }
#tutorStory .td-mast p { font-size:13px; max-width:min(25ch,calc(100% - 108px)); }
#tutorStory .td-feed-controls { gap:14px; }
#tutorStory .td-feed-controls .phStoryTabs { height:46px; padding:2px; }
#tutorStory .td-feed-controls .phStoryTabs button { min-height:40px; font-size:13px; }
#tutorStory .td-story-invitation:has(.td-story-share) { padding:14px; gap:8px 10px; border-radius:20px; }
#tutorStory .td-story-invitation .chapterCommunityPrompt { font-size:13px; line-height:1.4; }
#tutorStory .chapterCommunityPrompt b { font-size:14px; }
#tutorStory .td-story-invitation .td-story-share { grid-column:2; justify-self:start; min-width:0; min-height:44px; padding:6px 13px; font-size:13px; }
#tutorStory .td-story-feed-heading { align-items:center; }
#tutorStory .td-story-feed-heading h2 { flex:1; font-size:19px; line-height:1.2; }
#tutorStory .td-story-filter-menu { flex:none; font-size:12px; }
#tutorStory .td-story-filter-menu[open] { flex-basis:100%; }
#tutorStory .td-story-feed-heading > .phStoryFilters { width:100%; gap:5px; flex-wrap:wrap; }
#tutorStory .phStoryFilters button { padding:5px 10px; font-size:12px; min-height:36px; border-radius:18px; margin:0; }
#tutorStory .phStoryFilters [aria-pressed=true] { color:white; background:#205b82; }
/* The loader observes an empty host. Never hide its reserved space. */
#tutorStory .phStoryMedia:empty[data-feed-asset],
#tutorStory .phStoryMedia:empty[style*="min-height"] { display:block; width:100%; background:linear-gradient(120deg,#e2eef2,#f0f6f7,#e2eef2); }
#tutorStory .phStoryList:not(.isAlbum) { display:grid; grid-template-columns:minmax(0,1fr); gap:16px; }
#tutorStory .phStoryList:not(.isAlbum) .td-story-post { display:block; border-radius:21px; background:#fffdfa; overflow:hidden; border:1px solid #e0e9ee; box-shadow:0 5px 18px #173d5910; }
#tutorStory .phStoryList:not(.isAlbum) .td-story-post .phStoryMedia { display:block; width:100%; }
#tutorStory .phStoryList:not(.isAlbum) .td-story-post .phStoryMedia:empty:not([data-feed-asset]):not([style*="min-height"]) { display:none; }
#tutorStory .phStoryList:not(.isAlbum) .td-story-post .phStoryMedia img { display:block; width:100%; height:auto; aspect-ratio:4/3; max-height:440px; object-fit:cover; }
#tutorStory .phStoryList:not(.isAlbum) .td-story-post .phStoryMedia video { display:block; width:100%; max-height:460px; object-fit:contain; }
#tutorStory .phStoryCaption { padding:14px 16px 12px; }
#tutorStory .phStoryCaption .td-moment-meta { display:flex; align-items:baseline; justify-content:space-between; gap:10px; margin:0 0 7px; text-transform:none; letter-spacing:0; }
#tutorStory .td-moment-meta strong { font-size:17px; color:#143e58; }
#tutorStory .td-moment-meta span { font-size:12px; font-weight:400; color:#637789; }
#tutorStory .phStoryCaption .phStoryType { display:inline-block; font-size:11px; padding:3px 8px; margin:0 0 4px; background:#edf5f6; }
#tutorStory .phStoryCaption .phStoryText { font-size:15px; line-height:1.5; margin:5px 0 10px; white-space:pre-wrap; }
#tutorStory .phStoryCaption .mini { font-size:12px; line-height:1.4; color:#637789; margin:6px 0; }
#tutorStory .phStoryCaption .mini svg { width:13px; height:13px; }
#tutorStory .phStoryActions { align-items:center; border-top:1px solid #edf0ef; padding-top:8px; margin-top:9px; }
#tutorStory .phStoryActions > [data-story-react] { font-size:13px; background:#fff0dc; color:#754710; border-radius:22px; }
#tutorStory .phStoryActions > [data-story-react][aria-pressed=true] { background:#f5c384; color:#583208; }
#tutorStory .phStoryActions > [data-story-react] svg { color:#dc841e; }
#tutorStory .td-story-post-menu > summary { background:transparent; font-size:21px; }
#tutorStory .td-story-post:not(:has(.phStoryMedia img,.phStoryMedia video,.phStoryMedia[data-feed-asset])) { border-left:3px solid #e9b16a; background:linear-gradient(145deg,#fffdfa,#f1f8fa); }
#tutorStory .phStoryList .td-moment-advance { border-top:3px solid #e9b16a; }
#tutorStory .td-moment-advance .phStoryType { background:#fff0dc; color:#82521a; }
#tutorStory .phStoryText.td-moment-preview { display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
#tutorStory .td-moment-read { border:0; background:transparent; color:#205b82; padding:0 8px; margin:0; min-height:44px; font-size:13px; font-weight:700; cursor:pointer; }
#tutorStory .phStoryComposer { background:linear-gradient(120deg,#e5f3f8,#fffdfa); border-radius:20px; }
#tutorStory .phStoryComposer > summary { font-size:15px; }
#tutorStory .phStoryList.isAlbum { gap:10px; }
#tutorStory .phStoryList.isAlbum .td-moment-meta { flex-wrap:wrap; gap:2px; }
#tutorStory .phStoryList.isAlbum .phStoryCaption { padding:10px; }
#tutorStory [data-story-status] { padding:24px; border-radius:18px; background:linear-gradient(115deg,#f8fbfd,#e5f1f5); font-size:14px; }
#tutorStory [role=alert] { border:1px solid #d8e7ef; border-left:3px solid #e9b16a; padding:18px; border-radius:18px; }
@media(min-width:768px) { #tutorStory .phStoryList:not(.isAlbum) { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; } }
#tutorStory .td-story-feed-heading > .phStoryFilters { flex-wrap:nowrap; overflow-x:auto; padding-bottom:3px; }
#tutorStory .td-story-feed-heading > .phStoryFilters button { flex:none; font-size:11px; padding-inline:8px; }
#tutorStory .td-story-feed-heading h2::after { display:none; }
#tutorStory .td-story-feed-heading h2 { font-size:19px; }
#tutorStory .td-story-filter-menu > summary { font-size:0; width:40px; justify-content:center; padding:0; }
#tutorStory .td-story-filter-menu > summary::after { content:'⋯'; font-size:22px; }
#tutorStory .td-moment-avatar { display:none; }
#tutorStory .td-story-post:not(:has(.phStoryMedia img,.phStoryMedia video,.phStoryMedia[data-feed-asset])) .td-moment-avatar { display:block; width:36px; height:36px; border-radius:50%; object-fit:cover; }
#tutorStory .td-moment-meta:has(.td-moment-avatar) strong { margin-right:auto; }


/* Blend the real photograph into the header without stretching its proportions. */

#tutorHome > .td-mast.td-greeting-has-photo { background:linear-gradient(120deg,#163c59,#256888); min-height:210px; }
#tutorHome > .td-mast.td-greeting-has-photo::after { background:linear-gradient(90deg,#143f5840,transparent); }

#tutorHome .visualStory.td-story-has-photo { min-height:175px;padding:20px; }
#tutorHome .visualStory.td-story-has-photo .td-story-photo {
 inset:10px 10px 10px auto;width:43%;height:calc(100% - 20px);object-fit:contain;
 object-position:right center;
 -webkit-mask-image:linear-gradient(90deg,transparent 0%,#0008 24%,#000 55%);
 mask-image:linear-gradient(90deg,transparent 0%,#0008 24%,#000 55%);border-radius:0;
}
#tutorHome .visualStory.td-story-has-photo strong,
#tutorHome .visualStory.td-story-has-photo span:last-child { max-width:51%; }
#tutorMore [data-menu-icon="family"] .td-row-icon,
#tutorMore [data-menu-icon="gift"] .td-row-icon,
#tutorMore [data-menu-icon="bell"] .td-row-icon { background:#fff0da;color:#ad590d; }
#tutorMore [data-menu-icon="health"] .td-row-icon,
#tutorMore [data-menu-icon="mapPin"] .td-row-icon { background:#e4f3eb;color:#287052; }
#tutorMore [data-menu-icon="paw"] .td-row-icon,
#tutorMore [data-menu-icon="help"] .td-row-icon { background:#dff3f7;color:#196d80; }
@media(min-width:700px){
 #tutorHome > .td-mast.td-greeting-has-photo{min-height:260px;}
 
 #tutorHome .visualStory.td-story-has-photo{min-height:210px;}
}


/* Approved tutor contract: six primary destinations; retain permitted services in More. */
.td-mobile-destinations:not([hidden]) { display:block; }
#tutorGlobalNav.td-nav [data-nav="tutorProgram"],#tutorGlobalNav.td-nav [data-nav="tutorMessages"],#tutorGlobalNav.td-nav [data-nav="tutorWellbeing"] { display:none !important; }
#tutorGlobalNav.td-nav .td-mobile-selected { background:#dff3fa; color:#08779c; border-radius:24px; }
@media(max-width:767px) {
 .td-mobile-destinations:not([hidden]) { display:block; }
 #tutorGlobalNav.td-nav:not(.hidden) { grid-template-columns:repeat(6,minmax(0,1fr)); grid-auto-flow:row; flex-wrap:nowrap; padding-bottom:max(6px,env(safe-area-inset-bottom)); }
 #tutorGlobalNav.td-nav .navitem { min-height:52px; min-width:44px; white-space:normal; overflow-wrap:normal; font-size:clamp(9px,2.6vw,11px); line-height:1.15; }
 #tutorGlobalNav.td-nav .td-mobile-selected { background:#dff3fa; color:#08779c; border-radius:24px; }
 #tutorGlobalNav.td-nav .td-mobile-pending { position:relative; }
 #tutorGlobalNav.td-nav .td-mobile-pending::after { content:''; position:absolute; top:5px; right:22%; width:8px; height:8px; border-radius:50%; background:#e58b24; }
 #tutorMore .td-menu-row[hidden] { display:none; }
 .screen.active { scroll-padding-bottom:calc(var(--td-nav-height,80px) + env(safe-area-inset-bottom)); }
}

/* Community illustration: two seated dogs, fine linework like the approved reference. */
#tutorStory .td-mast-art svg.td-dogs-art { width:clamp(72px,20vw,92px); height:auto; }
#tutorStory .td-mast-art::after { display:none; }

/* Approved comparison (docs/visual-reference). Presentation only; routes remain native. */
@media(max-width:767px) {
 #tutorHome > .td-mast.td-greeting-has-photo { min-height:206px; }
 
 
 #tutorHome > .td-mast #tutorGreeting { font-size:25px; max-width:210px; text-shadow:0 1px 3px #10334a; }
 #tutorHome > .td-mast .td-mast-subtitle { max-width:160px; font-size:13px; color:#fff; }
 #tutorHome .visualDogCard { min-height:76px; border:1px solid #eee9df; }
 #tutorHome .visualActions button { min-height:61px; background:linear-gradient(105deg,#fffdf8,#fff); }
 #tutorHome .visualActions button strong { font-size:14px; }
 #tutorHome .visualActions button > span:last-child { font-size:12px; }
 #tutorHome .visualActions button:first-child .visualTileIcon,
 #tutorHome .visualActions button:last-child .visualTileIcon { background:#fff0dc; color:#a7530b; border-radius:11px; }
 #tutorHome .visualMemory { min-height:46px; }
 #tutorWellbeing .td-wellbeing-profile { padding:8px; background:#fffdf9; }
 #tutorWellbeing .td-wellbeing-profile .wellbeingDogPortrait { aspect-ratio:1.2; }
 #tutorWellbeing .td-index-ring { width:208px; margin:4px auto -10px; }
 #tutorWellbeing .td-domain-grid button { min-height:82px; background:#fffdfa; }
 #tutorWellbeing .td-domain-grid button strong { font-size:12px; }
 #tutorFreeLearn .phMicroCard:has(.td-lesson-hero) { padding:13px; background:#fffdf9; }
 #tutorFreeLearn .td-lesson-excerpt { font-size:13px; }
 #tutorFreeLearn .td-lesson-start > summary { min-height:44px; border-radius:24px; }
 #tutorStory .td-story-invitation:has(.td-story-share) { padding:10px 12px; gap:5px 9px; background:#fffdf9; }
 #tutorStory .chapterCommunityPrompt { font-size:13px; }
 #tutorStory .phStoryCaption .eyebrow { font-size:11px; letter-spacing:.025em; color:#4c6676; }
 #tutorStory .phStoryCaption .mini { font-size:12px; }
 #tutorHuellaId .td-id-summary { min-height:60px; background:#fffdf9; }
 #tutorHuellaId .td-id-care-links .td-reference-action { min-height:61px; background:linear-gradient(110deg,#fffdf9,#f3faff); }
 #tutorMore .td-menu-row { padding:7px 0; }
 #tutorMore .td-row-title { font-size:14px; }
 #tutorMore .td-row-description { font-size:12px; margin-top:2px; }
 #tutorMore .td-menu-list { background:#fffdf9; padding-inline:10px; }
 #tutorMore .td-menu { gap:10px; }
}
#tutorHome .visualStory.td-story-illustrated {
 position:relative; overflow:hidden; min-height:126px; padding:17px 13px; border-radius:17px;
 background:linear-gradient(120deg,#f6eddb,#e0eef0); border:1px solid #e7e2d4;
}
#tutorHome .td-story-landscape { position:absolute; inset:0 0 0 auto; width:48%; pointer-events:none; }
#tutorHome .td-story-landscape svg { width:100%; height:100%; }
#tutorHome .visualStory.td-story-illustrated strong,
#tutorHome .visualStory.td-story-illustrated > span:last-child { position:relative; max-width:62%; }
#tutorHome .visualStory.td-story-illustrated strong { font-size:15px; }
#tutorHome .visualStory.td-story-illustrated > span:last-child { font-size:12px; }
#tutorHome:has(.visualActions [data-micro-open]) #phMicroHome { display:none; }
#tutorWellbeing .td-index-source { margin:0; text-align:center; font-size:12px; line-height:1.4; color:#4d6475; }
#tutorWellbeing .td-domain-grid [data-wellbeing-area=estado_mental] svg { color:#ab5a14; }
#tutorFreeLearn .td-learning-progress:not([hidden]) { display:flex; align-items:center; gap:12px; width:100%; padding:10px 13px; margin:9px 0; border:1px solid #e6e7dd; border-radius:15px; background:#fffaf0; color:#14344f; text-align:left; }
#tutorFreeLearn .td-learning-progress svg { width:26px; height:26px; color:#ad5609; }
#tutorFreeLearn .td-learning-progress strong { display:block; font-size:15px; }
#tutorFreeLearn .td-learning-progress small { display:block; font-size:13px; }
#tutorFreeLearn .td-learning-progress[hidden],
#tutorFreeLearn .td-learning-quick[hidden] { display:none; }
#phDiscoverRoot > .card:has(> [data-map]) { display:flex; flex-direction:column; }
#phDiscoverRoot > .card > .phDiscoverLegend { order:-3; }
#phDiscoverRoot > .card > [data-map] { order:-2; }
#phDiscoverRoot > .card > [data-map-status],
#phDiscoverRoot > .card > [data-retry] { order:-1; }
#phDiscoverRoot .phDiscoverFilters { margin-top:12px; }

/* Loading is explicit; failed attachments never retain the photo-sized placeholder. */
#tutorStory .phStoryMedia[data-feed-asset="pending"]:empty::after { content:"Cargando adjunto…"; display:block; padding:16px; font-size:13px; color:#4d6475; }
#tutorStory .phStoryMedia[data-feed-asset="error"] { min-height:0!important; background:transparent; }
#tutorStory .phStoryMedia[data-feed-asset="error"]:empty { display:none!important; }


