/* ==========================================================================
   04 r2 final — 祐天兒 UTR Health × 三高小姐姐黛比 shared homepage stylesheet
   Skeleton: V1「甜心健康島」(layered island, parallax, side nav, reveals)
   Primary interaction: V2「蓋章＋批註」report triage (both sites)
   Site switch: <html data-site="utr|debby">   Prefix: ai-   Motion hooks: data-ai-motion
   Tokens: ../../assets/tokens.css (not modified; supplements below)
   ========================================================================== */

/* ---------- 0. Supplementary tokens (r1 trial authorisation, not in tokens.css) ---------- */
:root {
  --ai-pink: #FC6494;        /* heart pink: decoration only (hearts, dots, underline); never text */
  --ai-pink-50: #FFF0F4;     /* soft pink: bubble / annotation background (teal-700 text 6.6:1) */
  --ai-pink-100: #FFE1EA;
  --ai-star: #FCD43C;        /* 4-point sparkle, max 3 per page */
  --ai-font-hand: "LXGW WenKai TC", "Kaiti TC", "STKaiti", var(--ai-font-serif);
  --ai-header-h: 76px;
  --ai-wrap: 1200px;
  --ai-ease-v: cubic-bezier(0.22, 1, 0.36, 1);
  --ai-reveal-dur: 800ms;
  --ai-reveal-blur: 6px;
  --ai-note-bg: #fff;
  --ai-mark: var(--ai-teal-600);  /* hand-drawn circle / arrow colour */
}
[data-site="debby"] { --ai-note-bg: var(--ai-pink-50); --ai-mark: var(--ai-pink); }
@media (max-width: 1024.98px) { :root { --ai-header-h: 64px; --ai-reveal-dur: 600ms; --ai-reveal-blur: 0px; } }

/* ---------- 1. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--ai-header-h) + 12px); -webkit-text-size-adjust: 100%; }
body.ai-page {
  margin: 0; font-family: var(--ai-font-body); font-size: var(--ai-text-body); line-height: var(--ai-leading-body);
  letter-spacing: var(--ai-tracking-body); color: var(--ai-color-text); background: var(--ai-color-bg); overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
picture { display: contents; }
a { color: var(--ai-color-link); text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ai-color-link-hover); }
h1, h2, h3, h4 { font-family: var(--ai-font-heading); font-weight: var(--ai-weight-heading); color: var(--ai-color-heading); line-height: var(--ai-leading-heading); letter-spacing: var(--ai-tracking-heading); margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
.ai-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ai-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.ai-nb { display: inline-block; }
.ai-skip { position: absolute; left: 12px; top: -60px; z-index: 1200; background: var(--ai-teal-700); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.ai-skip:focus { top: 12px; color: #fff; }
.ai-wrap { width: min(100% - 2 * var(--ai-space-gutter), var(--ai-wrap)); margin-inline: auto; position: relative; }
/* Handwriting: only annotation label, signatures and a few hand labels (debby). Never info paragraphs. */
.ai-hand { font-family: var(--ai-font-hand); font-weight: 400; letter-spacing: 0.02em; }
.ai-mono { font-family: var(--ai-font-mono); font-variant-numeric: tabular-nums; }

/* ---------- 2. Buttons & links ---------- */
.ai-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--ai-btn-height); padding: 0 var(--ai-btn-padding-x);
  border-radius: var(--ai-radius-button); border: 1.5px solid transparent;
  font: 700 var(--ai-btn-font-size)/1.2 var(--ai-font-sans); letter-spacing: 0.04em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--ai-dur-fast) var(--ai-ease-standard), background-color var(--ai-dur-fast), box-shadow var(--ai-dur-fast), color var(--ai-dur-fast);
}
.ai-btn svg { width: 16px; height: 16px; flex: none; }
.ai-btn--lg { min-height: var(--ai-btn-height-lg); padding: 0 1.75rem; font-size: 1.0625rem; }
.ai-btn--primary { background: var(--ai-btn-primary-bg); color: #fff; }
.ai-btn--primary:hover { background: var(--ai-btn-primary-bg-hover); color: #fff; transform: translateY(var(--ai-hover-lift)); box-shadow: var(--ai-shadow-sm); }
.ai-btn--primary:active { background: var(--ai-btn-primary-bg-active); transform: translateY(1px); box-shadow: none; }
.ai-btn--secondary { background: #fff; color: var(--ai-teal-700); border-color: var(--ai-teal-700); }
.ai-btn--secondary:hover { background: var(--ai-teal-50); color: var(--ai-teal-800); }
.ai-btn--bright { background: var(--ai-teal-400); color: var(--ai-neutral-800); }
.ai-btn--bright:hover { background: var(--ai-teal-300); color: var(--ai-neutral-800); }
.ai-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.ai-btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.ai-btn__heart { width: 18px !important; height: 18px !important; color: var(--ai-pink); }
.ai-textlink { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--ai-teal-700); text-decoration: underline; text-decoration-thickness: 1.5px; }
.ai-textlink svg { width: 16px; height: 16px; flex: none; transition: transform var(--ai-dur-fast); }
.ai-textlink:hover svg { transform: translateX(3px); }
.ai-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.ai-cta-stack { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ai-cta-note { font-size: var(--ai-text-caption); color: var(--ai-color-text-muted); font-weight: 700; }

/* ---------- 3. Labels: sample / pending / todo / stamp ---------- */
.ai-sample { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 6px; background: var(--ai-amber-50); color: var(--ai-amber-700); border: 1px solid var(--ai-amber-200); font-size: var(--ai-text-caption); font-weight: 700; white-space: nowrap; line-height: 1.5; }
.ai-pending { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 4px; background: var(--ai-neutral-100); color: var(--ai-neutral-700); font-family: var(--ai-font-sans); font-size: var(--ai-text-caption); font-weight: 700; line-height: 1.6; vertical-align: 1px; letter-spacing: 0; }
.ai-todo { display: inline-block; padding: 0 8px; border-radius: 4px; background: var(--ai-amber-50); color: var(--ai-amber-700); font-size: var(--ai-text-caption); font-weight: 700; }
.ai-flag { font-family: var(--ai-font-sans); font-size: var(--ai-text-caption); font-weight: 700; padding: 0 6px; border-radius: 4px; line-height: 1.5; letter-spacing: 0; }
.ai-flag--red { color: var(--ai-red-700); background: var(--ai-red-50); }
.ai-flag--ok { color: var(--ai-green-700); background: var(--ai-green-50); }

/* Category stamp (shared mechanism: colour + icon + text; stamp look from V2) */
.ai-stamp {
  --tilt: -2deg; --fg: var(--ai-status-now-fg); --bg: var(--ai-status-now-bg); --ic: var(--ai-status-now-icon);
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 8px;
  border: 1.5px solid currentColor; border-radius: 6px; background: var(--bg); color: var(--fg);
  box-shadow: inset 0 0 0 2px var(--bg), inset 0 0 0 3px color-mix(in srgb, currentColor 50%, transparent);
  font: 700 var(--ai-text-caption)/1.45 var(--ai-font-sans); letter-spacing: 0.04em; white-space: nowrap;
  transform: rotate(var(--tilt)); transform-origin: 50% 40%;
}
.ai-stamp svg { width: 16px; height: 16px; flex: none; color: var(--ic); }
.ai-stamp--wait { --fg: var(--ai-status-wait-fg); --bg: var(--ai-status-wait-bg); --ic: var(--ai-status-wait-icon); --tilt: 1.5deg; }
.ai-stamp--gap { --fg: var(--ai-status-gap-fg); --bg: var(--ai-status-gap-bg); --ic: var(--ai-status-gap-icon); --tilt: -1deg; border-style: dashed; border-color: var(--ai-status-gap-border); box-shadow: none; }
.ai-stamp--lg { font-size: 1rem; padding: 6px 16px 6px 12px; }
.ai-stamp--lg svg { width: 20px; height: 20px; }
[data-site="utr"] .ai-stamp { --tilt: 0deg; }
[data-site="utr"] .ai-stamp--wait, [data-site="utr"] .ai-stamp--gap { --tilt: 0deg; }

/* ---------- 4. Header ---------- */
.ai-header { position: sticky; top: 0; z-index: var(--ai-z-sticky); background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color var(--ai-dur-base), box-shadow var(--ai-dur-base); }
.ai-header.is-scrolled { border-bottom-color: var(--ai-color-line); box-shadow: var(--ai-shadow-xs); }
.ai-header__row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--ai-header-h); }
.ai-logo img { height: 46px; width: auto; }
.ai-wordmark { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; text-decoration: none; color: var(--ai-neutral-800); }
.ai-wordmark__name { font-family: var(--ai-font-serif); font-weight: 600; font-size: 1.3125rem; letter-spacing: 0.04em; display: inline-flex; align-items: center; gap: 4px; }
.ai-wordmark__name svg { width: 16px; height: 16px; color: var(--ai-pink); transform: translateY(-6px) rotate(10deg); }
.ai-wordmark__role { font-size: var(--ai-text-caption); color: var(--ai-color-text-muted); }
.ai-nav { display: flex; align-items: center; gap: 28px; }
.ai-nav__list { display: flex; align-items: center; gap: 4px 22px; }
.ai-nav__list a, .ai-nav__ext { white-space: nowrap; color: var(--ai-neutral-800); text-decoration: none; font-size: 1rem; display: inline-flex; align-items: center; gap: 4px; padding: 8px 0; position: relative; }
.ai-nav__list a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; border-radius: 2px; background: var(--ai-teal-400); transform: scaleX(0); transform-origin: left; transition: transform var(--ai-dur-base) var(--ai-ease-out); }
.ai-nav__list a:hover::after { transform: scaleX(1); }
.ai-nav__ext { color: var(--ai-teal-700); font-weight: 700; }
.ai-nav__ext svg, .ai-nav__list svg { width: 14px; height: 14px; }
.ai-menubtn { display: none; width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid var(--ai-color-border); background: #fff; color: var(--ai-neutral-800); cursor: pointer; align-items: center; justify-content: center; }
.ai-menubtn svg { width: 24px; height: 24px; }
.ai-header__tools { display: none; align-items: center; gap: 10px; }
@media (min-width: 1025px) and (max-width: 1279.98px) {
  [data-site="debby"] .ai-wordmark__role { display: none; }
  .ai-nav { gap: 20px; }
  .ai-nav__list { gap: 4px 16px; }
}
@media (max-width: 1024.98px) {
  .ai-logo img { height: 40px; }
  .ai-wordmark__name { font-size: 1.125rem; }
  .ai-header__row { flex-wrap: wrap; }
  .ai-nav { width: 100%; flex-wrap: wrap; gap: 8px 16px; padding-bottom: 12px; }
  .ai-nav__list { flex-wrap: wrap; gap: 0 16px; }
  .ai-js .ai-header__tools { display: flex; }
  .ai-js .ai-menubtn { display: inline-flex; }
  .ai-js .ai-nav { display: none; }
  .ai-js .ai-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 0 20px; border-top: 1px solid var(--ai-color-line); }
  .ai-js .ai-nav.is-open .ai-nav__list { flex-direction: column; align-items: stretch; }
  .ai-js .ai-nav.is-open .ai-nav__list a { padding: 12px 4px; border-bottom: 1px solid var(--ai-color-line); width: 100%; }
  .ai-js .ai-nav.is-open .ai-btn { width: 100%; }
}
@media (max-width: 479.98px) {
  .ai-wordmark__role { display: none; }
  .ai-header__row { gap: 10px; }
  .ai-wordmark__name { font-size: 1.0625rem; }
  .ai-header__tools { gap: 8px; }
  .ai-header__tools .ai-btn { padding: 0 12px; font-size: 0.9375rem; min-height: 44px; }
  .ai-menubtn { width: 44px; height: 44px; }
}
@media (max-width: 359.98px) { .ai-header__tools .ai-btn { display: none; } }

/* ---------- 5. Section scaffolding ---------- */
.ai-sec { position: relative; padding-block: var(--ai-space-section); overflow: clip; }
.ai-sec--tint { background: var(--ai-section-alt-bg); }
.ai-sec--soft { background: linear-gradient(180deg, var(--ai-teal-50), #fff 85%); }
.ai-sechead { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); position: relative; z-index: 2; }
.ai-sechead--center { margin-inline: auto; text-align: center; }
.ai-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: var(--ai-text-small); font-weight: 700; color: var(--ai-teal-700); letter-spacing: 0.08em; margin-bottom: 12px; }
.ai-eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ai-teal-400); }
[data-site="debby"] .ai-eyebrow::before { width: 14px; height: 13px; border-radius: 0; background: var(--ai-pink); -webkit-mask: var(--ai-heart-mask) center / contain no-repeat; mask: var(--ai-heart-mask) center / contain no-repeat; }
:root { --ai-heart-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20.3c-.4 0-7.9-4.6-9.4-9.4C1.6 7.7 3.5 4.6 6.7 4.4c2.1-.1 3.9 1.1 5.3 3.1 1.4-2 3.2-3.2 5.3-3.1 3.2.2 5.1 3.3 4.1 6.5-1.5 4.8-9 9.4-9.4 9.4z'/%3E%3C/svg%3E"); }
.ai-h1 { font-family: var(--ai-font-display); font-size: var(--ai-text-display); line-height: var(--ai-leading-tight); }
.ai-h2 { font-size: var(--ai-text-h2); }
.ai-h3 { font-size: var(--ai-text-h3); }
.ai-h4 { font-size: var(--ai-text-h4); }
.ai-lead { font-size: var(--ai-text-lead); color: var(--ai-neutral-700); margin-top: 16px; }
.ai-note { font-size: var(--ai-text-small); color: var(--ai-color-text-muted); }
.ai-endrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; position: relative; z-index: 2; }

/* Hand-drawn underline (SVG stroke draw, plays once) */
.ai-ul { position: relative; display: inline-block; white-space: nowrap; }
.ai-ul > svg { max-width: none; position: absolute; left: -2%; width: 104%; bottom: -0.18em; height: 0.36em; overflow: visible; pointer-events: none; }
.ai-ul path { fill: none; stroke: var(--ai-teal-400); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1 2; stroke-dashoffset: 0; }
[data-site="debby"] .ai-ul path { stroke: var(--ai-pink); stroke-width: 4.5; }
.ai-js .ai-ul[data-ai-draw] path { stroke-dashoffset: 1; transition: stroke-dashoffset 900ms var(--ai-ease-v) 200ms; }
.ai-js .ai-ul[data-ai-draw].is-in path { stroke-dashoffset: 0; }

/* Soft background blobs (M3 scroll-parallax targets) */
.ai-blob { position: absolute; border-radius: 50%; pointer-events: none; z-index: 0; }
.ai-blob--teal { background: radial-gradient(circle at 35% 35%, var(--ai-teal-100), rgba(215,244,245,0) 70%); }
.ai-blob--pink { background: radial-gradient(circle at 50% 50%, var(--ai-pink-100), rgba(255,225,234,0) 70%); }
.ai-blob--mist { background: radial-gradient(circle at 50% 50%, var(--ai-neutral-100), rgba(226,236,237,0) 70%); }

/* ---------- 6. Reveal vocabulary (M4 + M10). Hidden state only with html.ai-js ---------- */
.ai-js [data-ai-motion] {
  opacity: 0;
  transition: opacity var(--ai-reveal-dur) var(--ai-ease-v), transform var(--ai-reveal-dur) var(--ai-ease-v), filter var(--ai-reveal-dur) var(--ai-ease-v);
  transition-delay: calc(var(--i, 0) * 100ms);
}
.ai-js [data-ai-motion="up"] { transform: translate3d(0, 14px, 0); filter: blur(var(--ai-reveal-blur)); }
.ai-js [data-ai-motion="left"] { transform: translate3d(-30px, 0, 0); filter: blur(calc(var(--ai-reveal-blur) * .6)); }
.ai-js [data-ai-motion="right"] { transform: translate3d(30px, 0, 0); filter: blur(calc(var(--ai-reveal-blur) * .6)); }
.ai-js [data-ai-motion="zoom"] { transform: scale(.92); }
.ai-js [data-ai-motion="tl"] { transform: translate3d(-24px, -24px, 0); filter: blur(var(--ai-reveal-blur)); }
.ai-js [data-ai-motion="tr"] { transform: translate3d(24px, -24px, 0); filter: blur(var(--ai-reveal-blur)); }
.ai-js [data-ai-motion="bl"] { transform: translate3d(-24px, 24px, 0); filter: blur(var(--ai-reveal-blur)); }
.ai-js [data-ai-motion="br"] { transform: translate3d(24px, 24px, 0); filter: blur(var(--ai-reveal-blur)); }
/* quick: final CTA — readable within 1 s of arriving (450 ms, no blur) */
.ai-js [data-ai-motion="quick"] { transform: translate3d(0, 10px, 0); transition-duration: 450ms; transition-delay: calc(var(--i, 0) * 60ms); }
.ai-js [data-ai-motion].is-in { opacity: 1; transform: none; filter: none; }
@media (max-width: 767.98px) {
  .ai-js [data-ai-motion="left"], .ai-js [data-ai-motion="right"],
  .ai-js [data-ai-motion="tl"], .ai-js [data-ai-motion="tr"], .ai-js [data-ai-motion="bl"], .ai-js [data-ai-motion="br"] { transform: translate3d(0, 16px, 0); }
}

/* ==========================================================================
   7. HERO — M1 layered floating island + M2 + M3 + M11
   ========================================================================== */
