/*! generated by scripts/build_css_bundle.py; sources=assets/design.css,assets/app-shell.css,assets/attention.css,assets/wow.css sha256=f5d0e00cdf5fcf3b */
/* ---- assets/design.css ---- */
/* ============================================================
   Deadline 365 — Paper in Motion (2026-11-01)
   Depth, 3D paper, product imagery, choreography.
   Loaded after kit.css/site.css. No dependencies.
   ============================================================ */

:root{
  --pm-ink-shadow: 28,26,23;
  --pm-lift-1: 0 1px 2px rgba(var(--pm-ink-shadow),.06), 0 10px 26px -20px rgba(var(--pm-ink-shadow),.45);
  --pm-lift-2: 0 2px 4px rgba(var(--pm-ink-shadow),.05), 0 26px 60px -34px rgba(var(--pm-ink-shadow),.55);
  --pm-edge: inset 0 1px 0 rgba(255,255,255,.55);
  --pm-edge-dark: inset 0 1px 0 rgba(255,255,255,.06);
  --pm-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
  --pm-ease: cubic-bezier(.22,.8,.24,1);
  --pm-perspective: 1400px;
}
html[data-theme="dark"]{
  --pm-ink-shadow: 0,0,0;
  --pm-lift-1: 0 1px 2px rgba(0,0,0,.35), 0 12px 30px -20px rgba(0,0,0,.8);
  --pm-lift-2: 0 2px 6px rgba(0,0,0,.35), 0 30px 70px -34px rgba(0,0,0,.9);
  --pm-edge: inset 0 1px 0 rgba(255,255,255,.05);
}

/* ---------- 1. shared depth uplift ---------- */
.pm-lift{
  box-shadow: var(--pm-lift-1) !important;
  transition: transform .28s var(--pm-ease), box-shadow .28s var(--pm-ease), border-color .2s ease;
  will-change: transform;
}
.pm-lift:hover{ transform: translateY(-2px); box-shadow: var(--pm-lift-2) !important; }
@media (hover:none){ .pm-lift:hover{ transform:none; } }

/* buttons get a quiet sheen + press */
.btn-primary{ position:relative; overflow:hidden; }
.btn-primary::after{
  content:""; position:absolute; inset:0; pointer-events:none;
  background:linear-gradient(180deg,rgba(255,255,255,.24),transparent 46%);
  opacity:.7; mix-blend-mode:soft-light;
}
.btn-primary:active{ transform: translateY(1px) scale(.995); }

/* proof / stat numbers get tabular comfort */
.proof-strip b,.dfy-strip b,.docs-stats b,.kpi b,.lib-stats b{ font-variant-numeric: tabular-nums; }

/* section kickers get a hairline tick */
.panel-kicker::before,.kicker::before{
  content:""; display:inline-block; width:14px; height:1px; margin-right:8px;
  background:currentColor; opacity:.45; vertical-align:middle;
}

/* footer "works with" strip (injected) */
.pm-works-with{
  display:flex; align-items:center; gap:14px; flex-wrap:wrap;
  padding:14px 0 6px; margin-top:6px; border-top:1px solid var(--line);
}
.pm-works-with span{ font-size:12px; letter-spacing:.06em; text-transform:uppercase; color:var(--faint); font-weight:650; }
.pm-works-with img{ width:18px; height:18px; opacity:.9; }
.pm-works-with b{ font-size:12.5px; color:var(--muted); font-weight:600; }

/* ---------- 2. load choreography ---------- */
@keyframes pm-rise{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:none; } }
@keyframes pm-fade{ from{ opacity:0; } to{ opacity:1; } }
@keyframes pm-float{ 0%,100%{ transform:translateY(0) rotate(var(--pm-rot,0deg)); } 50%{ transform:translateY(-7px) rotate(var(--pm-rot,0deg)); } }
@media (prefers-reduced-motion:no-preference){
  .hero-copy .eyebrow,.hero-copy .display,.hero-copy .lede,.hero-copy .hero-actions,.hero-copy .hero-note,
  .dfy-hero .hero-copy>*, .pricing-hero>*, .lib-hero>*{
    animation: pm-rise .62s var(--pm-ease) both;
  }
  .hero-copy .eyebrow{ animation-delay:.02s }
  .hero-copy .display,.dfy-hero h1,.pricing-hero h1,.lib-hero h1{ animation-delay:.07s }
  .hero-copy .lede,.dfy-hero .lede,.pricing-hero .lede,.lib-hero .lede{ animation-delay:.14s }
  .hero-copy .hero-actions,.hero-copy .hero-note{ animation-delay:.21s }
  .pm-scene{ animation: pm-rise .8s var(--pm-ease) .24s both; }
}

/* scroll reveal */
.pm-reveal{ opacity:0; transform:translateY(14px); transition:opacity .55s var(--pm-ease), transform .55s var(--pm-ease); transition-delay:calc(var(--pm-i,0) * 55ms); }
.pm-reveal.pm-in{ opacity:1; transform:none; }
@media (prefers-reduced-motion:reduce){ .pm-reveal{ opacity:1 !important; transform:none !important; transition:none !important; } }

/* ---------- 3. 3D scenes shell ---------- */
.pm-scene{
  position:absolute; pointer-events:none; z-index:0;
  perspective: var(--pm-perspective); transform-style:preserve-3d;
  filter: drop-shadow(0 30px 40px rgba(var(--pm-ink-shadow),.16));
}
.pm-scene img{ display:block; width:100%; height:auto; }
.pm-scene .pm-3d{ transform-style:preserve-3d; transition:transform .4s var(--pm-ease); }
.pm-chip{
  position:absolute; display:inline-flex; align-items:center; gap:7px;
  background:var(--surface); border:1px solid var(--line); border-radius:999px;
  padding:7px 11px; font-size:11.5px; font-weight:650; color:var(--body);
  box-shadow: var(--pm-lift-1); white-space:nowrap;
}
.pm-chip img{ width:14px; height:14px; border-radius:3px; }
.pm-chip .dot{ width:7px; height:7px; border-radius:50%; background:var(--ok); }
.pm-chip.hot .dot{ background:var(--accent); }
.pm-chip.warn .dot{ background:var(--warn); }
.pm-float{ animation: pm-float 7s ease-in-out infinite; }
.pm-float.d2{ animation-duration:9s; animation-delay:-2s; }
.pm-float.d3{ animation-duration:11s; animation-delay:-4s; }
@media (prefers-reduced-motion:reduce){ .pm-float{ animation:none; } }

/* home hero: product windows + connector orbit */
.pm-home-scene{ right:-26px; top:24px; width:min(46vw,560px); }
.pm-home-scene .pm-browser{
  border-radius:16px; overflow:hidden; border:1px solid var(--line);
  background:var(--surface); box-shadow:var(--pm-lift-2);
  transform: rotateY(-7deg) rotateX(3deg) translateZ(0);
}
.pm-home-scene .pm-browser img{ width:100%; }
.pm-home-scene .pm-phone{
  position:absolute; right:2%; bottom:-46px; width:132px; border-radius:18px; overflow:hidden;
  border:1px solid var(--line); background:var(--surface); box-shadow:var(--pm-lift-2);
  transform: rotateY(-10deg) rotateX(2deg) translateZ(60px);
}
.pm-home-scene .pm-phone img{ width:100%; }
.pm-orbit{ position:absolute; inset:0; }
.pm-orbit .pm-logo{
  position:absolute; width:34px; height:34px; border-radius:10px; background:var(--surface);
  border:1px solid var(--line); display:grid; place-items:center; box-shadow:var(--pm-lift-1);
  --pm-rot:0deg;
}
.pm-orbit .pm-logo img{ width:19px; height:19px; }
.pm-orbit .pm-logo.l1{ left:-18px; top:8%; }
.pm-orbit .pm-logo.l2{ left:-6%; top:46%; }
.pm-orbit .pm-logo.l3{ right:-4%; top:18%; }
.pm-orbit .pm-logo.l4{ right:-2%; bottom:6%; }

/* hide busy scenes on small screens */
@media (max-width:1080px){
  .pm-home-scene,.pm-pricing-scene,.pm-lib-scene,.pm-dfy-scene,.pm-app-scene,.pm-slab-scene{ display:none !important; }
}
@media (max-width:1080px){
  .pm-hero-spacer{ display:none; }
}

/* ---------- 4. pricing tier stack ---------- */
.pm-pricing-scene{ right:0; top:120px; width:min(30vw,360px); opacity:.96; }
.pm-tier{
  position:absolute; width:280px; height:86px; border-radius:14px; border:1px solid var(--line);
  background:var(--surface); box-shadow:var(--pm-lift-1); padding:14px 16px;
  transform: rotateX(52deg) rotateZ(-42deg) translateZ(var(--z,0));
  display:flex; flex-direction:column; justify-content:center;
}
.pm-tier b{ font-family:var(--serif); font-size:19px; color:var(--ink); }
.pm-tier span{ font-size:11px; color:var(--muted); letter-spacing:.04em; }
.pm-tier.t1{ left:0; top:0; --z:0; }
.pm-tier.t2{ left:24px; top:52px; --z:20px; }
.pm-tier.t3{ left:48px; top:104px; --z:40px; }
.pm-tier.t4{ left:72px; top:156px; --z:60px; background:var(--accent-soft); border-color:var(--accent-line); }
.pm-tier.t4 b{ color:var(--accent-text); }

/* ---------- 5. library shelf ---------- */
.pm-lib-scene{ right:0; top:80px; width:min(30vw,380px); }
.pm-lib-scene .pm-book{
  position:relative; display:flex; align-items:center; gap:12px; margin-bottom:12px;
  padding:14px 16px; border-radius:12px; border:1px solid var(--line); background:var(--surface);
  box-shadow:var(--pm-lift-1); transform: rotateY(-6deg);
}
.pm-lib-scene .pm-book img{ width:26px; height:26px; }
.pm-lib-scene .pm-book b{ font-size:14px; }
.pm-lib-scene .pm-book span{ display:block; font-size:11px; color:var(--muted); }

/* ---------- 6. done-for-you conveyor ---------- */
.pm-dfy-scene{ right:0; top:110px; width:min(30vw,380px); }
.pm-dfy-scene .pm-belt{
  height:120px; border-radius:16px; border:1px solid var(--line); background:
    repeating-linear-gradient(90deg,var(--surface-2) 0 18px,var(--surface) 18px 36px);
  position:relative; transform: rotateX(46deg) rotateZ(-38deg); box-shadow:var(--pm-lift-2);
}
.pm-dfy-scene .pm-tile{
  position:absolute; width:64px; height:64px; border-radius:12px; background:var(--surface);
  border:1px solid var(--line); display:grid; place-items:center; box-shadow:var(--pm-lift-1);
}
.pm-dfy-scene .pm-tile img{ width:30px; height:30px; }

/* ---------- 7. app depth ---------- */
.pm-app-scene{ right:24px; top:88px; width:min(26vw,340px); opacity:.95; }
.pm-app-scene .pm-file{
  position:absolute; width:250px; height:130px; border-radius:14px; border:1px solid var(--line);
  background:var(--surface); box-shadow:var(--pm-lift-1);
  transform: rotateX(50deg) rotateZ(-40deg) translateZ(var(--z,0));
}
.pm-app-scene .pm-file.f1{ left:0; top:0; --z:0; opacity:.55; }
.pm-app-scene .pm-file.f2{ left:16px; top:34px; --z:18px; opacity:.75; }
.pm-app-scene .pm-file.f3{ left:32px; top:68px; --z:36px; }
.pm-app-scene .pm-file.f3::after{ content:""; position:absolute; left:18px; top:22px; width:120px; height:8px; border-radius:4px; background:var(--accent-soft); }

/* ---------- 8. jurisdiction slab ---------- */
.pm-slab-scene{ right:0; top:20px; width:min(24vw,300px); }
.pm-slab{
  height:150px; border-radius:18px; border:1px solid var(--line);
  background:linear-gradient(155deg,var(--surface),var(--surface-2));
  box-shadow:var(--pm-lift-2); transform: rotateX(46deg) rotateZ(-34deg);
  position:relative; overflow:hidden;
}
.pm-slab::before{
  content:""; position:absolute; inset:14px; border-radius:10px;
  background-image:linear-gradient(var(--line) 1px, transparent 1px),linear-gradient(90deg,var(--line) 1px, transparent 1px);
  background-size:26px 26px; opacity:.5;
}
.pm-slab i{ position:absolute; width:10px; height:10px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 5px color-mix(in srgb,var(--accent) 18%,transparent); }

/* ---------- 9. logo marquee (marketing) ---------- */
.pm-marquee{
  position:relative; overflow:hidden; margin:26px auto 0; max-width:1100px;
  mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
}
.pm-marquee-track{ display:flex; gap:46px; width:max-content; align-items:center; animation: pm-marquee 34s linear infinite; }
.pm-marquee:hover .pm-marquee-track{ animation-play-state:paused; }
.pm-marquee img{ height:24px; width:auto; opacity:.75; filter:grayscale(.15); }
.pm-marquee .pm-mq-label{ font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--faint); font-weight:650; white-space:nowrap; }
@keyframes pm-marquee{ to{ transform:translateX(-50%); } }
@media (prefers-reduced-motion:reduce){ .pm-marquee-track{ animation:none; } }

/* ---------- 10. native-feeling details ---------- */
::selection{ background: color-mix(in srgb,var(--accent) 24%, transparent); }
:focus-visible{ outline-offset:3px; }
@media (prefers-reduced-motion:no-preference){
  html{ scroll-behavior:smooth; }
  @view-transition{ navigation:auto; }
}
.pm-3d-tilt{ transform-style:preserve-3d; transition: transform .3s var(--pm-ease); }
.pm-3d-tilt:hover{ transform: translateZ(6px) rotateX(1.4deg) rotateY(-1.4deg); }

/* ---------- 11. scene layout + stacking ---------- */
.hero-inner,.pricing-hero,.dfy-hero,.lib-hero,.app-body,.page,.liref,.liref-h,.page-head{ position:relative; }
.hero-copy,.mock-wrap,.pricing-hero>.shell,.pricing-hero>h1,.pricing-hero>.lede,
.dfy-hero .hero-inner,.dfy-hero .shell,.lib-hero>.shell,.app-body>.shell,.page>.page-head,
.liref>.liref-h,.liref>.liref-answer,.page-head>div{ position:relative; z-index:2; }
.pm-scene{ z-index:0; pointer-events:none; }
.pm-3d{ transform-style:preserve-3d; }

