/* Fouad Component Design System 2.3.0 — exact source palettes + ecosystem integration. */
/* Local Dual Reference Design System — no CDN, no external font dependency. */
:root {
  --ds-font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --ds-font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ds-space-1:4px; --ds-space-2:8px; --ds-space-3:12px; --ds-space-4:16px;
  --ds-space-5:20px; --ds-space-6:24px; --ds-space-7:32px; --ds-space-8:40px;
  --ds-radius-sm:4px; --ds-radius-md:8px; --ds-radius-lg:12px; --ds-radius-pill:999px;
  --ds-duration-fast:100ms; --ds-duration-normal:180ms; --ds-duration-slow:280ms;
  --ds-target-min:24px; --ds-target-preferred:44px;
}
[data-profile="akeneo-inspired"][data-mode="light"] {
  --canvas:#F7F9FB; --surface:#FFF; --surface-raised:#FFF; --surface-muted:#EEF3F7;
  --text:#24313A; --text-muted:#63727D; --border:#D7E0E6; --brand:#4F9D8B;
  --brand-strong:#317A6C; --secondary:#4E8DCB; --danger:#C93E58; --warning:#A76B00;
  --success:#2C7A63; --focus:#5A9DD6; --scrim:rgba(24,35,44,.42);
  --shadow:0 8px 24px rgba(29,52,68,.12); --control-radius:999px; --card-radius:4px;
  --control-height:36px; --page-max:1500px; --density-gap:8px;
}
[data-profile="akeneo-inspired"][data-mode="dark"] {
  --canvas:#111820; --surface:#17212A; --surface-raised:#1D2A34; --surface-muted:#22313C;
  --text:#EEF4F7; --text-muted:#A9B6BF; --border:#334651; --brand:#70C2AD;
  --brand-strong:#8BD5C3; --secondary:#75ADE2; --danger:#F2768A; --warning:#F2C46D;
  --success:#72C8A8; --focus:#87C5F2; --scrim:rgba(0,0,0,.62);
  --shadow:0 10px 30px rgba(0,0,0,.35); --control-radius:999px; --card-radius:4px;
  --control-height:36px; --page-max:1500px; --density-gap:8px;
}
[data-profile="zeroheight-inspired"][data-mode="light"] {
  --canvas:#FFFDFE; --surface:#FFF; --surface-raised:#FFF; --surface-muted:#F8F2F6;
  --text:#17131B; --text-muted:#6F6874; --border:#E8E1E6; --brand:#ED3472;
  --brand-strong:#C81E59; --secondary:#39243E; --danger:#C73245; --warning:#9C6500;
  --success:#2E7D63; --focus:#D62466; --scrim:rgba(28,19,31,.42);
  --shadow:0 10px 30px rgba(60,31,51,.10); --control-radius:8px; --card-radius:12px;
  --control-height:42px; --page-max:1180px; --density-gap:12px;
}
[data-profile="zeroheight-inspired"][data-mode="dark"] {
  --canvas:#151116; --surface:#1D181F; --surface-raised:#261F28; --surface-muted:#302632;
  --text:#FFF8FC; --text-muted:#C7BBC4; --border:#493B47; --brand:#FF5A91;
  --brand-strong:#FF83AA; --secondary:#EADCE6; --danger:#FF7B8D; --warning:#E9BF65;
  --success:#77CDAE; --focus:#FF7BA8; --scrim:rgba(0,0,0,.66);
  --shadow:0 12px 34px rgba(0,0,0,.36); --control-radius:8px; --card-radius:12px;
  --control-height:42px; --page-max:1180px; --density-gap:12px;
}
*{box-sizing:border-box}
html{color-scheme:light dark}
body{
  margin:0; font-family:var(--ds-font-sans); background:var(--canvas); color:var(--text);
  transition:background var(--ds-duration-normal) ease,color var(--ds-duration-normal) ease;
}
a{color:var(--brand-strong)}
button,input,select,textarea{font:inherit}
:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.ds-shell{min-height:100vh;display:grid;grid-template-columns:260px minmax(0,1fr)}
.ds-sidebar{
  position:sticky;top:0;height:100vh;padding:24px 16px;background:var(--surface);
  border-right:1px solid var(--border);overflow:auto
}
.ds-brand{font-weight:800;letter-spacing:-.02em;margin-bottom:20px}
.ds-nav a{display:block;padding:9px 10px;margin:2px 0;border-radius:8px;color:var(--text);text-decoration:none}
.ds-nav a:hover,.ds-nav a[aria-current="page"]{background:var(--surface-muted);color:var(--brand-strong)}
.ds-main{min-width:0}
.ds-topbar{
  position:sticky;top:0;z-index:10;display:flex;gap:10px;align-items:center;justify-content:flex-end;
  min-height:64px;padding:10px 24px;border-bottom:1px solid var(--border);
  background:color-mix(in srgb,var(--surface) 94%,transparent);backdrop-filter:blur(12px)
}
.ds-page{max-width:var(--page-max);margin:auto;padding:48px 32px 96px}
.ds-eyebrow{text-transform:uppercase;letter-spacing:.11em;font-size:11px;color:var(--text-muted);font-weight:700}
h1{font-size:clamp(30px,4vw,48px);letter-spacing:-.04em;line-height:1.05;margin:.25em 0}
h2{font-size:24px;letter-spacing:-.02em;margin-top:48px}
.ds-lede{font-size:18px;line-height:1.6;color:var(--text-muted);max-width:780px}
.ds-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.ds-card{
  background:var(--surface);border:1px solid var(--border);border-radius:var(--card-radius);
  box-shadow:var(--shadow);padding:20px
}
.ds-card p{color:var(--text-muted);line-height:1.55}
.ds-button{
  min-height:var(--control-height);min-width:var(--ds-target-preferred);padding:0 16px;border-radius:var(--control-radius);
  border:1px solid transparent;background:var(--brand);color:white;font-weight:700;cursor:pointer;
  transition:transform var(--ds-duration-fast) ease,background var(--ds-duration-fast) ease
}
.ds-button:hover{background:var(--brand-strong)}
.ds-button:active{transform:translateY(1px)}
.ds-button.secondary{background:transparent;color:var(--text);border-color:var(--border)}
.ds-button.danger{background:var(--danger)}
.ds-badge{display:inline-flex;align-items:center;min-height:24px;padding:2px 9px;border-radius:999px;background:var(--surface-muted);border:1px solid var(--border);font-size:12px}
.ds-input{
  width:100%;min-height:var(--control-height);border:1px solid var(--border);border-radius:var(--control-radius);
  background:var(--surface);color:var(--text);padding:0 12px
}
.ds-field{display:grid;gap:6px}
.ds-field label{font-size:13px;font-weight:700}
.ds-help{font-size:12px;color:var(--text-muted)}
.ds-tabs{display:flex;gap:18px;border-bottom:1px solid var(--border);margin:24px 0}
.ds-tab{padding:10px 0;border:0;border-bottom:2px solid transparent;background:none;color:var(--text-muted);cursor:pointer}
.ds-tab[aria-selected="true"]{color:var(--text);border-bottom-color:var(--brand)}
.ds-table{width:100%;border-collapse:collapse;background:var(--surface);border:1px solid var(--border)}
.ds-table th,.ds-table td{padding:10px 12px;border-bottom:1px solid var(--border);text-align:left}
.ds-table th{font-size:12px;color:var(--text-muted);background:var(--surface-muted)}
.ds-callout{padding:16px;border-left:3px solid var(--brand);background:var(--surface-muted);border-radius:0 var(--card-radius) var(--card-radius) 0}
.ds-toolbar{display:flex;gap:8px;flex-wrap:wrap}
.ds-swatch{height:74px;border-radius:var(--card-radius);border:1px solid var(--border);background:var(--brand)}
@media (max-width:900px){
  .ds-shell{grid-template-columns:1fr}.ds-sidebar{position:relative;height:auto;border-right:0;border-bottom:1px solid var(--border)}
  .ds-grid{grid-template-columns:1fr}.ds-page{padding:32px 20px 72px}.ds-topbar{position:relative;justify-content:flex-start;flex-wrap:wrap}
}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}