.ai-hero { position: relative; overflow: clip; padding-block: clamp(20px, 2vw, 28px) clamp(64px, 6vw, 100px); }
[data-site="debby"] .ai-hero { background: linear-gradient(180deg, #fff 0%, var(--ai-teal-50) 100%); }
[data-site="utr"] .ai-hero { background: linear-gradient(180deg, #fff 0%, var(--ai-neutral-50) 100%); }
.ai-hero__grid { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(24px, 3vw, 48px); min-height: min(calc(100svh - var(--ai-header-h) - 150px), 720px); position: relative; z-index: 2; }
.ai-hero__copy { position: relative; z-index: 3; max-width: 560px; }
.ai-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px; border-radius: 999px; background: #fff; box-shadow: var(--ai-shadow-sm); font-size: var(--ai-text-small); font-weight: 700; color: var(--ai-teal-700); margin-bottom: 20px; }
.ai-kicker svg { width: 18px; height: 18px; color: var(--ai-pink); }
[data-site="utr"] .ai-kicker svg { color: var(--ai-teal-400); }
.ai-hero .ai-lead { max-width: 30em; }
.ai-pun { margin-top: 14px; font-size: var(--ai-text-body); font-weight: 700; color: var(--ai-teal-700); line-height: 1.6; }
.ai-pun svg { display: inline-block; width: 16px; height: 16px; color: var(--ai-pink); vertical-align: -2px; margin-left: 4px; }
.ai-hero .ai-actions { margin-top: 28px; }
.ai-trust { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 26px; }
.ai-trust li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: #fff; border: 1px solid var(--ai-color-line); border-radius: 999px; font-size: var(--ai-text-small); color: var(--ai-neutral-700); }
.ai-trust svg { width: 16px; height: 16px; color: var(--ai-teal-600); }
/* Hero copy: readable < 1 s (500 ms, 70 ms stagger, 4px blur) */
.ai-js .ai-hero__copy > * { animation: ai-in-copy 500ms var(--ai-ease-v) both; animation-delay: calc(var(--i, 0) * 70ms); }

.ai-island { position: relative; width: min(100%, 620px); aspect-ratio: 600 / 620; margin-inline: auto; justify-self: center; }
.ai-js .ai-island { animation: ai-rise 1200ms var(--ai-ease-v) 80ms both; }
.ai-fl { position: absolute; z-index: var(--z, 2); left: var(--x, 0); top: var(--y, 0); width: var(--w, auto); pointer-events: none; will-change: transform; }
.ai-fl--sq > .ai-fl__m > .ai-fl__in > * { display: block; width: 100%; aspect-ratio: 1; }
@media (max-width: 767.98px) { .ai-fl { left: var(--mx, var(--x, 0)); top: var(--my, var(--y, 0)); width: var(--mw, var(--w, auto)); } }
.ai-fl__m { will-change: transform; }
.ai-fl__in { position: relative; }
.ai-js .ai-fl__in {
  animation: var(--enter, ai-in-zoom) 900ms var(--ai-ease-v) var(--d, 0.4s) both, ai-bob var(--bob, 6s) ease-in-out calc(var(--d, 0.4s) + 0.95s) infinite;
}
.ai-js .ai-fl__in[data-enter="tl"] { --enter: ai-in-tl; }
.ai-js .ai-fl__in[data-enter="tr"] { --enter: ai-in-tr; }
.ai-js .ai-fl__in[data-enter="bl"] { --enter: ai-in-bl; }
.ai-js .ai-fl__in[data-enter="br"] { --enter: ai-in-br; }
.ai-js .ai-fl__in[data-enter="up"] { --enter: ai-in-up; }
.ai-js .ai-fl__in[data-bob="none"] { animation: var(--enter, ai-in-zoom) 900ms var(--ai-ease-v) var(--d, 0.4s) both; }
/* Idle loops pause while the hero is off-screen (JS toggles .is-idle-off) */
.ai-hero.is-idle-off .ai-fl__in, .ai-hero.is-idle-off .ai-orbitline, .ai-hero.is-idle-off .ai-hint__dot, .ai-hero.is-idle-off .ai-star svg { animation-play-state: paused; }

@keyframes ai-rise { from { opacity: 0; transform: translate3d(0, 40px, 0); } to { opacity: 1; transform: none; } }
@keyframes ai-in-copy { from { opacity: 0; transform: translate3d(0, 10px, 0); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes ai-in-up { from { opacity: 0; transform: translate3d(0, 12px, 0); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes ai-in-zoom { from { opacity: 0; transform: scale(.8); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes ai-in-tl { from { opacity: 0; transform: translate3d(-30px, -30px, 0); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes ai-in-tr { from { opacity: 0; transform: translate3d(30px, -30px, 0); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes ai-in-bl { from { opacity: 0; transform: translate3d(-30px, 30px, 0); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes ai-in-br { from { opacity: 0; transform: translate3d(30px, 30px, 0); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes ai-bob { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, var(--amp, -8px), 0); } }
@keyframes ai-spin { to { transform: rotate(360deg); } }
@keyframes ai-beat { 0%, 100% { transform: scale(1); } 30% { transform: scale(1.16); } 55% { transform: scale(.98); } 78% { transform: scale(1.06); } }
@keyframes ai-pulse { 0% { transform: scale(.8); opacity: .75; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes ai-dot { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(2.8); opacity: 0; } }
@keyframes ai-twinkle { 0%, 70%, 100% { opacity: 1; transform: scale(1) rotate(0); } 80% { opacity: .35; transform: scale(.7) rotate(20deg); } 90% { opacity: 1; transform: scale(1.1) rotate(0); } }
@keyframes ai-linemove { 0% { transform: translateY(-4px); opacity: 0; } 20%, 80% { opacity: 1; } 100% { transform: translateY(40px); opacity: 0; } }

.ai-disc { position: absolute; border-radius: 50%; }
.ai-orbitline { position: absolute; border-radius: 50%; border: 2px dashed var(--ai-teal-200); }
.ai-js .ai-orbitline { animation: ai-spin 90s linear infinite; }
.ai-heart { color: var(--ai-pink); }
.ai-heart svg { width: 100%; height: 100%; }
/* M5: heart "thump" — twice, then rest (no endless looping hearts) */
.ai-js .ai-heart svg { animation: ai-beat 900ms ease-in-out var(--beat, 2s) 2; transform-origin: 50% 60%; }
.ai-heart--line { color: var(--ai-teal-600); }
.ai-star { color: var(--ai-star); }
.ai-star svg { width: 100%; height: 100%; }
.ai-js .ai-star svg { animation: ai-twinkle 6s ease-in-out var(--beat, 1s) infinite; }

/* Mini report card in island (decorative, aria-hidden). Min text 14px (CIS) */
.ai-minireport { width: 272px; background: #fff; border-radius: 16px; box-shadow: var(--ai-shadow-lg); padding: 14px 16px 12px; border: 1px solid var(--ai-color-line); }
.ai-minireport__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.ai-minireport__title { font-weight: 700; font-size: 0.9375rem; color: var(--ai-neutral-800); }
.ai-minireport ul { display: grid; }
.ai-minireport li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; padding: 7px 0; border-top: 1px dashed var(--ai-color-line); font-size: 0.875rem; }
.ai-minireport li b { font-weight: 400; color: var(--ai-neutral-700); display: block; }
.ai-minireport li .ai-mono { font-size: 0.875rem; color: var(--ai-neutral-800); }
.ai-minireport li .ai-mono.is-red { color: var(--ai-red-600); }
.ai-minireport__foot { margin-top: 6px; font-size: var(--ai-text-caption); color: var(--ai-color-text-muted); }

.ai-sticker { display: inline-flex; padding: 6px; background: #fff; border-radius: 10px; box-shadow: 0 6px 18px rgba(24,52,55,.12); transform: rotate(var(--rot, 0deg)); }
.ai-sticker .ai-stamp { font-size: 0.9375rem; padding: 5px 14px 5px 9px; }
.ai-sticker .ai-stamp svg { width: 18px; height: 18px; }

.ai-bubble { position: relative; background: var(--ai-pink-50); color: var(--ai-teal-800); border-radius: 22px; padding: 12px 18px; box-shadow: var(--ai-shadow-md); font-size: 1.375rem; line-height: 1.4; white-space: nowrap; }
.ai-bubble small { display: block; font-family: var(--ai-font-sans); font-size: var(--ai-text-caption); color: var(--ai-neutral-600); }
.ai-bubble::after { content: ""; position: absolute; width: 18px; height: 18px; background: inherit; left: 26px; bottom: -8px; transform: rotate(45deg); border-radius: 0 0 4px 0; }
.ai-bubble svg { display: inline-block; width: 18px; height: 18px; color: var(--ai-pink); vertical-align: -1px; margin-left: 2px; }
.ai-doodle svg { width: 100%; height: 100%; overflow: visible; }

/* Portrait arch (debby) */
.ai-arch { position: relative; width: 100%; aspect-ratio: 3 / 4; }
.ai-arch__frame { position: absolute; inset: 0; border-radius: 999px 999px 32px 32px; overflow: hidden; background: #8A8D90; border: 8px solid #fff; box-shadow: var(--ai-shadow-lg); }
.ai-arch__frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.ai-arch__outline { position: absolute; inset: -16px; border-radius: 999px 999px 44px 44px; border: 2px solid var(--ai-pink-100); pointer-events: none; }
/* AI label: always on the photo's top edge, above every floater (see JS occlusion check in r2-notes) */
.ai-aibadge { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); z-index: 3; white-space: nowrap; font-size: var(--ai-text-caption); font-weight: 700; line-height: 1.4; padding: 2px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--ai-teal-800); }
.ai-nametag { position: absolute; left: 50%; bottom: -20px; transform: translateX(-50%); z-index: 2; background: #fff; border-radius: 999px; box-shadow: var(--ai-shadow-md); padding: 6px 18px; font-size: 1.25rem; color: var(--ai-teal-800); white-space: nowrap; }
.ai-nametag svg { display: inline-block; width: 16px; height: 16px; color: var(--ai-pink); vertical-align: -1px; }

/* Brand mark disc (utr) */
.ai-mark { position: relative; width: 100%; aspect-ratio: 1; }
.ai-mark__disc { position: absolute; inset: 0; border-radius: 50%; background: #fff; box-shadow: var(--ai-shadow-lg); border: 12px solid var(--ai-teal-50); display: grid; place-items: center; }
.ai-mark__disc img { width: 34%; height: auto; }
.ai-mark__pulse { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ai-teal-300); opacity: 0; }
.ai-js .ai-mark__pulse { animation: ai-pulse 3.2s ease-out 1.6s 2; }
.ai-js .ai-mark__pulse--2 { animation-delay: 3.2s; }
.ai-nextcard { width: 256px; background: #fff; border-radius: 14px; box-shadow: var(--ai-shadow-lg); border: 1px solid var(--ai-color-line); padding: 14px 16px; }
.ai-nextcard__title { font-weight: 700; font-size: 0.9375rem; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.ai-nextcard__title::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ai-teal-400); }
.ai-nextcard li { display: grid; grid-template-columns: 26px 1fr; gap: 0 8px; padding: 6px 0; border-top: 1px dashed var(--ai-color-line); font-size: 0.875rem; }
.ai-nextcard li b { font-family: var(--ai-font-num); font-weight: 600; color: var(--ai-teal-700); grid-row: span 2; }
.ai-nextcard li em { font-style: normal; font-size: 0.875rem; color: var(--ai-teal-700); }
.ai-shape { border-radius: 50%; }
.ai-shape--ring { border: 3px solid var(--ai-teal-200); width: 100%; height: 100%; }
.ai-shape--fill { background: var(--ai-teal-100); width: 100%; height: 100%; }
.ai-shape--dots { width: 100%; height: 100%; border-radius: 0; background-image: radial-gradient(var(--ai-teal-300) 2px, transparent 2.5px); background-size: 14px 14px; }

/* Scroll hint (M11) */
.ai-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--ai-teal-700); }
.ai-hint__txt { font-size: var(--ai-text-caption); font-weight: 700; letter-spacing: 0.12em; }
.ai-hint__line { position: relative; width: 2px; height: 46px; background: var(--ai-teal-200); border-radius: 2px; }
.ai-hint__dot { position: absolute; left: 50%; top: 0; width: 16px; height: 16px; margin-left: -8px; color: var(--ai-pink); }
[data-site="utr"] .ai-hint__dot { width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--ai-teal-600); }
.ai-hint__dot svg { width: 100%; height: 100%; }
.ai-js .ai-hint__dot { animation: ai-linemove 2.2s var(--ai-ease-in-out) infinite; }

@media (max-width: 1024.98px) {
  .ai-hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 8px; }
  .ai-hero__copy { max-width: 640px; }
  .ai-island { width: min(100%, 600px); }
  .ai-hint { display: none; }
}
@media (min-width: 1025px) and (max-width: 1279.98px) {
  .ai-minireport { width: 240px; padding: 12px 14px 10px; }
  .ai-nextcard { width: 232px; }
  .ai-bubble { font-size: 1.25rem; }
}
@media (max-width: 767.98px) {
  .ai-hero { padding-top: 20px; padding-bottom: 40px; }
  .ai-hero .ai-actions { margin-top: 22px; }
  .ai-hero .ai-actions .ai-cta-stack { width: 100%; align-items: stretch; }
  .ai-hero .ai-actions .ai-cta-stack .ai-btn { width: 100%; }
  .ai-hero .ai-actions .ai-cta-note { text-align: center; }
  [data-site="utr"] .ai-hero .ai-actions > .ai-btn { flex: 1 1 100%; }
  .ai-island { aspect-ratio: 1 / 1.02; width: min(100%, 420px); }
  .ai-fl--desk { display: none; }
  .ai-minireport { width: 184px; padding: 10px 12px; border-radius: 14px; }
  .ai-minireport__title { font-size: 0.875rem; }
  .ai-minireport li { padding: 5px 0; }
  .ai-minireport li:nth-child(n+2), .ai-minireport__foot { display: none; }
  .ai-minireport .ai-sample { padding: 0 6px; }
  .ai-bubble { font-size: 1.0625rem; padding: 8px 12px; border-radius: 16px; }
  .ai-sticker { padding: 4px; }
  .ai-sticker .ai-stamp { font-size: 0.875rem; padding: 3px 10px 3px 6px; }
  .ai-sticker .ai-stamp svg { width: 16px; height: 16px; }
  .ai-nametag { font-size: 1rem; padding: 4px 12px; bottom: -16px; }
  .ai-arch__frame { border-width: 6px; }
  .ai-arch__outline { inset: -10px; }
  .ai-aibadge { top: 10px; padding: 1px 8px; }
  .ai-nextcard { width: 196px; padding: 10px 12px; }
  .ai-nextcard li:nth-child(n+3) { display: none; }
}
@media (max-width: 359.98px) {
  .ai-bubble { font-size: 0.9375rem; padding: 6px 10px; }
  .ai-minireport { width: 168px; }
}

/* ==========================================================================
   8. SIDE NAV — M9 (debby hearts / utr dots). ≥1360px only so it never touches content
   ========================================================================== */
.ai-sidenav { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 90; display: none; }
.ai-sidenav ol { display: flex; flex-direction: column; gap: 6px; }
.ai-sidenav a { position: relative; display: grid; place-items: center; width: 28px; height: 28px; color: var(--ai-teal-300); text-decoration: none; border-radius: 50%; }
.ai-sidenav a svg { width: 16px; height: 16px; transition: transform var(--ai-dur-base) var(--ai-ease-v), color var(--ai-dur-base); }
.ai-sidenav__fill { opacity: 0; transition: opacity var(--ai-dur-base); }
.ai-sidenav a.is-active { color: var(--ai-pink); }
.ai-sidenav a.is-active svg { transform: scale(1.3); }
.ai-sidenav a.is-active .ai-sidenav__fill { opacity: 1; }
.ai-sidenav__label { position: absolute; right: 36px; top: 50%; transform: translate(8px, -50%); white-space: nowrap; background: #fff; color: var(--ai-teal-800); font-size: var(--ai-text-caption); font-weight: 700; padding: 4px 12px; border-radius: 999px; box-shadow: var(--ai-shadow-md); opacity: 0; pointer-events: none; transition: opacity var(--ai-dur-base), transform var(--ai-dur-base) var(--ai-ease-v); }
.ai-sidenav a:hover .ai-sidenav__label, .ai-sidenav a:focus-visible .ai-sidenav__label { opacity: 1; transform: translate(0, -50%); }
[data-site="utr"] .ai-sidenav a { color: var(--ai-neutral-400); }
[data-site="utr"] .ai-sidenav a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2px solid currentColor; transition: transform var(--ai-dur-base), background var(--ai-dur-base); }
[data-site="utr"] .ai-sidenav a.is-active { color: var(--ai-teal-600); }
[data-site="utr"] .ai-sidenav a.is-active::before { background: currentColor; transform: scale(1.25); }
@media (min-width: 1360px) { .ai-sidenav { display: block; } }

/* ==========================================================================
   9. CARDS / GENERIC
   ========================================================================== */
.ai-card { background: #fff; border-radius: var(--ai-radius-card); box-shadow: var(--ai-shadow-card); border: 1px solid var(--ai-color-line); padding: clamp(20px, 2.4vw, 32px); position: relative; }
[data-site="debby"] .ai-card { border-color: transparent; }
.ai-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); position: relative; z-index: 2; }
.ai-ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ai-teal-50); color: var(--ai-teal-600); margin-bottom: 16px; }
.ai-ico svg { width: 30px; height: 30px; }
.ai-card p + p { margin-top: 10px; }
.ai-card .ai-h3, .ai-card .ai-h4 { margin-bottom: 8px; }
.ai-way { margin-top: 16px !important; padding-top: 14px; border-top: 1px dashed var(--ai-color-border); color: var(--ai-neutral-700); }
.ai-way b { display: block; color: var(--ai-teal-700); font-size: var(--ai-text-caption); letter-spacing: 0.06em; margin-bottom: 2px; }
.ai-says { margin-top: 14px; display: inline-block; background: var(--ai-pink-50); color: var(--ai-teal-800); font-weight: 700; padding: 6px 14px; border-radius: 16px 16px 16px 4px; }
.ai-quote { margin: clamp(32px, 4vw, 48px) auto 0; text-align: center; font-family: var(--ai-font-serif); font-weight: 600; font-size: var(--ai-text-h3); color: var(--ai-teal-800); position: relative; z-index: 2; }
.ai-quote footer { font-family: var(--ai-font-sans); font-weight: 700; font-size: var(--ai-text-small); color: var(--ai-teal-700); margin-top: 8px; }
.ai-dl { display: grid; gap: 12px; margin: 0 0 22px; }
.ai-dl div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--ai-color-line); }
.ai-dl dt { font-size: var(--ai-text-small); font-weight: 700; color: var(--ai-teal-700); padding-top: 2px; }
.ai-dl dd { margin: 0; color: var(--ai-neutral-800); }
@media (max-width: 767.98px) {
  .ai-grid3 { grid-template-columns: 1fr; }
  .ai-dl div { grid-template-columns: 1fr; gap: 2px; }
}

/* ==========================================================================
   10. REPORT TRIAGE — primary interaction (V2 stamp + annotation)
   Desktop ≥1025 & fine pointer: annotation panel on the right (sticky)
   Touch / <1025: the note opens under the active row
   No JS: every note is visible under its row; the panel is hidden
   ========================================================================== */
.ai-triage { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 3vw, 4.5rem); align-items: start; position: relative; z-index: 2; }
.ai-triage__report { position: relative; background: #fff; border: 1px solid var(--ai-neutral-200); border-radius: 14px; padding: 24px clamp(14px, 2vw, 26px) 18px; box-shadow: var(--ai-shadow-md); }
.ai-triage__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--ai-neutral-800); flex-wrap: wrap; }
.ai-triage__title { font-weight: 700; font-size: 1.125rem; }
.ai-triage__meta { margin-top: 2px; font-family: var(--ai-font-mono); font-size: var(--ai-text-caption); color: var(--ai-neutral-600); }
.ai-triage__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 132px; gap: 12px; margin: 10px 0 0; padding: 0 12px 6px 28px; font-size: var(--ai-text-caption); color: var(--ai-neutral-600); font-weight: 700; }
.ai-triage__row { border-bottom: 1px dashed var(--ai-neutral-200); }
.ai-triage__btn {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 132px; align-items: center; gap: 12px;
  width: 100%; min-height: 58px; margin: 0; padding: 12px 12px 12px 28px;
  font: inherit; color: inherit; text-align: left; background: transparent; border: 0; border-radius: 10px; cursor: pointer;
  transition: background-color var(--ai-dur-base) var(--ai-ease-standard);
}
.ai-triage__btn:hover { background: var(--ai-teal-50); }
.ai-triage__row.is-active .ai-triage__btn { background: color-mix(in srgb, var(--ai-note-bg) 75%, #fff); box-shadow: inset 3px 0 0 var(--ai-teal-600); }
[data-site="debby"] .ai-triage__row.is-active .ai-triage__btn { box-shadow: inset 3px 0 0 var(--ai-pink); background: var(--ai-pink-50); }
.ai-triage__name { font-weight: 700; }
.ai-triage__val { position: relative; justify-self: start; display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; font-family: var(--ai-font-mono); font-weight: 500; color: var(--ai-red-700); font-variant-numeric: tabular-nums; }
.ai-triage__val small { font-size: var(--ai-text-caption); color: var(--ai-neutral-600); margin-left: 3px; }
.ai-triage__num { position: relative; display: inline-flex; align-items: baseline; }
.ai-triage__val--none { position: relative; }
.ai-triage__val--ok { color: var(--ai-neutral-800); }
.ai-triage__val--none { color: var(--ai-neutral-600); font-family: var(--ai-font-sans); font-weight: 400; }
.ai-triage__ref { font-size: var(--ai-text-caption); color: var(--ai-neutral-600); }
.ai-triage__ref::before { content: "參考 "; font-family: var(--ai-font-sans); }
.ai-triage__btn .ai-stamp { justify-self: start; }
.ai-triage__circle { display: none; max-width: none; position: absolute; left: -12px; top: -9px; width: calc(100% + 24px); height: calc(100% + 18px); overflow: visible; pointer-events: none; }
.ai-triage__circle path { fill: none; stroke: var(--ai-mark); stroke-width: 2.2; stroke-linecap: round; }
/* M12: pulse dot = "not looked at yet"; disappears once seen */
.ai-triage__pulse { display: none; position: absolute; left: 10px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; border-radius: 50%; background: var(--ai-teal-500); }
[data-site="debby"] .ai-triage__pulse { background: var(--ai-pink); }
.ai-triage__pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ai-dot 2.4s ease-out infinite; }
.ai-triage__foot { margin-top: 14px; font-size: var(--ai-text-caption); color: var(--ai-neutral-600); }

/* note (per row). Body text is Noto Sans — handwriting stays out of information */
.ai-triage__note { padding: 4px 12px 18px 28px; }
.ai-triage__item { display: none; }
.ai-triage__dl { margin: 0; display: grid; gap: 12px; }
.ai-triage__dl div { display: grid; gap: 2px; }
.ai-triage__dl dt { font-size: var(--ai-text-caption); font-weight: 700; color: var(--ai-teal-700); letter-spacing: 0.04em; }
.ai-triage__dl dd { margin: 0; font-size: var(--ai-text-body); line-height: 1.7; color: var(--ai-neutral-800); }
.ai-triage__dl .ai-textlink { min-height: 32px; }
.ai-triage__rowsign { margin-top: 10px; text-align: right; color: var(--ai-teal-700); }
.ai-triage__rowsign svg { display: inline-block; width: 16px; height: 16px; color: var(--ai-pink); vertical-align: -1px; margin-left: 2px; }
[data-site="debby"] .ai-triage__rowsign { font-family: var(--ai-font-hand); font-size: 1.125rem; }
[data-site="utr"] .ai-triage__rowsign { font-size: var(--ai-text-caption); font-weight: 700; }

/* annotation panel (desktop, JS only) */
.ai-triage__panel {
  --tilt: 1deg; position: sticky; top: calc(var(--ai-header-h) + 28px);
  background: var(--ai-note-bg); padding: 30px 28px 22px; border-radius: 4px 4px 18px 4px;
  box-shadow: 0 2px 3px rgba(24, 52, 55, .06), 0 22px 40px -18px rgba(24, 52, 55, .35);
  transform: rotate(var(--tilt));
}
[data-site="utr"] .ai-triage__panel { --tilt: 0deg; border: 1px solid var(--ai-neutral-200); border-top: 3px solid var(--ai-teal-600); border-radius: 12px; background-image: linear-gradient(rgba(95, 193, 199, .10) 1px, transparent 1px); background-size: 100% 32px; }
.ai-triage__tape { position: absolute; top: -12px; left: calc(50% - 46px); width: 92px; height: 24px; transform: rotate(-3deg); background: radial-gradient(circle, rgba(255,255,255,.95) 2px, transparent 2.6px) 0 0 / 11px 11px, rgba(255,196,214,.92); box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.ai-triage__phead { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ai-triage__avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; border: 3px solid #fff; box-shadow: var(--ai-shadow-sm); flex: none; }
.ai-triage__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ai-triage__label { display: flex; align-items: center; gap: 6px; font-size: 1.5rem; color: var(--ai-teal-800); }
.ai-triage__label svg { width: 18px; height: 18px; color: var(--ai-pink); }
[data-site="utr"] .ai-triage__label { font-size: 1.125rem; font-weight: 700; }
[data-site="utr"] .ai-triage__label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ai-teal-600); }
.ai-triage__body { min-height: 260px; }
.ai-triage__body .ai-triage__note { padding: 0; }
.ai-triage__body .ai-triage__rowsign { display: none; }
.ai-triage__body .ai-triage__item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1.5px dashed color-mix(in srgb, var(--ai-teal-300) 70%, transparent); font-weight: 700; }
.ai-triage__item .ai-mono { font-weight: 500; }
.ai-triage__sign { margin-top: 16px; text-align: right; color: var(--ai-teal-700); }
[data-site="debby"] .ai-triage__sign { font-size: 1.25rem; }
.ai-triage__sign svg { display: inline-block; width: 16px; height: 16px; color: var(--ai-pink); vertical-align: -1px; margin-left: 2px; }
[data-site="utr"] .ai-triage__sign { font-size: var(--ai-text-small); font-weight: 700; }
.ai-triage__arrow { max-width: none; position: absolute; left: -84px; top: 44px; width: 90px; height: 60px; overflow: visible; pointer-events: none; }
.ai-triage__arrow path { fill: none; stroke: var(--ai-mark); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
html:not(.ai-js) .ai-triage__panel { display: none; }
html:not(.ai-js) .ai-triage { grid-template-columns: minmax(0, 1fr); max-width: 880px; }

/* JS on */
.ai-js .ai-triage__pulse { display: block; }
.ai-js .ai-triage__row.is-seen .ai-triage__pulse, .ai-js .ai-triage__row.is-active .ai-triage__pulse { display: none; }
.ai-js .ai-triage__circle { display: block; }
.ai-js .ai-triage__circle path { stroke-dasharray: 1 2; stroke-dashoffset: 1; transition: stroke-dashoffset 600ms var(--ai-ease-in-out); }
.ai-js .ai-triage__row.is-active .ai-triage__circle path { stroke-dashoffset: 0; }
.ai-js .ai-triage__row.is-stamped .ai-triage__btn .ai-stamp { animation: ai-thump 520ms cubic-bezier(.3, 1.5, .5, 1) 1 both; }
.ai-js .ai-triage__arrow path { stroke-dasharray: 1 2; stroke-dashoffset: 1; }
.ai-js .ai-triage__panel.is-drawn .ai-triage__arrow path { stroke-dashoffset: 0; transition: stroke-dashoffset 500ms var(--ai-ease-in-out); }
.ai-js .ai-triage__panel.is-drawn .ai-triage__arrow path + path { transition-delay: 380ms; transition-duration: 220ms; }
.ai-js .ai-triage__arrow { transition: top 300ms var(--ai-ease-standard); }
/* annotation writes in line by line (≤ 0.75 s total, blur ≤ 4px) */
.ai-triage__body.is-new .ai-triage__item, .ai-triage__body.is-new .ai-triage__dl > div { animation: ai-write 420ms var(--ai-ease-v) both; }
.ai-triage__body.is-new .ai-triage__dl > div:nth-child(1) { animation-delay: 90ms; }
.ai-triage__body.is-new .ai-triage__dl > div:nth-child(2) { animation-delay: 180ms; }
.ai-triage__body.is-new .ai-triage__dl > div:nth-child(3) { animation-delay: 270ms; }
.ai-triage__body.is-new .ai-triage__dl > div:nth-child(4) { animation-delay: 360ms; }
@keyframes ai-thump { 0% { transform: scale(1) rotate(var(--tilt)); } 30% { transform: scale(1.24) rotate(calc(var(--tilt) - 5deg)); } 62% { transform: scale(.94) rotate(var(--tilt)); } 100% { transform: scale(1) rotate(var(--tilt)); } }
@keyframes ai-write { from { opacity: 0; transform: translate3d(0, 10px, 0); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
/* stamps flip into place when the report scrolls in (flipAni, 3D drop + rebound) */
.ai-js [data-ai-stamp] { opacity: 0; }
.ai-js .ai-triage__report.is-in [data-ai-stamp] { opacity: 1; animation: ai-flip 650ms var(--ai-ease-v) var(--sd, 0ms) 1 both; }
@keyframes ai-flip {
  0% { opacity: 0; transform: perspective(520px) translate3d(0, -16px, 0) rotateX(-95deg) scale(1.25) rotate(var(--tilt)); }
  40% { opacity: 1; }
  65% { transform: perspective(520px) rotateX(14deg) scale(1) rotate(var(--tilt)); }
  100% { opacity: 1; transform: perspective(520px) rotateX(0) rotate(var(--tilt)); }
}
@media (min-width: 1025px) {
  .ai-js:not(.ai-touch) .ai-triage__row .ai-triage__note { display: none; }
}
@media (max-width: 1024.98px) {
  .ai-triage { grid-template-columns: minmax(0, 1fr); max-width: 880px; }
  .ai-js .ai-triage__panel { display: none; }
}
/* touch or narrow: accordion under the active row */
@media (max-width: 1024.98px) {
  .ai-js .ai-triage__row:not(.is-active) .ai-triage__note { display: none; }
  .ai-js .ai-triage__row.is-active .ai-triage__note { margin: 4px 0 14px; padding: 18px 18px 16px; background: var(--ai-note-bg); border-radius: 4px 4px 14px 4px; box-shadow: 0 10px 22px -14px rgba(24, 52, 55, .35); animation: ai-write 380ms var(--ai-ease-v) both; }
  [data-site="utr"] .ai-js .ai-triage__row.is-active .ai-triage__note, .ai-js[data-site="utr"] .ai-triage__row.is-active .ai-triage__note { border: 1px solid var(--ai-neutral-200); border-top: 3px solid var(--ai-teal-600); }
}
.ai-touch .ai-triage { grid-template-columns: minmax(0, 1fr); max-width: 880px; }
.ai-touch .ai-triage__panel { display: none; }
.ai-touch .ai-triage__row:not(.is-active) .ai-triage__note { display: none; }
.ai-touch .ai-triage__row.is-active .ai-triage__note { margin: 4px 0 14px; padding: 18px 18px 16px; background: var(--ai-note-bg); border-radius: 4px 4px 14px 4px; box-shadow: 0 10px 22px -14px rgba(24, 52, 55, .35); }
@media (max-width: 599.98px) {
  .ai-triage__cols { display: none; }
  .ai-triage__btn { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name stamp" "val stamp"; gap: 4px 10px; padding: 12px 8px 12px 26px; }
  .ai-triage__name { grid-area: name; }
  .ai-triage__val { grid-area: val; }
  .ai-triage__btn .ai-stamp { grid-area: stamp; justify-self: end; }
  .ai-triage__note { padding-left: 12px; padding-right: 8px; }
  .ai-js .ai-triage__row.is-active .ai-triage__note { padding: 16px 14px 14px; }
  .ai-triage__head { flex-direction: column; }
}
@media (max-width: 359.98px) {
  .ai-triage__btn { grid-template-columns: minmax(0, 1fr); grid-template-areas: "name" "val" "stamp"; }
  .ai-triage__btn .ai-stamp { justify-self: start; }
}

/* legend (debby) and category cards (utr) under the report */
.ai-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(32px, 4vw, 48px); position: relative; z-index: 2; }
.ai-legend li { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 20px; background: #fff; border-radius: 16px; box-shadow: var(--ai-shadow-xs); border: 1px solid var(--ai-neutral-100); }
.ai-cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(32px, 4vw, 48px); position: relative; z-index: 2; }
.ai-cat { background: #fff; border: 1px solid var(--ai-neutral-200); border-top: 3px solid var(--c, var(--ai-red-500)); border-radius: 4px 4px 12px 12px; padding: 20px 20px 16px; }
.ai-cat--wait { --c: var(--ai-amber-500); }
.ai-cat--gap { --c: var(--ai-teal-600); }
.ai-cat .ai-dl { margin: 14px 0 0; gap: 8px; }
.ai-cat .ai-dl div { grid-template-columns: 1fr; gap: 0; padding-bottom: 8px; }
.ai-cat .ai-dl div:last-child { border-bottom: 0; padding-bottom: 0; }
@media (max-width: 767.98px) { .ai-legend, .ai-cats { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   11. SERVICES — M7 downgraded to a simple tab switch (no pulse rings, no orbit)
   ========================================================================== */
.ai-svc { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 64px); align-items: center; position: relative; z-index: 2; }
.ai-svc__disc { position: relative; width: min(100%, 380px); aspect-ratio: 1; margin-inline: auto; }
.ai-svc__halo { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, var(--ai-teal-50) 0 58%, rgba(237,250,251,0) 72%); }
[data-site="debby"] .ai-svc__halo { background: radial-gradient(circle, var(--ai-pink-50) 0 42%, var(--ai-teal-50) 58%, rgba(237,250,251,0) 72%); }
.ai-svc__ring { position: absolute; inset: 7%; border-radius: 50%; border: 2px dashed var(--ai-teal-200); }
.ai-svc__core { position: absolute; inset: 17%; border-radius: 50%; background: #fff; box-shadow: var(--ai-shadow-lg); border: 10px solid var(--ai-teal-50); display: grid; place-items: center; overflow: hidden; }
.ai-svc__face { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 12%; transition: opacity 300ms var(--ai-ease-standard); }
.ai-svc__face svg { width: clamp(52px, 6vw, 76px); height: auto; aspect-ratio: 1; color: var(--ai-teal-600); }
.ai-svc__facenum { font-family: var(--ai-font-num); font-weight: 600; font-size: var(--ai-text-caption); color: var(--ai-teal-700); letter-spacing: 0.1em; }
.ai-svc__facetitle { font-weight: 700; font-size: clamp(1.0625rem, 0.9rem + 0.6vw, 1.375rem); color: var(--ai-neutral-800); line-height: 1.35; }
[data-site="debby"] .ai-svc__facetitle { font-family: var(--ai-font-serif); font-weight: 600; }
.ai-svc__face:not(.is-active) { opacity: 0; }
html:not(.ai-js) .ai-svc__face:not(:first-child) { display: none; }
.ai-svc__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ai-svc__tab { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; border: 1.5px solid var(--ai-teal-200); background: #fff; color: var(--ai-teal-700); font: 700 var(--ai-text-small)/1.2 var(--ai-font-sans); cursor: pointer; transition: background-color var(--ai-dur-fast), color var(--ai-dur-fast), border-color var(--ai-dur-fast); }
.ai-svc__tab svg { width: 22px; height: 22px; flex: none; }
.ai-svc__tab:hover { border-color: var(--ai-teal-500); background: var(--ai-teal-50); }
.ai-svc__tab[aria-selected="true"] { background: var(--ai-teal-700); border-color: var(--ai-teal-700); color: #fff; }
html:not(.ai-js) .ai-svc__tabs { display: none; }
.ai-svc__panel { background: #fff; border-radius: var(--ai-radius-card); box-shadow: var(--ai-shadow-card); border: 1px solid var(--ai-color-line); padding: clamp(22px, 2.6vw, 36px); }
[data-site="debby"] .ai-svc__panel { border-color: transparent; box-shadow: var(--ai-shadow-lg); }
html:not(.ai-js) .ai-svc__panel + .ai-svc__panel { margin-top: 16px; }
.ai-svc__panel[hidden] { display: none; }
.ai-svc__panel.is-entering { animation: ai-fade 240ms var(--ai-ease-standard) both; }
@keyframes ai-fade { from { opacity: 0; } to { opacity: 1; } }
.ai-svc__num { font-family: var(--ai-font-num); font-weight: 600; color: var(--ai-teal-700); font-size: var(--ai-text-caption); letter-spacing: 0.12em; margin-bottom: 6px; }
.ai-svc__panel .ai-h3 { margin-bottom: 14px; }
.ai-svc__list { display: grid; gap: 8px; margin-bottom: 20px; }
.ai-svc__list li { display: flex; gap: 10px; align-items: baseline; }
.ai-svc__list li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ai-teal-400); flex: none; transform: translateY(-2px); }
.ai-svc__foot { margin-top: 18px; }
/* tablet & phone: the decorative disc steps aside, tabs + panel take the full width */
@media (max-width: 1024.98px) { .ai-svc { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; } .ai-svc__side { display: none; } }

/* ---------- 12. Steps ---------- */
.ai-steps { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); position: relative; z-index: 2; }
.ai-steps::before { content: ""; position: absolute; left: 6%; right: 6%; top: 32px; border-top: 2px dashed var(--ai-teal-200); z-index: -1; }
.ai-step { text-align: center; padding: 0 6px; }
.ai-step__no { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: #fff; border: 2px solid var(--ai-teal-400); display: grid; place-items: center; font-family: var(--ai-font-num); font-weight: 600; font-size: 1.25rem; color: var(--ai-teal-700); box-shadow: var(--ai-shadow-sm); }
.ai-step .ai-h4 { margin-bottom: 6px; }
.ai-step p { color: var(--ai-neutral-700); }
.ai-step__owner { margin-top: 8px !important; display: inline-block; font-size: var(--ai-text-caption) !important; color: var(--ai-teal-700) !important; background: var(--ai-teal-50); padding: 2px 10px; border-radius: 999px; font-weight: 700; }
@media (max-width: 1024.98px) {
  .ai-steps { grid-template-columns: 1fr; gap: 0; max-width: 560px; }
  .ai-steps::before { left: 31px; right: auto; top: 24px; bottom: 24px; border-top: 0; border-left: 2px dashed var(--ai-teal-200); }
  .ai-step { display: grid; grid-template-columns: 64px 1fr; gap: 0 16px; text-align: left; padding: 0 0 22px; }
  .ai-step__no { grid-row: span 3; margin: 0; }
  .ai-step .ai-h4 { padding-top: 6px; }
  .ai-step__owner { justify-self: start; }
}

/* ---------- 13. FAQ ---------- */
.ai-faq { display: grid; gap: 12px; max-width: 860px; position: relative; z-index: 2; }
.ai-faq details { background: #fff; border-radius: var(--ai-radius-card); border: 1px solid var(--ai-color-line); box-shadow: var(--ai-shadow-xs); }
.ai-faq summary { list-style: none; cursor: pointer; display: flex; gap: 14px; align-items: center; min-height: 56px; padding: 16px 22px; font-weight: 700; font-size: 1.0625rem; }
.ai-faq summary::-webkit-details-marker { display: none; }
.ai-faq summary::after { content: ""; margin-left: auto; width: 12px; height: 12px; border-right: 2px solid var(--ai-teal-700); border-bottom: 2px solid var(--ai-teal-700); transform: rotate(45deg) translate(-3px, -3px); transition: transform var(--ai-dur-base); flex: none; }
.ai-faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.ai-faq__q { font-family: var(--ai-font-num); color: var(--ai-teal-600); font-weight: 600; flex: none; }
.ai-faq__a { padding: 0 22px 20px 56px; color: var(--ai-neutral-700); }
@media (max-width: 767.98px) { .ai-faq__a { padding-left: 22px; } }

/* ---------- 14. Footer ---------- */
.ai-footer { background: var(--ai-teal-800); color: #fff; padding-block: clamp(48px, 6vw, 80px) 32px; position: relative; overflow: clip; }
.ai-footer a { color: #fff; }
.ai-footer a:hover { color: var(--ai-teal-100); }
.ai-footer__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 40px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.18); }
.ai-footer__brand > img { height: 56px; width: auto; margin-bottom: 14px; }
.ai-footer__name { font-weight: 700; font-size: 1.125rem; }
[data-site="debby"] .ai-footer__name { font-family: var(--ai-font-serif); font-weight: 600; font-size: 1.375rem; }
.ai-footer__tag { color: var(--ai-teal-100); margin-top: 6px; font-size: var(--ai-text-small); }
.ai-footer__brand .ai-actions { margin-top: 20px; }
.ai-footer__nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
.ai-footer__nav h2 { font-size: var(--ai-text-small); color: var(--ai-teal-100); font-family: var(--ai-font-sans); font-weight: 700; margin-bottom: 10px; letter-spacing: 0.06em; }
.ai-footer__nav li { margin-bottom: 6px; }
.ai-footer__nav a { text-decoration: none; font-size: var(--ai-text-small); display: inline-block; padding: 4px 0; }
.ai-footer__nav a:hover { text-decoration: underline; }
.ai-store { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 32px; margin: 28px 0 0; font-size: var(--ai-text-small); }
.ai-store dt { color: var(--ai-teal-100); font-size: var(--ai-text-caption); }
.ai-store dd { margin: 2px 0 0; }
.ai-footer .ai-todo { background: rgba(255,240,219,.95); }
.ai-footer__rel { margin-top: 28px; font-size: var(--ai-text-small); color: var(--ai-teal-100); max-width: 820px; }
.ai-footer__rel a { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-weight: 700; }
.ai-footer__rel svg { width: 14px; height: 14px; }
.ai-footer__legal { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); font-size: var(--ai-text-caption); color: var(--ai-teal-100); display: grid; gap: 10px; }
.ai-footer__legal strong { color: #fff; }
.ai-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.ai-footer__bottom img { height: 40px; width: auto; }
.ai-footer :where(a, button):focus-visible { outline-color: var(--ai-teal-200); }
@media (max-width: 1024.98px) { .ai-footer__top { grid-template-columns: 1fr; } .ai-store { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 559.98px) { .ai-store { grid-template-columns: 1fr; } }

/* ---------- 15. Mobile action bar & toast ---------- */
.ai-mbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 95; display: none; gap: 8px; padding: 8px; background: rgba(255,255,255,.96); border-radius: 18px; box-shadow: 0 10px 30px rgba(24,52,55,.18); transform: translateY(140%); visibility: hidden; transition: transform 350ms var(--ai-ease-v), visibility 0s linear 350ms; }
.ai-mbar a { flex: 1; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 12px; font-weight: 700; text-decoration: none; border: 1.5px solid var(--ai-teal-700); color: var(--ai-teal-700); }
.ai-mbar a.is-main { flex: 1.6; background: var(--ai-teal-700); color: #fff; }
.ai-mbar.is-shown { transform: none; visibility: visible; transition: transform 350ms var(--ai-ease-v), visibility 0s; }
@media (max-width: 767.98px) { .ai-js .ai-mbar { display: flex; } .ai-footer { padding-bottom: 104px; } }
.ai-toast { position: fixed; left: 50%; bottom: 96px; transform: translate(-50%, 20px); z-index: var(--ai-z-toast); background: var(--ai-neutral-800); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: var(--ai-text-small); max-width: min(92vw, 520px); opacity: 0; pointer-events: none; transition: opacity var(--ai-dur-base), transform var(--ai-dur-base) var(--ai-ease-v); box-shadow: var(--ai-shadow-lg); }
.ai-toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   16. DEBBY sections
   ========================================================================== */
.ai-story { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: center; position: relative; z-index: 2; }
.ai-circlephoto { position: relative; width: min(100%, 380px); aspect-ratio: 1; margin-inline: auto; }
.ai-circlephoto__img { position: absolute; inset: 8%; border-radius: 50%; overflow: hidden; border: 8px solid #fff; box-shadow: var(--ai-shadow-lg); background: #ECEBEE; }
.ai-circlephoto__img img { width: 100%; height: 100%; object-fit: cover; }
.ai-circlephoto__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed var(--ai-teal-200); }
.ai-circlephoto .ai-heart { position: absolute; width: 28px; height: 28px; }
.ai-idlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 20px; margin: 22px 0; }
.ai-idlist div { padding: 10px 14px; background: var(--ai-teal-50); border-radius: 14px; }
.ai-idlist dt { font-size: var(--ai-text-caption); color: var(--ai-teal-700); font-weight: 700; }
.ai-idlist dd { margin: 0; }
.ai-timeline { display: grid; gap: 8px; margin: 18px 0; border-left: 2px dashed var(--ai-teal-200); padding-left: 18px; }
.ai-timeline li { position: relative; }
.ai-timeline li::before { content: ""; position: absolute; left: -25px; top: 0.55em; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--ai-teal-400); }
.ai-timeline b { font-family: var(--ai-font-num); font-weight: 600; color: var(--ai-teal-700); margin-right: 8px; }
.ai-disclaimer { padding: 12px 16px; border-left: 3px solid var(--ai-pink); background: var(--ai-pink-50); border-radius: 0 12px 12px 0; margin: 18px 0; color: var(--ai-neutral-800); }
.ai-sign { font-size: 2rem; color: var(--ai-teal-700); display: inline-flex; align-items: center; gap: 8px; }
.ai-sign svg { width: 24px; height: 24px; color: var(--ai-pink); }
@media (max-width: 1024.98px) { .ai-story { grid-template-columns: 1fr; } .ai-circlephoto { width: min(80%, 320px); } }
@media (max-width: 479.98px) { .ai-idlist { grid-template-columns: 1fr; } }
.ai-talk__no { font-family: var(--ai-font-num); font-weight: 600; color: var(--ai-teal-600); font-size: var(--ai-text-caption); letter-spacing: 0.12em; margin-bottom: 10px; display: block; }
.ai-talk .ai-textlink { margin-top: 10px; }
.ai-talkmeta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; position: relative; z-index: 2; }
.ai-talkmeta div { background: #fff; border-radius: 16px; padding: 14px 18px; box-shadow: var(--ai-shadow-sm); }
.ai-talkmeta dt { font-size: var(--ai-text-caption); font-weight: 700; color: var(--ai-teal-700); }
.ai-talkmeta dd { margin: 2px 0 0; }
.ai-proof { margin-top: 20px; color: var(--ai-neutral-700); position: relative; z-index: 2; }
@media (max-width: 767.98px) { .ai-talkmeta { grid-template-columns: 1fr; } }

/* Final CTA */
.ai-final { text-align: center; position: relative; overflow: clip; background: linear-gradient(180deg, #fff, var(--ai-teal-50)); padding-block: var(--ai-space-section); }
.ai-final__avatar { width: 128px; height: 128px; border-radius: 50%; overflow: hidden; margin: 0 auto 20px; border: 6px solid #fff; box-shadow: var(--ai-shadow-lg); position: relative; z-index: 2; }
.ai-final__avatar img { width: 100%; height: 100%; object-fit: cover; }
.ai-final__sig { font-family: var(--ai-font-serif); font-weight: 600; font-size: var(--ai-text-h2); line-height: 1.5; color: var(--ai-neutral-800); max-width: 860px; margin: 0 auto; position: relative; z-index: 2; }
[data-site="utr"] .ai-final__sig { font-family: var(--ai-font-sans); font-weight: 700; }
.ai-final .ai-lead { max-width: 640px; margin-inline: auto; position: relative; z-index: 2; }
.ai-final .ai-heart { position: absolute; z-index: 1; }
.ai-center-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 24px; margin-top: 32px; position: relative; z-index: 2; }
/* r1 fix: decorative hearts kept away from the CTA links on phones */
@media (max-width: 767.98px) { .ai-final .ai-heart--m-hide { display: none; } .ai-final .ai-heart { top: 24px !important; bottom: auto !important; } }

/* ==========================================================================
   17. UTR sections
   ========================================================================== */
.ai-dark { background: var(--ai-teal-800); color: #fff; }
.ai-dark .ai-h2, .ai-dark .ai-h3, .ai-dark .ai-h4 { color: #fff; }
.ai-dark .ai-eyebrow { color: var(--ai-teal-100); }
.ai-dark .ai-lead { color: var(--ai-teal-100); }
.ai-dark :where(a, button):focus-visible { outline-color: var(--ai-teal-200); }
.ai-dark .ai-textlink { color: #fff; }
.ai-corp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 4vw, 64px); align-items: center; position: relative; z-index: 2; }
.ai-corp__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0; }
.ai-corp__list li { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 12px; padding: 16px 18px; font-weight: 700; display: flex; gap: 12px; align-items: baseline; }
.ai-corp__list li > span { font-family: var(--ai-font-num); color: var(--ai-teal-200); font-weight: 600; }
.ai-corp__list small { display: block; font-weight: 400; color: var(--ai-teal-100); font-size: var(--ai-text-caption); }
.ai-proof--dark { color: var(--ai-teal-100); margin: 0 0 22px; }
.ai-placeholder { aspect-ratio: 3 / 2; border-radius: var(--ai-radius-media); border: 2px dashed rgba(255,255,255,.4); display: grid; place-items: center; text-align: center; color: var(--ai-teal-100); background: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 12px, transparent 12px 24px); margin: 0; }
.ai-placeholder b { display: block; color: #fff; font-size: 1.125rem; }
@media (max-width: 1024.98px) { .ai-corp { grid-template-columns: 1fr; } }
@media (max-width: 559.98px) { .ai-corp__list { grid-template-columns: 1fr; } }
.ai-bound { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); position: relative; z-index: 2; }
.ai-bound .ai-card ul { display: grid; gap: 10px; margin-top: 12px; }
.ai-bound li { display: flex; gap: 10px; align-items: flex-start; }
.ai-bound li svg { width: 20px; height: 20px; flex: none; margin-top: 5px; }
.ai-bound__do li svg { color: var(--ai-teal-600); }
.ai-bound__dont li svg { color: var(--ai-neutral-500); }
.ai-bound__dont { background: var(--ai-neutral-50) !important; }
.ai-bound__note { margin-top: 14px; font-size: var(--ai-text-small); color: var(--ai-color-text-muted); }
@media (max-width: 767.98px) { .ai-bound { grid-template-columns: 1fr; } }
.ai-founder { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(28px, 4vw, 64px); align-items: center; position: relative; z-index: 2; }
.ai-founder__photo { border-radius: var(--ai-radius-media); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--ai-shadow-md); max-width: 380px; background: #ECEBEE; margin: 0 auto; }
.ai-founder__photo img { width: 100%; height: 100%; object-fit: cover; }
.ai-founder__title { font-weight: 700; color: var(--ai-teal-700); margin: 8px 0 16px; }
.ai-founder__title small { display: block; font-weight: 400; color: var(--ai-color-text-muted); font-size: var(--ai-text-caption); }
.ai-relation { margin: 18px 0 22px; padding: 14px 18px; border-left: 3px solid var(--ai-teal-400); background: var(--ai-teal-50); border-radius: 0 12px 12px 0; }
@media (max-width: 767.98px) { .ai-founder { grid-template-columns: 1fr; } .ai-founder__photo { max-width: 280px; } }

/* ==========================================================================
   18. Reduced motion: everything static & visible, interaction unchanged
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ai-page *, .ai-page *::before, .ai-page *::after { animation: none !important; transition: none !important; }
  .ai-js [data-ai-motion], .ai-js [data-ai-stamp] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .ai-js .ai-stamp[data-ai-stamp] { transform: rotate(var(--tilt)) !important; }
  .ai-js .ai-ul[data-ai-draw] path, .ai-js .ai-triage__arrow path { stroke-dashoffset: 0 !important; }
  .ai-mark__pulse, .ai-triage__pulse::after { display: none; }
}

/* ==========================================================================
   19. INNER PAGES — shared components (05 全站延伸, owner: utr agent; usable by both sites)
   page hero / breadcrumb / generic grids / forms / legal pages / phase-2 tag
   ========================================================================== */
/* current page in the main menu */
.ai-nav__list a[aria-current="page"] { color: var(--ai-teal-700); font-weight: 700; }
.ai-nav__list a[aria-current="page"]::after { transform: scaleX(1); }

/* Page hero (calmer than the homepage island; same copy entrance, readable < 1 s) */
.ai-phero { position: relative; overflow: clip; padding-block: clamp(16px, 2vw, 28px) clamp(48px, 5vw, 80px); background: linear-gradient(180deg, #fff 0%, var(--ai-neutral-50) 100%); }
.ai-phero__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: clamp(24px, 4vw, 64px); align-items: center; position: relative; z-index: 2; }
.ai-phero__copy { max-width: 700px; }
.ai-js .ai-phero__copy > * { animation: ai-in-copy 500ms var(--ai-ease-v) both; animation-delay: calc(var(--i, 0) * 70ms); }
.ai-phero .ai-h1 { font-size: var(--ai-text-h1); }
.ai-phero .ai-lead { max-width: 34em; }
.ai-phero .ai-actions { margin-top: 26px; }
.ai-phero__art { position: relative; width: min(100%, 300px); aspect-ratio: 1; justify-self: center; }
.ai-phero__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed var(--ai-teal-200); }
.ai-phero__disc { position: absolute; inset: 14%; border-radius: 50%; background: #fff; border: 10px solid var(--ai-teal-50); box-shadow: var(--ai-shadow-lg); display: grid; place-items: center; color: var(--ai-teal-600); }
.ai-phero__disc svg { width: 42%; height: auto; aspect-ratio: 1; }
.ai-phero__dot { position: absolute; width: 18%; aspect-ratio: 1; border-radius: 50%; background: var(--ai-teal-100); right: 2%; bottom: 10%; }
.ai-phero__dots { position: absolute; width: 26%; aspect-ratio: 1; left: -4%; top: 4%; background-image: radial-gradient(var(--ai-teal-300) 2px, transparent 2.5px); background-size: 14px 14px; }
.ai-js .ai-phero__art { animation: ai-rise 1000ms var(--ai-ease-v) 80ms both; }
.ai-phero--plain .ai-phero__grid { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1024.98px) { .ai-phero__grid { grid-template-columns: minmax(0, 1fr); } .ai-phero__art { display: none; } }
@media (max-width: 767.98px) { .ai-phero .ai-actions > .ai-btn { flex: 1 1 100%; } }

/* Breadcrumb */
.ai-crumbs { margin-bottom: 18px; font-size: var(--ai-text-small); }
.ai-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; }
.ai-crumbs li { display: inline-flex; align-items: center; gap: 8px; color: var(--ai-color-text-muted); }
.ai-crumbs li + li::before { content: "/"; color: var(--ai-neutral-400); }
.ai-crumbs a { color: var(--ai-teal-700); display: inline-flex; align-items: center; min-height: 32px; }

/* Generic grids & blocks */
.ai-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); position: relative; z-index: 2; }
.ai-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); position: relative; z-index: 2; }
@media (max-width: 1024.98px) { .ai-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px) { .ai-grid2, .ai-grid4 { grid-template-columns: minmax(0, 1fr); } }
.ai-split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 64px); align-items: start; position: relative; z-index: 2; }
@media (max-width: 1024.98px) { .ai-split { grid-template-columns: minmax(0, 1fr); } }
.ai-callout { padding: 16px 20px; border-left: 3px solid var(--ai-teal-400); background: var(--ai-teal-50); border-radius: 0 12px 12px 0; color: var(--ai-neutral-800); position: relative; z-index: 2; }
.ai-callout + .ai-callout { margin-top: 12px; }
.ai-callout--warn { border-left-color: var(--ai-amber-500); background: var(--ai-amber-50); }
.ai-callout b { color: var(--ai-teal-800); }
.ai-checklist { display: grid; gap: 10px; }
.ai-checklist li { display: flex; gap: 10px; align-items: flex-start; }
.ai-checklist li > svg { width: 20px; height: 20px; flex: none; margin-top: 5px; color: var(--ai-teal-600); }
.ai-checklist--no li > svg { color: var(--ai-neutral-500); }
.ai-chips { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 2; }
.ai-chips li { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--ai-teal-200); font-weight: 700; color: var(--ai-teal-800); }
.ai-chips li svg { width: 18px; height: 18px; color: var(--ai-teal-600); flex: none; }
.ai-meta { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 14px; }
.ai-meta li { font-size: var(--ai-text-small); padding: 2px 12px; border-radius: 999px; background: var(--ai-teal-50); color: var(--ai-teal-800); font-weight: 700; }
.ai-cardlink { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; transition: box-shadow var(--ai-dur-base), transform var(--ai-dur-base) var(--ai-ease-v), border-color var(--ai-dur-base); }
.ai-cardlink:hover { color: inherit; box-shadow: var(--ai-shadow-card-hover, var(--ai-shadow-md)); transform: translateY(var(--ai-hover-lift)); border-color: var(--ai-teal-300); }
.ai-cardlink .ai-more { margin-top: auto; padding-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ai-teal-700); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
.ai-cardlink .ai-more svg { width: 16px; height: 16px; }
.ai-num { font-family: var(--ai-font-num); font-weight: 600; color: var(--ai-teal-700); font-size: var(--ai-text-caption); letter-spacing: 0.12em; display: block; margin-bottom: 8px; }
.ai-sec .ai-faq { margin-inline: 0; }
.ai-sec--tight { padding-block: clamp(40px, 4vw, 64px); }

/* Phase-2 tag (shop / member links that open in phase 2) */
.ai-p2tag { display: inline-block; margin-left: 6px; padding: 0 7px; border-radius: 4px; font-size: var(--ai-text-caption); font-weight: 700; line-height: 1.6; background: rgba(255,255,255,.14); color: var(--ai-teal-100); vertical-align: 1px; }

/* ---------- Forms (CIS §7.2: 48px, #6A7F81 border, radius 8, visible labels, error = 2px red + icon + text) ---------- */
.ai-formcard { background: #fff; border-radius: var(--ai-radius-card); border: 1px solid var(--ai-color-line); box-shadow: var(--ai-shadow-card); padding: clamp(20px, 3vw, 40px); position: relative; z-index: 2; }
.ai-form { display: grid; gap: 22px; }
.ai-form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 767.98px) { .ai-form__row { grid-template-columns: minmax(0, 1fr); } }
.ai-form__req { font-size: var(--ai-text-small); color: var(--ai-color-text-muted); }
.ai-req { color: var(--ai-red-700); font-weight: 700; margin-left: 2px; }
.ai-field { display: grid; gap: 6px; min-width: 0; }
.ai-field > label, .ai-flegend { font-weight: 700; color: var(--ai-neutral-800); font-size: 1rem; }
fieldset.ai-field { border: 0; margin: 0; padding: 0; }
fieldset.ai-field > legend { padding: 0; margin-bottom: 6px; }
.ai-input, .ai-select, .ai-textarea {
  width: 100%; min-height: var(--ai-input-height); padding: 0 var(--ai-input-padding-x); border: 1px solid var(--ai-input-border); border-radius: var(--ai-radius-input, 8px);
  background: var(--ai-input-bg); color: var(--ai-input-fg); font: 400 1.0625rem/1.4 var(--ai-font-sans); transition: border-color var(--ai-dur-fast), box-shadow var(--ai-dur-fast);
}
.ai-select { appearance: none; -webkit-appearance: none; padding-right: 42px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 6 8 10.5 12.5 6' fill='none' stroke='%23146268' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.ai-textarea { min-height: 120px; padding-block: 12px; resize: vertical; }
.ai-input::placeholder, .ai-textarea::placeholder { color: var(--ai-input-placeholder); }
.ai-input:hover, .ai-select:hover, .ai-textarea:hover { border-color: var(--ai-input-border-hover); }
.ai-input:focus-visible, .ai-select:focus-visible, .ai-textarea:focus-visible { border-color: var(--ai-input-border-focus); }
.ai-input[aria-invalid="true"], .ai-select[aria-invalid="true"], .ai-textarea[aria-invalid="true"] { border: 2px solid var(--ai-input-border-error); }
.ai-field__hint { font-size: var(--ai-text-small); color: var(--ai-color-text-muted); }
.ai-field__err { display: none; align-items: flex-start; gap: 6px; font-size: var(--ai-text-small); font-weight: 700; color: var(--ai-red-700); }
.ai-field__err.is-on { display: flex; }
.ai-field__err svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--ai-red-600); }
.ai-choices { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.ai-choices--col { flex-direction: column; align-items: flex-start; }
.ai-choice { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 14px 6px 12px; border: 1px solid var(--ai-color-border); border-radius: 10px; background: #fff; cursor: pointer; font-size: 1rem; color: var(--ai-neutral-800); }
.ai-choice:hover { border-color: var(--ai-teal-600); }
.ai-choice input { width: 20px; height: 20px; margin: 0; accent-color: var(--ai-teal-700); flex: none; }
.ai-choice:has(input:checked) { border-color: var(--ai-teal-700); background: var(--ai-teal-50); font-weight: 700; }
.ai-choice--plain { border: 0; padding-inline: 0; background: none !important; font-weight: 400 !important; align-items: flex-start; }
.ai-choice--plain input { margin-top: 3px; }
[data-ai-group][aria-invalid="true"] .ai-choice { border-color: var(--ai-red-600); border-width: 2px; }
.ai-nohealth { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; background: var(--ai-teal-50); color: var(--ai-teal-800); font-size: var(--ai-text-small); }
.ai-nohealth svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--ai-teal-600); }
.ai-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.ai-form__actions .ai-btn[aria-busy="true"] { opacity: .7; cursor: progress; }
@media (max-width: 767.98px) { .ai-form__actions .ai-btn { width: 100%; } }
.ai-errsum, .ai-formmsg { border-radius: 12px; padding: 16px 18px; }
.ai-errsum { border: 2px solid var(--ai-red-600); background: var(--ai-red-50); color: var(--ai-red-700); }
.ai-errsum h3, .ai-formmsg h3 { font-family: var(--ai-font-sans); font-size: 1.0625rem; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; color: inherit; }
.ai-errsum h3 svg, .ai-formmsg h3 svg { width: 22px; height: 22px; flex: none; }
.ai-errsum ul { display: grid; gap: 4px; padding-left: 30px; list-style: disc; }
.ai-errsum a { color: var(--ai-red-700); font-weight: 700; }
.ai-formmsg--ok { border: 2px solid var(--ai-green-600); background: var(--ai-green-50); color: var(--ai-green-700); }
.ai-formmsg--ok p, .ai-formmsg--fail p { color: var(--ai-neutral-800); }
.ai-formmsg--ok p + p, .ai-formmsg--fail p + p { margin-top: 8px; }
.ai-formmsg--fail { border: 2px solid var(--ai-red-600); background: var(--ai-red-50); color: var(--ai-red-700); }
.ai-formmsg .ai-actions { margin-top: 14px; }
.ai-formmsg:focus, .ai-errsum:focus { outline: 3px solid var(--ai-color-focus); outline-offset: 2px; }
.ai-demobox { margin-top: 4px; padding: 12px 16px; border: 1.5px dashed var(--ai-amber-500); border-radius: 12px; background: var(--ai-amber-50); font-size: var(--ai-text-small); color: var(--ai-neutral-800); }
.ai-demobox b { color: var(--ai-amber-700); }
.ai-demobox .ai-choice { min-height: 40px; background: transparent; border: 0; padding: 4px 0; }
html:not(.ai-js) .ai-demobox { display: none; }
.ai-nojs-note { display: none; }
html:not(.ai-js) .ai-nojs-note { display: block; }

/* ---------- Legal pages ---------- */
.ai-draft { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: var(--ai-amber-50); color: var(--ai-amber-700); border: 1px solid var(--ai-amber-200); font-size: var(--ai-text-small); font-weight: 700; margin-bottom: 14px; }
.ai-draft svg { width: 16px; height: 16px; }
.ai-updated { margin-top: 12px; font-size: var(--ai-text-small); color: var(--ai-color-text-muted); }
.ai-legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; position: relative; z-index: 2; }
.ai-toc { position: sticky; top: calc(var(--ai-header-h) + 24px); padding: 18px 20px; border-radius: var(--ai-radius-card); background: var(--ai-neutral-50); border: 1px solid var(--ai-color-line); }
.ai-toc h2 { font-family: var(--ai-font-sans); font-size: var(--ai-text-small); color: var(--ai-teal-700); margin-bottom: 8px; letter-spacing: .06em; }
.ai-toc ol { display: grid; gap: 2px; counter-reset: toc; }
.ai-toc a { display: block; padding: 6px 0; font-size: var(--ai-text-small); color: var(--ai-neutral-800); text-decoration: none; line-height: 1.5; }
.ai-toc a:hover { color: var(--ai-teal-700); text-decoration: underline; }
.ai-prose { max-width: 760px; }
.ai-prose h2 { font-size: var(--ai-text-h3); margin: clamp(32px, 4vw, 48px) 0 12px; scroll-margin-top: calc(var(--ai-header-h) + 16px); }
.ai-prose > h2:first-child { margin-top: 0; }
.ai-prose h3 { font-size: var(--ai-text-h4); margin: 22px 0 8px; }
.ai-prose p + p, .ai-prose p + ul, .ai-prose ul + p, .ai-prose p + ol, .ai-prose ol + p { margin-top: 12px; }
.ai-prose ul, .ai-prose ol { padding-left: 1.4em; display: grid; gap: 6px; }
.ai-prose ul { list-style: disc; }
.ai-prose ol { list-style: decimal; }
.ai-prose li::marker { color: var(--ai-teal-600); }
.ai-prose .ai-callout { margin-top: 16px; }
.ai-prose table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: var(--ai-text-small); }
.ai-prose th, .ai-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ai-color-line); vertical-align: top; }
.ai-prose th { color: var(--ai-teal-800); background: var(--ai-neutral-50); }
.ai-prose .ai-tablewrap { overflow-x: auto; }
@media (max-width: 1024.98px) { .ai-legal { grid-template-columns: minmax(0, 1fr); } .ai-toc { position: static; } }

/* Info list (company data on about / contact) */
.ai-info { display: grid; gap: 0; }
.ai-info div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--ai-color-line); }
.ai-info div:last-child { border-bottom: 0; }
.ai-info dt { font-size: var(--ai-text-small); font-weight: 700; color: var(--ai-teal-700); padding-top: 2px; }
.ai-info dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 479.98px) { .ai-info div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* FAQ group nav */
.ai-pillnav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 4vw, 44px); position: relative; z-index: 2; }
.ai-pillnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ai-teal-200); background: #fff; color: var(--ai-teal-700); font-weight: 700; text-decoration: none; font-size: var(--ai-text-small); }
.ai-pillnav a:hover { border-color: var(--ai-teal-500); background: var(--ai-teal-50); }
.ai-faqgroup + .ai-faqgroup { margin-top: clamp(36px, 5vw, 56px); }
.ai-faqgroup > h2 { font-size: var(--ai-text-h3); margin-bottom: 16px; scroll-margin-top: calc(var(--ai-header-h) + 16px); }
[id] { scroll-margin-top: calc(var(--ai-header-h) + 12px); }