/* ---------- 12. home mock: paper stack + live window ---------- */
.mock-wrap{ perspective:1400px; }
.mock-wrap .email-card{ position:relative; z-index:2; transform: rotateY(-2.2deg) rotateX(1deg); box-shadow: var(--pm-lift-2); transition: transform .45s var(--pm-ease); }
.mock-wrap:hover .email-card{ transform: rotateY(0) rotateX(0); }
.pm-home-float{
  position:absolute; right:-54px; bottom:-58px; width:min(300px,54%); z-index:1;
  transform: translateZ(50px) rotateY(-9deg) rotateX(4deg);
  filter: drop-shadow(0 26px 34px rgba(var(--pm-ink-shadow),.22));
}
.pm-window{ border-radius:14px; overflow:hidden; border:1px solid var(--line); background:var(--surface); box-shadow:var(--pm-lift-2); }
.pm-window-bar{ display:flex; align-items:center; gap:5px; padding:7px 10px; border-bottom:1px solid var(--line); background:var(--surface-2); }
.pm-window-bar i{ width:7px; height:7px; border-radius:50%; background:var(--line-strong); }
.pm-window-bar span{ margin-left:auto; font-size:9.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--faint); font-weight:650; }
.pm-window img{ display:block; width:100%; height:auto; }
.pm-logo-chip{ position:absolute; width:30px; height:30px; border-radius:9px; background:var(--surface); border:1px solid var(--line); display:grid; place-items:center; box-shadow:var(--pm-lift-1); }
.pm-logo-chip img{ width:17px; height:17px; }
.pm-logo-chip.c1{ display:none; }
.pm-logo-chip.c2{ display:none; }
.pm-logo-chip.c3{ display:none; }
@media (max-width:900px){ .pm-home-float{ display:none; } .mock-wrap .email-card{ transform:none; } }

/* ---------- 13. scene refinements ---------- */
.app-body{ overflow-x:clip; }

.pm-tier{ height:92px; }
.pm-marquee{ margin-top:18px; }
.pm-mq-label{ display:block; text-align:center; margin:0 0 10px; font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--faint); font-weight:650; }
.pm-marquee-track > .pm-mq-label{ display:none; }

/* ---------- 14. responsive scenes ---------- */

@media (max-width:1080px){ .pm-marquee-track{ gap:30px; } .pm-marquee img{ height:20px; } }
@media (max-width:600px){ .pm-marquee-track{ gap:24px; } .pm-mq-label{ font-size:10px; } }

/* phone header is a dark bar — keep the language pill legible and compact */
@media (max-width:860px){
  .site-header .hdr-actions .lang-sel{
    width:58px!important;min-width:58px!important;
    height:44px!important;min-height:44px!important;
    padding:0 18px 0 8px!important;
    border:1px solid rgba(255,255,255,.22)!important;
    border-radius:999px!important;
    color:#f7f7f9!important;
    background-color:rgba(255,255,255,.08)!important;
    background-image:linear-gradient(45deg,transparent 50%,rgba(255,255,255,.75) 50%),linear-gradient(135deg,rgba(255,255,255,.75) 50%,transparent 50%)!important;
    background-size:4px 4px,4px 4px!important;
    background-position:calc(100% - 12px) 20px,calc(100% - 8px) 20px!important;
    background-repeat:no-repeat!important;
    appearance:none!important;-webkit-appearance:none!important;
  }
}
@media(max-width:520px){
  .site-header .hdr-actions .lang-sel{
    width:54px!important;min-width:54px!important;
    background-position:calc(100% - 11px) 20px,calc(100% - 7px) 20px!important;
  }
}

/* reserve the demo ribbon strip before first paint on app pages (?demo=1) */
html.d365-demo{ --demo-bar:34px; }
@media (max-width:520px){ html.d365-demo{ --demo-bar:52px; } }
html.d365-demo body{ padding-top:var(--demo-bar); }
html.d365-demo .site-header{ top:var(--demo-bar); }
html.d365-demo .demo-ribbon{
  position:fixed; top:0; left:0; right:0; z-index:90;
  min-height:var(--demo-bar); display:flex; align-items:center; justify-content:center;
  padding:6px 14px; text-align:center;
}

/* ---------- 15. page-family scenes ---------- */
.pm-lib-scene{ right:0; top:-8px; width:min(24vw,280px); }
.pm-lib-scene .pm-book{ margin-bottom:10px; padding:11px 13px; }
.pm-lib-scene .pm-book b{ font-size:13px; }
.pm-app-scene{ right:0; top:-10px; width:200px; opacity:.82; }
.pm-app-scene .pm-file{ width:170px; height:78px; }
.pm-app-scene .pm-file.f3::after{ width:84px; height:7px; left:14px; top:16px; }
.pm-success-scene{ position:absolute; left:50%; top:-70px; transform:translateX(-50%); width:300px; height:170px; z-index:0; }
.pm-sheet{ position:absolute; left:50%; top:30px; width:190px; height:112px; border-radius:12px; border:1px solid var(--line); background:var(--surface); box-shadow:var(--pm-lift-1); transform:translateX(-50%) rotateX(46deg) rotateZ(-32deg); }
.pm-sheet.s1{ margin-left:-34px; margin-top:18px; opacity:.5; }
.pm-sheet.s2{ margin-left:-17px; margin-top:9px; opacity:.75; }
.pm-sheet.s3{ margin:0; }
.success-wrap{ position:relative; }
.success-wrap>.check-big,.success-wrap>h1,.success-wrap>p,.success-wrap>.success-copy{ position:relative; z-index:2; }

/* ---------- 16. tactile onboarding stepper ---------- */
.wiz-rail{ gap:8px; }
.wiz-rail li{ border-radius:12px; box-shadow:var(--pm-lift-1); background:var(--surface); border:1px solid var(--line); }
.wiz-rail li .n{ box-shadow:inset 0 1px 0 rgba(255,255,255,.4); }
.wiz-rail li.is-on{ box-shadow:var(--pm-lift-2); border-color:var(--accent-line); }
.wiz-rail li.done{ background:var(--surface-2); }
@media (max-width:520px){
  .wiz-rail{ display:flex; flex-wrap:wrap; gap:6px; }
  .wiz-rail li{ padding:7px 10px; font-size:11.5px; }
}

/* ---------- 17. dashboard action row on phones ---------- */
@media (max-width:560px){
  .dash-actions{ display:flex; flex-wrap:wrap; gap:8px; }
  .dash-actions .btn{ flex:1 1 auto; white-space:nowrap; font-size:13px; padding:0 12px; min-height:42px; }
  .dash-actions .link{ flex:0 0 100%; text-align:right; }
}

/* ---------- 18. marquee + footer strip contrast ---------- */
.pm-mq-label{ color:var(--muted); }
.pm-works-with span{ color:var(--muted); }
.pm-works-with b{ color:var(--body); }

/* ---------- 19. home window at tablet ---------- */
@media (max-width:1080px){ .pm-home-float{ display:none; } }

/* paper files read as documents, not blank cards */
.pm-app-scene .pm-file{
  background-color:var(--surface);
  background-image:linear-gradient(var(--line) 0 0),linear-gradient(var(--line) 0 0);
  background-size:58% 6px,38% 6px;
  background-position:14px 16px,14px 30px;
  background-repeat:no-repeat;
}
.pm-app-scene .pm-file.f3::after{ top:46px; }
/* tactile onboarding dots (start page uses .stepper, not .wiz-rail) */
.stepper .stepdot i{ box-shadow:var(--pm-lift-1),inset 0 1px 0 rgba(255,255,255,.4); }
.stepper .stepdot.active i{ box-shadow:0 10px 24px -12px rgba(var(--pm-ink-shadow),.45); }
.stepper .stepbar{ background:linear-gradient(90deg,var(--line-strong),var(--line)); }

/* 1024–1279: keep the wider language pill from tipping the header into 2px overflow */
@media (min-width:1000px) and (max-width:1279px){
  .hdr-actions{ gap:6px; }
  .hdr-actions .lang-sel{ width:60px!important; min-width:60px!important; padding-right:22px!important; }
  .nav-links a{ padding-left:9px; padding-right:9px; }
  .shell.hdr{ padding-left:20px; padding-right:20px; }
}

/* tablet: one-row header + stacked hero so nothing clips or wraps */
@media (max-width:1279px){
  .site-header .nav-links{ display:none!important; }
  .site-header .menu-btn{ display:grid!important; }
  .hero-inner{ grid-template-columns:1fr!important; gap:44px; }
  .hero-copy{ max-width:none; }
  .hero .mock-wrap{ width:100%; max-width:680px; margin:0 auto; }
}
@media (min-width:1280px){
  .site-header .nav-links{ display:flex; }
}

/* one horizontal contract for every breakpoint; overflow is clipped, not scrolled */
html{ overflow-x:clip; }
/* plan chips: 4.25:1 -> 6.5:1 on the soft accent tint */
.plan-chip,.plan-chip.paid{ color:var(--accent-text); }

/* header control tap rings must not add scrollable width */
.icon-btn::after,.theme-toggle::after{ inset:0; }

/* dual-theme product imagery in the home hero */
.pm-window .pm-shot-dark{ display:none; }
html[data-theme="dark"] .pm-window .pm-shot-light{ display:none; }
html[data-theme="dark"] .pm-window .pm-shot-dark{ display:block; }
@media (prefers-color-scheme: dark){
  html:not([data-theme="light"]) .pm-window .pm-shot-light{ display:none; }
  html:not([data-theme="light"]) .pm-window .pm-shot-dark{ display:block; }
}
/* pricing paper tiers read as paper in dark, with a visible edge line */
.pm-tier{ position:relative; }
.pm-tier::after{ content:""; position:absolute; left:16px; top:18px; width:46%; height:6px; border-radius:3px; background:var(--line); opacity:.6; }
html[data-theme="dark"] .pm-tier{
  background:linear-gradient(180deg,var(--surface-2),var(--surface));
  border-color:var(--line-strong);
  box-shadow:0 1px 0 rgba(255,255,255,.04) inset,var(--pm-lift-1);
}
html[data-theme="dark"] .pm-tier::after{ background:var(--line-strong); opacity:.8; }
html[data-theme="dark"] .pm-tier.t4{ background:var(--accent-soft); border-color:var(--accent-line); }
@media (prefers-color-scheme: dark){
  html:not([data-theme="light"]) .pm-tier{ background:linear-gradient(180deg,var(--surface-2),var(--surface)); border-color:var(--line-strong); box-shadow:0 1px 0 rgba(255,255,255,.04) inset,var(--pm-lift-1); }
  html:not([data-theme="light"]) .pm-tier::after{ background:var(--line-strong); opacity:.8; }
  html:not([data-theme="light"]) .pm-tier.t4{ background:var(--accent-soft); border-color:var(--accent-line); }
}

/* ---------- 20. generated paper imagery (Google Flow) ---------- */
.lien-atlas{
  position:absolute; right:0; top:84px; width:min(27vw,350px); margin:0; z-index:1;
  border-radius:18px; overflow:hidden; border:1px solid var(--line);
  box-shadow:var(--pm-lift-2); transform:rotate(1.4deg); pointer-events:none;
}
.lien-atlas img{ display:block; width:100%; height:auto; }
@media (max-width:1240px){ .lien-atlas{ display:none; } }

.docs-art{
  margin:0 0 14px; border-radius:18px; overflow:hidden; border:1px solid var(--line);
  box-shadow:var(--pm-lift-2); background:var(--surface);
}
.docs-art img{ display:block; width:100%; height:auto; }
.docs-art figcaption{ padding:10px 13px; font-size:11.5px; line-height:1.45; color:var(--muted); border-top:1px solid var(--line); background:var(--surface); }