/* FouadDev source-design integration v2.2.0
   Keeps the exact four palette matrices and motion durations from the supplied
   DESIGN_SYSTEM_AKENEO_ZEROHEIGHT_LOCAL_MASTER package. Product CSS may define
   layout, but visual decisions below are the final cascade. */
:root{
  --ds-space-0:0;--ds-space-9:48px;--ds-space-10:64px;
  --ds-radius-none:0;--ds-radius-xs:2px;--ds-radius-xl:16px;
  --ds-ease-standard:cubic-bezier(.2,0,0,1);
  --ds-ease-enter:cubic-bezier(0,0,.2,1);
  --ds-ease-exit:cubic-bezier(.4,0,1,1);
  --ds-reading-width:780px;--ds-operational-width:1500px;--ds-doc-width:1180px;
  --ds-page-gutter:clamp(14px,2.2vw,32px);
}
/* Exact source-palette aliases for legacy product styles. */
html[data-profile][data-mode]{
  --bg:var(--canvas);--bg2:var(--canvas);--panel:var(--surface);--panel-2:var(--surface-raised);--panel-3:var(--surface-muted);
  --ink:var(--text);--muted:var(--text-muted);--line:var(--border);--card:var(--surface);--surface-strong:var(--surface);
  --accent:var(--brand);--accent-2:var(--secondary);--primary:var(--brand);--primary-strong:var(--brand-strong);
  --studio-cyan:var(--brand);--studio-blue:var(--secondary);--fd-bg:var(--canvas);--fd-surface:var(--surface);--fd-muted:var(--text-muted);
  --fd-border:var(--border);--fd-accent:var(--brand);--fd-control-h:var(--control-height);--fd-radius-sm:var(--control-radius);--fd-radius-md:var(--card-radius);
  --surface-alpha:1;--shadow-soft:var(--shadow);
}
html{max-width:100%;overflow-x:hidden;background:var(--canvas)}
body{min-width:0;max-width:100%;overflow-x:hidden;background:var(--canvas)!important;background-image:none!important;color:var(--text)!important}
body::before,body::after,.aurora,#ambientSnow,.ambient-snow,.ambient-orb,.cursor-refraction,.intelligence-orbit,.orbit-ring,.orbit-node,.orbit-core,.hero-system .orbital{display:none!important;background:none!important}
*{scrollbar-color:var(--border) var(--surface-muted)}
::selection{background:var(--brand);color:#FFFFFF}
:is(h1,h2,h3,h4,h5,h6){color:var(--text);text-shadow:none!important}
:is(p,small,.muted,.lead,.lede,.ds-lede,.helper,.help,.meta){color:var(--text-muted)}
a{transition:color var(--ds-duration-fast) var(--ds-ease-standard),background-color var(--ds-duration-fast) var(--ds-ease-standard),border-color var(--ds-duration-fast) var(--ds-ease-standard),transform var(--ds-duration-fast) var(--ds-ease-standard)}

/* Core controls: source Button contract across every site. */
:is(.ds-button,.fd-button,.button,.admin-button,.row-action,.cta,.header-contact,.project-action,.fd-admin-update-button,button[type="submit"]){
  min-width:var(--ds-target-preferred);min-height:var(--control-height);padding-inline:16px;border:1px solid transparent!important;
  border-radius:var(--control-radius)!important;background:var(--brand)!important;background-image:none!important;color:#FFFFFF!important;
  box-shadow:none!important;font-weight:700;cursor:pointer;transform:none;
  transition:transform var(--ds-duration-fast) var(--ds-ease-standard),background-color var(--ds-duration-fast) var(--ds-ease-standard),border-color var(--ds-duration-fast) var(--ds-ease-standard),color var(--ds-duration-fast) var(--ds-ease-standard),box-shadow var(--ds-duration-fast) var(--ds-ease-standard)!important;
}
:is(.ds-button,.fd-button,.button,.admin-button,.row-action,.cta,.header-contact,.project-action,.fd-admin-update-button,button[type="submit"]):hover{background:var(--brand-strong)!important;transform:translateY(-1px)}
:is(.ds-button,.fd-button,.button,.admin-button,.row-action,.cta,.header-contact,.project-action,.fd-admin-update-button,button[type="submit"]):active{transform:translateY(1px)}
:is(.ds-button,.fd-button,.button,.admin-button,.row-action,.cta).secondary,
:is(.ds-button,.fd-button,.button,.admin-button,.row-action,.cta).ghost,
:is(.ds-button,.fd-button,.button,.admin-button,.row-action,.cta).outline{
  background:transparent!important;color:var(--text)!important;border-color:var(--border)!important;box-shadow:none!important
}
:is(.ds-button,.fd-button,.button,.admin-button,.row-action,.cta).secondary:hover,
:is(.ds-button,.fd-button,.button,.admin-button,.row-action,.cta).ghost:hover,
:is(.ds-button,.fd-button,.button,.admin-button,.row-action,.cta).outline:hover{background:var(--surface-muted)!important;color:var(--brand-strong)!important;border-color:var(--border)!important}
:is(.ds-button,.fd-button,.button,.admin-button,.row-action,.cta).danger{background:var(--danger)!important;color:#FFFFFF!important}
:is(button,.button,.fd-button,.admin-button,.row-action,.cta)[disabled],.is-disabled{opacity:.5!important;cursor:not-allowed!important;transform:none!important}
:is(input,select,textarea,.ds-input){background:var(--surface)!important;background-image:none!important;color:var(--text)!important;border:1px solid var(--border)!important;border-radius:var(--control-radius)!important;box-shadow:none!important;transition:border-color var(--ds-duration-fast) var(--ds-ease-standard),box-shadow var(--ds-duration-fast) var(--ds-ease-standard),background-color var(--ds-duration-fast) var(--ds-ease-standard)!important}
:is(input,select,textarea,.ds-input):focus{border-color:var(--focus)!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--focus) 24%,transparent)!important;outline:none}
:is(input,select,textarea)::placeholder{color:var(--text-muted);opacity:.8}
:is(select option){background:var(--surface);color:var(--text)}
:focus-visible{outline:2px solid var(--focus)!important;outline-offset:2px!important}