/* ---------- r2 review fixes (shared) ---------- */
/* M1: footer link colour must not override button colours (debby footer LINE button was white on #5FC1C7, 2.11:1) */
.ai-footer a.ai-btn--bright, .ai-footer a.ai-btn--bright:hover, .ai-dark a.ai-btn--bright, .ai-dark a.ai-btn--bright:hover { color: var(--ai-neutral-800); }
.ai-footer a.ai-btn--secondary, .ai-footer a.ai-btn--secondary:hover { color: var(--ai-teal-700); }
.ai-footer a.ai-btn--primary, .ai-footer a.ai-btn--primary:hover { color: #fff; }

/* ==========================================================================
   20. UTR — site-specific additions (05 全站延伸). Scope: [data-site="utr"]
   ========================================================================== */
/* header: 5 menu items + external link + button must fit from 1025px */
@media (min-width: 1025px) and (max-width: 1279.98px) {
  [data-site="utr"] .ai-nav { gap: 16px; }
  [data-site="utr"] .ai-nav__list { gap: 4px 14px; }
  [data-site="utr"] .ai-nav__list a, [data-site="utr"] .ai-nav__ext { font-size: 0.9375rem; }
  [data-site="utr"] .ai-nav .ai-btn { padding: 0 18px; }
}
/* r2 L5: unit and reference value were glued together */
[data-site="utr"] .ai-triage__ref { margin-left: 10px; }
/* r2 M3: 320px — "下一步與負責" card was cut 19px right / 15px bottom */
@media (max-width: 359.98px) { [data-site="utr"] .ai-fl--next { --mx: calc(100% - 196px) !important; --my: 50% !important; } }
/* r2 L3: 900–1024px (small laptop / iPad landscape): copy and island side by side instead of a half-empty first screen */
@media (min-width: 900px) and (max-width: 1024.98px) {
  [data-site="utr"] .ai-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: 20px; min-height: 0; }
  [data-site="utr"] .ai-island { width: min(100%, 440px); }
  [data-site="utr"] .ai-minireport { width: 220px; padding: 10px 12px; }
  [data-site="utr"] .ai-nextcard { width: 210px; padding: 10px 12px; }
  [data-site="utr"] .ai-phero__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); }
  [data-site="utr"] .ai-phero__art { display: block; width: min(100%, 240px); }
}
/* r2 L4: homepage FAQ — right side was empty at 1440 */
[data-site="utr"] .ai-faqwrap { display: grid; grid-template-columns: minmax(0, 860px) minmax(0, 320px); gap: clamp(24px, 4vw, 56px); align-items: start; position: relative; z-index: 2; }
[data-site="utr"] .ai-askcard { background: var(--ai-teal-50); border-radius: var(--ai-radius-card); padding: 24px; border: 1px solid var(--ai-teal-100); position: sticky; top: calc(var(--ai-header-h) + 24px); }
[data-site="utr"] .ai-askcard .ai-h4 { margin-bottom: 8px; }
[data-site="utr"] .ai-askcard .ai-actions { margin-top: 16px; gap: 8px 16px; }
@media (max-width: 1024.98px) { [data-site="utr"] .ai-faqwrap { grid-template-columns: minmax(0, 1fr); } [data-site="utr"] .ai-askcard { position: static; } }