.dfy-desk-band{ padding:10px 0 6px; }
.dfy-desk-fig{
  position:relative; margin:0; border-radius:24px; overflow:hidden;
  border:1px solid var(--line); box-shadow:var(--pm-lift-2);
}
.dfy-desk-fig img{ display:block; width:100%; max-height:380px; object-fit:cover; }
.dfy-desk-fig figcaption{
  position:absolute; left:22px; right:22px; bottom:20px; display:grid; gap:6px; max-width:56ch;
  padding:16px 18px; border-radius:16px; color:#f8f2e6;
  background:linear-gradient(180deg,rgba(18,13,9,.10),rgba(18,13,9,.62));
  border:1px solid rgba(255,255,255,.16); backdrop-filter:blur(6px);
}
.dfy-desk-fig figcaption span{ font-size:10px; letter-spacing:.18em; text-transform:uppercase; font-weight:700; color:#f0b27f; }
.dfy-desk-fig figcaption b{ font-family:var(--serif); font-size:clamp(18px,2.2vw,26px); font-weight:500; letter-spacing:-.02em; line-height:1.15; }
@media (max-width:720px){ .dfy-desk-fig figcaption{ position:static; border-radius:0; background:var(--surface); color:var(--ink); border:0; border-top:1px solid var(--line); } .dfy-desk-fig figcaption span{ color:var(--accent-text); } }

.success-wrap{ position:relative; }
.success-seal{
  position:absolute; left:50%; top:-56px; transform:translateX(-50%); margin:0;
  width:min(380px,78vw); z-index:0; pointer-events:none; opacity:.62;
  -webkit-mask-image:linear-gradient(180deg,#000 55%,transparent 96%);
  mask-image:linear-gradient(180deg,#000 55%,transparent 96%);
}
.success-seal img{ display:block; width:100%; height:auto; }
.success-wrap>.check-big,.success-wrap>.kicker,.success-wrap>h1,.success-wrap>.lede,
.success-wrap>.success-card,.success-wrap>.row,.success-wrap>.small,.success-wrap>.panel{ position:relative; z-index:2; }
@media (max-width:720px){ .success-seal{ top:-24px; width:min(300px,82vw); opacity:.5; } }

/* library docs band: art column should align with the copy, not centre it */
.docs-band{ align-items:start; }
.docs-copy{ padding-top:4px; }
@media (max-width:720px){ .docs-art{ display:none; } }

.docs-includes{ list-style:none; margin:18px 0 0; padding:0; display:grid; gap:9px; max-width:520px; }
.docs-includes li{ position:relative; padding-left:24px; font-size:13px; line-height:1.45; color:var(--mut); }
.docs-includes li::before{ content:"✓"; position:absolute; left:0; top:0; width:16px; height:16px; border-radius:50%; display:grid; place-items:center; font-size:9px; font-weight:800; color:var(--accent-text); background:var(--accent-soft); border:1px solid var(--accent-line); }
html[data-theme="dark"] .lien-atlas img,html[data-theme="dark"] .docs-art img,html[data-theme="dark"] .dfy-desk-fig img{ filter:brightness(.82) saturate(.95); }
@media (prefers-color-scheme:dark){
  html:not([data-theme="light"]) .lien-atlas img,
  html:not([data-theme="light"]) .docs-art img,
  html:not([data-theme="light"]) .dfy-desk-fig img{ filter:brightness(.82) saturate(.95); }
}

/* ---------- 21. Pexels photography layer ---------- */
.quote-photo{
  margin:0 0 14px; border-radius:16px; overflow:hidden; border:1px solid var(--line);
  box-shadow:var(--pm-lift-2); background:var(--surface);
}
.quote-photo img{ display:block; width:100%; height:220px; object-fit:cover; object-position:center 42%; }
.photo-band{
  position:relative; margin:0; border-radius:22px; overflow:hidden;
  border:1px solid var(--line); box-shadow:var(--pm-lift-2); background:var(--surface);
}
.photo-band img{ display:block; width:100%; height:clamp(220px,30vw,380px); object-fit:cover; }
.photo-band figcaption{
  position:absolute; left:22px; right:22px; bottom:20px; display:grid; gap:5px; max-width:52ch;
  padding:14px 17px; border-radius:14px; color:#f8f2e6;
  background:linear-gradient(180deg,rgba(18,13,9,.12),rgba(18,13,9,.68));
  border:1px solid rgba(255,255,255,.16); backdrop-filter:blur(6px);
}
.photo-band figcaption span{ font-size:10px; letter-spacing:.18em; text-transform:uppercase; font-weight:700; color:#f0b27f; }
.photo-band figcaption b{ font-family:var(--serif); font-size:clamp(17px,2.1vw,24px); font-weight:500; line-height:1.18; letter-spacing:-.02em; }
.security-photo{ margin:22px 0 18px; }
.security-photo img{ height:clamp(200px,26vw,300px); }
.setup-photo-section{ padding-top:6px; padding-bottom:6px; }
.setup-photo img{ height:clamp(220px,28vw,340px); }
html[data-theme="dark"] .quote-photo img,html[data-theme="dark"] .photo-band img{ filter:brightness(.78) saturate(.92); }
@media (prefers-color-scheme:dark){
  html:not([data-theme="light"]) .quote-photo img,
  html:not([data-theme="light"]) .photo-band img{ filter:brightness(.78) saturate(.92); }
}
@media (max-width:720px){
  .quote-photo img{ height:180px; }
  .photo-band figcaption{ position:static; border-radius:0; background:var(--surface); color:var(--ink); border:0; border-top:1px solid var(--line); }
  .photo-band figcaption span{ color:var(--accent-text); }
  .photo-band img{ height:220px; }
}

/* the sealed-desk photo is dark by nature; keep it readable in dark mode */
html[data-theme="dark"] .security-photo img{ filter:brightness(.92) saturate(.96); }
@media (prefers-color-scheme:dark){ html:not([data-theme="light"]) .security-photo img{ filter:brightness(.92) saturate(.96); } }

/* ---------- 22. cinematic product demos ---------- */
.demo-chapter{ display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.25fr); gap:46px; align-items:center; padding:46px 0; border-top:1px solid var(--line); }
.demo-chapter:first-child{ border-top:0; padding-top:8px; }
.demo-chapter.reverse .demo-copy{ order:2; }
.demo-chapter.reverse .demo-frame{ order:1; }
.demo-copy .kicker{ margin-bottom:10px; }
.demo-copy .h2{ font-size:clamp(26px,3vw,36px); line-height:1.08; letter-spacing:-.03em; }
.demo-copy .lede{ margin-top:14px; font-size:15px; }
.demo-points{ list-style:none; padding:0; margin:18px 0 22px; display:grid; gap:9px; }
.demo-points li{ position:relative; padding-left:24px; font-size:13px; line-height:1.45; color:var(--mut); }
.demo-points li::before{ content:"✓"; position:absolute; left:0; top:0; width:16px; height:16px; border-radius:50%; display:grid; place-items:center; font-size:9px; font-weight:800; color:var(--accent-text); background:var(--accent-soft); border:1px solid var(--accent-line); }
.demo-frame{ margin:0; border-radius:18px; overflow:hidden; border:1px solid var(--line); box-shadow:var(--pm-lift-2); background:var(--surface); }
.demo-bar{ display:flex; align-items:center; gap:6px; padding:9px 12px; border-bottom:1px solid var(--line); background:var(--surface-2); }
.demo-bar i{ width:8px; height:8px; border-radius:50%; background:var(--line-strong); }
.demo-bar span{ margin-left:auto; font-family:var(--mono); font-size:10px; color:var(--faint); letter-spacing:.02em; }
.demo-frame video{ display:block; width:100%; height:auto; background:#0b0c10; }
.demo-hero{ padding-bottom:0; }
.demo-hero .display{ font-size:clamp(38px,5.4vw,64px); letter-spacing:-.045em; }
.demo-chapters{ display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin-top:20px; }
.demo-chapters a{ display:grid; gap:4px; padding:15px 16px; border:1px solid var(--line); border-radius:14px; background:var(--surface); text-decoration:none; color:var(--ink); box-shadow:var(--pm-lift-1); }
.demo-chapters a:hover{ border-color:var(--accent-line); }
.demo-chapters b{ font-size:12.5px; }
.demo-chapters span{ font-size:11px; color:var(--muted); }
@media (max-width:900px){
  .demo-chapter{ grid-template-columns:1fr; gap:20px; padding:34px 0; }
  .demo-chapter.reverse .demo-copy,.demo-chapter.reverse .demo-frame{ order:initial; }
}

/* ---- assets/app-shell.css ---- */
/* ============================================================
   Deadline 365 — signed-in workspace (2026-11-01, v2)
   The app as a job dossier on a desk: binder rail, letterhead bar,
   morning-brief front page, index-card settings.
   Loaded after app.css/kit.css/design.css on signed-in pages only.
   ============================================================ */

body.d365-app2{
  --rail-w: 244px;
  --rail-pad: 28px;
  --bar-h: 64px;
  padding-left: var(--rail-w);
  background:
    radial-gradient(1200px 500px at 78% -10%, rgba(var(--pm-ink-shadow),.045), transparent 60%),
    var(--bg);
}
@media (max-width:1149px){ body.d365-app2{ padding-left:0; } }

/* ---------- 1. binder rail ---------- */
.d365-rail{
  position:fixed; left:0; top:0; bottom:0; width:var(--rail-w); z-index:80;
  display:flex; flex-direction:column; gap:0;
  padding:20px 16px 18px;
  background:linear-gradient(180deg,var(--surface),var(--surface-2));
  border-right:1px solid var(--line);
  box-shadow:14px 0 40px -34px rgba(var(--pm-ink-shadow),.5);
  overflow-y:auto; overscroll-behavior:contain;
}
.d365-rail::-webkit-scrollbar{ width:0; }
.rail-brand{ display:flex; align-items:center; gap:10px; padding:2px 8px 18px; }
.rail-brand .mark{ width:34px; height:34px; border-radius:10px; display:grid; place-items:center; background:var(--accent); color:#FFF8EF; box-shadow:var(--pm-lift-1),var(--pm-edge); }
.rail-brand .mark svg{ width:23px; height:23px; }
.rail-word{ font-family:var(--serif); font-size:17px; letter-spacing:-.02em; color:var(--ink); }
.rail-word em{ font-style:normal; color:var(--muted); }
.rail-workspace{
  display:flex; align-items:center; gap:10px; width:100%; text-align:left;
  padding:10px; margin-bottom:18px; border-radius:14px; border:1px solid var(--line);
  background:var(--surface); box-shadow:var(--pm-lift-1); color:var(--ink); cursor:pointer;
  transition:border-color .2s var(--pm-ease), transform .2s var(--pm-ease);
}
.rail-workspace:hover{ border-color:var(--line-strong); transform:translateY(-1px); }
.rw-avatar{ width:32px; height:32px; border-radius:10px; display:grid; place-items:center; background:var(--accent-soft); color:var(--accent-text); font-weight:700; font-size:11.5px; letter-spacing:.02em; }
.rw-copy{ min-width:0; display:grid; line-height:1.2; }
.rw-copy b{ font-size:13px; font-weight:650; }
.rw-copy small{ font-size:11px; color:var(--muted); }
.rail-workspace svg{ width:16px; height:16px; margin-left:auto; color:var(--faint); }
.rail-nav{ display:flex; flex-direction:column; gap:3px; }
.rail-label{ font-size:10px; letter-spacing:.14em; text-transform:uppercase; color:var(--faint); font-weight:650; padding:14px 10px 6px; }
.rail-link{
  display:flex; align-items:center; gap:11px; height:40px; padding:0 11px;
  border-radius:11px; color:var(--mut); font-size:13.5px; font-weight:550; text-decoration:none;
  border:1px solid transparent; transition:background .18s ease,color .18s ease,border-color .18s ease;
  position:relative;
}
.rail-link svg{ width:18px; height:18px; flex:0 0 18px; opacity:.82; }
.rail-link:hover{ background:var(--surface-2); color:var(--ink); }
.rail-link.is-active{ background:var(--accent-soft); color:var(--accent-text); border-color:var(--accent-line); font-weight:650; }
.rail-link.is-active::before{ content:""; position:absolute; left:-16px; top:11px; bottom:11px; width:3px; border-radius:0 3px 3px 0; background:var(--accent); }
.rail-link.is-active svg{ opacity:1; }
.rail-foot{ margin-top:auto; padding-top:18px; display:flex; flex-direction:column; gap:10px; }
.rail-plan{ border:1px solid var(--line); border-radius:14px; padding:12px; background:var(--surface); box-shadow:var(--pm-lift-1); }
.rp-top{ display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
.rp-top b{ font-size:12.5px; letter-spacing:.02em; text-transform:uppercase; color:var(--ink); }
.rp-top span{ font-size:10.5px; color:var(--muted); font-variant-numeric:tabular-nums; }
.rp-meter{ height:5px; border-radius:3px; background:var(--line); margin:9px 0 8px; overflow:hidden; }
.rp-meter i{ display:block; height:100%; border-radius:3px; background:linear-gradient(90deg,var(--accent),var(--accent-hover)); }
.rail-plan a{ display:flex; justify-content:space-between; gap:6px; font-size:10.5px; color:var(--muted); text-decoration:none; }
.rail-plan a span{ color:var(--accent-text); font-weight:600; }
.rail-plan a:hover{ color:var(--ink); }
.rail-theme{ display:flex; align-items:center; gap:10px; height:38px; padding:0 11px; border-radius:11px; border:1px solid transparent; background:transparent; color:var(--mut); font:inherit; font-size:12.5px; cursor:pointer; }
.rail-theme:hover{ background:var(--surface-2); color:var(--ink); }
.rail-theme svg{ width:17px; height:17px; }
.rail-user{ display:flex; align-items:center; gap:10px; padding:9px 10px; border-radius:12px; border:1px solid var(--line); background:var(--surface); text-decoration:none; color:var(--ink); }
.rail-user:hover{ border-color:var(--line-strong); }
.ru-avatar{ width:30px; height:30px; border-radius:50%; background:var(--ink); color:var(--bg); display:grid; place-items:center; font-size:11px; font-weight:700; }
.ru-copy{ display:grid; line-height:1.15; }
.ru-copy b{ font-size:12.5px; }
.ru-copy small{ font-size:10.5px; color:var(--muted); max-width:150px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.rail-signout{ display:flex; align-items:center; justify-content:center; gap:7px; width:100%; height:32px; border-radius:10px; border:1px solid transparent; background:transparent; color:var(--muted); font:inherit; font-size:11.5px; font-weight:550; cursor:pointer; }
.rail-signout:hover{ background:var(--surface-2); color:var(--ink); border-color:var(--line); }
.rail-signout:disabled{ opacity:.55; cursor:wait; }
.rail-signout svg{ width:14px; height:14px; }

/* ---------- 2. letterhead top bar ---------- */
body.d365-app2 .site-header{ background:color-mix(in oklab,var(--bg) 86%,transparent); }
body.d365-app2 .site-header .shell.hdr{ max-width:none; padding-left:var(--rail-pad); padding-right:var(--rail-pad); gap:18px; }
body.d365-app2 .appbar-context{ display:flex; align-items:baseline; gap:9px; min-width:0; margin-right:auto; }
.abc-page{ font-family:var(--serif); font-size:18px; letter-spacing:-.02em; color:var(--ink); white-space:nowrap; }
.abc-sep{ color:var(--line-strong); }
.abc-ws{ font-size:11.5px; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
body.d365-app2 .hdr-actions{ gap:8px; }
.appbar-search{
  display:flex; align-items:center; gap:8px; height:38px; padding:0 11px 0 12px;
  border-radius:999px; border:1px solid var(--line); background:var(--surface);
  color:var(--mut); font:inherit; font-size:12.5px; cursor:pointer; box-shadow:var(--pm-lift-1);
  transition:border-color .2s var(--pm-ease), color .2s var(--pm-ease), transform .2s var(--pm-ease);
}
.appbar-search:hover{ border-color:var(--line-strong); color:var(--ink); transform:translateY(-1px); }
.appbar-search svg{ width:16px; height:16px; }
.appbar-search kbd{ font-family:var(--mono); font-size:10px; color:var(--faint); border:1px solid var(--line); border-radius:5px; padding:1px 5px; background:var(--surface-2); }
@media (min-width:1150px){
  body.d365-app2 .site-header .brand,
  body.d365-app2 .site-header .nav-links,
  body.d365-app2 .site-header .menu-btn{ display:none!important; }
  body.d365-app2 .site-header{ border-bottom:1px solid var(--line); }
  body.d365-app2 .site-header .theme-toggle,
  body.d365-app2 .site-header .avatar{ width:38px; height:38px; }
}
@media (max-width:1149px){
  .d365-rail{ display:none; }
  body.d365-app2 .appbar-context{
    display:flex!important; flex:1 1 auto; min-width:0; margin:0 4px;
  }
  body.d365-app2 .appbar-context .abc-page{
    font-size:14px; max-width:100%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  }
  body.d365-app2 .appbar-context .abc-sep,
  body.d365-app2 .appbar-context .abc-ws{ display:none; }
  body.d365-app2 .appbar-search span,
  body.d365-app2 .appbar-search kbd{ display:none; }
  body.d365-app2 .appbar-search{ width:38px; padding:0; justify-content:center; }
}

/* ---------- 3. content rhythm ---------- */
@media (min-width:1150px){
  body.d365-app2 .app-body>.shell{ max-width:1180px!important; padding-left:var(--rail-pad); padding-right:var(--rail-pad); }
  body.d365-app2.chrome-port .page{ max-width:1280px; padding-left:var(--rail-pad); padding-right:var(--rail-pad); }
}
body.d365-app2 .app-top, body.d365-app2 .page-head{ margin-top:26px; }
body.d365-app2 .app-body, body.d365-app2 .chrome-port .page{ padding-bottom:72px; }
body.d365-app2 .page-head h1, body.d365-app2 .app-top h1{ font-family:var(--serif); font-weight:500; letter-spacing:-.035em; }
body.d365-app2 .page-sub, body.d365-app2 .date{ color:var(--muted); }

/* demo ribbon sits right of the rail */
html.d365-demo body.d365-app2 .demo-ribbon{ left:var(--rail-w); }
@media (max-width:1149px){ html.d365-demo body.d365-app2 .demo-ribbon{ left:0; } }

/* ---------- 4. morning brief ---------- */
.brief-hero{
  position:relative; display:block; padding:30px 0 26px; margin:8px 0 4px; border-bottom:1px solid var(--line);
}
.brief-copy{max-width:820px}
.brief-eyebrow{ display:flex; align-items:center; gap:9px; font-size:10.5px; letter-spacing:.16em; text-transform:uppercase; color:var(--accent-text); font-weight:700; margin-bottom:12px; }
.brief-eyebrow .pulse{ width:7px; height:7px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 0 rgba(var(--pm-ink-shadow),.3); position:relative; }
.brief-eyebrow .pulse::after{ content:""; position:absolute; inset:-4px; border-radius:50%; border:1px solid var(--accent-line); }
.brief-hero h1{ font-family:var(--serif); font-size:clamp(34px,3.5vw,50px); line-height:1.02; letter-spacing:-.04em; font-weight:500; margin:0 0 12px; }
.brief-lede{ max-width:46ch; font-size:15px; line-height:1.55; color:var(--mut); margin:0 0 18px; }
.brief-meta{ display:flex; gap:7px; flex-wrap:wrap; }
.brief-meta span{ font-size:11.5px; padding:6px 10px; border-radius:999px; border:1px solid var(--line); background:var(--surface); color:var(--muted); box-shadow:var(--pm-lift-1); }
.brief-meta span:first-child{ color:var(--accent-text); border-color:var(--accent-line); background:var(--accent-soft); font-weight:600; }
@media (prefers-reduced-motion:no-preference){
  .brief-eyebrow,.brief-hero h1,.brief-lede,.brief-meta{ animation:pm-rise .6s var(--pm-ease) both; }
  .brief-hero h1{ animation-delay:.06s } .brief-lede{ animation-delay:.12s } .brief-meta{ animation-delay:.18s }
}
@media (max-width:900px){ .brief-hero{ grid-template-columns:1fr; gap:18px; } }

/* dashboard quiet toolbar (the old title row) */
body.d365-app2 .app-top .title-row h1{ display:none; }
body.d365-app2 .app-top .title-row{ margin:0; }
body.d365-app2 .app-top{ align-items:center; padding-top:14px; }
body.d365-app2 .app-top .plan-chip{ margin:0; }
body.d365-app2 .kpi{ border-radius:18px; padding:18px 20px 16px; }
body.d365-app2 .kpi b{ font-family:var(--serif); font-size:38px; line-height:1; letter-spacing:-.035em; font-weight:500; }
body.d365-app2 .kpi-top{ font-size:11px; letter-spacing:.05em; text-transform:uppercase; color:var(--muted); }
body.d365-app2 .panel{ border-radius:18px; }
body.d365-app2 .panel-head{ padding-bottom:10px; }
body.d365-app2 .attention-list .ys-row{ border-radius:10px; }
body.d365-app2 .attention-list .ys-row:hover{ background:var(--surface-2); }

/* ---------- 5. settings as index cards ---------- */
.settings-toc{ display:flex; gap:6px; flex-wrap:wrap; padding:10px 0 16px; position:sticky; top:calc(var(--bar-h) + var(--demo-bar,0px)); z-index:18; background:linear-gradient(var(--bg) 72%,transparent); }
.settings-toc a{ font-size:11.5px; font-weight:600; color:var(--mut); text-decoration:none; padding:6px 11px; border-radius:999px; border:1px solid var(--line); background:var(--surface); }
.settings-toc a:hover{ color:var(--ink); border-color:var(--line-strong); }
.settings-toc a.is-on{ color:var(--accent-text); border-color:var(--accent-line); background:var(--accent-soft); }
body.d365-app2 .settings-sections{
  display:grid!important; grid-template-columns:1fr 1fr; gap:16px; align-items:start;
  border:0!important; background:transparent!important; box-shadow:none!important; padding:0!important; border-radius:0!important;
}
.settings-sections .set-block{
  position:relative; margin:0!important; padding:22px!important; border:1px solid var(--line)!important;
  border-radius:18px; background:var(--surface); box-shadow:var(--pm-lift-1); break-inside:avoid;
}
.settings-sections .set-block::after{ counter-increment:setcard; content:"0" counter(setcard); position:absolute; right:20px; top:18px; font-family:var(--mono); font-size:10px; letter-spacing:.08em; color:var(--faint); }
.settings-sections{counter-reset:setcard;}
.settings-sections #checks,.settings-sections #automations{ grid-column:1/-1; }
.settings-sections #checks{ display:grid; grid-template-columns:1fr 1fr; column-gap:26px; }
.settings-sections #checks .set-head,.settings-sections #checks h2,.settings-sections #checks>p{ grid-column:1/-1; }
.settings-sections #automations{ display:grid; grid-template-columns:1fr 1fr; column-gap:26px; }
.settings-sections #automations .set-head,.settings-sections #automations h2,.settings-sections #automations>p,.settings-sections #automations .soft-note,.settings-sections #automations .set-count{ grid-column:1/-1; }
.settings-sections .set-head{ font-size:10.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--accent-text); font-weight:700; margin-bottom:8px; }
.settings-sections .set-head svg{ color:var(--accent); }
.settings-sections .set-block h2{ font-family:var(--serif); font-size:25px; font-weight:500; letter-spacing:-.03em; margin:2px 0 4px; display:flex; align-items:baseline; gap:10px; flex-wrap:wrap; }
.set-count{ font-family:var(--sans); font-size:10px; letter-spacing:.05em; color:var(--muted); font-weight:600; border:1px solid var(--line); border-radius:999px; padding:3px 8px; }
.settings-sections .set-block>p{ color:var(--muted); font-size:13px; margin:0 0 10px; }
.settings-sections .setting{ padding:13px 10px; border-radius:11px; border-bottom:1px solid var(--line); transition:background .18s ease; }
.settings-sections .setting:last-child{ border-bottom:0; }
.settings-sections .setting:hover{ background:var(--surface-2); }
.settings-sections .setting .st b{ font-size:13.5px; }
.settings-sections .setting .st p{ font-size:12px; color:var(--muted); }
@media (max-width:1279px){ .settings-sections #checks,.settings-sections #automations{ grid-template-columns:1fr; } }
@media (max-width:1000px){ body.d365-app2 .settings-sections{ grid-template-columns:1fr; } .settings-sections #checks,.settings-sections #automations{ grid-column:auto; } .settings-toc{ top:calc(58px + var(--demo-bar,0px)); } }

/* ---------- 6. workspace dossier ---------- */
body.d365-app2 .ws-card,body.d365-app2 .ws-list,body.d365-app2 .ws-detail{ border-radius:18px; box-shadow:var(--pm-lift-1); }
body.d365-app2 .ws-row{ border-radius:10px; }
body.d365-app2 .ws-row:hover{ background:var(--surface-2); }
@media (min-width:1150px){
  body.d365-app2 .ws-detail{ position:sticky; top:calc(var(--bar-h) + var(--demo-bar,0px) + 16px); align-self:start; }
  body.d365-app2 .topbar{ top:calc(var(--bar-h) + var(--demo-bar,0px)); }
  body.d365-app2 .rail{ display:none; }
}
body.d365-app2 .page-title{ font-family:var(--serif); font-weight:500; letter-spacing:-.035em; }
body.d365-app2 .ws-list-head{ position:sticky; top:calc(var(--bar-h) + var(--demo-bar,0px)); z-index:12; backdrop-filter:blur(8px); }

/* ---------- 7. automations board ---------- */
body.d365-app2 .sb-grid{ gap:14px; }
body.d365-app2 .sb{ border-radius:16px; box-shadow:var(--pm-lift-1); transition:transform .22s var(--pm-ease),box-shadow .22s var(--pm-ease),border-color .2s ease; }
body.d365-app2 .sb:hover{ transform:translateY(-2px); box-shadow:var(--pm-lift-2); }
body.d365-app2 .sb-head{ font-size:13.5px; }
body.d365-app2 .role-chip,.d365-app2 .statusline{ border-radius:10px; }
body.d365-app2 .tabs .tab.is-on{ box-shadow:var(--pm-lift-1); }
@media (min-width:1150px){ body.d365-app2 .topbar{ background:color-mix(in oklab,var(--bg) 86%,transparent); } }

/* ---------- 8. connect + billing ---------- */
body.d365-app2 .choices{ gap:14px; }
body.d365-app2 .choice{ border-radius:18px; padding:20px; box-shadow:var(--pm-lift-1); transition:transform .22s var(--pm-ease),box-shadow .22s var(--pm-ease); }
body.d365-app2 .choice:hover{ transform:translateY(-2px); box-shadow:var(--pm-lift-2); }
body.d365-app2 .choice.is-on{ border-color:var(--accent-line); box-shadow:0 0 0 1px var(--accent-line),var(--pm-lift-2); }
body.d365-app2 .aside-card{ position:sticky; top:calc(var(--bar-h) + var(--demo-bar,0px) + 16px); border-radius:18px; }
body.d365-app2 .value-panel,body.d365-app2 .panel{ box-shadow:var(--pm-lift-1); }

/* ---------- 9. command palette ---------- */
.app-palette{ margin:auto; width:min(560px,calc(100vw - 28px)); border:0; background:transparent; padding:0; }
.app-palette::backdrop{ background:rgba(12,10,8,.42); backdrop-filter:blur(3px); }
.ap-box{ background:var(--surface); border:1px solid var(--line); border-radius:18px; box-shadow:0 40px 90px -30px rgba(var(--pm-ink-shadow),.55); overflow:hidden; }
.ap-field{ display:flex; align-items:center; gap:10px; padding:14px 16px; border-bottom:1px solid var(--line); }
.ap-field svg{ width:17px; height:17px; color:var(--faint); }
.ap-field input{ flex:1; border:0; background:transparent; color:var(--ink); font:inherit; font-size:14px; outline:none; }
.ap-field kbd,.ap-foot{ font-family:var(--mono); font-size:10px; color:var(--faint); }
.ap-field kbd{ border:1px solid var(--line); border-radius:5px; padding:2px 5px; }
.ap-results{ max-height:330px; overflow:auto; padding:6px; }
.ap-row{ display:flex; align-items:center; gap:11px; width:100%; text-align:left; border:0; background:transparent; padding:9px 10px; border-radius:10px; color:var(--ink); font:inherit; cursor:pointer; }
.ap-row:hover,.ap-row.on{ background:var(--surface-2); }
.ap-ico{ width:30px; height:30px; border-radius:8px; display:grid; place-items:center; background:var(--surface-3); color:var(--mut); }
.ap-ico svg{ width:16px; height:16px; }
.ap-copy{ display:grid; line-height:1.2; }
.ap-copy b{ font-size:13px; font-weight:600; }
.ap-copy small{ font-size:10.5px; color:var(--muted); }
.ap-enter{ margin-left:auto; color:var(--faint); font-size:11px; }
.ap-empty{ padding:26px 16px; text-align:center; color:var(--muted); font-size:12.5px; }
.ap-foot{ display:flex; gap:14px; padding:9px 16px; border-top:1px solid var(--line); background:var(--surface-2); }

/* ---------- 10. small details ---------- */
[data-tip]{ position:relative; }
@media (hover:hover){
  [data-tip]:hover::after{ content:attr(data-tip); position:absolute; left:0; bottom:calc(100% + 7px); z-index:60; white-space:nowrap; font-family:var(--sans); font-size:10.5px; font-weight:600; letter-spacing:.01em; color:var(--bg); background:var(--ink); padding:5px 8px; border-radius:6px; box-shadow:var(--pm-lift-1); pointer-events:none; }
}
body.d365-app2 :is(a,button,input,select,summary):focus-visible{ outline:2px solid var(--accent); outline-offset:2px; border-radius:8px; }
body.d365-app2 ::selection{ background:var(--accent-soft); color:var(--accent-text); }
body.d365-app2 .table-scroll thead th{ position:sticky; top:0; background:var(--surface); z-index:2; }

/* ---------- 11. mobile ---------- */
@media (max-width:1149px){
  body.d365-app2{ --rail-pad:18px; }
  body.d365-app2 .app-body>.shell{ padding-left:18px; padding-right:18px; }
  body.d365-app2 .brief-hero h1{ font-size:clamp(28px,7vw,38px); }
  body.d365-app2 .brief-lede{ font-size:14px; }
  body.d365-app2 .app-top{ flex-wrap:wrap; gap:10px; margin-top:16px; }
  body.d365-app2 .page-head h1{ font-size:clamp(28px,7vw,38px); }
  body.d365-app2 .kpi b{ font-size:32px; }
  body.d365-app2 .settings-sections .set-block{ padding:18px!important; }
  body.d365-app2 .ws-detail{ position:static; }
  body.d365-app2 .aside-card{ position:static; }
}
@media (prefers-reduced-motion:reduce){
  .brief-eyebrow,.brief-hero h1,.brief-lede,.brief-meta
  body.d365-app2 .sb:hover,body.d365-app2 .choice:hover,.rail-workspace:hover{ transform:none; }
}

/* legacy chrome-bridge topbar: match the letterhead bar */
body.d365-app2.chrome-port .topbar{
  height:64px; padding:0 var(--rail-pad); background:color-mix(in oklab,var(--bg) 86%,transparent);
  border-bottom:1px solid var(--line); backdrop-filter:saturate(160%) blur(14px);
  top:calc(var(--demo-bar,0px));
}
body.d365-app2.chrome-port .topbar .appbar-context{ display:flex; align-items:baseline; gap:9px; margin-right:auto; }
body.d365-app2.chrome-port .topbar .top-actions{ gap:8px; }
body.d365-app2.chrome-port .topbar .search-btn{
  display:flex!important; align-items:center; gap:8px; height:38px; padding:0 12px;
  border-radius:999px; border:1px solid var(--line); background:var(--surface); color:var(--mut);
  box-shadow:var(--pm-lift-1); font:inherit; font-size:12.5px; cursor:pointer;
}
body.d365-app2.chrome-port .topbar .search-btn kbd{ font-family:var(--mono); font-size:10px; color:var(--faint); border:1px solid var(--line); border-radius:5px; padding:1px 5px; }
body.d365-app2.chrome-port .topbar .search-btn:hover{ border-color:var(--line-strong); color:var(--ink); }
body.d365-app2.chrome-port .topbar .mobile-brand{ display:none; }
@media (max-width:1149px){
  body.d365-app2.chrome-port .topbar{ padding:0 16px; height:56px; }
  body.d365-app2.chrome-port .topbar .mobile-brand{ display:flex; }
  body.d365-app2.chrome-port .topbar .search-label,
  body.d365-app2.chrome-port .topbar .search-btn kbd{ display:none; }
  body.d365-app2.chrome-port .topbar .search-btn{ width:38px; padding:0; justify-content:center; }
}
/* remove the sticky list header that overlapped the first job on chrome pages */
body.d365-app2 .ws-list-head{ position:static; backdrop-filter:none; }
/* dashboard: the brief already carries date + scan meta */
body.d365-app2 .app-top .date,
body.d365-app2 .app-top .dash-meta{ display:none; }

/* settings: connection band, index cards, no duplicate shortcut row */
body.d365-app2 .setup-jump{ display:none; }
.settings-connection{ display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:0 0 16px; }
.settings-connection>.panel{ margin:0!important; border-radius:18px; box-shadow:var(--pm-lift-1); }
.settings-connection>#hub-works{ grid-column:1/-1; }
@media (max-width:1000px){ .settings-connection{ grid-template-columns:1fr; } .settings-connection>#hub-works{ grid-column:auto; } }
/* rail plan: no invented usage meter */
.rail-plan .rp-meter{ display:none; }
.rail-plan a{ margin-top:9px; }

/* dashboard: the brief owns the date + scan meta */
body.d365-app2 .app-top .date,
body.d365-app2 .dash-meta{ display:none; }

/* mobile app bar: one dark surface and a compact page context */
@media (max-width:1149px){
  body.d365-app2 .site-header{
    background:#0b0c10;
    border-bottom:1px solid rgba(255,255,255,.10);
    backdrop-filter:none; -webkit-backdrop-filter:none;
  }
  body.d365-app2 .site-header .word span{ color:#f7f7f9; }
  body.d365-app2 .site-header .word span:last-child{ color:rgba(255,255,255,.62); }
  body.d365-app2 .site-header .mark{ box-shadow:none; }
  body.d365-app2 .site-header .brand{ min-width:0; max-width:42vw; }
  body.d365-app2 .site-header .brand .word{ overflow:hidden; }
  body.d365-app2 .site-header .appbar-context .abc-page{ color:#f7f7f9; }
}
/* settings must never widen a phone: let every card shrink */
.settings-connection{ grid-template-columns:repeat(2,minmax(0,1fr)); }
.settings-connection>*{ min-width:0; }
.settings-connection .row{ flex-wrap:wrap; }
.settings-connection input,.settings-connection .input{ min-width:0; width:100%; }
.settings-sections>*{ min-width:0; }
.settings-sections .row,.settings-sections .between{ flex-wrap:wrap; }
@media (max-width:1000px){ .settings-connection{ grid-template-columns:minmax(0,1fr); } }
body.d365-app2 .brief-hero{padding-top:22px;}
@media (max-width:560px){
  body.d365-app2 .brief-hero{padding-top:16px;}
  body.d365-app2 .brief-meta span{ font-size:11px; }
  body.d365-app2 .app-top{ margin-top:8px; }
  body.d365-app2 .app-top .title-row{ display:none; }
}

/* legacy chrome-bridge topbar follows the same dark app bar */
@media (max-width:1149px){
  body.d365-app2.chrome-port .topbar{ background:#0b0c10!important; border-bottom:1px solid rgba(255,255,255,.10); }
  body.d365-app2.chrome-port .topbar .mobile-brand .name,
  body.d365-app2.chrome-port .topbar .mobile-brand .num{ color:#f7f7f9!important; }
  body.d365-app2.chrome-port .topbar .mobile-brand .num{ color:rgba(255,255,255,.62)!important; }
  body.d365-app2.chrome-port .topbar .mobile-brand .mark{ background:var(--accent); color:#fff; }
  body.d365-app2.chrome-port .topbar .search-btn,
  body.d365-app2.chrome-port .topbar .icon-btn{ color:#f7f7f9; background:rgba(255,255,255,.08); border-color:rgba(255,255,255,.18); }
  body.d365-app2.chrome-port .topbar .appbar-context{ display:flex!important; flex:1 1 auto; min-width:0; margin-left:2px; }
  body.d365-app2.chrome-port .topbar .appbar-context .abc-sep,
  body.d365-app2.chrome-port .topbar .appbar-context .abc-ws{ display:none; }
  body.d365-app2.chrome-port .topbar .appbar-context .abc-page{ font-size:14px; color:#f7f7f9; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
}

body.d365-app2 .rail-workspace{ cursor:default; }
body.d365-app2 .rail-workspace:hover{ transform:none; }
@media (max-width:560px){ body.d365-app2 .app-top .title-row{ display:none!important; } }

/* the brief is the header; the legacy title row is gone */
body.d365-app2 .app-top>div:first-child{ display:none!important; }
body.d365-app2 .app-top{ justify-content:flex-end; }
@media (max-width:560px){ body.d365-app2 .app-top{ justify-content:stretch; } }
@media (prefers-reduced-motion:no-preference){
  body.d365-app2 .app-body> .shell,body.d365-app2.chrome-port .page{ animation:app-fade .5s var(--pm-ease) both; }
  @keyframes app-fade{ from{ opacity:0; } to{ opacity:1; } }
}

/* overdue pill meets AA on its tint */
body.d365-app2 .ws-pill.over{ color:#8f340b; }
html[data-theme="dark"] body.d365-app2 .ws-pill.over{ color:#ffb083; }

/* shortcut hint is decorative, not part of the button's name */
.appbar-search::after{ content:"⌘K"; font-family:var(--mono); font-size:10px; color:var(--faint); border:1px solid var(--line); border-radius:5px; padding:1px 5px; background:var(--surface-2); line-height:1.5; }
@media (max-width:1149px){ .appbar-search::after{ display:none; } }

/* ---------- 12. onboarding flow inside the workspace shell ---------- */
body.d365-app2 .flow-head>.shell,
body.d365-app2 .flow>.shell,
body.d365-app2 .req-page .shell{ max-width:1180px; padding-left:var(--rail-pad); padding-right:var(--rail-pad); }
body.d365-app2 .flow-head{ padding-top:20px; padding-bottom:4px; border-bottom:1px solid var(--line); background:linear-gradient(180deg,var(--bg),transparent); }
body.d365-app2 .flow{ padding-top:26px; }
body.d365-app2 .flow-grid{ grid-template-columns:minmax(0,1fr) minmax(320px,360px); gap:24px; }
body.d365-app2 .flow-grid>.aside-card{ position:sticky; top:calc(var(--bar-h) + var(--demo-bar,0px) + 16px); }
body.d365-app2 .stepper{ background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:10px 14px; box-shadow:var(--pm-lift-1); }
body.d365-app2 .flow-head .wiz-rail{ padding:2px 0 4px; }
body.d365-app2 .flow-head .wiz-rail li{ background:var(--surface); box-shadow:var(--pm-lift-1); }
body.d365-app2 .flow .panel{ border-radius:18px; box-shadow:var(--pm-lift-1); }
body.d365-app2 .cycle{ background:var(--surface-2); border-radius:999px; padding:4px; }
body.d365-app2 .cycle button{ border-radius:999px; }
body.d365-app2 .map-grid{ grid-template-columns:minmax(0,1.15fr) minmax(340px,.85fr); }
body.d365-app2 .map-grid .sheet-wrap{ max-height:380px; }
body.d365-app2 .map-side .panel{ padding:18px 20px; }
body.d365-app2 .map-head{ margin-bottom:10px; }
body.d365-app2 .map-back{ margin-top:16px; }
body.d365-app2 .success-wrap{ max-width:720px; margin:0 auto; }
body.d365-app2 .requirements .req-page{ padding-top:10px; }
@media (max-width:900px){
  body.d365-app2 .flow-grid{ grid-template-columns:1fr; }
  body.d365-app2 .flow-grid>.aside-card{ position:static; }
  body.d365-app2 .map-grid{ grid-template-columns:1fr; }
  body.d365-app2 .map-grid .map-side{ order:-1; }
}
@media (max-width:640px){
  body.d365-app2 .map-fields{ grid-template-columns:1fr!important; }
  body.d365-app2 .flow-head>.shell,
  body.d365-app2 .flow>.shell,
  body.d365-app2 .req-page .shell{ padding-left:16px; padding-right:16px; }
  body.d365-app2 .stepper{ overflow-x:auto; flex-wrap:nowrap; }
  body.d365-app2 .stepper .stepdot span{ white-space:nowrap; }
}

/* onboarding: fixed continue bar must clear the binder rail */
@media (min-width:1150px){
  body.d365-app2 .map-cta{ left:var(--rail-w); padding-left:var(--rail-pad); padding-right:var(--rail-pad); }
}
body.d365-app2 .map-cta{ padding-bottom:max(10px,env(safe-area-inset-bottom)); }
body.d365-app2 .map-grid{ grid-template-columns:minmax(0,1fr) minmax(0,380px); }
@media (max-width:900px){ body.d365-app2 .map-grid{ grid-template-columns:1fr; } }
body.d365-app2 .start-summary,body.d365-app2 .aside-card{ will-change:transform; }

/* ---------- 13. onboarding micro-polish ---------- */
body.d365-app2 .flow-title{ font-size:clamp(30px,3.4vw,40px); letter-spacing:-.035em; }
body.d365-app2 .flow-sub{ color:var(--muted); max-width:70ch; }
body.d365-app2 .flow .soft-note{ background:var(--surface-2); border:1px solid var(--line); border-radius:12px; padding:12px 14px; }
body.d365-app2 .flow .panel-title{ font-family:var(--serif); font-weight:500; letter-spacing:-.02em; }
body.d365-app2 .flow .aside-title{ font-size:11px; letter-spacing:.14em; text-transform:uppercase; color:var(--accent-text); font-weight:700; }
body.d365-app2 .flow .summary-total{ font-size:15px; }
body.d365-app2 .flow .summary-total span:last-child{ font-family:var(--serif); font-size:26px; letter-spacing:-.03em; }
body.d365-app2 .flow .summary-line{ padding:9px 0; }
body.d365-app2 .flow .aside-card{ border-radius:18px; box-shadow:var(--pm-lift-2); }
body.d365-app2 .flow .cycle button.on{ background:var(--accent); color:#1a1206; }
body.d365-app2 .stepper .stepdot.active i{ background:var(--accent); color:#1a1206; box-shadow:0 0 0 4px var(--accent-soft); }
body.d365-app2 .stepper .stepbar{ flex:1; }
body.d365-app2 .map-head-actions{ flex-wrap:wrap; }
body.d365-app2 .map-side .panel+.panel{ margin-top:12px; }
body.d365-app2 .map-row .select{ background:var(--surface); }
body.d365-app2 .map-cta{ background:color-mix(in oklab,var(--bg) 92%,transparent); backdrop-filter:blur(12px); border-top:1px solid var(--line); }
body.d365-app2 .success-wrap .check-big{ box-shadow:var(--pm-lift-2); }
body.d365-app2 .req-aside{ position:sticky; top:calc(var(--bar-h) + var(--demo-bar,0px) + 16px); }
body.d365-app2 .req-panel{ border-radius:18px; box-shadow:var(--pm-lift-1); }
@media (max-width:900px){
  body.d365-app2 .req-aside{ position:static; }
  body.d365-app2 .flow-title{ font-size:clamp(26px,7vw,34px); }
}

/* a11y polish */
body.d365-app2 .btn-block{ min-height:48px; }
body.d365-app2 .cycle button.on{ color:#fff8ef; }
@media (max-width:1149px){
  body.d365-app2.chrome-port .site-header .brand .word span:first-child{ color:#f7f7f9!important; }
  body.d365-app2.chrome-port .site-header .brand .word span:last-child{ color:rgba(255,255,255,.62)!important; }
}

/* active billing cycle stays legible on the accent fill */
body.d365-app2 .flow .cycle button.on{ color:#fff8ef!important; }

/* primary flow action: comfortable target, never clipped by a sticky bar */
body.d365-app2 #connect-continue{ min-height:52px; position:relative; z-index:2; }

/* onboarding step pills scroll instead of wrapping at phone widths */
@media (max-width:760px){
  /* Four steps must all be visible on a phone; hidden-scroll rails lose steps. */
  body.d365-app2 .flow-head .wiz-rail,
  body.d365-app2 .flow .wiz-rail{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(120px,1fr));
    gap:6px;
    overflow:visible;
    padding-bottom:2px;
    scrollbar-width:auto;
  }
  body.d365-app2 .flow-head .wiz-rail li,
  body.d365-app2 .flow .wiz-rail li{ flex:1 1 auto; min-width:0; }
}

/* map: avoid layout shift while demo/API rows stream in */
html.map-pending .map-grid{ visibility:hidden; }
html[data-theme="dark"] body.d365-app2 .flow .cycle button.on{ color:#1a1206!important; }
@media (prefers-color-scheme:dark){
  html:not([data-theme="light"]) body.d365-app2 .flow .cycle button.on{ color:#1a1206!important; }
}

/* connect is a focused setup step: no bottom tabbar to cover the primary action */
body.d365-app2:has(.connect-page) .tabbar{ display:none!important; }
body.d365-app2.has-tabbar:has(.connect-page){ padding-bottom:40px!important; }

/* rail plan meter shown only when a real limit exists */
.rail-plan .rp-meter[hidden]{ display:none; }
.rail-plan .rp-meter:not([hidden]){ display:block; }
.rw-copy b,.ru-copy b{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* self-selling value note (free plan, dashboard only) */
.value-nudge{
  display:grid; grid-template-columns:minmax(0,1fr) auto; gap:18px; align-items:center;
  margin:16px 0 0; padding:16px 18px; border-radius:18px;
  border:1px solid var(--accent-line);
  background:linear-gradient(115deg,var(--accent-soft),var(--surface) 68%);
  box-shadow:var(--pm-lift-1);
}
.vn-kicker{ display:flex; align-items:center; gap:8px; font-size:10px; letter-spacing:.14em; text-transform:uppercase; font-weight:700; color:var(--accent-text); }
.vn-kicker .pulse{ width:6px; height:6px; border-radius:50%; background:var(--accent); display:inline-block; }
.vn-copy b{ display:block; margin:6px 0 4px; font-family:var(--serif); font-weight:500; font-size:clamp(17px,1.8vw,22px); letter-spacing:-.02em; color:var(--ink); }
.vn-copy p{ margin:0; max-width:66ch; font-size:12.5px; line-height:1.5; color:var(--mut); }
.vn-actions{ display:flex; flex-direction:column; align-items:stretch; gap:7px; min-width:190px; }
.vn-dismiss{ border:0; background:transparent; font:inherit; font-size:11px; color:var(--muted); cursor:pointer; padding:3px; }
.vn-dismiss:hover{ color:var(--ink); }
@media (max-width:820px){ .value-nudge{ grid-template-columns:1fr; } .vn-actions{ min-width:0; } }

/* the rich value note replaces the older thin free banner */
body:has(.value-nudge) #free-banner{ display:none!important; }

/* phone app bar: mark + page title, no duplicate wordmark or language pill */
@media (max-width:600px){
  body.d365-app2 .site-header .brand .word{ display:none; }
  body.d365-app2 .site-header .lang-sel{ display:none; }
  body.d365-app2 .site-header .brand{ max-width:none; }
  body.d365-app2 .site-header .appbar-context{ margin:0 2px; }
  body.d365-app2 .site-header .appbar-context .abc-page{ font-size:15px; }
}

/* page title belongs to every app page except the dashboard brief */
body.d365-app2 .app-top:not(:has(.title-row))>div:first-child{display:block!important}
body.d365-app2 .app-top:not(:has(.title-row)){justify-content:space-between;align-items:flex-end;gap:16px}

body.d365-app2 .app-top:not(:has(.title-row)) .date{display:block!important}

/* At 320px the app bar title needs a hair less width to avoid ellipsis. */
@media (max-width:360px){
  body.d365-app2 .site-header .appbar-context .abc-page{font-size:14.5px;letter-spacing:-.03em}
}

/* ---- assets/attention.css ---- */
/* ==========================================================================
   Deadline 365 — attention system
   One language for every state that needs a human decision:
   critical / attention / clear / information. Colour is always paired with
   an icon and words so it survives colour-blindness, dark mode and print.
   ========================================================================== */

:root {
  --attn-error: #a3261c;
  --attn-error-bg: color-mix(in srgb, #a3261c 11%, var(--paper, #fbf8f1));
  --attn-error-line: color-mix(in srgb, #a3261c 42%, var(--line, #dcd4c5));
  --attn-warn: #6f4300;
  --attn-warn-bg: color-mix(in srgb, #6f4300 12%, var(--paper, #fbf8f1));
  --attn-warn-line: color-mix(in srgb, #6f4300 38%, var(--line, #dcd4c5));
  --attn-ok: var(--ok, #1f5d3a);
  --attn-ok-bg: color-mix(in srgb, var(--ok, #1f5d3a) 11%, var(--paper, #fbf8f1));
  --attn-ok-line: color-mix(in srgb, var(--ok, #1f5d3a) 34%, var(--line, #dcd4c5));
  --attn-info: var(--info, #1b4f84);
  --attn-info-bg: color-mix(in srgb, var(--info, #1b4f84) 10%, var(--paper, #fbf8f1));
  --attn-info-line: color-mix(in srgb, var(--info, #1b4f84) 34%, var(--line, #dcd4c5));
}

html[data-theme="dark"] {
  --attn-error: var(--danger, #ff9d8a);
  --attn-error-bg: color-mix(in srgb, var(--danger, #ff9d8a) 14%, var(--paper, #141311));
  --attn-error-line: color-mix(in srgb, var(--danger, #ff9d8a) 36%, var(--line, #2e2a24));
  --attn-warn: var(--warn, #f0c36a);
  --attn-warn-bg: color-mix(in srgb, var(--warn, #f0c36a) 13%, var(--paper, #141311));
  --attn-warn-line: color-mix(in srgb, var(--warn, #f0c36a) 32%, var(--line, #2e2a24));
  --attn-ok: var(--ok, #9fd4b0);
  --attn-ok-bg: color-mix(in srgb, var(--ok, #9fd4b0) 12%, var(--paper, #141311));
  --attn-ok-line: color-mix(in srgb, var(--ok, #9fd4b0) 30%, var(--line, #2e2a24));
  --attn-info: var(--info, #a9c9f2);
  --attn-info-bg: color-mix(in srgb, var(--info, #a9c9f2) 12%, var(--paper, #141311));
  --attn-info-line: color-mix(in srgb, var(--info, #a9c9f2) 30%, var(--line, #2e2a24));
}

/* ---------- one flexible alert block ---------- */
.attention,
.attention-inline {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--ink-2, #57503f);
  border-radius: 12px;
  background: var(--surface, #fbf8f1);
  color: var(--ink, #1c1a17);
  padding: 13px 15px;
  font-size: 13px;
  line-height: 1.45;
}
.attention .attn-symbol {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 1px;
  background: currentColor;
  color: var(--paper, #fbf8f1);
  font: 800 12px/1 var(--sans, sans-serif);
}
.attention .attn-copy { min-width: 0; }
.attention .attn-label {
  display: block;
  font: 750 10px/1.2 var(--mono, monospace);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.attention .attn-title {
  display: block;
  color: inherit;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.attention p { margin: 3px 0 0; color: inherit; opacity: .92; font-size: 12.5px; line-height: 1.5; }
.attention .attn-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 9px; }
.attention--error { border-color: var(--attn-error-line); border-left-color: var(--attn-error); background: var(--attn-error-bg); color: var(--attn-error); }
.attention--warning { border-color: var(--attn-warn-line); border-left-color: var(--attn-warn); background: var(--attn-warn-bg); color: var(--attn-warn); }
.attention--success { border-color: var(--attn-ok-line); border-left-color: var(--attn-ok); background: var(--attn-ok-bg); color: var(--attn-ok); }
.attention--info { border-color: var(--attn-info-line); border-left-color: var(--attn-info); background: var(--attn-info-bg); color: var(--attn-info); }

/* ---------- existing banners: same four states ---------- */
.banner {
  border-width: 1px;
  border-left-width: 4px;
  border-style: solid;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 1px 0 rgba(28, 26, 23, .03);
}
.banner.warn { border-color: var(--attn-warn-line); border-left-color: var(--attn-warn); background: var(--attn-warn-bg); color: var(--attn-warn); }
.banner.danger,
.banner.error { border-color: var(--attn-error-line); border-left-color: var(--attn-error); background: var(--attn-error-bg); color: var(--attn-error); }
.banner.info { border-color: var(--attn-info-line); border-left-color: var(--attn-info); background: var(--attn-info-bg); color: var(--attn-info); }
.banner.success,
.banner.ok { border-color: var(--attn-ok-line); border-left-color: var(--attn-ok); background: var(--attn-ok-bg); color: var(--attn-ok); }
.banner b { color: inherit; font-weight: 750; }
.banner p { color: inherit; opacity: .94; }
.banner svg { color: currentColor; }
.banner .icon-btn { color: inherit; opacity: .8; }

/* ---------- inline validation + connection failures ---------- */
.form-status.error,
.connect-inline-error,
.map-error,
.wz-error.is-on,
.attention-error-text {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 11px;
  padding: 10px 12px;
  border: 1px solid var(--attn-error-line);
  border-left: 4px solid var(--attn-error);
  border-radius: 9px;
  background: var(--attn-error-bg);
  color: var(--attn-error);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
}
.form-status.error::before,
.connect-inline-error::before,
.map-error::before,
.wz-error.is-on::before {
  content: "!";
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  margin-top: 1px;
  background: var(--attn-error);
  color: var(--paper, #fbf8f1);
  font: 800 11px/1 var(--sans, sans-serif);
}
.form-status.ok {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin-top: 11px;
  padding: 10px 12px;
  border: 1px solid var(--attn-ok-line);
  border-left: 4px solid var(--attn-ok);
  border-radius: 9px;
  background: var(--attn-ok-bg);
  color: var(--attn-ok);
  font-size: 12.5px;
  font-weight: 600;
}
.form-status.ok::before {
  content: "✓";
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--attn-ok);
  color: var(--paper, #fbf8f1);
  font: 800 10px/1 var(--sans, sans-serif);
}
.wz-error { border-color: var(--attn-error-line); background: var(--attn-error-bg); color: var(--attn-error); }
.wz-error svg { color: currentColor; }

/* invalid controls read as invalid before submit, not only after */
input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"],
.input.is-invalid {
  border-color: var(--attn-error) !important;
  box-shadow: 0 0 0 3px var(--attn-error-bg);
  background: color-mix(in srgb, var(--attn-error-bg) 55%, var(--paper, #fbf8f1));
}
::placeholder { color: var(--mut, #57503f); opacity: .82; }

/* ---------- toast: label + message, not colour alone ---------- */
.toast {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(92vw, 620px);
  border-radius: 13px;
  border: 1px solid transparent;
  padding: 11px 15px 11px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  box-shadow: 0 18px 50px -24px rgba(0, 0, 0, .45);
}
.toast svg { width: 18px; height: 18px; flex: none; }
.toast .toast-copy { min-width: 0; }
.toast .toast-label {
  display: block;
  font: 750 9.5px/1.2 var(--mono, monospace);
  letter-spacing: .13em;
  text-transform: uppercase;
  opacity: .82;
  margin-bottom: 2px;
}
.toast .toast-msg { display: block; }
.toast.toast-error { background: #8f1d14; color: #fff8f4; border-color: #c2410c; }
.toast.toast-success { background: #1f5d3a; color: #f3fbf5; border-color: #3c7c57; }
.toast.toast-info { background: #1b4f84; color: #f2f7ff; border-color: #3d75a8; }
html[data-theme="dark"] .toast.toast-error { background: #ffb4a4; color: #2a0f08; border-color: #ff8f7a; }
html[data-theme="dark"] .toast.toast-success { background: #a9d8b9; color: #0e2416; border-color: #7fc09a; }
html[data-theme="dark"] .toast.toast-info { background: #bcd8f7; color: #0b2138; border-color: #8fb8e6; }
html[data-theme="dark"] .toast .toast-label { opacity: .95; }

/* ---------- compact status chips ---------- */
.status-pill,
.pill,
.tag,
.badge,
.ws-pill,
.auto-status,
.match-pill {
  border-width: 1px;
  border-style: solid;
  border-color: color-mix(in srgb, currentColor 24%, var(--line, #dcd4c5));
  font-weight: 750;
  letter-spacing: .01em;
}
.status-pill,
.pill { min-height: 27px; }
.status-pill i,
.pill i { box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 14%, transparent); }
.status-pill.neutral,
.status-pill.off { color: var(--ink-2, #3a352d); background: var(--surface-2, #f1ece1); border-color: var(--line, #dcd4c5); }
.status-pill.off { color: var(--attn-error); background: var(--attn-error-bg); border-color: var(--attn-error-line); }
.status-pill.ok,
.status-pill.success { color: var(--attn-ok); background: var(--attn-ok-bg); border-color: var(--attn-ok-line); }
.status-pill.warn { color: var(--attn-warn); background: var(--attn-warn-bg); border-color: var(--attn-warn-line); }
.status-pill.danger,
.status-pill.bad { color: var(--attn-error); background: var(--attn-error-bg); border-color: var(--attn-error-line); }
.ws-pill { border-radius: 6px; height: auto; min-height: 22px; padding: 2px 8px; font-size: 10.5px; }
.ws-pill.hot { color: var(--attn-warn); background: var(--attn-warn-bg); border-color: var(--attn-warn-line); }
.ws-pill.over { color: var(--attn-error); background: var(--attn-error-bg); border-color: var(--attn-error-line); }
.ws-pill.ok { color: var(--attn-ok); background: var(--attn-ok-bg); border-color: var(--attn-ok-line); }
.ws-pill.paused { color: var(--attn-warn); background: var(--attn-warn-bg); border-color: var(--attn-warn-line); }
.ws-due { font-weight: 700; font-size: 10.5px; }
.ws-due.hot { color: var(--attn-warn); background: var(--attn-warn-bg); border-color: var(--attn-warn-line); }
.ws-due.over { color: var(--attn-error); background: var(--attn-error-bg); border-color: var(--attn-error-line); }
.auto-status { font-size: 10.5px; border-width: 1px; }
.auto-status.live { color: var(--attn-ok); background: var(--attn-ok-bg); border-color: var(--attn-ok-line); }
.auto-status.preview { color: var(--attn-info); background: var(--attn-info-bg); border-color: var(--attn-info-line); }
.auto-status.off,
.auto-status.locked { color: var(--ink-2, #3a352d); background: var(--surface-2, #f1ece1); border-color: var(--line, #dcd4c5); }
.auto-status.clear { color: var(--attn-ok); background: var(--attn-ok-bg); border-color: var(--attn-ok-line); }
.match-pill { border-radius: 6px; font-size: 11px; padding: 4px 8px; }
.match-pill.matched { color: var(--attn-ok); background: var(--attn-ok-bg); border-color: var(--attn-ok-line); }
.match-pill.todo { color: var(--attn-warn); background: var(--attn-warn-bg); border-color: var(--attn-warn-line); }

/* attention list rows: flag + tinted surface + label colour */
.attn { border-radius: 8px; margin: 0 -4px; padding: 10px 6px; }
.attn.danger { background: color-mix(in srgb, var(--attn-error-bg) 65%, transparent); }
.attn.warn { background: color-mix(in srgb, var(--attn-warn-bg) 60%, transparent); }
.attn.danger .attn-flag { background: var(--attn-error); }
.attn.warn .attn-flag { background: var(--attn-warn); }
.attn.danger .attn-when b { color: var(--attn-error); }
.attn.warn .attn-when b { color: var(--attn-warn); }

/* KPI cards and due counters */
.kpi.danger {
  border-color: var(--attn-error-line);
  border-left: 4px solid var(--attn-error);
  background: linear-gradient(180deg, var(--attn-error-bg), var(--surface) 78%);
}
.kpi.danger b { color: var(--attn-error); }
.ws-paused-note {
  border-color: var(--attn-warn-line);
  background: var(--attn-warn-bg);
  color: var(--attn-warn);
}
.ws-paused-note b { color: inherit; }

/* account / plan attention */
.free-banner,
.banner.info#free-banner { border-left-color: var(--attn-info); }
.value-nudge { border-left: 4px solid var(--accent); }
.value-nudge .vn-kicker { color: var(--attn-warn); }

/* plain-language colour key (help page and reusable) */
.color-key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 11.5px;
  color: var(--body);
}
.color-key b { font: 750 9.5px/1 var(--mono, monospace); letter-spacing: .11em; text-transform: uppercase; color: var(--mut); margin-right: 2px; }
.color-key span { display: inline-flex; align-items: center; gap: 6px; }
.color-key i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.color-key .k-error i { background: var(--attn-error); }
.color-key .k-warn i { background: var(--attn-warn); }
.color-key .k-ok i { background: var(--attn-ok); }
.color-key .k-info i { background: var(--attn-info); }
.color-key .k-action i { background: var(--accent, #c2410c); }
.color-key .k-neutral i { background: var(--faint, #746c60); }

/* visually hidden utility for extra context on colour-only marks */
.attn-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 620px) {
  .attention, .banner { padding: 12px; }
  .toast { font-size: 12.5px; }
  .status-pill, .pill { font-size: 11.5px; }
}

/* A banner without an inline icon gets the same symbol as the state it carries. */
.banner.warn:not(:has(svg))::before,
.banner.danger:not(:has(svg))::before,
.banner.info:not(:has(svg))::before,
.banner.success:not(:has(svg))::before {
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 1px;
  color: var(--paper, #fbf8f1);
  font: 800 12px/1 var(--sans, sans-serif);
}
.banner.warn:not(:has(svg))::before { content: "!"; background: var(--attn-warn); }
.banner.danger:not(:has(svg))::before { content: "!"; background: var(--attn-error); }
.banner.info:not(:has(svg))::before { content: "i"; background: var(--attn-info); font-family: var(--serif, Georgia, serif); font-style: italic; }
.banner.success:not(:has(svg))::before { content: "✓"; background: var(--attn-ok); }

/* empty validation boxes must not render as mystery icons */
.form-status:empty,
.connect-inline-error:empty,
.map-error:empty { display: none !important; }
[hidden].attention,
[hidden].banner,
[hidden].form-status { display: none !important; }

/* everything that carries a state label uses the same four families */
.pill.warn, .tag.warn, .badge.warn, .chip.warn { color: var(--attn-warn); background: var(--attn-warn-bg); border-color: var(--attn-warn-line); }
.pill.bad, .pill.danger, .pill.error, .tag.bad, .badge.bad, .chip.bad { color: var(--attn-error); background: var(--attn-error-bg); border-color: var(--attn-error-line); }
.pill.ok, .pill.success, .tag.ok, .badge.ok, .chip.ok { color: var(--attn-ok); background: var(--attn-ok-bg); border-color: var(--attn-ok-line); }
.pill.info, .tag.info, .badge.info, .chip.info { color: var(--attn-info); background: var(--attn-info-bg); border-color: var(--attn-info-line); }

/* loading and in-progress states are visible, never just a blank area */
.auto-loading,
.loading-line,
[aria-busy="true"],
.is-loading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--attn-info);
  font-size: 12.5px;
  font-weight: 600;
}
.auto-loading::before,
.loading-line::before,
[aria-busy="true"]::before,
.is-loading::before {
  content: "";
  width: 13px;
  height: 13px;
  border: 2px solid color-mix(in srgb, var(--attn-info) 30%, transparent);
  border-top-color: var(--attn-info);
  border-radius: 50%;
  flex: none;
  animation: attnSpin .8s linear infinite;
}
@keyframes attnSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .auto-loading::before, .loading-line::before, [aria-busy="true"]::before, .is-loading::before { animation: none; } }

/* KPI cards speak the same four families */
.kpi.warn {
  border-color: var(--attn-warn-line);
  border-left: 4px solid var(--attn-warn);
  background: linear-gradient(180deg, var(--attn-warn-bg), var(--surface) 78%);
}
.kpi.warn b { color: var(--attn-warn); }

/* activation recap: mapped columns + what will run */
.map-recap{ text-align:left; }
.map-recap[hidden]{ display:none!important; }
.map-recap .panel-head{ display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.map-recap .panel-head h2{ font-family:var(--serif,Georgia,serif); font-size:20px; font-weight:500; letter-spacing:-.02em; margin:0; }
.map-recap-grid{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.recap-k{ font:750 9.5px/1.2 var(--mono,monospace); letter-spacing:.1em; text-transform:uppercase; color:var(--muted); margin-bottom:7px; }
.map-recap ul{ list-style:none; margin:0; padding:0; display:grid; gap:6px; }
.map-recap li{ display:flex; justify-content:space-between; gap:12px; padding-bottom:6px; border-bottom:1px dotted var(--line); font-size:12px; }
.map-recap li:last-child{ border-bottom:0; padding-bottom:0; }
.map-recap li span{ color:var(--mut); }
.map-recap li b{ color:var(--ink); font-weight:650; text-align:right; }
.map-recap-note{ margin:12px 0 0; font-size:11.5px; color:var(--muted); line-height:1.5; }
.map-recap .status-pill{ flex:none; }
@media(max-width:700px){ .map-recap-grid{ grid-template-columns:1fr; } }

/* activation delivery model — plain-language Now / Radar cards */
.act-delivery{ text-align:left; margin-top:20px; }
.act-delivery[hidden]{ display:none!important; }
.act-delivery-head{ display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:8px; }
.act-delivery-head .kicker{ margin:0 0 5px; }
.act-delivery-head h2{ font-family:var(--serif,Georgia,serif); font-size:21px; font-weight:500; letter-spacing:-.025em; margin:0; }
.act-delivery-lead{ margin:0 0 11px; max-width:640px; font-size:12.5px; line-height:1.5; color:var(--body); }
.act-channels{ display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; align-items:stretch; }
.act-flow{ display:flex; flex-direction:column; padding:11px 12px; border:1px solid var(--line); border-radius:10px; background:var(--surface); }
.act-flow.is-now{ border-color:var(--attn-ok-line); background:var(--attn-ok-bg); }
.act-flow.is-next{ border-color:var(--attn-warn-line); background:var(--attn-warn-bg); }
.act-flow-head{ display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px; padding-bottom:7px; border-bottom:1px solid color-mix(in srgb,var(--line) 72%,transparent); }
.act-flow-kicker{ font-family:var(--mono,monospace); font-size:9px; font-weight:700; letter-spacing:.09em; text-transform:uppercase; line-height:1.2; color:var(--attn-ok-ink,var(--ink-2)); }
.act-flow.is-next .act-flow-kicker{ color:var(--attn-warn-ink,var(--ink-2)); }
.act-flow .status-pill{ font-size:9.5px; min-height:22px; padding:3px 8px; }
.act-flow .act-channel{ display:flex; align-items:flex-start; gap:11px; padding:0; border:0; border-radius:0; background:transparent; }
.act-flow .act-channel + .act-channel{ margin-top:10px; padding-top:10px; border-top:1px solid color-mix(in srgb,var(--line) 72%,transparent); }
.act-flow .act-logo{ width:30px; height:30px; border-radius:7px; display:grid; place-items:center; flex:none; border:1px solid var(--line); background:var(--surface); }
.act-flow .act-logo img{ width:20px; height:20px; display:block; }
.act-flow .act-logo.app{ background:var(--accent-soft); border-color:var(--accent-line); color:var(--accent-text); }
.act-flow .act-logo.app svg{ width:17px; height:17px; }
.act-channel-copy b{ display:block; font-size:12.5px; font-weight:600; line-height:1.3; color:var(--ink); }
.act-channel-copy p{ margin:3px 0 0; font-size:11.5px; line-height:1.5; color:var(--muted); }
.act-channel-copy p b{ display:inline; color:var(--ink-2); font-weight:600; }
.act-off{ display:flex; align-items:center; gap:7px; margin-top:10px; padding-top:9px; border-top:1px solid color-mix(in srgb,var(--attn-warn-line,var(--line)) 60%,var(--line)); font-size:11.5px; font-weight:600; color:var(--attn-warn-ink,var(--ink-2)); }
.act-off svg{ width:14px; height:14px; flex:none; }
.act-inside{ margin-top:8px; padding-top:7px; border-top:1px solid color-mix(in srgb,var(--line) 72%,transparent); }
.act-inside > b{ display:block; font-family:var(--mono,monospace); font-size:9px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
.act-inside p{ margin:4px 0 0; font-size:11px; line-height:1.45; color:var(--ink-2); }
.act-inside li{ position:relative; padding-left:13px; font-size:11px; line-height:1.45; color:var(--ink-2); }
.act-inside li::before{ content:""; position:absolute; left:1px; top:6px; width:4px; height:4px; border-radius:50%; background:var(--accent); }
.act-upgrade-row{ display:flex; align-items:center; gap:9px; flex-wrap:wrap; margin-top:auto; padding-top:11px; }
.act-upgrade-row .btn{ font-size:11.5px; }
.act-upgrade-row > span{ font-size:10.5px; color:var(--muted); }
.act-delivery-glance{ display:none; }
.act-glance-item{ display:inline-flex; align-items:center; gap:5px; min-height:23px; padding:0 8px; border:1px solid var(--line); border-radius:999px; background:var(--surface); font-size:10.5px; color:var(--ink-2); }
.act-glance-item svg{ width:11px; height:11px; flex:none; color:var(--ok); }
.act-glance-item b{ font-weight:600; }
.act-glance-item.is-off{ border-style:dashed; color:var(--muted); }
.act-glance-item.is-off svg{ color:var(--warn); }
.act-delivery-note{ margin:10px 0 0; font-size:11px; line-height:1.5; color:var(--muted); }
@media(max-width:760px){
  .act-channels{ grid-template-columns:1fr; }
  .act-flow{ padding:11px 12px; }
  .act-delivery-head h2{ font-size:20px; }
  .act-upgrade-row .btn{ width:100%; justify-content:center; }
  .act-upgrade-row > span{ width:100%; }
}

/* ---- assets/wow.css ---- */
/* Deadline 365 — product finish layer.
   Warm paper, blueprint light, layered depth and restrained motion. */

:root {
  --wow-ease: cubic-bezier(.22,.61,.36,1);
  --wow-shadow-sm: 0 1px 2px rgba(28, 22, 14, .05), 0 10px 24px -18px rgba(28, 22, 14, .28);
  --wow-shadow: 0 1px 2px rgba(28, 22, 14, .05), 0 26px 60px -34px rgba(28, 22, 14, .42);
  --wow-shadow-lift: 0 2px 3px rgba(28, 22, 14, .05), 0 34px 70px -32px rgba(28, 22, 14, .5);
  --wow-radius: 14px;
  --wow-glow: color-mix(in srgb, var(--accent) 14%, transparent);
  --wow-grid: color-mix(in srgb, var(--ink) 4.5%, transparent);
}

html[data-theme="dark"] {
  --wow-shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 16px 38px -24px rgba(0,0,0,.8);
  --wow-shadow: 0 2px 3px rgba(0,0,0,.35), 0 34px 80px -36px rgba(0,0,0,.9);
  --wow-shadow-lift: 0 3px 4px rgba(0,0,0,.4), 0 42px 90px -34px rgba(0,0,0,.95);
  --wow-glow: color-mix(in srgb, var(--accent) 18%, transparent);
  --wow-grid: rgba(255,255,255,.045);
}

/* ---------- atmosphere ---------- */
body.d365-app2 {
  background-color: var(--paper, #fbf8f1);
  background-image:
    radial-gradient(1200px 560px at 82% -12%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 68%),
    radial-gradient(900px 520px at 2% -8%, color-mix(in srgb, var(--info, #2563eb) 4%, transparent), transparent 72%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 36%, var(--paper, #fbf8f1)), var(--paper, #fbf8f1) 460px);
  background-attachment: fixed;
}
body.d365-app2 .main { position: relative; isolation: isolate; }
body.d365-app2 .main::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cpath d='M72 0H0V72' fill='none' stroke='%23a16207' stroke-opacity='.055' stroke-width='.7'/%3E%3Ccircle cx='0' cy='0' r='1.1' fill='%23a16207' fill-opacity='.09'/%3E%3C/svg%3E");
  mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 82%);
}
html[data-theme="dark"] body.d365-app2 .main::before { opacity: .55; }
body.d365-app2 .site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--surface) 84%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
  backdrop-filter: blur(18px) saturate(1.08);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
body.d365-app2 .nav-links a { border-radius: 8px; transition: background .16s var(--wow-ease), color .16s var(--wow-ease); }

/* ---------- paper depth ---------- */
body.d365-app2 .panel,
body.d365-app2 .card,
body.d365-app2 .ws-card,
body.d365-app2 .brief-hero,
body.d365-app2 .success-card,
body.d365-app2 .map-sheet-card,
body.d365-app2 .map-check-card {
  border-radius: var(--wow-radius);
  box-shadow: var(--wow-shadow-sm);
  border-color: color-mix(in srgb, var(--line) 82%, transparent);
}
body.d365-app2 .panel { transition: box-shadow .22s var(--wow-ease), border-color .22s var(--wow-ease); }
body.d365-app2 .card,
body.d365-app2 .ws-src,
body.d365-app2 .choice {
  transition: transform .2s var(--wow-ease), box-shadow .2s var(--wow-ease), border-color .2s var(--wow-ease);
}
@media (hover: hover) {
  body.d365-app2 .card:hover,
  body.d365-app2 .ws-src:hover,
  body.d365-app2 .choice:hover {
    transform: translateY(-2px);
    box-shadow: var(--wow-shadow-lift);
  }
  body.d365-app2 .panel:hover { box-shadow: var(--wow-shadow); }
}

/* buttons */
body.d365-app2 .btn,
body.d365-app2 .ws-lf-sync,
body.d365-app2 .sheet-scroll-hint {
  transition: transform .16s var(--wow-ease), box-shadow .16s var(--wow-ease), background-color .16s var(--wow-ease), border-color .16s var(--wow-ease);
}
body.d365-app2 .btn:hover { transform: translateY(-1px); }
body.d365-app2 .btn:active { transform: translateY(0); }
body.d365-app2 .btn-primary {
  box-shadow: 0 10px 24px -13px color-mix(in srgb, var(--accent) 72%, transparent), inset 0 1px 0 rgba(255,255,255,.24);
  overflow: hidden; position: relative; isolation: isolate;
}
body.d365-app2 .btn-primary::after {
  content: ""; position: absolute; inset: -60% -20%; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%);
  transform: translateX(-80%) rotate(4deg);
  transition: transform .55s var(--wow-ease);
}
body.d365-app2 .btn-primary:hover::after { transform: translateX(80%) rotate(4deg); }
body.d365-app2 .status-pill { box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
body.d365-app2 .icon-btn { transition: transform .16s var(--wow-ease), background .16s var(--wow-ease); }
body.d365-app2 .icon-btn:hover { transform: translateY(-1px); }

/* headings get a little warm contrast */
body.d365-app2 .page-title,
body.d365-app2 .flow-title,
body.d365-app2 .panel-title,
body.d365-app2 .brief-hero h1 {
  text-wrap: balance;
}

/* ---------- page entrance ---------- */
@keyframes wow-rise { from { opacity: 0; transform: translateY(16px) scale(.995); filter: blur(3px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes wow-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes wow-float { 0%,100% { transform: translateY(0) } 50% { transform: translateY(-6px) } }
@keyframes wow-shimmer { from { background-position: 200% 0 } to { background-position: -200% 0 } }
@keyframes wow-ring { to { transform: rotate(360deg) } }

.wow-ready [data-wow] {
  opacity: 0;
  animation: wow-rise .72s var(--wow-ease) forwards;
  animation-delay: calc(var(--wow-i, 0) * 55ms);
}
.wow-ready .wow-art-stack { animation: wow-rise .85s var(--wow-ease) .1s both, wow-float 7s ease-in-out 1.1s infinite; }
.wow-ready .ba-sheet { animation: wow-float 8s ease-in-out infinite; }

/* ---------- mapping hero art ---------- */
.map-head { align-items: center !important; gap: 24px !important; margin-bottom: 20px !important; }
.map-head-copy { max-width: 720px; }
.wow-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 9px;
  font: 750 9px/1 var(--mono, monospace); letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-text, var(--accent));
}
.wow-kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: .65; }
.map-head-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.map-head-art { position: relative; flex: none; width: 276px; height: 166px; perspective: 950px; pointer-events: auto; }
.wow-art-stack { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(9deg) rotateY(-15deg) rotateZ(1deg); transition: transform .35s var(--wow-ease); }
.wow-art-sheet {
  position: absolute; left: 50px; top: 24px; width: 182px; height: 112px;
  border-radius: 11px; border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
  background: linear-gradient(150deg, var(--surface), color-mix(in srgb, var(--surface) 75%, var(--surface-2)));
  box-shadow: var(--wow-shadow-sm);
}
.wow-art-sheet.s2 { transform: translate3d(14px, 11px, -22px) rotate(-2.5deg); opacity: .95; }
.wow-art-sheet.s3 { transform: translate3d(28px, 22px, -44px) rotate(-5deg); opacity: .65; }
.wow-art-photo {
  position: absolute; right: 0; bottom: 0; width: 112px; height: 80px; padding: 4px;
  border-radius: 10px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  box-shadow: var(--wow-shadow); transform: translate3d(0, 0, 30px) rotate(4deg);
}
.wow-art-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; filter: saturate(.72) contrast(.92); }
.wow-art-front {
  position: absolute; left: 25px; top: 12px; width: 196px; height: 128px; padding: 12px 13px;
  border-radius: 12px; border: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--wow-shadow); transform: translateZ(40px) rotate(-1deg);
}
.wow-art-front-top { display: flex; align-items: center; gap: 6px; margin-bottom: 9px; }
.wow-art-front-top img { width: 17px; height: 17px; display: block; }
.wow-art-front-top i { display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--line); margin-left: auto; box-shadow: 8px 0 0 var(--line), 16px 0 0 var(--line); }
.wow-art-maprow { display: flex; align-items: center; gap: 5px; margin: 7px 0; }
.wow-art-mapdot { width: 5px; height: 5px; border-radius: 50%; background: var(--wow-c, var(--accent)); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--wow-c, var(--accent)) 14%, transparent); }
.wow-art-mapline { height: 5px; flex: 1; border-radius: 99px; background: color-mix(in srgb, var(--wow-c, var(--accent)) 20%, var(--surface-2)); }
.wow-art-maprow b { font: 750 7px/1 var(--mono, monospace); letter-spacing: .07em; color: var(--wow-c, var(--accent)); }
.wow-art-badge {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 6px;
  height: 19px; padding: 0 7px; border-radius: 99px; border: 1px solid var(--attn-ok-line, var(--line));
  background: var(--attn-ok-bg, var(--surface-2)); color: var(--attn-ok, var(--ink));
  font: 750 8px/1 var(--mono, monospace); letter-spacing: .06em; text-transform: uppercase;
}
.wow-art-badge::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.wow-art-orbit {
  position: absolute; left: 110px; top: 48px; width: 110px; height: 110px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  transform: translateZ(-30px) rotateX(62deg);
  box-shadow: 0 0 60px var(--wow-glow);
}

/* ---------- map cards ---------- */
body.d365-app2 .map-sheet-card {
  background: color-mix(in srgb, var(--surface) 96%, var(--surface-2));
  box-shadow: var(--wow-shadow);
  border-color: color-mix(in srgb, var(--line) 72%, transparent);
}
body.d365-app2 .map-sheet-card > .between:first-child {
  background:
    radial-gradient(600px 120px at 12% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%),
    linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 88%, var(--surface-2)));
}
body.d365-app2 .map-sheet-card .sheet-mapbar { background: color-mix(in srgb, var(--surface-2) 60%, var(--surface)); }
body.d365-app2 .map-check-card {
  background:
    radial-gradient(300px 180px at 100% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%),
    var(--surface);
  box-shadow: var(--wow-shadow);
}
body.d365-app2 .map-check-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 20%, transparent) 55%, transparent);
  border-radius: var(--wow-radius) var(--wow-radius) 0 0;
}
body.d365-app2 .map-score {
  background: linear-gradient(150deg, var(--surface), var(--surface-2));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), var(--wow-shadow-sm);
  border-color: color-mix(in srgb, var(--accent) 20%, var(--line));
}
body.d365-app2 .map-progress-track i {
  background-image: linear-gradient(90deg, var(--accent), #ffb27a, var(--accent));
  background-size: 200% 100%;
  animation: wow-shimmer 3.2s linear infinite;
}
body.d365-app2 .map-cta {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 -14px 40px -28px rgba(20,16,10,.55);
}
body.d365-app2 .sheet-table thead th {
  background: linear-gradient(180deg, var(--surface-2), color-mix(in srgb, var(--surface-2) 72%, var(--surface)));
}
body.d365-app2 .sheet-table tbody tr { transition: background .14s var(--wow-ease); }
body.d365-app2 .sheet-table tbody tr:hover td { background-color: color-mix(in srgb, var(--surface-2) 55%, transparent); }
body.d365-app2 .sheet-map-select { transition: border-color .16s var(--wow-ease), background .16s var(--wow-ease); }
body.d365-app2 .sheet-clear { transition: transform .15s var(--wow-ease), background .15s var(--wow-ease), border-color .15s var(--wow-ease); }
body.d365-app2 .sheet-clear:hover { transform: rotate(4deg) scale(1.06); }

.map-card-title { display: flex; align-items: center; gap: 8px; }
.map-card-logo { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: color-mix(in srgb, var(--surface-2) 80%, var(--surface)); border: 1px solid var(--line); }
.map-card-logo img { width: 16px; height: 16px; display: block; }
body.d365-app2 .map-score {
  --map-pct: 0%;
  width: 70px; height: 70px; min-width: 70px; padding: 0 !important;
  display: grid !important; place-items: center; align-content: center; text-align: center;
  border: 0 !important; border-radius: 50% !important;
  background: conic-gradient(var(--accent) var(--map-pct), var(--surface-2) 0) !important;
  position: relative; box-shadow: var(--wow-shadow-sm);
}
body.d365-app2 .map-score::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--surface); z-index: 0; }
body.d365-app2 .map-score b, body.d365-app2 .map-score span { position: relative; z-index: 1; }
body.d365-app2 .map-score b { font-size: 15px; }
body.d365-app2 .map-score span { margin-top: 1px; }
/* login / start: a little editorial stage beside the form */
body.flow {
  background-color: var(--paper, #fbf8f1);
  background-image:
    radial-gradient(900px 480px at 24% 24%, color-mix(in srgb, var(--accent) 6%, transparent), transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface) 30%, var(--paper, #fbf8f1)), var(--paper, #fbf8f1) 520px);
  background-attachment: fixed;
}
body.flow { overflow-x: hidden; }
body.flow .auth-wrap { position: relative; }
body.flow .auth-wrap::before {
  content: ""; position: absolute; left: 14%; top: 50%; width: 460px; height: 460px; border-radius: 50%;
  transform: translateY(-50%); pointer-events: none;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 9%, transparent), transparent 68%);
  opacity: .7;
}
body.flow .auth-wrap > * { position: relative; z-index: 1; }
/* login / start: a little editorial stage beside the form */
.auth-wrap { grid-template-columns: minmax(0, 420px) 320px !important; gap: clamp(36px, 6vw, 84px) !important; align-items: center !important; justify-content: center; }
.auth-showcase { position: relative; width: 320px; height: 230px; perspective: 950px; animation: wow-rise .8s var(--wow-ease) .08s both; }
.auth-showcase .wow-art-stack { transform: rotateX(9deg) rotateY(-15deg) scale(1.16); left: -8px; top: -2px; }
.auth-showcase .wow-art-orbit { left: 120px; top: 54px; width: 125px; height: 125px; }
.auth-showcase-copy { position: absolute; left: 8px; bottom: -4px; display: flex; flex-direction: column; gap: 2px; }
.auth-showcase-copy span { font: 750 8px/1 var(--mono, monospace); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text, var(--accent)); }
.auth-showcase-copy b { font-family: var(--serif, Georgia, serif); font-size: 17px; font-weight: 500; letter-spacing: -.02em; color: var(--ink); }
body.flow .auth-card { box-shadow: var(--wow-shadow) !important; border-radius: 18px !important; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: minmax(0, 420px) !important; } .auth-showcase { display: none; } }

/* ---------- activation + workspace moments ---------- */
body.d365-app2 .success-card { box-shadow: var(--wow-shadow); }
body.d365-app2 .act-flow { transition: box-shadow .2s var(--wow-ease), transform .2s var(--wow-ease); }
@media (hover: hover) { body.d365-app2 .act-flow:hover { transform: translateY(-1px); box-shadow: var(--wow-shadow-sm); } }
body.d365-app2 .ws-src.is-active { box-shadow: var(--wow-shadow); }
body.d365-app2 .ws-list-foot { background: linear-gradient(180deg, var(--surface-2), color-mix(in srgb, var(--surface-2) 70%, var(--surface))); }
body.d365-app2 .ws-sum-due { letter-spacing: -.04em; }
body.d365-app2 .brief-hero { box-shadow: var(--wow-shadow); }

@media (max-width: 1180px) { .map-head-art { display: none; } }
@media (max-width: 760px) {
  body.d365-app2 .panel { border-radius: 12px; }
  body.d365-app2 .site-header { -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
}
@media (prefers-reduced-motion: reduce) {
  .wow-ready [data-wow], .wow-ready .wow-art-stack, .wow-ready .ba-sheet { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
  body.d365-app2 .card:hover, body.d365-app2 .ws-src:hover, body.d365-app2 .choice:hover, body.d365-app2 .btn:hover { transform: none; }
  .map-progress-track i { animation: none; }
}

/* quiet 3D paper stack for compact app headers */
.app-top { position: relative; }
.app-top > * { position: relative; z-index: 1; }
.page-corner-art {
  position: absolute; right: 158px; top: -20px; width: 156px; height: 98px;
  pointer-events: none; z-index: 0; opacity: .62;
  transform: rotate(-2deg);
}
.pca-sheet {
  position: absolute; left: 22px; top: 14px; width: 108px; height: 69px;
  border-radius: 8px; border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  background: linear-gradient(150deg, var(--surface), color-mix(in srgb, var(--surface) 65%, var(--surface-2)));
  box-shadow: var(--wow-shadow-sm);
}
.pca-s2 { transform: translate3d(10px, 8px, 0) rotate(-3deg); opacity: .7; }
.pca-s3 { transform: translate3d(18px, 16px, 0) rotate(-5deg); opacity: .4; }
.pca-s1 { z-index: 2; }
.pca-photo {
  position: absolute; right: 0; bottom: 0; width: 68px; height: 46px; padding: 3px; z-index: 3;
  border-radius: 7px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
  box-shadow: var(--wow-shadow-sm); transform: rotate(4deg);
}
.pca-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 4px; filter: saturate(.7) contrast(.92); }
@media (max-width: 1180px) { .page-corner-art { display: none; } }

/* compact theme control for keyword/template pages that ship without app.css */
.wow-theme-btn{width:36px;height:36px;border-radius:50%;border:1px solid var(--line);background:var(--surface);color:var(--muted);display:inline-grid;place-items:center;cursor:pointer;flex:none;transition:transform .16s var(--wow-ease),border-color .16s var(--wow-ease),color .16s var(--wow-ease)}
.wow-theme-btn:hover{transform:translateY(-1px);border-color:var(--line-strong);color:var(--ink)}
.wow-theme-btn .wow-sun{display:none}
html[data-theme="dark"] .wow-theme-btn .wow-moon{display:none}
html[data-theme="dark"] .wow-theme-btn .wow-sun{display:inline-grid}
@media (prefers-color-scheme: dark){html:not([data-theme="light"]) .wow-theme-btn .wow-moon{display:none}html:not([data-theme="light"]) .wow-theme-btn .wow-sun{display:inline-grid}}

/* The four keyword landing pages use the older system-font stylesheet.
   Scope a canonical light/dark palette so the shared theme toggle actually
   controls the page instead of only the OS preference. */
html[data-theme="dark"] body.keyword-landing {
  --bg:#0b0b0f; --bg-soft:rgba(255,255,255,.03);
  --surface:rgba(255,255,255,.06); --surface-2:rgba(255,255,255,.04);
  --ink:#f5f5f7; --ink-2:rgba(235,235,245,.76); --mut:rgba(235,235,245,.76); --faint:rgba(235,235,245,.70);
  --line:rgba(255,255,255,.10); --line-soft:rgba(255,255,255,.07);
  --link:#ff9a5c; --accent:#ff7a2f; --accent-ink:#160d05; --accent-hover:#ff8b4a;
  --accent-soft:rgba(255,122,47,.13); --btn2-bg:rgba(255,255,255,.08); --btn2-ink:#f5f5f7;
  --btn2-hover:rgba(255,255,255,.13); --input-bg:rgba(255,255,255,.05); --input-border:#48484a;
  --nav-bg:rgba(11,11,15,.72); --shadow-sm:0 1px 3px rgba(0,0,0,.5);
  --shadow:0 18px 50px rgba(0,0,0,.40); --shadow-lg:0 28px 70px -20px rgba(0,0,0,.75);
  color-scheme: dark; background: var(--bg); color: var(--ink);
}
html[data-theme="light"] body.keyword-landing {
  --bg:#ffffff; --bg-soft:#f5f5f7; --surface:#ffffff; --surface-2:#f5f5f7;
  --ink:#1d1d1f; --ink-2:#6e6e73; --mut:#6e6e73; --faint:#6e6e73;
  --line:#d2d2d7; --line-soft:rgba(0,0,0,.07); --link:#c2410c; --accent:#ff6b1a;
  --accent-ink:#241305; --accent-hover:#ed5d0d; --accent-soft:rgba(255,107,26,.10);
  --btn2-bg:#f5f5f7; --btn2-ink:#1d1d1f; --btn2-hover:#e8e8ed; --input-bg:#ffffff;
  --input-border:#b6b6bd; --nav-bg:rgba(255,255,255,.72);
  --shadow-sm:0 1px 3px rgba(0,0,0,.05); --shadow:0 10px 40px rgba(0,0,0,.06);
  --shadow-lg:0 24px 60px -18px rgba(0,0,0,.28);
  color-scheme: light; background: var(--bg); color: var(--ink);
}
body.keyword-landing .wow-theme-btn { width: 34px; height: 34px; }

/* Lien reference status chip: keep the light-theme label above 4.5:1. */
html:not([data-theme="dark"]) body.liref-page .pill.ok,
html[data-theme="light"] body.liref-page .pill.ok { color: #0b5f33 !important; }

/* With inline column mapping, the sheet is the primary surface on narrow screens.
   Put it before the checklist instead of hiding the controls below the fold. */
@media (max-width: 1049px) {
  body.d365-app2 .map-grid > .map-side { order: 0 !important; }
}

/* The decorative atlas is paper-bright; soften it on dark so it does not pull
   focus away from the deadline answer. */
html[data-theme="dark"] .lien-atlas img { filter: brightness(.76) saturate(.88) contrast(.96); }
html[data-theme="dark"] .lien-atlas { border-color: color-mix(in srgb, var(--line) 80%, transparent); }

/* Reserve the atlas column so the headline and lede never run underneath it. */
@media (min-width: 1241px) {
  body.liref-page .liref-h { max-width: calc(100% - 395px); }
}

/* Keep keyboard focus visible when a skip link lands on <main>. */
main:focus { outline: none; }
main:focus-visible { outline: 2px solid var(--link, var(--accent)); outline-offset: 4px; }

/* Mobile mapping fallback: keep the table header mapping controls visible
   instead of hiding the only field selectors below 560px. */
@media (max-width: 560px) {
  body.d365-app2 #sheet-preview { display: block; width: 100%; white-space: normal; font-size: 13px; }
  body.d365-app2 #sheet-preview thead { display: block; border-bottom: 1px solid var(--line); }
  body.d365-app2 #sheet-preview thead tr { display: block; padding: 6px 14px 10px; }
  body.d365-app2 #sheet-preview thead th {
    display: block; min-width: 0; width: auto; padding: 8px 0;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  }
  body.d365-app2 #sheet-preview thead th:last-child { border-bottom: 0; }
  body.d365-app2 #sheet-preview thead th .sheet-colmap { display: flex; align-items: center; gap: 7px; }
  body.d365-app2 #sheet-preview thead th .sheet-map-control { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
  body.d365-app2 #sheet-preview thead th .sheet-fieldmap { display: flex; flex: 1; min-width: 0; }
  body.d365-app2 #sheet-preview thead th .sheet-map-select {
    width: 100%; max-width: none; height: 34px; font-size: 11px; border-radius: 7px; padding: 0 7px;
  }
  body.d365-app2 .map-mobile-note {
    display: block; margin: 0 0 8px; font-size: 11px; line-height: 1.45; color: var(--muted);
  }
}

/* FR header labels are longer than EN. Keep the one-row marketing header
   inside 1280–1550px viewports instead of letting the actions clip. */
@media (min-width: 1280px) and (max-width: 1550px) {
  .site-header .hdr { gap: 20px; }
  .site-header .nav-links { gap: 2px; }
  .site-header .nav-links a { padding-left: 8px; padding-right: 8px; font-size: 14px; }
  .site-header .hdr-actions { gap: 8px; }
}

/* Keep the mobile app bar dark; wow's paper surface must not override the app shell. */
@media (max-width:1149px){
  body.d365-app2 .site-header{
    background:#0b0c10;
    border-bottom:1px solid rgba(255,255,255,.10);
    -webkit-backdrop-filter:none; backdrop-filter:none;
  }
  body.d365-app2 .site-header .word span{ color:#f7f7f9; }
  body.d365-app2 .site-header .word span:last-child{ color:rgba(255,255,255,.62); }
  body.d365-app2 .site-header .appbar-context .abc-page{ color:#f7f7f9; }
}

/* auth stage carries three honest reassurances, not just decoration */
.auth-showcase{height:360px}
.auth-showcase-copy{bottom:84px}
.auth-proof{position:absolute;left:8px;right:0;bottom:0;display:grid;gap:6px;margin:0;padding:0;list-style:none}
.auth-proof li{display:flex;align-items:center;gap:7px;font:500 11.5px/1.35 var(--sans, sans-serif);color:var(--mut)}
.auth-proof li span{width:15px;height:15px;border-radius:50%;display:grid;place-items:center;flex:none;background:var(--accent-soft);color:var(--accent-text);font-size:9px;font-weight:800}
@media(max-width:900px){.auth-proof{display:none}}

/* give the auth stage enough width to balance the form */
@media(min-width:901px){
  .auth-wrap{grid-template-columns:minmax(0,420px) minmax(300px,420px)!important}
  .auth-showcase{width:420px;height:410px}
  .auth-showcase .wow-art-stack{left:14px;top:8px;transform:rotateX(9deg) rotateY(-15deg) scale(1.28)}
  .auth-showcase-copy{bottom:118px}
  .auth-proof{left:8px;gap:9px}
  .auth-proof li{font-size:13px}
}