/* Surfaces and cards: source semantic surface hierarchy. */
:is(.glass,.ds-card,.fd-card,.card,.panel,.admin-panel,.admin-card,.account-card,.auth-card,.project-card,.project-tile,.article-list-card,.article-stream,.article-gallery,.content-panel,.filter-bar,.search-shell,.search-panel,.form-card,.contact-form,.hero-card,.hero-system,.intent-deck,.newsletter-panel,.growth-panel,.kpi,.metrics-strip article,.studio-card,.section-card,.studio-command-deck,.distinguished-contract,.command-status-grid article,.side-card,.topbar,.fd-admin-shellbar){
  background:var(--surface)!important;background-image:none!important;border-color:var(--border)!important;color:var(--text)!important;box-shadow:var(--shadow)!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important
}
html[data-profile="akeneo-inspired"] :is(.ds-card,.fd-card,.card,.panel,.admin-panel,.admin-card,.account-card,.auth-card,.growth-panel,.kpi,.studio-card,.section-card,.studio-command-deck,.distinguished-contract,.command-status-grid article,.side-card,.topbar,.fd-admin-shellbar){border-radius:4px!important;box-shadow:none!important}
html[data-profile="zeroheight-inspired"] :is(.ds-card,.fd-card,.card,.panel,.project-card,.project-tile,.article-list-card,.article-stream,.article-gallery,.content-panel,.form-card,.contact-form,.hero-card,.hero-system,.intent-deck,.newsletter-panel){border-radius:12px!important}