/* Homepage: three paths + testing entrance */
[data-site="utr"] .ai-entry { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px 28px; align-items: center; margin-top: clamp(28px, 4vw, 48px); padding: clamp(20px, 2.6vw, 32px); border-radius: var(--ai-radius-card); background: #fff; border: 1.5px dashed var(--ai-teal-300); position: relative; z-index: 2; }
[data-site="utr"] .ai-entry .ai-ico { margin: 0; width: 64px; height: 64px; }
[data-site="utr"] .ai-entry p { color: var(--ai-neutral-700); margin-top: 4px; }
[data-site="utr"] .ai-entry .ai-actions { justify-content: flex-end; }
@media (max-width: 767.98px) { [data-site="utr"] .ai-entry { grid-template-columns: minmax(0, 1fr); } [data-site="utr"] .ai-entry .ai-actions { justify-content: flex-start; } [data-site="utr"] .ai-entry .ai-actions .ai-btn { width: 100%; } }

/* Service block on /services/, /testing/ */
[data-site="utr"] .ai-feature { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 64px); align-items: start; position: relative; z-index: 2; }
[data-site="utr"] .ai-feature + .ai-feature { margin-top: clamp(48px, 6vw, 88px); padding-top: clamp(48px, 6vw, 88px); border-top: 1px solid var(--ai-color-line); }
[data-site="utr"] .ai-feature__head { position: sticky; top: calc(var(--ai-header-h) + 24px); }
[data-site="utr"] .ai-feature__head .ai-ico { width: 64px; height: 64px; }
[data-site="utr"] .ai-feature__head .ai-lead { font-size: var(--ai-text-body); }
[data-site="utr"] .ai-feature .ai-card .ai-dl { margin-bottom: 18px; }
[data-site="utr"] .ai-feature .ai-sub { display: grid; gap: 14px; margin-bottom: 18px; }
[data-site="utr"] .ai-feature .ai-sub > div { padding: 16px 18px; border-radius: 12px; background: var(--ai-neutral-50); border: 1px solid var(--ai-color-line); }
[data-site="utr"] .ai-feature .ai-sub h4 { font-size: 1.0625rem; margin-bottom: 4px; }
@media (max-width: 1024.98px) { [data-site="utr"] .ai-feature { grid-template-columns: minmax(0, 1fr); } [data-site="utr"] .ai-feature__head { position: static; } }

