/* AIAI_MOBILE_DECISION_STATE_LOCK_V1
   Mobile-only /decision presentation. Desktop remains on the existing PBX/Luminous layout.
   UI layer only: no search, ranking, verdict, database, capture, or routing logic. */

body.page-decision-wizard .amd1{display:none}
body.page-decision-wizard .aiai-v8-mobile-head{display:none!important}
body.page-decision-wizard .aiai-v8-desktop-head{display:flex!important}

@media (max-width:620px){
  body.public-design-v440.aiai-luminous-internal-v1.page-decision-wizard{
    --amd1-outer:#f7f1e5;
    --amd1-paper:#fffefb;
    --amd1-ink:#1f1d19;
    --amd1-soft:#6f6a62;
    --amd1-faint:#aaa49a;
    --amd1-line:#e8e1d5;
    --amd1-gold:#9a7832;
    --amd1-gold2:#b79b61;
    --amd1-sage:#6f846e;
    --amd1-mauve:#77717f;
    --amd1-clay:#9c735f;
    --amd1-serif:"Noto Naskh Arabic","Amiri","Times New Roman",serif;
    --amd1-sans:"IBM Plex Sans Arabic",Tahoma,Arial,sans-serif;
    background:var(--amd1-paper)!important;
    color:var(--amd1-ink)!important;
    overflow-x:clip!important;
  }

  body.page-decision-wizard main{background:var(--amd1-paper)!important;overflow:visible!important}
  body.page-decision-wizard .pbx-decision-shell{display:none!important}
  body.page-decision-wizard .amd1{display:block!important;max-width:430px;margin:0 auto;padding:31px 0 0;background:var(--amd1-paper);font-family:var(--amd1-sans)}
  body.page-decision-wizard .amd1-wrap{padding:0 26px}

  /* Approved shared mobile shell */
  body.page-decision-wizard .aiai-v8-desktop-head{display:none!important}
  body.page-decision-wizard .aiai-v8-mobile-head{display:grid!important}
  body.public-design-v440.aiai-luminous-internal-v1.page-decision-wizard .aiai-v8-header>.aiai-v8-desktop-head,
  body.public-design-v440.aiai-luminous-internal-v1.page-decision-wizard .aiai-v8-header>.aiai-v8-desktop-head::before,
  body.public-design-v440.aiai-luminous-internal-v1.page-decision-wizard .aiai-v8-header>.aiai-v8-desktop-head::after{display:none!important;content:none!important}
  body.page-decision-wizard .aiai-v8-header{
    position:relative!important;z-index:80!important;height:98px!important;min-height:98px!important;
    padding:calc(env(safe-area-inset-top,0px) + 10px) 22px 17px!important;
    overflow:visible!important;background:linear-gradient(180deg,#faf5e9,#f7f0e1)!important;
    border:0!important;border-bottom:1px solid rgba(154,120,50,.08)!important;box-shadow:none!important;pointer-events:none
  }
  body.page-decision-wizard .aiai-v8-header::after{
    content:"";position:absolute;z-index:0;left:-3%;right:-3%;bottom:-20px;height:34px;
    background:var(--amd1-paper);border-radius:50% 50% 0 0/48% 48% 0 0;border-top:1px solid #ece4d7
  }
  body.page-decision-wizard .aiai-v8-mobile-head{position:relative;z-index:2;grid-template-columns:48px 1fr 48px;direction:rtl;align-items:center;width:100%;pointer-events:auto}
  body.page-decision-wizard .aiai-v8-head-action{width:48px;height:48px;border-radius:50%;border:1px solid #e7dfd1;background:rgba(255,255,255,.82);display:grid;place-items:center;color:#80682f;box-shadow:none}
  body.page-decision-wizard button.aiai-v8-head-action{padding:0;cursor:pointer}
  body.page-decision-wizard .aiai-v8-head-action svg{width:22px;height:22px;display:block;color:currentColor}
  body.page-decision-wizard .aiai-v8-account{justify-self:end}
  body.page-decision-wizard .aiai-v8-menu{justify-self:start}
  body.page-decision-wizard .aiai-v8-brand{justify-self:center;display:flex;align-items:center;gap:9px;text-decoration:none!important;color:#171510!important;font-family:var(--amd1-serif);font-size:27px;font-weight:700;line-height:1;white-space:nowrap}
  body.page-decision-wizard .aiai-v8-brand bdi{font-family:Georgia,"Times New Roman",serif;font-size:23px;font-style:italic;color:var(--amd1-gold);font-weight:500}
  body.page-decision-wizard .aiai-v8-brand-seal{width:33px;height:33px;border-radius:50%;border:1px dotted var(--amd1-gold2);display:grid;place-items:center;color:var(--amd1-gold)}
  body.page-decision-wizard .aiai-v8-brand-seal svg{width:16px;height:16px}
  body.page-decision-wizard .aiai-v8-mobile-nav{position:absolute!important;top:62px!important;right:0!important;left:0!important;display:none!important;padding:8px!important;border:1px solid var(--amd1-line)!important;border-radius:17px!important;background:rgba(255,254,251,.985)!important;box-shadow:0 24px 70px -42px rgba(67,52,27,.32)!important;backdrop-filter:blur(18px)!important}
  body.page-decision-wizard .aiai-v8-mobile-nav.is-open{display:grid!important}
  body.page-decision-wizard .aiai-v8-mobile-nav a{display:flex!important;align-items:center!important;justify-content:space-between!important;min-height:48px!important;padding:0 12px!important;border-bottom:1px solid var(--amd1-line)!important;color:var(--amd1-ink)!important;text-decoration:none!important;font-size:13px!important}
  body.page-decision-wizard .aiai-v8-mobile-nav a:last-child{border-bottom:0!important}

  /* Shared typography and controls */
  body.page-decision-wizard .amd1 :where(h1,h2,p,dl,dt,dd){margin:0}
  body.page-decision-wizard .amd1 :where(input,button){font:inherit;color:inherit}
  body.page-decision-wizard .amd1 a{text-decoration:none;color:inherit}
  body.page-decision-wizard .amd1-eyebrow{display:block;color:var(--amd1-gold);font-size:11.5px;font-weight:800;line-height:1.5}
  body.page-decision-wizard .amd1 :where(.amd1-entry,.amd1-clarify,.amd1-resolve){padding:18px 0 30px}
  body.page-decision-wizard .amd1 :where(.amd1-entry>h1,.amd1-clarify>h1,.amd1-resolvehead h1){max-width:100%;overflow-wrap:break-word;font-family:var(--amd1-serif);font-size:30px;line-height:1.34;font-weight:700;margin:5px 0 7px}
  body.page-decision-wizard .amd1 :where(.amd1-entry>p,.amd1-clarify>p,.amd1-resolvehead p){font-family:var(--amd1-serif);font-size:15px;line-height:1.68;color:var(--amd1-soft);margin:0 0 16px}

  /* Ask */
  body.page-decision-wizard .amd1-search{border:1px solid var(--amd1-line);border-radius:18px;padding:7px;background:#fff;margin:0}
  body.page-decision-wizard .amd1-search input{width:100%;min-height:47px;border:0;outline:0;background:#fff;padding:9px 8px 12px;font-family:var(--amd1-serif);font-size:16.5px;line-height:1.5}
  body.page-decision-wizard .amd1-search button,
  body.page-decision-wizard .amd1-inlineanswer button,
  body.page-decision-wizard .amd1-clarifybox button,
  body.page-decision-wizard .amd1-retrybox button{width:100%;min-height:51px;border:0;border-radius:14px;background:#758b72;color:#fff;font-weight:800;margin-top:8px;padding:0 16px}
  body.page-decision-wizard .amd1-search button{margin-top:0}

  /* Resolution states */
  body.page-decision-wizard .amd1-resolvehead{padding:0 0 15px;border-bottom:1px solid var(--amd1-line)}
  body.page-decision-wizard .amd1-resolvehead p{margin-bottom:0}
  body.page-decision-wizard .amd1-querycontext{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:start;padding:13px 0;border-bottom:1px solid var(--amd1-line)}
  body.page-decision-wizard .amd1-querycontext span{display:block;color:var(--amd1-faint);font-size:11.5px;font-weight:750;margin-bottom:3px}
  body.page-decision-wizard .amd1-querycontext strong{display:block;font-family:var(--amd1-serif);font-size:15px;line-height:1.55;font-weight:650;color:#4f4b45}
  body.page-decision-wizard .amd1-querycontext>a{color:#8b8478;font-size:11.5px;font-weight:750;padding:3px 0;white-space:nowrap}
  body.page-decision-wizard .amd1-querycontext>a::before{content:"✎";font-size:11px;color:var(--amd1-gold);margin-left:5px}
  body.page-decision-wizard .amd1-resolvebody{padding:16px 0 0}
  body.page-decision-wizard .amd1-status{display:inline-block;color:var(--amd1-gold);font-size:11.5px;font-weight:800;margin-bottom:5px}
  body.page-decision-wizard .amd1-resolvebody>h2,
  body.page-decision-wizard .amd1-gapbox h2{max-width:100%;overflow-wrap:break-word;font-family:var(--amd1-serif);font-size:25px;line-height:1.44;font-weight:700;margin:0 0 7px}
  body.page-decision-wizard .amd1-optionlist{display:grid;border-top:1px solid var(--amd1-line);margin-top:5px}
  body.page-decision-wizard .amd1-option{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center;padding:13px 0;border-bottom:1px solid var(--amd1-line)}
  body.page-decision-wizard .amd1-option b{display:block;font-family:var(--amd1-serif);font-size:16px;line-height:1.45}
  body.page-decision-wizard .amd1-option small{display:block;color:var(--amd1-soft);font-size:11.5px;line-height:1.45;margin-top:2px}
  body.page-decision-wizard .amd1-option i{font-style:normal;color:var(--amd1-gold);font-size:18px}
  body.page-decision-wizard .amd1-matchedtool{display:flex;align-items:center;gap:10px;margin:0 0 12px}
  body.page-decision-wizard .amd1-matchedlogo{width:38px;height:38px;border:1px solid var(--amd1-line);border-radius:12px;display:grid;place-items:center;background:#fff;overflow:hidden}
  body.page-decision-wizard .amd1-matchedlogo :where(img,svg){width:100%;height:100%;object-fit:contain;padding:7px}
  body.page-decision-wizard .amd1-matchedtool b{font-size:15px}
  body.page-decision-wizard .amd1-inlineanswer input,
  body.page-decision-wizard .amd1-retrybox input,
  body.page-decision-wizard .amd1-clarifybox input,
  body.page-decision-wizard .amd1-edit input{width:100%;min-height:50px;border:1px solid var(--amd1-line);border-radius:14px;padding:0 13px;background:#fff;outline:none;font-size:15px}
  body.page-decision-wizard .amd1-textlink{display:inline-block;margin-top:11px;color:#756f66;font-size:12px;font-weight:750}
  body.page-decision-wizard .amd1-textlink::after{content:"↗";margin-right:6px;color:var(--amd1-gold)}

  /* Clarify */
  body.page-decision-wizard .amd1-clarifycontext{padding:12px 0 13px;margin:2px 0 0;border-top:1px solid var(--amd1-line)}
  body.page-decision-wizard .amd1-clarifycontext span{display:block;color:var(--amd1-faint);font-size:11.5px;font-weight:750;margin-bottom:3px}
  body.page-decision-wizard .amd1-clarifycontext strong{display:block;font-family:var(--amd1-serif);font-size:15px;line-height:1.55;font-weight:650;color:#4f4b45}
  body.page-decision-wizard .amd1-clarifybox{padding:16px 0 18px;border-top:1px solid var(--amd1-line);border-bottom:1px solid var(--amd1-line);margin:0}
  body.page-decision-wizard .amd1-clarifybox h2{max-width:100%;overflow-wrap:break-word;font-family:var(--amd1-serif);font-size:24px;line-height:1.45;font-weight:700;margin:5px 0 7px}
  body.page-decision-wizard .amd1-clarifybox input{margin:10px 0 0}

  /* Gap */
  body.page-decision-wizard .amd1-gapstate .amd1-resolvehead{border-bottom:0}
  body.page-decision-wizard .amd1-gapbox{margin-top:4px;padding:17px 0;border-top:1px solid var(--amd1-line);border-bottom:1px solid var(--amd1-line)}
  body.page-decision-wizard .amd1-gapbox p{font-family:var(--amd1-serif);font-size:14.5px;line-height:1.68;color:var(--amd1-soft);margin:0}
  body.page-decision-wizard .amd1-gapactions{display:grid;grid-template-columns:1.18fr .82fr;gap:9px;margin-top:13px}
  body.page-decision-wizard .amd1-gapactions button{min-height:51px;border:0;border-radius:14px;background:#758b72;color:#fff;font-size:12.2px;font-weight:800;padding:0 8px}
  body.page-decision-wizard .amd1-gapactions a{min-height:51px;border:1px solid var(--amd1-line);border-radius:14px;background:#fff;display:flex;align-items:center;justify-content:center;font-size:12.2px;font-weight:750;padding:0 8px;text-align:center}

  /* Incomplete / unknown — one editable source of truth only */
  body.page-decision-wizard .amd1-retrybox{padding-top:13px;margin:0}
  body.page-decision-wizard .amd1-retrybox label{display:block;color:var(--amd1-faint);font-size:11.5px;font-weight:750;margin-bottom:5px}

  /* Final decision */
  body.page-decision-wizard .amd1-task{padding:3px 0 16px;border-bottom:1px solid var(--amd1-line)}
  body.page-decision-wizard .amd1-tasktop{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:7px}
  body.page-decision-wizard .amd1-task h1{font-family:var(--amd1-serif);font-size:22.5px;line-height:1.42;font-weight:700;margin:0}
  body.page-decision-wizard .amd1-edit{position:relative;margin:0;color:#8b8478;font-size:11.5px;font-weight:750}
  body.page-decision-wizard .amd1-edit summary{list-style:none;cursor:pointer;padding:3px 0;white-space:nowrap}
  body.page-decision-wizard .amd1-edit summary::-webkit-details-marker{display:none}
  body.page-decision-wizard .amd1-edit summary::before{content:"✎";font-size:11px;color:var(--amd1-gold);margin-left:5px}
  body.page-decision-wizard .amd1-edit form{position:absolute;z-index:6;left:0;top:30px;width:min(310px,calc(100vw - 52px));padding:12px;border:1px solid var(--amd1-line);border-radius:15px;background:#fff;box-shadow:0 24px 70px -40px rgba(63,51,31,.42)}
  body.page-decision-wizard .amd1-edit label{display:block;color:var(--amd1-faint);font-size:10.5px;margin-bottom:5px}
  body.page-decision-wizard .amd1-edit button{width:100%;min-height:42px;border:0;border-radius:12px;background:#758b72;color:#fff;font-weight:800;margin-top:7px}
  body.page-decision-wizard .amd1-result{padding:21px 0 0}
  body.page-decision-wizard .amd1-winner{display:grid;grid-template-columns:56px 1fr;gap:14px;align-items:center;direction:ltr}
  body.page-decision-wizard .amd1-logo{width:56px;height:56px;border-radius:17px;background:linear-gradient(145deg,#e9f0e6,#cbdcc6);border:1px solid #b9c9b4;display:grid;place-items:center;overflow:hidden;box-shadow:0 0 0 5px rgba(111,132,110,.05)}
  body.page-decision-wizard .amd1-logo :where(img,svg){width:100%;height:100%;object-fit:contain;padding:10px}
  body.page-decision-wizard .amd1-winnertext{direction:rtl;text-align:right;min-width:0}
  body.page-decision-wizard .amd1-winnertext small{display:block;color:var(--amd1-gold);font-size:11.5px;font-weight:800;margin-bottom:2px}
  body.page-decision-wizard .amd1-winnertext strong{display:block;font-family:Georgia,"Times New Roman",serif;font-size:37px;line-height:1;direction:ltr;text-align:right;letter-spacing:-.035em;overflow-wrap:anywhere}
  body.page-decision-wizard .amd1-reason{font-family:var(--amd1-serif);font-size:16.5px;line-height:1.65;color:#5f5b55;margin:15px 0 10px}
  body.page-decision-wizard .amd1-rails{margin:0;padding:3px 0 0}
  body.page-decision-wizard .amd1-rail{display:grid;grid-template-columns:73px 1fr;gap:12px;padding:11px 0;border-top:1px solid var(--amd1-line)}
  body.page-decision-wizard .amd1-rail dt{font-family:var(--amd1-serif);font-size:13px;color:var(--amd1-faint);margin:2px 0 0}
  body.page-decision-wizard .amd1-rail dd{font-family:var(--amd1-serif);font-size:17px;line-height:1.5;font-weight:750;margin:0;min-width:0}
  body.page-decision-wizard .amd1-pay dd{color:#806220}
  body.page-decision-wizard .amd1-alt dd{color:var(--amd1-mauve)}
  body.page-decision-wizard .amd1-micro{display:block;color:var(--amd1-soft);font-family:var(--amd1-sans);font-size:11.5px;line-height:1.5;font-weight:500;margin-top:2px}
  body.page-decision-wizard .amd1-primary{width:100%;min-height:55px;border:0;border-radius:17px;background:linear-gradient(180deg,#81987e,#6d856b);color:#fff!important;font-size:15.5px;font-weight:800;margin-top:14px;box-shadow:0 14px 30px rgba(75,99,72,.15);display:flex;align-items:center;justify-content:center;gap:7px}
  body.page-decision-wizard .amd1-secondary{min-height:43px;border:1px solid var(--amd1-line);background:#fff;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:12.5px;font-weight:750;color:#504b43!important;margin-top:9px}
  body.page-decision-wizard .amd1-scope{margin:17px 0 0;padding:12px 0 0;border-top:1px solid var(--amd1-line);font-family:var(--amd1-serif);font-size:13.5px;line-height:1.6;color:#8a8277}
  body.page-decision-wizard .amd1-scope b{color:var(--amd1-clay)}
  body.page-decision-wizard .amd1-feedback{margin:27px -26px 0;padding:20px 26px 24px;background:#fbf8f1;border-top:1px solid var(--amd1-line)}
  body.page-decision-wizard .amd1-feedback strong{font-family:var(--amd1-serif);font-size:17px}
  body.page-decision-wizard .amd1-feedback p{margin:3px 0 11px;color:var(--amd1-soft);font-size:11.5px}
  body.page-decision-wizard .amd1-feedback>div{display:flex;gap:8px}
  body.page-decision-wizard .amd1-feedback button{border:1px solid var(--amd1-line);background:#fff;border-radius:12px;padding:8px 14px;color:#514d46;font-weight:700}
  body.page-decision-wizard .amd1-feedback>[data-verdict-usefulness-status]{display:block;margin-top:7px;color:var(--amd1-soft);font-size:11px}

  /* Mobile footer closure */
  body.page-decision-wizard .lum-footer{max-width:430px!important;margin:0 auto!important;padding:30px 26px calc(40px + env(safe-area-inset-bottom,0px))!important;border-top:0!important}
  body.page-decision-wizard .lum-footer__inner{display:block!important;min-height:0!important;padding:0!important}
  body.page-decision-wizard .lum-footer__inner>span{display:block;font-family:var(--amd1-serif);font-size:18px;color:var(--amd1-ink)}
  body.page-decision-wizard .lum-footer__inner>span::first-line{font-weight:700}
  body.page-decision-wizard .lum-footer nav{display:none!important}
  body.page-decision-wizard .beta-feedback-fab{display:none!important}

  body.page-decision-wizard :where(.amd1 input,.amd1 button,.amd1 a,.amd1 summary):focus-visible{outline:2px solid var(--amd1-gold)!important;outline-offset:3px!important}
}

@media (max-width:360px){
  body.page-decision-wizard .amd1-wrap{padding-inline:21px}
  body.page-decision-wizard .amd1 :where(.amd1-entry>h1,.amd1-clarify>h1,.amd1-resolvehead h1){font-size:28px}
  body.page-decision-wizard .amd1-task h1{font-size:21px}
  body.page-decision-wizard .amd1-winnertext strong{font-size:34px}
  body.page-decision-wizard .amd1-rail{grid-template-columns:68px 1fr}
  body.page-decision-wizard .amd1-feedback{margin-left:-21px;margin-right:-21px;padding-left:21px;padding-right:21px}
  body.page-decision-wizard .aiai-v8-header{padding-inline:18px!important}
  body.page-decision-wizard .amd1-gapactions{grid-template-columns:1fr}
}

@media (prefers-reduced-motion:reduce){
  body.page-decision-wizard *{scroll-behavior:auto!important;transition:none!important;animation:none!important}
}

/* AIAI_MOBILE_DECISION_EDGE_CONTAINMENT_HOTFIX_V1
   Fixes intrinsic-width overflow exposed by long/mixed LTR tool names and
   mobile text scaling. This changes containment only; no visual redesign. */
@media (max-width:620px){
  body.page-decision-wizard main,
  body.page-decision-wizard .amd1,
  body.page-decision-wizard .amd1-wrap{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }

  body.page-decision-wizard main{
    overflow-x:hidden!important;
  }

  body.page-decision-wizard .amd1{
    max-width:430px!important;
    overflow-x:hidden!important;
  }

  body.page-decision-wizard .amd1-wrap,
  body.page-decision-wizard .amd1-wrap > *,
  body.page-decision-wizard .amd1-task,
  body.page-decision-wizard .amd1-result,
  body.page-decision-wizard .amd1-feedback{
    min-width:0!important;
    max-width:100%!important;
  }

  body.page-decision-wizard .amd1-task h1,
  body.page-decision-wizard .amd1-querycontext strong,
  body.page-decision-wizard .amd1-clarifycontext strong,
  body.page-decision-wizard .amd1-option b,
  body.page-decision-wizard .amd1-option small{
    max-width:100%!important;
    overflow-wrap:anywhere!important;
    word-break:normal!important;
  }

  body.page-decision-wizard .amd1-winner{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    grid-template-columns:56px minmax(0,1fr)!important;
  }

  body.page-decision-wizard .amd1-winnertext,
  body.page-decision-wizard .amd1-winnertext strong,
  body.page-decision-wizard .amd1-winnertext strong bdi{
    min-width:0!important;
    max-width:100%!important;
  }

  body.page-decision-wizard .amd1-winnertext strong bdi{
    display:block!important;
    overflow-wrap:anywhere!important;
    word-break:break-word!important;
  }

  body.page-decision-wizard .amd1-rail{
    grid-template-columns:73px minmax(0,1fr)!important;
  }

  body.page-decision-wizard .amd1-querycontext{
    grid-template-columns:minmax(0,1fr) auto!important;
  }

  body.page-decision-wizard .amd1-querycontext > div,
  body.page-decision-wizard .amd1-option > span{
    min-width:0!important;
  }

  body.page-decision-wizard .amd1-option{
    grid-template-columns:minmax(0,1fr) auto!important;
  }

  body.page-decision-wizard .amd1-gapactions{
    grid-template-columns:minmax(0,1.18fr) minmax(0,.82fr)!important;
  }
}

@media (max-width:360px){
  body.page-decision-wizard .amd1-rail{
    grid-template-columns:68px minmax(0,1fr)!important;
  }
  body.page-decision-wizard .amd1-gapactions{
    grid-template-columns:minmax(0,1fr)!important;
  }
}

/* AIAI_MOBILE_DECISION_EDGE_CONTAINMENT_HOTFIX_V2
   ROOT-CAUSE FIX:
   V1 set width:100% on .amd1-wrap while the wrapper still had horizontal padding.
   Because the page had no border-box sizing, the wrapper became viewport width + 52px.
   V1 also capped the negative-margin feedback block at max-width:100%, which prevented
   its intended full-bleed width. This patch fixes sizing math instead of clipping it. */
@media (max-width:620px){
  body.page-decision-wizard,
  body.page-decision-wizard main,
  body.page-decision-wizard .aiai-v8-header,
  body.page-decision-wizard .amd1,
  body.page-decision-wizard .amd1 *,
  body.page-decision-wizard .lum-footer,
  body.page-decision-wizard .lum-footer *{
    box-sizing:border-box!important;
  }

  body.page-decision-wizard{
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
  }

  body.page-decision-wizard main{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    overflow-x:hidden!important;
  }

  body.page-decision-wizard .amd1{
    width:100%!important;
    max-width:430px!important;
    min-width:0!important;
    margin-inline:auto!important;
    overflow-x:visible!important;
  }

  body.page-decision-wizard .amd1-wrap{
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    padding-inline:26px!important;
  }

  /* Restore intended full-bleed feedback geometry.
     V1's max-width:100% incorrectly narrowed this negative-margin block. */
  body.page-decision-wizard .amd1-feedback{
    width:auto!important;
    max-width:none!important;
    min-width:0!important;
    margin-inline:-26px!important;
    padding-inline:26px!important;
  }

  /* Footer had the same content-box risk: max-width + horizontal padding.
     Border-box plus explicit width keeps it inside the viewport. */
  body.page-decision-wizard .lum-footer{
    width:100%!important;
    max-width:430px!important;
    margin-inline:auto!important;
    padding-inline:26px!important;
  }

  body.page-decision-wizard .amd1-winner,
  body.page-decision-wizard .amd1-rail,
  body.page-decision-wizard .amd1-querycontext,
  body.page-decision-wizard .amd1-option{
    min-width:0!important;
    max-width:100%!important;
  }
}

@media (max-width:360px){
  body.page-decision-wizard .amd1-wrap{
    padding-inline:21px!important;
  }
  body.page-decision-wizard .amd1-feedback{
    margin-inline:-21px!important;
    padding-inline:21px!important;
  }
  body.page-decision-wizard .lum-footer{
    padding-inline:21px!important;
  }
}

/* AIAI_MOBILE_DECISION_CLARIFY_FINAL
   Root-cause closure:
   1) Short decision states must not inherit the luminous desktop-style viewport
      minimum height, which created a dead band before the global mobile footer.
   2) Clarification's primary action follows the shared mobile Ink CTA system.
   Mobile-only; no decision logic/content changes.
*/
@media (max-width:767px){

  body.public-design-v440.aiai-luminous-internal-v1.page-decision-wizard > main{
    min-height:0!important;
    height:auto!important;
  }

  body.page-decision-wizard .amd1-clarifybox button[type="submit"]{
    background:var(--amd1-ink)!important;
    color:#fff!important;
    box-shadow:0 10px 24px rgba(31,29,25,.10)!important;
  }
}