/* Navigation: quiet chrome and explicit selected state. */
:is(.site-header,.site-nav,.fd-admin-shellbar,.admin-header,.admin-sidebar,.sidebar,.ds-sidebar,.ds-topbar){background:var(--surface)!important;background-image:none!important;border-color:var(--border)!important;box-shadow:none!important}
:is(.site-nav a,.nav-links a,.ds-nav a,.side-nav .nav-item,.fd-admin-menu-link,.fd-admin-menu-group summary,.fd-admin-menu-group a,.admin-sidebar a){color:var(--text-muted)!important;text-decoration:none}
:is(.site-nav a,.nav-links a,.ds-nav a,.side-nav .nav-item,.fd-admin-menu-link,.fd-admin-menu-group summary,.fd-admin-menu-group a,.admin-sidebar a):hover{background:var(--surface-muted)!important;color:var(--brand-strong)!important}
:is(.site-nav a[aria-current="page"],.nav-links a[aria-current="page"],.ds-nav a[aria-current="page"],.side-nav .nav-item.active,.fd-admin-menu-link.is-active,.admin-sidebar a.is-active){background:var(--surface-muted)!important;color:var(--brand-strong)!important;border-color:var(--border)!important}
:is(.brand-mark,.fd-admin-brand-mark){background:var(--brand)!important;background-image:none!important;color:#FFFFFF!important;box-shadow:none!important}

/* Blog/public profile: remove the previous teal/cyan/rainbow visual language. */
html[data-profile="zeroheight-inspired"] .public-body .hero-copy h1 :is(span,strong,b,em){background:none!important;background-image:none!important;-webkit-background-clip:border-box!important;background-clip:border-box!important;-webkit-text-fill-color:currentColor!important;color:var(--text)!important;font-style:normal}
html[data-profile="zeroheight-inspired"] .public-body .hero-copy h1 em{color:var(--brand)!important}
html[data-profile="zeroheight-inspired"] .public-body .hero-copy h1 b{color:var(--brand-strong)!important}
html[data-profile="zeroheight-inspired"] .public-body .signal-pill,
html[data-profile="zeroheight-inspired"] .public-body .section-index,
html[data-profile="zeroheight-inspired"] .public-body .micro-label,
html[data-profile="zeroheight-inspired"] .public-body .eyebrow{color:var(--brand-strong)!important;background:var(--surface-muted)!important;background-image:none!important;border-color:var(--border)!important}
html[data-profile="zeroheight-inspired"] .public-body .hero{min-height:0!important;padding-block:clamp(48px,7vw,92px)!important}
html[data-profile="zeroheight-inspired"] .public-body .hero-copy{max-width:760px!important}
html[data-profile="zeroheight-inspired"] .public-body .hero-copy h1{font-size:clamp(3rem,6vw,5.6rem)!important;line-height:1!important;letter-spacing:-.045em!important;max-width:13ch!important}
html[data-profile="zeroheight-inspired"] .public-body .hero-system :is(strong,.metric-value,.stat strong){color:var(--brand)!important}
html[data-profile="zeroheight-inspired"] .public-body .tech-list span{background:var(--surface-muted)!important;border-color:var(--border)!important;color:var(--text-muted)!important}
html[data-profile="zeroheight-inspired"] .public-body .site-header{background:color-mix(in srgb,var(--surface) 94%,transparent)!important;backdrop-filter:blur(12px)!important;-webkit-backdrop-filter:blur(12px)!important}

/* Prompt Factory / operational profile: eliminate the old cyber-gradient layer. */
html[data-profile="akeneo-inspired"] body{background:var(--canvas)!important;background-image:none!important}
html[data-profile="akeneo-inspired"] .app-shell{background:var(--canvas)!important;background-image:none!important;color:var(--text)!important}
html[data-profile="akeneo-inspired"] :is(.command-hero-copy h1,.topbar h1,.section-head h1,.account-shell h1,.auth-card h1){background:none!important;background-image:none!important;-webkit-background-clip:border-box!important;background-clip:border-box!important;-webkit-text-fill-color:currentColor!important;color:var(--text)!important;text-shadow:none!important}
html[data-profile="akeneo-inspired"] :is(.command-kicker,.section-index,.eyebrow,.metrics-strip span,.command-status-grid span){color:var(--text-muted)!important}
html[data-profile="akeneo-inspired"] :is(.command-status-grid strong,.metrics-strip strong,.kpi strong){color:var(--text)!important}
html[data-profile="akeneo-inspired"] :is(.command-status-grid article::after,.metrics-strip article::before){background:var(--brand)!important;background-image:none!important}
html[data-profile="akeneo-inspired"] :is(.zip-tree,.prompt-output,pre){background:var(--surface-muted)!important;color:var(--text)!important;border-color:var(--border)!important}
html[data-profile="akeneo-inspired"] .side-nav{gap:2px!important}
html[data-profile="akeneo-inspired"] .nav-item{border-radius:8px!important}

/* Parent site and documentation profile. */
html[data-profile="zeroheight-inspired"] .hero h1{color:var(--text)!important;max-width:16ch}
html[data-profile="zeroheight-inspired"] .project-card{transition:transform var(--ds-duration-normal) var(--ds-ease-standard),border-color var(--ds-duration-normal) var(--ds-ease-standard),box-shadow var(--ds-duration-normal) var(--ds-ease-standard)!important}
html[data-profile="zeroheight-inspired"] .project-card:hover{transform:translateY(-2px);border-color:var(--brand)!important}

/* Tables, feedback, badges. */
:is(table,.ds-table,.data-table,.growth-table){background:var(--surface)!important;color:var(--text)!important;border-color:var(--border)!important}
:is(th,.ds-table th,.data-table th,.growth-table th){background:var(--surface-muted)!important;color:var(--text-muted)!important;border-color:var(--border)!important}
:is(td,.ds-table td,.data-table td,.growth-table td){border-color:var(--border)!important;color:var(--text)!important}
:is(.badge,.ds-badge,.pill,.tag,.score-pill,.lang-pill,.filter-chip){background:var(--surface-muted)!important;color:var(--text-muted)!important;border-color:var(--border)!important}
:is(.badge,.ds-badge,.pill,.tag,.score-pill,.lang-pill,.filter-chip).is-active{color:var(--brand-strong)!important;border-color:var(--brand)!important}
:is(.notice,.alert,.message-bar,.ds-callout){background:var(--surface-muted)!important;color:var(--text)!important;border-color:var(--border)!important;border-inline-start-color:var(--brand)!important}
:is(.notice,.alert,.message-bar).success{border-inline-start-color:var(--success)!important}
:is(.notice,.alert,.message-bar).danger{border-inline-start-color:var(--danger)!important}

/* Theme/language segmented controls. */
:is(.content-language-switch,.lang-switch,.mode-switch,.fd-theme-control,.theme-mode-switch){background:var(--surface-muted)!important;border:1px solid var(--border)!important;box-shadow:none!important}
:is(.content-language-switch a,.lang-switch a,.mode-switch button,.fd-theme-option,.theme-mode-switch button){background:transparent!important;background-image:none!important;color:var(--text-muted)!important;border-color:transparent!important;box-shadow:none!important}
:is(.content-language-switch a[aria-current="page"],.lang-switch a[aria-current="page"],.mode-switch button[aria-pressed="true"],.fd-theme-option[aria-pressed="true"],.theme-mode-switch button.is-active){background:var(--surface)!important;color:var(--brand-strong)!important;border-color:var(--border)!important}

/* Source motion model: 100/180/280ms; animate hierarchy, not every card. */
.ds-motion-enter{opacity:0;transform:translateY(12px);transition:opacity var(--ds-duration-slow) var(--ds-ease-enter),transform var(--ds-duration-slow) var(--ds-ease-enter)!important;will-change:opacity,transform}
.ds-motion-enter[data-ds-motion="header"]{transform:translateY(-8px);transition-duration:var(--ds-duration-normal)!important}
.ds-motion-enter[data-ds-motion="hero"]{transform:translateY(16px)}
.ds-motion-enter[data-ds-motion="section"]{transform:translateY(10px)}
.ds-motion-enter.is-in{opacity:1;transform:none;will-change:auto}
:is(.ds-card,.project-card,.project-tile,.article-list-card,.row-action,.nav-item,.fd-admin-menu-link,.ds-nav a){transition:background-color var(--ds-duration-fast) var(--ds-ease-standard),border-color var(--ds-duration-fast) var(--ds-ease-standard),color var(--ds-duration-fast) var(--ds-ease-standard),transform var(--ds-duration-fast) var(--ds-ease-standard),box-shadow var(--ds-duration-fast) var(--ds-ease-standard)!important}
:is(.ds-card,.project-card,.project-tile,.article-list-card)[data-ds-interactive="true"]:hover{transform:translateY(-2px)}

/* Width, zoom, RTL and touch constraints. */
img,svg,video,canvas,iframe{max-width:100%;height:auto}
pre,code{max-width:100%}pre{overflow:auto}
.fd-shell,.shell,.growth-shell,.admin-shell,.account-shell,.workspace,.marketing-shell{width:min(calc(100% - (2 * var(--ds-page-gutter))),var(--page-max));max-width:var(--page-max);margin-inline:auto}
html[data-profile="akeneo-inspired"] :is(.fd-shell,.shell,.growth-shell,.admin-shell,.account-shell,.workspace,.marketing-shell){--page-max:1500px}
html[data-profile="zeroheight-inspired"] :is(.fd-shell,.shell,.growth-shell,.admin-shell,.account-shell,.workspace,.marketing-shell){--page-max:1180px}
.fd-table-wrap,.admin-table-wrap,.table-wrap,[style*="overflow:auto"]{max-width:100%}
[dir="rtl"] :is(th,td){text-align:start}
@media(max-width:900px){
  :root{--ds-page-gutter:20px}.ds-shell{grid-template-columns:1fr}.ds-sidebar{position:relative!important;height:auto!important;border-right:0!important;border-bottom:1px solid var(--border)!important}.ds-grid{grid-template-columns:1fr}.ds-page{padding:32px 20px 72px}.ds-topbar{position:relative!important;justify-content:flex-start!important;flex-wrap:wrap!important}
  .hero-grid,.contact-grid{grid-template-columns:1fr!important}.app-shell{display:block!important}.app-shell .sidebar{position:relative!important;width:100%!important;height:auto!important}.app-shell .workspace{width:calc(100% - 40px)!important;margin-inline:auto!important}.side-nav{display:flex!important;overflow:auto!important}.side-nav .nav-item{flex:0 0 auto!important}
}
@media(max-width:600px){
  :root{--ds-page-gutter:14px}.fd-shell,.shell,.growth-shell,.admin-shell,.account-shell,.workspace,.marketing-shell{width:calc(100% - 28px)!important}.hero{padding-block:40px!important}.public-body .hero-copy h1{font-size:clamp(2.5rem,12vw,3.6rem)!important}.ds-page h1{font-size:clamp(2rem,11vw,3rem)}
  :is(.ds-button,.fd-button,.button,.admin-button,.row-action,.cta,.header-contact,.project-action,button[type="submit"]){min-height:44px}.fd-form-grid,.form-grid,.form-columns,.automation-filter-bar{grid-template-columns:1fr!important}
}
@media(max-width:390px){.fd-shell,.shell,.growth-shell,.admin-shell,.account-shell,.workspace,.marketing-shell{width:calc(100% - 20px)!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}.ds-motion-enter{opacity:1!important;transform:none!important;will-change:auto!important}}
@media(forced-colors:active){:focus-visible{outline:3px solid CanvasText!important}}

/* ============================================================
   SOURCE DESIGN SYSTEM 2.1 — FINAL SPECIFICITY SHIELD
   Purpose: neutralise legacy product-theme declarations that used
   high-specificity selectors / !important gradients. This block is
   intentionally last and keeps the reference palette authoritative.
   ============================================================ */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}