/* ---------- /services/ highlight: interactive service map (HTML version of the architecture diagram, no treatment names)
   Desktop ≥1025 + JS: core | branches | detail panel (connector lines drawn in CSS).
   Below 1025, touch, or no JS: branches become an accordion with the leaves inline. ---------- */
[data-site="utr"] .ai-smap { --gap: 48px; display: grid; grid-template-columns: 210px minmax(0, 300px) minmax(0, 1fr); column-gap: var(--gap); align-items: center; position: relative; z-index: 2; }
[data-site="utr"] .ai-smap__core { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; padding: 26px 16px; border-radius: 50%; aspect-ratio: 1; align-content: center; background: #fff; border: 10px solid var(--ai-teal-50); box-shadow: var(--ai-shadow-lg); }
[data-site="utr"] .ai-smap__core img { width: 44px; height: auto; }
[data-site="utr"] .ai-smap__core p { font-weight: 700; line-height: 1.4; color: var(--ai-teal-800); }
[data-site="utr"] .ai-smap__core::after { content: ""; position: absolute; left: 100%; top: 50%; width: calc(var(--gap) + 12px); border-top: 2px solid var(--ai-teal-300); }
[data-site="utr"] .ai-smap__branches { position: relative; display: grid; gap: 12px; padding-left: calc(var(--gap) / 2); }
[data-site="utr"] .ai-smap__branches::before { content: ""; position: absolute; left: 0; top: 30px; bottom: 30px; border-left: 2px dashed var(--ai-teal-200); }
[data-site="utr"] .ai-smap__branch { position: relative; }
[data-site="utr"] .ai-smap__branch::before { content: ""; position: absolute; right: 100%; top: 30px; width: calc(var(--gap) / 2); border-top: 2px dashed var(--ai-teal-200); }
[data-site="utr"] .ai-smap__node { width: 100%; min-height: 60px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 14px 8px 10px; border-radius: 14px; border: 1.5px solid var(--ai-teal-200); background: #fff; color: var(--ai-neutral-800); text-align: left; cursor: pointer; font: 700 1.0625rem/1.35 var(--ai-font-sans); transition: background-color var(--ai-dur-fast), border-color var(--ai-dur-fast), color var(--ai-dur-fast), box-shadow var(--ai-dur-fast); }
[data-site="utr"] .ai-smap__node > svg { width: 30px; height: 30px; color: var(--ai-teal-600); }
[data-site="utr"] .ai-smap__node small { display: block; font-weight: 400; font-size: var(--ai-text-caption); color: var(--ai-color-text-muted); }
[data-site="utr"] .ai-smap__count { font-family: var(--ai-font-num); font-weight: 600; font-size: var(--ai-text-caption); color: var(--ai-teal-700); background: var(--ai-teal-50); border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
[data-site="utr"] .ai-smap__node:hover { border-color: var(--ai-teal-500); box-shadow: var(--ai-shadow-sm); }
[data-site="utr"] .ai-smap__node[aria-expanded="true"] { background: var(--ai-teal-700); border-color: var(--ai-teal-700); color: #fff; }
[data-site="utr"] .ai-smap__node[aria-expanded="true"] > svg, [data-site="utr"] .ai-smap__node[aria-expanded="true"] small { color: #fff; }
[data-site="utr"] .ai-smap__node[aria-expanded="true"] .ai-smap__count { background: rgba(255,255,255,.18); color: #fff; }
[data-site="utr"] .ai-smap__branch.is-active::before { border-top: 2px solid var(--ai-teal-600); }
[data-site="utr"] .ai-smap__leaves { display: none; }
[data-site="utr"] .ai-smap__panel > .ai-smap__leaves { display: block; }
[data-site="utr"] .ai-smap__panel { align-self: stretch; position: relative; display: none; background: #fff; border-radius: var(--ai-radius-card); border: 1px solid var(--ai-color-line); box-shadow: var(--ai-shadow-card); padding: clamp(22px, 2.4vw, 32px); min-height: 100%; }
[data-site="utr"] .ai-smap__ltitle { font-weight: 700; font-size: var(--ai-text-h4); color: var(--ai-neutral-800); }
[data-site="utr"] .ai-smap__desc { margin-top: 6px; color: var(--ai-neutral-700); }
[data-site="utr"] .ai-smap__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
[data-site="utr"] .ai-smap__list a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px; border-radius: 12px; background: var(--ai-neutral-50); border: 1px solid var(--ai-color-line); text-decoration: none; color: var(--ai-neutral-800); transition: border-color var(--ai-dur-fast), background-color var(--ai-dur-fast); }
[data-site="utr"] .ai-smap__list a:hover { border-color: var(--ai-teal-400); background: var(--ai-teal-50); color: var(--ai-neutral-800); }
[data-site="utr"] .ai-smap__list b { display: flex; align-items: center; gap: 6px; color: var(--ai-teal-800); }
[data-site="utr"] .ai-smap__list b svg { width: 16px; height: 16px; flex: none; margin-left: auto; color: var(--ai-teal-600); }
[data-site="utr"] .ai-smap__list span { font-size: var(--ai-text-small); color: var(--ai-neutral-700); }
[data-site="utr"] .ai-smap__foot { margin-top: 16px; font-size: var(--ai-text-small); color: var(--ai-color-text-muted); }
/* desktop panel mode (JS adds .is-panel on ≥1025) */
[data-site="utr"] .ai-smap.is-panel .ai-smap__panel { display: block; }
[data-site="utr"] .ai-smap.is-panel .ai-smap__branch.is-active::after { content: ""; position: absolute; left: 100%; top: 30px; width: var(--gap); border-top: 2px solid var(--ai-teal-600); transform-origin: left; }
[data-site="utr"] .ai-smap.is-panel .ai-smap__node[aria-expanded="true"] { box-shadow: 0 8px 22px rgba(20,98,104,.22); }
.ai-js [data-site="utr"] .ai-smap.is-panel .ai-smap__branch.is-drawn::after, [data-site="utr"].ai-js .ai-smap.is-panel .ai-smap__branch.is-drawn::after { animation: ai-smap-draw 420ms var(--ai-ease-v) both; }
[data-site="utr"].ai-js .ai-smap__panel.is-new > * > * { animation: ai-in-up 420ms var(--ai-ease-v) both; animation-delay: calc(var(--k, 0) * 70ms); }
@keyframes ai-smap-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* accordion mode (below 1025 with JS) and no-JS mode */
[data-site="utr"] .ai-smap:not(.is-panel) { grid-template-columns: minmax(0, 1fr); row-gap: 20px; --gap: 32px; }
[data-site="utr"] .ai-smap:not(.is-panel) .ai-smap__core { aspect-ratio: auto; border-radius: var(--ai-radius-card); border-width: 6px; grid-template-columns: auto auto; justify-content: start; padding: 14px 20px; text-align: left; }
[data-site="utr"] .ai-smap:not(.is-panel) .ai-smap__core img { width: 30px; }
[data-site="utr"] .ai-smap:not(.is-panel) .ai-smap__core::after { left: 30px; top: 100%; width: 0; height: 22px; border-top: 0; border-left: 2px solid var(--ai-teal-300); }
[data-site="utr"] .ai-smap:not(.is-panel) .ai-smap__branches { padding-left: var(--gap); margin-left: 30px; }
[data-site="utr"] .ai-smap:not(.is-panel) .ai-smap__branches::before { top: -2px; }
[data-site="utr"] .ai-smap:not(.is-panel) .ai-smap__branch.is-active .ai-smap__leaves,
html:not(.ai-js) [data-site="utr"] .ai-smap__leaves, html:not(.ai-js)[data-site="utr"] .ai-smap__leaves { display: block; margin-top: 10px; padding: 16px; border-radius: 12px; background: #fff; border: 1px solid var(--ai-color-line); }
[data-site="utr"].ai-js .ai-smap:not(.is-panel) .ai-smap__branch.is-active .ai-smap__leaves { animation: ai-in-up 380ms var(--ai-ease-v) both; }
@media (max-width: 559.98px) {
  [data-site="utr"] .ai-smap__list { grid-template-columns: minmax(0, 1fr); }
  [data-site="utr"] .ai-smap:not(.is-panel) .ai-smap__branches { margin-left: 12px; --gap: 20px; }
  [data-site="utr"] .ai-smap:not(.is-panel) .ai-smap__core::after { left: 12px; }
  [data-site="utr"] .ai-smap__node { font-size: 1rem; grid-template-columns: 28px minmax(0, 1fr) auto; padding-right: 10px; }
  [data-site="utr"] .ai-smap__node > svg { width: 26px; height: 26px; }
}
@media (min-width: 1025px) and (max-width: 1199.98px) { [data-site="utr"] .ai-smap { grid-template-columns: 170px minmax(0, 260px) minmax(0, 1fr); --gap: 36px; } [data-site="utr"] .ai-smap__list { grid-template-columns: minmax(0, 1fr); } }

/* ---------- /corporate/ highlight: "講座之後" timeline, progress line grows with scroll ---------- */
[data-site="utr"] .ai-tl { --p: 1; --n: 4; position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); padding-top: 44px; z-index: 2; }
[data-site="utr"].ai-js .ai-tl { --p: 0; }
[data-site="utr"] .ai-tl__track { position: absolute; left: 12px; right: 12px; top: 13px; height: 4px; border-radius: 4px; background: var(--ai-teal-100); overflow: hidden; }
[data-site="utr"] .ai-tl__fill { position: absolute; inset: 0; background: var(--ai-teal-600); transform: scaleX(var(--p)); transform-origin: left; }
[data-site="utr"] .ai-tl__item { position: relative; }
[data-site="utr"] .ai-tl__dot { position: absolute; left: 0; top: -44px; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 3px solid var(--ai-teal-200); display: grid; place-items: center; transition: border-color var(--ai-dur-base), background-color var(--ai-dur-base); }
[data-site="utr"] .ai-tl__dot svg { width: 14px; height: 14px; color: #fff; opacity: 0; transition: opacity var(--ai-dur-base); }
[data-site="utr"] .ai-tl__item.is-on .ai-tl__dot, html:not(.ai-js)[data-site="utr"] .ai-tl__dot { border-color: var(--ai-teal-600); background: var(--ai-teal-600); }
[data-site="utr"] .ai-tl__item.is-on .ai-tl__dot svg, html:not(.ai-js)[data-site="utr"] .ai-tl__dot svg { opacity: 1; }
[data-site="utr"] .ai-tl__when { display: inline-block; font-weight: 700; font-size: var(--ai-text-small); color: var(--ai-teal-700); background: var(--ai-teal-50); border-radius: 999px; padding: 2px 12px; margin-bottom: 10px; }
[data-site="utr"] .ai-tl__item .ai-h4 { margin-bottom: 6px; }
[data-site="utr"] .ai-tl__item p { color: var(--ai-neutral-700); }
[data-site="utr"] .ai-tl__owner { margin-top: 10px !important; font-size: var(--ai-text-small); font-weight: 700; color: var(--ai-teal-700) !important; }
@media (max-width: 1024.98px) {
  [data-site="utr"] .ai-tl { grid-template-columns: minmax(0, 1fr); padding-top: 0; padding-left: 52px; gap: 28px; max-width: 640px; }
  [data-site="utr"] .ai-tl__track { left: 13px; right: auto; top: 6px; bottom: 6px; width: 4px; height: auto; }
  [data-site="utr"] .ai-tl__fill { transform: scaleY(var(--p)); transform-origin: top; }
  [data-site="utr"] .ai-tl__dot { left: -52px; top: 0; }
}
@media (prefers-reduced-motion: reduce) { [data-site="utr"] .ai-tl { --p: 1 !important; } [data-site="utr"] .ai-tl__dot { border-color: var(--ai-teal-600); background: var(--ai-teal-600); } [data-site="utr"] .ai-tl__dot svg { opacity: 1; } }

/* ---------- /about/ team (white-coat photos per user decision 2026-10-15; titles pending) ---------- */
[data-site="utr"] .ai-team { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); position: relative; z-index: 2; }
[data-site="utr"] .ai-team li { background: #fff; border-radius: var(--ai-radius-card); border: 1px solid var(--ai-color-line); overflow: hidden; box-shadow: var(--ai-shadow-xs); }
[data-site="utr"] .ai-team figure { margin: 0; aspect-ratio: 4 / 5; background: linear-gradient(180deg, var(--ai-neutral-50), var(--ai-teal-50)); overflow: hidden; }
[data-site="utr"] .ai-team img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
[data-site="utr"] .ai-team__body { padding: 12px 14px 16px; }
[data-site="utr"] .ai-team__name { font-weight: 700; font-size: 1.0625rem; color: var(--ai-neutral-800); }
[data-site="utr"] .ai-team__role { margin-top: 4px; font-size: var(--ai-text-small); color: var(--ai-neutral-700); }
@media (max-width: 1024.98px) { [data-site="utr"] .ai-team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 559.98px) { [data-site="utr"] .ai-team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* training cards */
[data-site="utr"] .ai-course { display: flex; flex-direction: column; }
[data-site="utr"] .ai-course .ai-dl { margin-top: 12px; }
[data-site="utr"] .ai-course .ai-btn { align-self: flex-start; margin-top: auto; }
@media (max-width: 767.98px) { [data-site="utr"] .ai-course .ai-btn { align-self: stretch; } }

/* ==========================================================================
   19. DEBBY INNER PAGES (05 full-site, agent B) — every rule scoped to [data-site="debby"]
   Source of truth: prototype/tools/debby-pages.css → inserted here by tools/apply_debby_assets.py
   New block classes: ai-dp-* (page head, timeline, checklist, talk tabs, links, legal, FAQ side card)
   ========================================================================== */
/* r2 review M2: AI label at the photo's bottom edge (above the name tag) so the fixed header never hides it first */
/* tested (scratch badge.js, floaters made hit-testable): ≥768 bottom-right clears the mini report & stickers; <768 bottom-centre */
[data-site="debby"] .ai-aibadge { top: auto; bottom: 72px; left: auto; right: 16px; transform: none; }
@media (max-width: 767.98px) { [data-site="debby"] .ai-aibadge { top: auto; bottom: 28px; left: 50%; right: auto; transform: translateX(-50%); } }
/* r2 review M1: footer bright button keeps dark text (white on #5FC1C7 was 2.11:1) */
[data-site="debby"] .ai-footer .ai-btn--bright, [data-site="debby"] .ai-footer .ai-btn--bright:hover { color: var(--ai-neutral-800); }
/* r2 review L2: very small phones — one sticker less over the portrait */
@media (max-width: 359.98px) { [data-site="debby"] .ai-dp-hide-xs { display: none; } }
/* current page in the main nav */
[data-site="debby"] .ai-nav__list a[aria-current="page"] { color: var(--ai-teal-700); font-weight: 700; }
[data-site="debby"] .ai-nav__list a[aria-current="page"]::after { transform: scaleX(1); background: var(--ai-pink); }

/* ---------- page head (inner pages) ---------- */
[data-site="debby"] .ai-dp-head { position: relative; overflow: clip; padding-block: clamp(20px, 3vw, 40px) clamp(48px, 6vw, 96px); background: linear-gradient(180deg, #fff 0%, var(--ai-teal-50) 100%); }
[data-site="debby"] .ai-dp-head__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(28px, 5vw, 72px); align-items: center; position: relative; z-index: 2; }
[data-site="debby"] .ai-dp-h1 { font-family: var(--ai-font-serif); font-weight: 600; font-size: var(--ai-text-h1); line-height: var(--ai-leading-tight); color: var(--ai-neutral-800); }
[data-site="debby"] .ai-dp-head .ai-lead { max-width: 34em; }
[data-site="debby"] .ai-dp-head__actions { margin-top: 28px; }
[data-site="debby"] .ai-dp-head__note { margin-top: 14px; }
[data-site="debby"] .ai-dp-crumb { margin-bottom: clamp(16px, 2.4vw, 28px); font-size: var(--ai-text-small); }
[data-site="debby"] .ai-dp-crumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; }
[data-site="debby"] .ai-dp-crumb li { color: var(--ai-color-text-muted); display: inline-flex; align-items: center; }
[data-site="debby"] .ai-dp-crumb li + li::before { content: "/"; margin: 0 10px; color: var(--ai-neutral-400); }
[data-site="debby"] .ai-dp-crumb a { color: var(--ai-teal-700); display: inline-block; padding: 6px 0; }
[data-site="debby"] .ai-dp-facts { display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 22px; }
[data-site="debby"] .ai-dp-facts li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px 6px 10px; border-radius: 999px; background: #fff; box-shadow: var(--ai-shadow-xs); font-weight: 700; font-size: var(--ai-text-small); color: var(--ai-teal-800); }
[data-site="debby"] .ai-dp-facts svg { width: 20px; height: 20px; color: var(--ai-teal-600); }
@media (max-width: 1024.98px) {
  [data-site="debby"] .ai-dp-head__grid { grid-template-columns: 1fr; }
  [data-site="debby"] .ai-dp-head__art { max-width: 520px; }
}
@media (max-width: 767.98px) {
  [data-site="debby"] .ai-dp-head__actions .ai-cta-stack { width: 100%; align-items: stretch; }
  [data-site="debby"] .ai-dp-head__actions .ai-btn { width: 100%; }
  [data-site="debby"] .ai-dp-head__actions .ai-cta-note { text-align: center; }
}

/* real photo in an arch (about) */
[data-site="debby"] .ai-dp-photo { position: relative; margin: 0 auto; width: min(100%, 420px); }
[data-site="debby"] .ai-dp-photo__box { position: relative; }
[data-site="debby"] .ai-dp-photo__frame { position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 32px 32px; overflow: hidden; border: 8px solid #fff; box-shadow: var(--ai-shadow-lg); background: #ECEBEE; }
[data-site="debby"] .ai-dp-photo__img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
[data-site="debby"] .ai-dp-photo__ring { position: absolute; inset: -16px; border-radius: 999px 999px 44px 44px; border: 2px dashed var(--ai-teal-200); pointer-events: none; }
[data-site="debby"] .ai-dp-photo .ai-heart { position: absolute; }
[data-site="debby"] .ai-dp-photo__cap { margin-top: 30px; text-align: center; font-size: var(--ai-text-caption); color: var(--ai-color-text-muted); }
@media (max-width: 1024.98px) { [data-site="debby"] .ai-dp-photo { width: min(76%, 360px); } }

/* ---------- about: story timeline (highlight) ---------- */
[data-site="debby"] .ai-dp-story { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
[data-site="debby"] .ai-dp-story__head { position: sticky; top: calc(var(--ai-header-h) + 32px); margin-bottom: 0; }
[data-site="debby"] .ai-dp-story__src { margin-top: 18px; }
[data-site="debby"] .ai-dp-tl { position: relative; display: grid; gap: clamp(20px, 3vw, 40px); padding-left: 34px; }
[data-site="debby"] .ai-dp-tl::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; border-left: 2px dashed var(--ai-teal-200); }
[data-site="debby"] .ai-dp-tl::after { content: ""; position: absolute; left: 8px; top: 8px; width: 4px; height: calc(100% - 16px); border-radius: 4px; background: linear-gradient(var(--ai-teal-400), var(--ai-pink)); transform-origin: top; transform: scaleY(var(--tl, 1)); }
[data-site="debby"] .ai-dp-tl__item { position: relative; }
[data-site="debby"] .ai-dp-tl__item::before { content: ""; position: absolute; left: -32px; top: 10px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 3px solid var(--ai-teal-400); z-index: 1; transition: background-color 300ms, border-color 300ms; }
[data-site="debby"] .ai-dp-tl__year { font-family: var(--ai-font-num); font-weight: 600; color: var(--ai-teal-700); font-size: 1.125rem; letter-spacing: 0.04em; margin-bottom: 8px; }
[data-site="debby"] .ai-dp-tl__year span { display: inline-block; transform-origin: left center; transition: transform 400ms var(--ai-ease-v), color 300ms; }
[data-site="debby"] .ai-dp-tl__card { background: #fff; border-radius: var(--ai-radius-card); box-shadow: var(--ai-shadow-card); padding: clamp(18px, 2.2vw, 28px); transition: box-shadow 300ms; }
[data-site="debby"] .ai-dp-tl__card .ai-h4 { margin-bottom: 6px; }
[data-site="debby"] .ai-dp-tl__card p { color: var(--ai-neutral-700); }
/* JS on: the line fills with scroll, past dots fill, the current year scales up */
[data-site="debby"].ai-js .ai-dp-tl[data-ai-tl-on]::after { transform: scaleY(var(--tl, 0)); }
[data-site="debby"] .ai-dp-tl__item.is-past::before { background: var(--ai-teal-400); }
[data-site="debby"] .ai-dp-tl__item.is-current::before { background: var(--ai-pink); border-color: var(--ai-pink); }
[data-site="debby"] .ai-dp-tl__item.is-current .ai-dp-tl__year span { transform: scale(1.6); color: var(--ai-teal-800); }
[data-site="debby"] .ai-dp-tl__item.is-current .ai-dp-tl__year { margin-bottom: 18px; }
[data-site="debby"] .ai-dp-tl__item.is-current .ai-dp-tl__card { box-shadow: var(--ai-shadow-lg); }
@media (max-width: 1024.98px) {
  [data-site="debby"] .ai-dp-story { grid-template-columns: 1fr; }
  [data-site="debby"] .ai-dp-story__head { position: static; }
  [data-site="debby"] .ai-dp-tl__item.is-current .ai-dp-tl__year span { transform: scale(1.35); }
  [data-site="debby"] .ai-dp-tl__item.is-current .ai-dp-tl__year { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  [data-site="debby"] .ai-dp-tl__item.is-current .ai-dp-tl__year span { transform: none; }
  [data-site="debby"] .ai-dp-tl__item.is-current .ai-dp-tl__year { margin-bottom: 8px; }
}

/* about: categories, boundary, credentials, relation */
[data-site="debby"] .ai-dp-cats .ai-card p { margin-top: 14px; color: var(--ai-neutral-700); }
[data-site="debby"] .ai-dp-cats .ai-stamp { margin-left: 4px; }
[data-site="debby"] .ai-dp-boundnote { max-width: 860px; margin-top: 28px; position: relative; z-index: 2; }
[data-site="debby"] .ai-dp-creds { position: relative; z-index: 2; background: #fff; border-radius: var(--ai-radius-card); box-shadow: var(--ai-shadow-card); padding: clamp(8px, 1.6vw, 20px) clamp(16px, 2.4vw, 32px); max-width: 980px; }
[data-site="debby"] .ai-dp-creds table { width: 100%; border-collapse: collapse; }
[data-site="debby"] .ai-dp-creds th, [data-site="debby"] .ai-dp-creds td { text-align: left; vertical-align: top; padding: 14px 12px; border-bottom: 1px dashed var(--ai-color-line); }
[data-site="debby"] .ai-dp-creds tbody tr:last-child > * { border-bottom: 0; }
[data-site="debby"] .ai-dp-creds thead th { font-size: var(--ai-text-caption); color: var(--ai-teal-700); font-weight: 700; padding-block: 10px; }
[data-site="debby"] .ai-dp-creds tbody th { font-weight: 700; color: var(--ai-neutral-800); white-space: nowrap; }
[data-site="debby"] .ai-dp-creds td:last-child { white-space: nowrap; }
[data-site="debby"] .ai-dp-credsnote { margin-top: 16px; position: relative; z-index: 2; }
@media (max-width: 767.98px) {
  [data-site="debby"] .ai-dp-creds thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  [data-site="debby"] .ai-dp-creds tr { display: grid; gap: 2px; padding: 14px 0; border-bottom: 1px dashed var(--ai-color-line); }
  [data-site="debby"] .ai-dp-creds tbody tr:last-child { border-bottom: 0; }
  [data-site="debby"] .ai-dp-creds th, [data-site="debby"] .ai-dp-creds td { padding: 0; border: 0; white-space: normal; }
}
[data-site="debby"] .ai-dp-rel { display: grid; grid-template-columns: minmax(0, 0.6fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 72px); align-items: center; position: relative; z-index: 2; }
[data-site="debby"] .ai-dp-rel .ai-circlephoto { width: min(100%, 300px); }
[data-site="debby"] .ai-dp-rel .ai-sign { margin-top: 18px; }
@media (max-width: 767.98px) { [data-site="debby"] .ai-dp-rel { grid-template-columns: 1fr; } [data-site="debby"] .ai-dp-rel .ai-circlephoto { width: min(64%, 240px); } }

/* ---------- report-review ---------- */
[data-site="debby"] .ai-dp-mini { position: relative; background: var(--ai-pink-50); border-radius: 24px; padding: clamp(20px, 2.6vw, 32px); box-shadow: var(--ai-shadow-lg); transform: rotate(1.2deg); max-width: 460px; margin-inline: auto; }
[data-site="debby"] .ai-dp-mini__title { font-weight: 700; color: var(--ai-teal-800); display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
[data-site="debby"] .ai-dp-mini ul { display: grid; gap: 12px; }
[data-site="debby"] .ai-dp-mini li { display: grid; gap: 6px; background: #fff; border-radius: 14px; padding: 12px 14px; justify-items: start; }
[data-site="debby"] .ai-dp-mini li > span:last-child { color: var(--ai-neutral-700); font-size: var(--ai-text-small); }
[data-site="debby"] .ai-dp-mini__sign { margin-top: 14px; text-align: right; color: var(--ai-teal-700); font-size: 1.25rem; }
[data-site="debby"] .ai-dp-mini__sign svg { display: inline-block; width: 16px; height: 16px; color: var(--ai-pink); vertical-align: -1px; margin-left: 2px; }
[data-site="debby"] .ai-dp-urgent h3 { display: flex; align-items: center; gap: 8px; }
[data-site="debby"] .ai-dp-urgent h3 svg { width: 22px; height: 22px; color: var(--ai-amber-700); flex: none; }
[data-site="debby"] .ai-dp-after { margin-top: 24px; position: relative; z-index: 2; }

/* checklist (highlight): native checkboxes, works without JS; nothing stored or sent */
[data-site="debby"] .ai-dp-checkwrap { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(28px, 4vw, 64px); align-items: start; position: relative; z-index: 2; }
[data-site="debby"] .ai-dp-checkhead { margin-bottom: 0; }
@media (min-width: 1025px) { [data-site="debby"] .ai-dp-checkhead { position: sticky; top: calc(var(--ai-header-h) + 32px); } }
[data-site="debby"] .ai-dp-privacy { display: flex; gap: 14px; align-items: flex-start; margin-top: 24px; padding: 16px 18px; border-radius: 16px; background: #fff; border: 2px solid var(--ai-pink-100); box-shadow: var(--ai-shadow-xs); }
[data-site="debby"] .ai-dp-privacy svg { width: 28px; height: 28px; flex: none; color: var(--ai-teal-700); }
[data-site="debby"] .ai-dp-privacy strong { color: var(--ai-teal-800); display: block; }
[data-site="debby"] .ai-dp-checknote { margin-top: 14px; }
[data-site="debby"] .ai-dp-check { padding: clamp(20px, 2.6vw, 32px); }
[data-site="debby"] .ai-dp-check__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
[data-site="debby"] .ai-dp-check__title { font-size: 1.5rem; color: var(--ai-teal-700); display: inline-flex; align-items: center; gap: 6px; }
[data-site="debby"] .ai-dp-check__title svg { width: 18px; height: 18px; color: var(--ai-pink); }
[data-site="debby"] .ai-dp-check__count { font-weight: 700; color: var(--ai-teal-800); font-variant-numeric: tabular-nums; }
html:not(.ai-js)[data-site="debby"] .ai-dp-check__count, html:not(.ai-js)[data-site="debby"] .ai-dp-check__bar { display: none; }
[data-site="debby"] .ai-dp-check__bar { height: 8px; border-radius: 8px; background: var(--ai-teal-50); overflow: hidden; margin: 12px 0 8px; }
[data-site="debby"] .ai-dp-check__bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--ai-teal-400), var(--ai-teal-600)); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 400ms var(--ai-ease-v); }
[data-site="debby"] .ai-dp-check__list { display: grid; gap: 10px; margin-top: 12px; }
[data-site="debby"] .ai-dp-check__item { position: relative; }
[data-site="debby"] .ai-dp-check__box { position: absolute; opacity: 0; width: 1px; height: 1px; }
[data-site="debby"] .ai-dp-check__item label { display: grid; grid-template-columns: 28px 36px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--ai-color-line); background: #fff; cursor: pointer; transition: border-color 200ms, background-color 200ms; }
[data-site="debby"] .ai-dp-check__item label:hover { border-color: var(--ai-teal-300); }
[data-site="debby"] .ai-dp-check__box:focus-visible + label { outline: var(--ai-focus-width) solid var(--ai-color-focus); outline-offset: var(--ai-focus-offset); }
[data-site="debby"] .ai-dp-check__mark { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--ai-teal-600); display: grid; place-items: center; color: #fff; background: #fff; margin-top: 2px; transition: background-color 200ms; }
[data-site="debby"] .ai-dp-check__mark svg { width: 18px; height: 18px; opacity: 0; transform: scale(.6); transition: opacity 200ms, transform 260ms cubic-bezier(.3,1.5,.5,1); }
[data-site="debby"] .ai-dp-check__ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ai-teal-50); color: var(--ai-teal-600); }
[data-site="debby"] .ai-dp-check__ico svg { width: 20px; height: 20px; }
[data-site="debby"] .ai-dp-check__txt b { color: var(--ai-neutral-800); }
[data-site="debby"] .ai-dp-check__txt > span:last-child { display: block; color: var(--ai-neutral-700); font-size: var(--ai-text-small); margin-top: 2px; }
[data-site="debby"] .ai-dp-check__tag { display: inline-block; margin-left: 8px; padding: 0 8px; border-radius: 999px; background: var(--ai-pink-50); color: var(--ai-teal-800); font-size: var(--ai-text-caption); font-weight: 700; border: 1px solid var(--ai-pink-100); vertical-align: 1px; }
[data-site="debby"] .ai-dp-check__item--key label { border-color: var(--ai-pink-100); background: linear-gradient(90deg, var(--ai-pink-50), #fff 70%); }
[data-site="debby"] .ai-dp-check__box:checked + label { border-color: var(--ai-teal-400); background: var(--ai-teal-50); }
[data-site="debby"] .ai-dp-check__box:checked + label .ai-dp-check__mark { background: var(--ai-teal-600); }
[data-site="debby"] .ai-dp-check__box:checked + label .ai-dp-check__mark svg { opacity: 1; transform: none; }
[data-site="debby"] .ai-dp-check__box:checked + label .ai-dp-check__txt b { text-decoration: line-through; text-decoration-color: var(--ai-teal-400); text-decoration-thickness: 2px; }
[data-site="debby"] .ai-dp-check__done { margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: var(--ai-pink-50); }
[data-site="debby"] .ai-dp-check__done p { margin-bottom: 12px; color: var(--ai-neutral-800); }
[data-site="debby"] .ai-dp-check__done strong { color: var(--ai-teal-800); }
[data-site="debby"].ai-js .ai-dp-check__done { display: none; }
[data-site="debby"].ai-js .ai-dp-check.is-complete .ai-dp-check__done { display: block; animation: ai-fade 300ms var(--ai-ease-standard) both; }
html:not(.ai-js)[data-site="debby"] .ai-dp-check__reset { display: none; }
[data-site="debby"] .ai-dp-check__reset { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--ai-teal-200); background: #fff; color: var(--ai-teal-700); font: 700 var(--ai-text-small)/1 var(--ai-font-sans); cursor: pointer; }
[data-site="debby"] .ai-dp-check__reset:hover { background: var(--ai-teal-50); }
@media (max-width: 1024.98px) { [data-site="debby"] .ai-dp-checkwrap { grid-template-columns: 1fr; } }
@media (max-width: 479.98px) {
  [data-site="debby"] .ai-dp-check__item label { grid-template-columns: 28px minmax(0, 1fr); padding: 12px 14px; }
  [data-site="debby"] .ai-dp-check__ico { display: none; }
  [data-site="debby"] .ai-dp-check__done .ai-btn { width: 100%; }
}

[data-site="debby"] .ai-dp-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; position: relative; z-index: 2; }
[data-site="debby"] .ai-dp-get { display: grid; gap: 14px; margin: 24px 0 18px; }
[data-site="debby"] .ai-dp-get li { display: grid; gap: 8px; justify-items: start; padding: 14px 16px; background: #fff; border-radius: 16px; box-shadow: var(--ai-shadow-xs); }
[data-site="debby"] .ai-dp-get li > span:last-child { color: var(--ai-neutral-700); }
[data-site="debby"] .ai-dp-data h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
[data-site="debby"] .ai-dp-data h3 svg { width: 22px; height: 22px; color: var(--ai-teal-600); }
@media (max-width: 1024.98px) { [data-site="debby"] .ai-dp-two { grid-template-columns: 1fr; } }

/* FAQ + side card (also used on the homepage: r2 review L4) */
[data-site="debby"] .ai-dp-faqgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: clamp(20px, 3vw, 48px); align-items: start; position: relative; z-index: 2; }
[data-site="debby"] .ai-dp-faqgrid .ai-faq { max-width: none; }
[data-site="debby"] .ai-dp-ask { position: sticky; top: calc(var(--ai-header-h) + 24px); background: var(--ai-pink-50); border-radius: var(--ai-radius-card); padding: 28px 24px; text-align: center; }
[data-site="debby"] .ai-dp-ask__avatar { width: 88px; height: 88px; margin: 0 auto 12px; border-radius: 50%; overflow: hidden; border: 4px solid #fff; box-shadow: var(--ai-shadow-md); }
[data-site="debby"] .ai-dp-ask__avatar img { width: 100%; height: 100%; object-fit: cover; }
[data-site="debby"] .ai-dp-ask__title { font-family: var(--ai-font-serif); font-weight: 600; font-size: var(--ai-text-h4); color: var(--ai-teal-800); margin-bottom: 6px; }
[data-site="debby"] .ai-dp-ask > p:not(.ai-dp-ask__title) { color: var(--ai-neutral-700); }
[data-site="debby"] .ai-dp-ask__actions { display: grid; justify-items: center; gap: 4px; margin-top: 16px; }
@media (max-width: 1024.98px) {
  [data-site="debby"] .ai-dp-faqgrid { grid-template-columns: 1fr; max-width: 860px; }
  [data-site="debby"] .ai-dp-ask { position: static; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 16px; text-align: left; align-items: center; padding: 20px; }
  [data-site="debby"] .ai-dp-ask__avatar { width: 72px; height: 72px; margin: 0; grid-row: span 2; }
  [data-site="debby"] .ai-dp-ask__title { margin: 0; }
  [data-site="debby"] .ai-dp-ask__actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; justify-items: start; }
}

/* ---------- speaking ---------- */
[data-site="debby"] .ai-dp-stage { position: relative; background: #fff; border-radius: 28px; box-shadow: var(--ai-shadow-lg); padding: clamp(24px, 3vw, 36px); max-width: 460px; margin-inline: auto; }
[data-site="debby"] .ai-dp-stage::before { content: ""; position: absolute; inset: -14px -14px auto auto; width: 90px; height: 90px; border-radius: 50%; background: var(--ai-pink-100); z-index: -1; }
[data-site="debby"] .ai-dp-stage__mic { position: absolute; top: -22px; left: 24px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--ai-teal-700); color: #fff; box-shadow: var(--ai-shadow-md); }
[data-site="debby"] .ai-dp-stage__mic svg { width: 28px; height: 28px; }
[data-site="debby"] .ai-dp-stage__label { font-size: var(--ai-text-caption); font-weight: 700; color: var(--ai-teal-700); letter-spacing: 0.08em; margin: 18px 0 10px; }
[data-site="debby"] .ai-dp-stage ol { display: grid; gap: 10px; }
[data-site="debby"] .ai-dp-stage li { display: flex; gap: 12px; align-items: baseline; font-family: var(--ai-font-serif); font-weight: 600; font-size: 1.125rem; color: var(--ai-neutral-800); padding: 10px 0; border-bottom: 1px dashed var(--ai-color-line); }
[data-site="debby"] .ai-dp-stage li:last-child { border-bottom: 0; }
/* QA r1 L4: numbers were heart pink on white (2.84:1); pink is decoration only → teal-700 text (7.06:1) + pink underline */
[data-site="debby"] .ai-dp-stage li span { font-family: var(--ai-font-num); font-weight: 600; color: var(--ai-teal-700); font-size: var(--ai-text-small); border-bottom: 2px solid var(--ai-pink); line-height: 1.3; }
[data-site="debby"] .ai-dp-topics { position: relative; z-index: 2; }
@media (min-width: 1025px) { [data-site="debby"] .ai-dp-talk:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; align-items: end; } [data-site="debby"] .ai-dp-talk__side { padding: 22px 24px; border-radius: 18px; background: var(--ai-pink-50); } [data-site="debby"] .ai-dp-talk__side .ai-dp-talk__fit { margin-top: 0; } }
[data-site="debby"] .ai-dp-topics__tabs .ai-svc__tab { font-size: 1rem; padding: 0 18px 0 8px; min-height: 48px; }
[data-site="debby"] .ai-dp-talk__tabno { font-family: var(--ai-font-num); font-weight: 600; font-size: var(--ai-text-caption); width: 30px; height: 30px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ai-teal-50); color: var(--ai-teal-700); }
[data-site="debby"] .ai-svc__tab[aria-selected="true"] .ai-dp-talk__tabno { background: #fff; }
[data-site="debby"] .ai-dp-talk .ai-h3 { margin-bottom: 8px; }
[data-site="debby"] .ai-dp-talk__point { font-size: var(--ai-text-lead); color: var(--ai-neutral-700); }
[data-site="debby"] .ai-dp-talk__sub { font-family: var(--ai-font-sans); font-weight: 700; font-size: var(--ai-text-small); color: var(--ai-teal-700); margin: 22px 0 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
[data-site="debby"] .ai-dp-talk__sub .ai-pending { margin-left: 0; }
[data-site="debby"] .ai-dp-talk__outline { display: grid; gap: 10px; counter-reset: none; }
[data-site="debby"] .ai-dp-talk__outline li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; background: var(--ai-teal-50); border-radius: 14px; }
[data-site="debby"] .ai-dp-talk__n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ai-teal-700); font-family: var(--ai-font-num); font-weight: 600; font-size: 1.125rem; box-shadow: var(--ai-shadow-xs); }
[data-site="debby"] .ai-dp-talk__fit { margin: 18px 0 20px; color: var(--ai-neutral-800); }
[data-site="debby"] .ai-dp-talk__fit b { display: block; font-size: var(--ai-text-caption); color: var(--ai-teal-700); }
html:not(.ai-js)[data-site="debby"] .ai-dp-talk + .ai-dp-talk { margin-top: 16px; }
[data-site="debby"] .ai-dp-chips { display: flex; flex-wrap: wrap; gap: 10px 12px; position: relative; z-index: 2; }
[data-site="debby"] .ai-dp-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px 10px 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--ai-teal-200); font-weight: 700; color: var(--ai-teal-800); }
[data-site="debby"] .ai-dp-chips svg { width: 20px; height: 20px; color: var(--ai-teal-600); }
[data-site="debby"] .ai-dp-format { grid-template-columns: repeat(4, minmax(0, 1fr)); }
[data-site="debby"] .ai-dp-format div { box-shadow: none; border: 1px solid var(--ai-color-line); }
[data-site="debby"] .ai-dp-after2 { margin-top: 28px; padding: 18px 22px; border-left: 3px solid var(--ai-teal-400); background: var(--ai-teal-50); border-radius: 0 16px 16px 0; max-width: 860px; position: relative; z-index: 2; }
[data-site="debby"] .ai-dp-after2 .ai-h4 { margin-bottom: 4px; }
[data-site="debby"] .ai-dp-ph { margin: 0; aspect-ratio: 3 / 2; border-radius: var(--ai-radius-media); border: 2px dashed var(--ai-teal-200); background: repeating-linear-gradient(135deg, rgba(95,193,199,.08) 0 12px, transparent 12px 24px); display: grid; place-items: center; align-content: center; gap: 10px; text-align: center; color: var(--ai-neutral-700); padding: 20px; }
[data-site="debby"] .ai-dp-ph svg { width: 44px; height: 44px; color: var(--ai-teal-400); }
[data-site="debby"] .ai-dp-ph b { display: block; color: var(--ai-teal-800); }
@media (max-width: 1024.98px) { [data-site="debby"] .ai-dp-format { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479.98px) {
  [data-site="debby"] .ai-dp-format { grid-template-columns: 1fr; }
  [data-site="debby"] .ai-dp-topics__tabs { display: grid; grid-template-columns: 1fr; }
  [data-site="debby"] .ai-dp-topics__tabs .ai-svc__tab { width: 100%; }
  [data-site="debby"] .ai-dp-talk__outline li { grid-template-columns: 34px minmax(0, 1fr); }
  [data-site="debby"] .ai-dp-talk__n { width: 34px; height: 34px; }
  [data-site="debby"] .ai-dp-talk .ai-btn { width: 100%; }
}

/* ---------- links (social bio) ---------- */
[data-site="debby"] .ai-dp-links { position: relative; overflow: clip; padding-block: clamp(20px, 3vw, 40px) clamp(56px, 7vw, 96px); background: linear-gradient(180deg, #fff 0%, var(--ai-teal-50) 60%, var(--ai-pink-50) 100%); }
[data-site="debby"] .ai-dp-links .ai-heart { position: absolute; }
[data-site="debby"] .ai-dp-links__wrap { max-width: 560px; position: relative; z-index: 2; }
[data-site="debby"] .ai-dp-links__me { text-align: center; }
[data-site="debby"] .ai-dp-links__avatar { width: 136px; height: 136px; margin: 0 auto 14px; border-radius: 50%; overflow: hidden; border: 6px solid #fff; box-shadow: var(--ai-shadow-lg); background: #ECEBEE; }
[data-site="debby"] .ai-dp-links__avatar img { width: 100%; height: 100%; object-fit: cover; }
[data-site="debby"] .ai-dp-links__name { font-size: var(--ai-text-h2); display: inline-flex; align-items: center; gap: 6px; }
[data-site="debby"] .ai-dp-links__name svg { width: 20px; height: 20px; color: var(--ai-pink); transform: translateY(-8px) rotate(10deg); }
[data-site="debby"] .ai-dp-links__role { font-weight: 700; color: var(--ai-teal-700); margin-top: 4px; }
[data-site="debby"] .ai-dp-links__bio { margin-top: 10px; color: var(--ai-neutral-700); }
[data-site="debby"] .ai-dp-links__list { display: grid; gap: 12px; margin-top: 28px; }
[data-site="debby"] .ai-dp-links__btn { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 64px; padding: 12px 20px; border-radius: 20px; background: #fff; color: var(--ai-neutral-800); text-decoration: none; font-weight: 700; box-shadow: var(--ai-shadow-sm); border: 1.5px solid transparent; transition: transform var(--ai-dur-fast) var(--ai-ease-standard), border-color var(--ai-dur-fast), box-shadow var(--ai-dur-fast); }
[data-site="debby"] .ai-dp-links__btn:hover { color: var(--ai-neutral-800); border-color: var(--ai-teal-300); transform: translateY(-2px); box-shadow: var(--ai-shadow-md); }
[data-site="debby"] .ai-dp-links__btn > svg { width: 24px; height: 24px; color: var(--ai-teal-600); }
[data-site="debby"] .ai-dp-links__btn > svg:last-child:not(:first-child) { width: 16px; height: 16px; color: var(--ai-teal-700); }
[data-site="debby"] .ai-dp-links__btn small { display: block; font-weight: 400; font-size: var(--ai-text-small); color: var(--ai-color-text-muted); }
[data-site="debby"] .ai-dp-links__btn--main { background: var(--ai-teal-700); color: #fff; }
[data-site="debby"] .ai-dp-links__btn--main:hover { color: #fff; background: var(--ai-teal-800); }
[data-site="debby"] .ai-dp-links__btn--main > svg, [data-site="debby"] .ai-dp-links__btn--main small { color: var(--ai-teal-50); }
[data-site="debby"] .ai-dp-links__socials { margin-top: 32px; text-align: center; }
[data-site="debby"] .ai-dp-links__socials h2 { font-family: var(--ai-font-sans); font-size: var(--ai-text-small); font-weight: 700; color: var(--ai-teal-700); letter-spacing: 0.08em; margin-bottom: 12px; }
[data-site="debby"] .ai-dp-links__socials ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 12px; }
[data-site="debby"] .ai-dp-links__soc { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 8px 0 14px; border-radius: 999px; background: #fff; border: 1.5px dashed var(--ai-neutral-300); color: var(--ai-neutral-700); font-weight: 700; font-size: var(--ai-text-small); }
[data-site="debby"] .ai-dp-links__legal { margin-top: 24px; text-align: center; }

/* ---------- legal drafts ---------- */
[data-site="debby"] .ai-dp-head--legal .ai-wrap { max-width: 1080px; }
[data-site="debby"] .ai-dp-draft { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--ai-amber-50); color: var(--ai-amber-700); border: 1px solid var(--ai-amber-200); font-weight: 700; font-size: var(--ai-text-small); margin-bottom: 14px; }
[data-site="debby"] .ai-dp-draft svg { width: 18px; height: 18px; }
[data-site="debby"] .ai-dp-legal__meta { margin-top: 10px; font-size: var(--ai-text-small); color: var(--ai-color-text-muted); }
[data-site="debby"] .ai-dp-legal { padding-top: clamp(32px, 4vw, 56px); }
[data-site="debby"] .ai-dp-legal__grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; max-width: 1080px; }
[data-site="debby"] .ai-dp-legal__toc { position: sticky; top: calc(var(--ai-header-h) + 24px); background: var(--ai-teal-50); border-radius: 16px; padding: 18px 20px; }
[data-site="debby"] .ai-dp-legal__toc h2 { font-family: var(--ai-font-sans); font-size: var(--ai-text-small); font-weight: 700; color: var(--ai-teal-700); margin-bottom: 8px; }
[data-site="debby"] .ai-dp-legal__toc a { display: block; padding: 6px 0; font-size: var(--ai-text-small); text-decoration: none; color: var(--ai-neutral-800); }
[data-site="debby"] .ai-dp-legal__toc a:hover { color: var(--ai-teal-700); text-decoration: underline; }
[data-site="debby"] .ai-dp-legal__body { max-width: 760px; }
[data-site="debby"] .ai-dp-legal__body section + section { margin-top: 36px; padding-top: 28px; border-top: 1px dashed var(--ai-color-line); }
[data-site="debby"] .ai-dp-legal__body .ai-h3 { margin-bottom: 12px; }
[data-site="debby"] .ai-dp-legal__body p + p, [data-site="debby"] .ai-dp-legal__body p + ul, [data-site="debby"] .ai-dp-legal__body ul + p { margin-top: 10px; }
[data-site="debby"] .ai-dp-legal__body ul { display: grid; gap: 8px; }
[data-site="debby"] .ai-dp-legal__body ul li { position: relative; padding-left: 20px; }
[data-site="debby"] .ai-dp-legal__body ul li::before { content: ""; position: absolute; left: 2px; top: 0.7em; width: 8px; height: 8px; border-radius: 50%; background: var(--ai-teal-400); }
[data-site="debby"] .ai-dp-legal__body .ai-dl { margin: 0; }
@media (max-width: 1024.98px) {
  [data-site="debby"] .ai-dp-legal__grid { grid-template-columns: 1fr; }
  [data-site="debby"] .ai-dp-legal__toc { position: static; }
  [data-site="debby"] .ai-dp-legal__toc ol { columns: 2; column-gap: 24px; }
}
@media (max-width: 559.98px) { [data-site="debby"] .ai-dp-legal__toc ol { columns: 1; } }
/* ---------- QA r1 fixes (2026-10-15) ---------- */
/* M4 (r2 L3): 900–1024px first screen — copy and portrait side by side (same breakpoint as utr) */
@media (min-width: 900px) and (max-width: 1024.98px) {
  [data-site="debby"] .ai-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); gap: 16px; min-height: 0; }
  [data-site="debby"] .ai-island { width: min(100%, 420px); }
  /* the sample report card would cover the "AI 輔助形象照" label at this size (r2 M2) → same as tablet/phone */
  [data-site="debby"] .ai-hero .ai-fl--desk { display: none; }
  /* "還少驗什麼" sticker sat on the name tag at 900–950px → a little lower */
  [data-site="debby"] .ai-hero .ai-fl[style*="--x:3%;--y:69%"] { --x: 0% !important; --y: 77% !important; }
  [data-site="debby"] .ai-bubble { font-size: 1.0625rem; padding: 8px 14px; }
  [data-site="debby"] .ai-sticker .ai-stamp { font-size: 0.875rem; padding: 3px 10px 3px 6px; }
  [data-site="debby"] .ai-nametag { font-size: 1.0625rem; padding: 4px 14px; }
  [data-site="debby"] .ai-dp-head__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 28px; }
  [data-site="debby"] .ai-dp-head__art { max-width: none; }
  [data-site="debby"] .ai-dp-photo { width: min(100%, 330px); }
}
/* L7: <480px the talk topics read as an accordion — each tab button sits right above its own panel
   (same WAI-ARIA tabs + keyboard; tablist uses display:contents so buttons and panels can interleave) */
@media (max-width: 479.98px) {
  [data-site="debby"] .ai-dp-topics { display: flex; flex-direction: column; gap: 10px; }
  [data-site="debby"] .ai-dp-topics__tabs { display: contents; }
  [data-site="debby"] .ai-dp-topics__tabs .ai-svc__tab { order: var(--o, 0); justify-content: flex-start; position: relative; padding-right: 44px; }
  [data-site="debby"] .ai-dp-topics__tabs .ai-svc__tab::after { content: ""; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform var(--ai-dur-fast); }
  [data-site="debby"] .ai-dp-topics__tabs .ai-svc__tab[aria-selected="true"]::after { transform: rotate(-135deg); margin-top: -2px; }
  [data-site="debby"] #dp-talk-tab-1 { --o: 1; } [data-site="debby"] #dp-talk-1 { order: 2; }
  [data-site="debby"] #dp-talk-tab-2 { --o: 3; } [data-site="debby"] #dp-talk-2 { order: 4; }
  [data-site="debby"] #dp-talk-tab-3 { --o: 5; } [data-site="debby"] #dp-talk-3 { order: 6; }
  [data-site="debby"] .ai-dp-topics .ai-dp-talk { margin: 0 0 6px; }
}
/* ===== END DEBBY INNER PAGES ===== */
/* vertical steps at every width (booking aside) + form-first split */
.ai-steps--v { grid-template-columns: minmax(0, 1fr); gap: 0; }
.ai-steps--v::before { left: 31px; right: auto; top: 24px; bottom: 24px; border-top: 0; border-left: 2px dashed var(--ai-teal-200); }
.ai-steps--v .ai-step { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 0 16px; text-align: left; padding: 0 0 22px; }
.ai-steps--v .ai-step__no { grid-row: span 3; margin: 0; }
.ai-steps--v .ai-step .ai-h4 { padding-top: 6px; }
.ai-split--form { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); }
@media (max-width: 1024.98px) { .ai-split--form { grid-template-columns: minmax(0, 1fr); } }

/* ==========================================================================
   21. QA r1 FIXES (2026-10-15) — shared + utr. debby-only fixes live in tools/debby-pages.css
   ========================================================================== */
/* L2: skip link target (<main tabindex="-1">) takes focus; no ring around the whole page */
main[tabindex="-1"]:focus { outline: none; }

/* M3: mobile menu (03 §4.1) — background locked, scrim closes it, bottom bar hidden while open */
.ai-navscrim { position: fixed; inset: 0; z-index: calc(var(--ai-z-sticky) - 1); background: rgba(16, 38, 40, .38); opacity: 0; visibility: hidden; transition: opacity 200ms var(--ai-ease-standard), visibility 0s linear 200ms; -webkit-tap-highlight-color: transparent; }
html.ai-menu-open .ai-navscrim { opacity: 1; visibility: visible; transition: opacity 200ms var(--ai-ease-standard), visibility 0s; }
/* only <html>: overflow on <body> too would turn body into a scroll container and break the sticky header */
html.ai-menu-open { overflow: hidden; overscroll-behavior: none; }
html.ai-menu-open .ai-mbar { visibility: hidden; transform: translateY(140%); transition: none; }
/* the open menu overlays the page (absolute under the header row) instead of pushing it down:
   no layout shift, so the reading position is kept when the menu closes (scroll anchoring used to jump by the menu height) */
@media (max-width: 1024.98px) {
  .ai-js .ai-nav.is-open { position: absolute; top: 100%; left: calc(-1 * var(--ai-space-gutter)); right: calc(-1 * var(--ai-space-gutter)); width: auto; padding: 8px var(--ai-space-gutter) 20px; background: #fff; box-shadow: 0 18px 28px rgba(24, 52, 55, .14); max-height: calc(100vh - var(--ai-header-h)); max-height: calc(100dvh - var(--ai-header-h)); overflow-y: auto; overscroll-behavior: contain; }
}
@media (prefers-reduced-motion: reduce) { .ai-navscrim { transition: none; } }

/* L5: utr bottom bar has three buttons (03 §4.1：預約｜LINE｜企業洽詢) */
.ai-mbar--3 a { flex: 1 1 0; min-width: 0; padding: 0 6px; font-size: 0.9375rem; white-space: nowrap; }
.ai-mbar--3 a.is-main { flex: 1.45 1 0; }
@media (max-width: 359.98px) { .ai-mbar--3 { gap: 6px; padding: 6px; left: 8px; right: 8px; } .ai-mbar--3 a { padding: 0 4px; } }

/* L9: utr 900–1024 first screen — the report card no longer covers the logo disc */
@media (min-width: 900px) and (max-width: 1024.98px) {
  [data-site="utr"] .ai-fl--mark { --x: 50% !important; --y: 14% !important; --w: 40% !important; }
}