/* Akeneo operational/admin UI: exact source semantics, no legacy gradients. */
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .sidebar,
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .topbar,
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .topbar-actions,
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .mobile-studio-bar,
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .studio-command-deck,
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .panel,
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .side-card,
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .command-status-grid article,
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .metrics-strip article,
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .member-access-banner,
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .naming-rule-grid article,
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .visual-auto-contract article,
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .check-card,
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .toggle-list label{
  background:var(--surface)!important;background-image:none!important;color:var(--text)!important;
  border-color:var(--border)!important;box-shadow:none!important;text-shadow:none!important
}
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .check-card,
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .toggle-list label,
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .command-status-grid article,
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .metrics-strip article,
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .naming-rule-grid article,
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .visual-auto-contract article{
  background:var(--surface-muted)!important
}
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .brand-mark,
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .sidebar .brand-mark{
  background:var(--brand)!important;background-image:none!important;color:#FFFFFF!important;box-shadow:none!important
}
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .nav-item,
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .sidebar .nav-item{
  background:transparent!important;background-image:none!important;color:var(--text-muted)!important;
  border-color:transparent!important;box-shadow:none!important;transform:none!important
}
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .nav-item:hover,
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .sidebar .nav-item:hover{
  background:var(--surface-muted)!important;background-image:none!important;color:var(--brand-strong)!important;
  border-color:var(--border)!important;transform:none!important
}
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .nav-item.active,
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .sidebar .nav-item.active{
  background:var(--surface-muted)!important;background-image:none!important;color:var(--brand-strong)!important;
  border-color:var(--border)!important;box-shadow:none!important
}
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .nav-item span,
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .sidebar .nav-item span{color:var(--brand-strong)!important}
html[data-profile="akeneo-inspired"] .button.primary,
html[data-profile="akeneo-inspired"] a.button.primary,
html[data-profile="akeneo-inspired"] button.button.primary,
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .button.primary,
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] a.button.primary,
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] button.button.primary,
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] #generateMobile{
  background:var(--brand)!important;background-image:none!important;color:#FFFFFF!important;
  border-color:transparent!important;box-shadow:none!important;text-shadow:none!important
}
html[data-profile="akeneo-inspired"] .button.primary:hover,
html[data-profile="akeneo-inspired"] a.button.primary:hover,
html[data-profile="akeneo-inspired"] button.button.primary:hover,
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .button.primary:hover,
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] a.button.primary:hover,
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] button.button.primary:hover,
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] #generateMobile:hover{
  background:var(--brand-strong)!important;background-image:none!important;color:#FFFFFF!important
}
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] :is(.studio-command-deck,.panel,.side-card,.command-status-grid article,.metrics-strip article,.member-access-banner,.naming-rule-grid article,.visual-auto-contract article,.check-card,.toggle-list label)::before,
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] :is(.studio-command-deck,.panel,.side-card,.command-status-grid article,.metrics-strip article,.member-access-banner,.naming-rule-grid article,.visual-auto-contract article,.check-card,.toggle-list label)::after{
  background-image:none!important;box-shadow:none!important
}

/* Zeroheight public/marketing UI: exact source pink + aubergine palette. */
html[data-profile="zeroheight-inspired"] body.public-body,
html[data-profile="zeroheight-inspired"] body.parent-body,
html[data-profile="zeroheight-inspired"] body.docs-body{
  background:var(--canvas)!important;background-image:none!important;color:var(--text)!important
}
html[data-profile="zeroheight-inspired"] body.public-body .site-header,
html[data-profile="zeroheight-inspired"] body.parent-body .site-header,
html[data-profile="zeroheight-inspired"] body.docs-body .site-header{
  background:color-mix(in srgb,var(--surface) 96%,transparent)!important;background-image:none!important;
  border-color:var(--border)!important;box-shadow:none!important
}
html[data-profile="zeroheight-inspired"] body.public-body .header-contact,
html[data-profile="zeroheight-inspired"] body.parent-body .header-contact,
html[data-profile="zeroheight-inspired"] body.public-body .cta.primary,
html[data-profile="zeroheight-inspired"] body.parent-body .cta.primary{
  background:var(--brand)!important;background-image:none!important;color:#FFFFFF!important;border-color:transparent!important;box-shadow:none!important
}
html[data-profile="zeroheight-inspired"] body.public-body .header-contact:hover,
html[data-profile="zeroheight-inspired"] body.parent-body .header-contact:hover,
html[data-profile="zeroheight-inspired"] body.public-body .cta.primary:hover,
html[data-profile="zeroheight-inspired"] body.parent-body .cta.primary:hover{
  background:var(--brand-strong)!important;background-image:none!important;color:#FFFFFF!important
}
html[data-profile="zeroheight-inspired"] body.public-body .site-nav a.active,
html[data-profile="zeroheight-inspired"] body.public-body .site-nav a[aria-current="page"],
html[data-profile="zeroheight-inspired"] body.parent-body .site-nav a.active,
html[data-profile="zeroheight-inspired"] body.parent-body .site-nav a[aria-current="page"]{
  background:var(--surface-muted)!important;background-image:none!important;color:var(--brand-strong)!important;border-color:var(--border)!important
}
html[data-profile="zeroheight-inspired"] body.public-body :is(.hero-system,.hero-card,.project-card,.project-tile,.article-list-card,.article-stream,.article-gallery,.content-panel,.newsletter-panel),
html[data-profile="zeroheight-inspired"] body.parent-body :is(.hero-system,.hero-card,.project-card,.content-panel,.service-card,.portal-card){
  background:var(--surface)!important;background-image:none!important;border-color:var(--border)!important;box-shadow:var(--shadow)!important;color:var(--text)!important
}
html[data-profile="zeroheight-inspired"] body.public-body :is(.hero-system,.hero-card) :is(.metric-strip,.metric-grid,.stats-grid,.stat-grid),
html[data-profile="zeroheight-inspired"] body.parent-body :is(.hero-system,.hero-card) :is(.metric-strip,.metric-grid,.stats-grid,.stat-grid){
  background:var(--surface-muted)!important;background-image:none!important;border-color:var(--border)!important;color:var(--text)!important
}
html[data-profile="zeroheight-inspired"] body.public-body :is(.hero-system,.hero-card) :is(strong,.metric-value,.stat strong),
html[data-profile="zeroheight-inspired"] body.parent-body :is(.hero-system,.hero-card) :is(strong,.metric-value,.stat strong){color:var(--brand)!important}
html[data-profile="zeroheight-inspired"] body.public-body .hero-copy h1,
html[data-profile="zeroheight-inspired"] body.parent-body .hero-copy h1{color:var(--text)!important;text-shadow:none!important}
html[data-profile="zeroheight-inspired"] body.public-body .hero-copy h1 :is(span,strong,b,em),
html[data-profile="zeroheight-inspired"] body.parent-body .hero-copy h1 :is(span,strong,b,em){background:none!important;background-image:none!important;-webkit-text-fill-color:currentColor!important}
html[data-profile="zeroheight-inspired"] body.public-body .hero-copy h1 em,
html[data-profile="zeroheight-inspired"] body.parent-body .hero-copy h1 em{color:var(--brand)!important}
html[data-profile="zeroheight-inspired"] body.public-body .hero-copy h1 b,
html[data-profile="zeroheight-inspired"] body.parent-body .hero-copy h1 b{color:var(--brand-strong)!important}

/* Shared source motion contract. Never animate every card automatically. */
.ds-motion-enter{animation:ds-source-enter var(--ds-duration-slow) var(--ds-ease-enter) both}
.ds-motion-reveal{opacity:0;transform:translateY(12px)}
.ds-motion-reveal.is-visible{animation:ds-source-enter var(--ds-duration-slow) var(--ds-ease-enter) both}
@keyframes ds-source-enter{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.ds-motion-enter,.ds-motion-reveal,.ds-motion-reveal.is-visible{animation:none!important;opacity:1!important;transform:none!important}}

/* Authenticated Prompt Factory body must also defeat legacy html[data-theme] body gradients. */
html[data-profile="akeneo-inspired"] body[data-authenticated="1"],
html[data-profile="akeneo-inspired"] body.auth-page,
html[data-profile="akeneo-inspired"] body.admin-auth-page,
html[data-profile="akeneo-inspired"] body.marketing-page{
  background:var(--canvas)!important;background-image:none!important;color:var(--text)!important
}

/* Prompt Factory exact Akeneo geometry + field semantics (legacy V22 specificity override). */
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] :is(.studio-command-deck,.panel,.side-card,.command-status-grid article,.metrics-strip article,.member-access-banner,.section-card,.naming-rule-grid article,.visual-auto-contract article,.topbar-actions,.mobile-studio-bar,.account-chip){
  border-radius:var(--card-radius)!important;border-color:var(--border)!important;box-shadow:none!important
}
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] :is(.button,.button.primary,.button.ghost,.button.subtle,.mobile-studio-bar button),
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] #generateMobile{
  border-radius:var(--control-radius)!important;min-height:var(--control-height)!important;box-shadow:none!important
}
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] :is(.button.ghost,.button.subtle),
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .mobile-studio-bar button:not(#generateMobile){
  background:transparent!important;background-image:none!important;color:var(--text)!important;border-color:var(--border)!important
}
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] :is(input,select,textarea){
  background:var(--surface)!important;background-image:none!important;color:var(--text)!important;
  border:1px solid var(--border)!important;border-radius:var(--control-radius)!important;box-shadow:none!important
}
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] :is(input,select,textarea):focus{
  border-color:var(--focus)!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--focus) 24%,transparent)!important
}
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .prompt-output{
  background:var(--surface-muted)!important;background-image:none!important;color:var(--text)!important;
  border-color:var(--border)!important;border-radius:var(--card-radius)!important;box-shadow:none!important
}
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .section-index{
  background:var(--surface-muted)!important;background-image:none!important;color:var(--brand-strong)!important;
  border:1px solid var(--border)!important;border-radius:var(--card-radius)!important;box-shadow:none!important
}
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] :is(.command-kicker,.command-hero-copy p,.command-status-grid small,.metrics-strip span,.section-heading p,.naming-rule-grid small,.visual-auto-contract article>p){color:var(--text-muted)!important}
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .brand-mark{border-radius:var(--ds-radius-lg)!important}
html[data-profile="akeneo-inspired"] body[data-authenticated="1"] .nav-item{border-radius:var(--ds-radius-md)!important}

/* V2.2.0 shared editorial motion primitives — source palette, motion only when it communicates state. */
:root{--fd-motion-fast:100ms;--fd-motion-normal:180ms;--fd-motion-slow:280ms}
.fd-enter{animation:fd-ds-enter var(--fd-motion-slow) cubic-bezier(.2,.8,.2,1) both}.fd-interactive{transition:transform var(--fd-motion-normal) ease,box-shadow var(--fd-motion-normal) ease,border-color var(--fd-motion-normal) ease}.fd-interactive:hover{transform:translateY(-1px)}
@keyframes fd-ds-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.fd-enter{animation:none!important}.fd-interactive{transition:none!important}}

/* V2.2 content-safety motion: motion may never make essential content disappear. */
.ds-motion-enter,.ds-motion-reveal{opacity:1!important}.ds-motion-enter{animation:ds-source-enter-safe var(--ds-duration-slow) var(--ds-ease-enter) both}@keyframes ds-source-enter-safe{from{transform:translateY(8px)}to{transform:none}}


/* ================================================================
   V2.3.0 — COMPONENT DESIGN + MOTION + FRAME GEOMETRY
   Source: DESIGN_SYSTEM_AKENEO_ZEROHEIGHT_LOCAL_MASTER
   Vanilla HTML/CSS/JS only. No frontend framework.
   Motion follows source tokens: 100ms / 180ms / 280ms and communicates
   hierarchy, state or causality; it is not a decorative blanket animation.
   ================================================================ */
:root{
  --ds-container-xs:360px;--ds-container-sm:600px;--ds-container-md:840px;--ds-container-lg:1200px;--ds-container-xl:1440px;
  --ds-frame-landscape:16/9;--ds-frame-standard:4/3;--ds-frame-square:1/1;--ds-frame-portrait:3/4;
  --ds-content-measure:72ch;--ds-sidebar-width:260px;
  --ds-motion-distance-sm:4px;--ds-motion-distance-md:10px;--ds-motion-scale:.985;
}
/* Every reusable frame owns its geometry. Content may grow; cards are never
   forced into an arbitrary fixed height just to make rows look equal. */
:is(.ds-card,.fd-card,.project-card,.project-tile,.article-list-card,.admin-panel,.panel,.account-card,.hero-card,.service-card,.portal-card,.capability,.check-card){
  min-inline-size:0;min-block-size:0;height:auto;max-inline-size:100%;overflow-wrap:anywhere;
}
:is(.ds-grid,.project-grid,.cards-grid,.admin-stats,.capabilities){align-items:stretch}
.ds-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}
:is(.ds-card,.project-card,.project-tile,.article-list-card)>:first-child{margin-block-start:0}
:is(.ds-card,.project-card,.project-tile,.article-list-card)>:last-child{margin-block-end:0}

/* Media/frame primitives. Use a declared ratio only for media; textual cards
   remain content-sized. This prevents images/video from escaping their frame. */
.ds-frame,.fd-frame,.media-frame,.visual-frame,.article-media-frame,.project-media-frame{
  --ds-frame-ratio:var(--ds-frame-landscape);position:relative;display:block;inline-size:100%;max-inline-size:100%;
  aspect-ratio:var(--ds-frame-ratio);overflow:hidden;border:1px solid var(--border);border-radius:var(--card-radius);background:var(--surface-muted)
}
.ds-frame[data-ratio="4:3"],.fd-frame[data-ratio="4:3"]{--ds-frame-ratio:var(--ds-frame-standard)}
.ds-frame[data-ratio="1:1"],.fd-frame[data-ratio="1:1"]{--ds-frame-ratio:var(--ds-frame-square)}
.ds-frame[data-ratio="3:4"],.fd-frame[data-ratio="3:4"]{--ds-frame-ratio:var(--ds-frame-portrait)}
:is(.ds-frame,.fd-frame,.media-frame,.visual-frame,.article-media-frame,.project-media-frame) :is(img,picture,video,canvas,svg){inline-size:100%;block-size:100%;max-inline-size:100%;object-fit:cover;display:block}
:is(.ds-frame,.fd-frame)[data-fit="contain"] :is(img,picture,video,canvas,svg){object-fit:contain}
picture{display:block;max-inline-size:100%}picture>img{max-inline-size:100%;block-size:auto}
figure{max-inline-size:100%;margin-inline:0}figure>:is(img,picture,video,canvas,svg){max-inline-size:100%;block-size:auto}
iframe{inline-size:100%;max-inline-size:100%;border:0}

/* Component anatomy: quiet surfaces, exact profile tokens, stable dimensions. */
.ds-component{container-type:inline-size;min-inline-size:0}
.ds-component__header{display:flex;align-items:flex-start;justify-content:space-between;gap:var(--ds-space-4);margin-block-end:var(--ds-space-4)}
.ds-component__title{margin:0;font-size:1rem;line-height:1.25}
.ds-component__body{min-inline-size:0}
.ds-component__actions{display:flex;align-items:center;gap:var(--ds-space-2);flex-wrap:wrap}
.ds-stack{display:flex;flex-direction:column;gap:var(--ds-space-4);min-inline-size:0}
.ds-cluster{display:flex;align-items:center;gap:var(--ds-space-2);flex-wrap:wrap;min-inline-size:0}
.ds-auto-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:var(--ds-space-4);min-inline-size:0}
.ds-reading{max-inline-size:var(--ds-content-measure)}
.ds-scroll-region{max-inline-size:100%;overflow:auto;overscroll-behavior-inline:contain;-webkit-overflow-scrolling:touch}

/* Buttons: predictable geometry + source motion. */
:is(.ds-button,.fd-button,.button,.admin-button,.row-action,.cta,.header-contact,.project-action,.fd-admin-update-button,.admin-global-update-button,button[type="submit"]){
  position:relative;isolation:isolate;overflow:hidden;inline-size:auto;max-inline-size:100%;white-space:normal;text-wrap:balance;
  transition:background-color var(--ds-duration-fast) var(--ds-ease-standard),border-color var(--ds-duration-fast) var(--ds-ease-standard),color var(--ds-duration-fast) var(--ds-ease-standard),transform var(--ds-duration-fast) var(--ds-ease-standard),box-shadow var(--ds-duration-normal) var(--ds-ease-standard)!important;
}
:is(.ds-button,.fd-button,.button,.admin-button,.row-action,.cta,.header-contact,.project-action,.fd-admin-update-button,.admin-global-update-button,button[type="submit"]):not(:disabled):hover{transform:translateY(-1px)}
:is(.ds-button,.fd-button,.button,.admin-button,.row-action,.cta,.header-contact,.project-action,.fd-admin-update-button,.admin-global-update-button,button[type="submit"]):not(:disabled):active{transform:translateY(1px) scale(.99)}
:is(button,[role="button"],.ds-button,.fd-button,.cta)[aria-busy="true"]{cursor:progress;padding-inline-end:42px!important}
:is(button,[role="button"],.ds-button,.fd-button,.cta)[aria-busy="true"]::after{content:"";position:absolute;inset-inline-end:14px;inset-block-start:50%;inline-size:14px;block-size:14px;margin-block-start:-7px;border:2px solid currentColor;border-inline-end-color:transparent;border-radius:50%;animation:ds-spin var(--ds-duration-slow) linear infinite}
.ds-ripple{position:absolute;z-index:-1;inline-size:12px;block-size:12px;border-radius:50%;pointer-events:none;background:color-mix(in srgb,currentColor 18%,transparent);transform:translate(-50%,-50%) scale(0);animation:ds-ripple 420ms var(--ds-ease-exit) forwards}
@keyframes ds-ripple{to{transform:translate(-50%,-50%) scale(18);opacity:0}}
@keyframes ds-spin{to{transform:rotate(360deg)}}

/* Navigation and selection motion: indicator explains active destination. */
:is(.site-nav a,.nav-links a,.ds-nav a,.side-nav .nav-item,.fd-admin-menu-link,.admin-sidebar-nav a){position:relative}
:is(.site-nav a,.nav-links a,.ds-nav a,.side-nav .nav-item,.fd-admin-menu-link,.admin-sidebar-nav a)::after{content:"";position:absolute;inset-inline:10px;inset-block-end:2px;block-size:2px;border-radius:2px;background:var(--brand);transform:scaleX(0);transform-origin:center;transition:transform var(--ds-duration-normal) var(--ds-ease-standard)}
:is(.site-nav a,.nav-links a,.ds-nav a,.side-nav .nav-item,.fd-admin-menu-link,.admin-sidebar-nav a):is(:hover,[aria-current="page"],.active,.is-active)::after{transform:scaleX(1)}

/* Major hierarchy motion only — source rule explicitly forbids animating every card. */
.ds-animate-header{animation:ds-enter-top var(--ds-duration-normal) var(--ds-ease-enter) both}
.ds-animate-hero{animation:ds-enter-up var(--ds-duration-slow) var(--ds-ease-enter) both}
.ds-animate-section{animation:ds-enter-up var(--ds-duration-slow) var(--ds-ease-enter) both}
.ds-animate-feedback{animation:ds-feedback-in var(--ds-duration-normal) var(--ds-ease-enter) both}
.ds-animate-collapse{animation:ds-collapse-in var(--ds-duration-normal) var(--ds-ease-enter) both}
@keyframes ds-enter-top{from{opacity:.01;transform:translateY(calc(-1 * var(--ds-motion-distance-md)))}to{opacity:1;transform:none}}
@keyframes ds-enter-up{from{opacity:.01;transform:translateY(var(--ds-motion-distance-md))}to{opacity:1;transform:none}}
@keyframes ds-feedback-in{from{opacity:.01;transform:scale(var(--ds-motion-scale))}to{opacity:1;transform:none}}
@keyframes ds-collapse-in{from{opacity:.01;transform:translateY(calc(-1 * var(--ds-motion-distance-sm)))}to{opacity:1;transform:none}}

/* Details/dropdowns: animate revealed content; nothing is hidden if JS fails. */
details>summary{cursor:pointer;transition:color var(--ds-duration-fast) var(--ds-ease-standard),background-color var(--ds-duration-fast) var(--ds-ease-standard)}
details[open]>:not(summary){animation:ds-collapse-in var(--ds-duration-normal) var(--ds-ease-enter) both}

/* Form states. */
:is(input,select,textarea,.ds-input){max-inline-size:100%;transition:border-color var(--ds-duration-fast) var(--ds-ease-standard),box-shadow var(--ds-duration-fast) var(--ds-ease-standard),background-color var(--ds-duration-normal) var(--ds-ease-standard)}
:is(input,select,textarea,.ds-input):focus{border-color:var(--focus)!important;box-shadow:0 0 0 3px color-mix(in srgb,var(--focus) 20%,transparent)!important}
:is(input,select,textarea)[aria-invalid="true"]{border-color:var(--danger)!important}

/* Message bars/toasts use motion to explain arrival/change. */
:is(.notice,.alert,.message-bar,.admin-alert,.toast)[data-ds-animate="feedback"]{animation:ds-feedback-in var(--ds-duration-normal) var(--ds-ease-enter) both}

/* Responsive card/frame policy. */
@container (max-width:420px){.ds-component__header{flex-direction:column}.ds-component__actions{inline-size:100%}.ds-component__actions>*{flex:1 1 auto}}
@media(max-width:840px){
  .ds-auto-grid{grid-template-columns:1fr}.ds-component__header{gap:var(--ds-space-3)}
  :is(.hero-card,.project-card,.article-list-card,.admin-panel,.panel,.account-card){max-inline-size:100%}
}
@media(max-width:600px){
  :is(.ds-button,.fd-button,.button,.admin-button,.row-action,.cta,.header-contact,.project-action,.fd-admin-update-button,.admin-global-update-button,button[type="submit"]){min-block-size:44px;padding-inline:14px}
  .ds-frame,.fd-frame,.media-frame,.visual-frame,.article-media-frame,.project-media-frame{border-radius:min(var(--card-radius),12px)}
}
@media(prefers-reduced-motion:reduce){
  .ds-animate-header,.ds-animate-hero,.ds-animate-section,.ds-animate-feedback,.ds-animate-collapse,.ds-ripple,
  details[open]>:not(summary){animation:none!important;transform:none!important;opacity:1!important}
  :is(.ds-button,.fd-button,.button,.admin-button,.row-action,.cta,.header-contact,.project-action,.fd-admin-update-button,.admin-global-update-button,button[type="submit"]){transition:none!important}
}

/* Integrated Design System backlink: documentation remains part of fouadelh.store. */
.ds-parent-link{display:inline-flex;align-items:center;min-block-size:40px;margin:var(--ds-space-3,12px) 0;color:var(--text);font-weight:700;text-decoration:none;border-radius:var(--control-radius,8px);padding:6px 10px;transition:background-color var(--ds-duration-fast) var(--ds-ease-standard),color var(--ds-duration-fast) var(--ds-ease-standard),transform var(--ds-duration-fast) var(--ds-ease-standard)}
.ds-parent-link:hover{background:var(--surface-muted);color:var(--brand-strong)}
.ds-parent-link:active{transform:translateY(1px)}
