/* AIAI_TOOL_PROFILE_IDENTITY_SIGNATURE_V3
   Approved mobile-only Tool Identity Signature.
   Same product DNA as Home / Result / Evidence, with a distinct tool-profile composition.
   Desktop remains on the pre-existing legacy tool profile. */

@media (max-width:767px){
  :root{
    --r20-bg:#F7F6FB;
    --r20-paper:#FFFFFF;
    --r20-ink:#17152A;
    --r20-text:#4E4A5E;
    --r20-muted:#6D6878;
    --r20-soft:#706A7C;
    --r20-line:#E7E4EE;
    --r20-line-2:#DBD6E7;
    --r20-violet:#6548E8;
    --r20-violet-soft:#F0ECFF;
    --r20-cyan:#19B5C9;
    --r20-cyan-soft:#EAF8FA;
    --r20-orange:#B34F27;
    --r20-orange-soft:#FFF2EC;
    --r20-font:"IBM Plex Sans Arabic","Segoe UI",Tahoma,sans-serif;
    --r20-display:"Readex Pro","IBM Plex Sans Arabic","Segoe UI",Tahoma,sans-serif;
  }

  body.page-tool{
    min-height:100vh!important;
    color:var(--r20-ink)!important;
    background:
      radial-gradient(76% 32% at 50% 0,rgba(101,72,232,.052),transparent 78%),
      var(--r20-bg)!important;
    font-family:var(--r20-font)!important;
    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility;
  }

  body.page-tool::before,
  body.page-tool::after{content:none!important;display:none!important}

  body.public-design-v440.aiai-luminous-internal-v1.page-tool>main,
  body.public-design-v440.aiai-luminous-internal-v1.page-tool main{
    width:100%!important;
    max-width:none!important;
    margin:0!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    border-radius:0!important;
    box-shadow:none!important;
    overflow:visible!important;
  }

  body.page-tool .lum-header,
  body.page-tool .lum-footer,
  body.page-tool .aiai-global-mobile-footer-v1,
  body.page-tool .aiai-flow2-footer-v1,
  body.page-tool .site-footer,
  body.page-tool .aiai-tool-mobile-v17,
  body.page-tool .aiai-tool-legacy-v17{
    display:none!important;
  }

  body.page-tool>.aiai-global-mobile-head-v1{
    display:block!important;
    position:relative!important;
    z-index:40!important;
    min-height:68px!important;
    border-bottom:0!important;
    background:transparent!important;
    box-shadow:none!important;
    -webkit-backdrop-filter:none!important;
    backdrop-filter:none!important;
  }

  body.page-tool .aiai-global-mobile-head__inner{
    width:min(100%,430px)!important;
    min-height:66px!important;
    margin-inline:auto!important;
    padding:calc(10px + env(safe-area-inset-top)) 16px 10px!important;
    display:grid!important;
    grid-template-columns:40px minmax(0,1fr) 40px!important;
    align-items:center!important;
    direction:ltr!important;
  }

  body.page-tool .aiai-global-mobile-head__spacer{
    grid-column:1!important;
    width:42px!important;
    height:42px!important;
    display:block!important;
  }

  body.page-tool .aiai-global-mobile-head__account{display:none!important}

  body.page-tool .aiai-global-mobile-head__brand,
  body.page-tool .aiai-flow2-brand{
    grid-column:2!important;
    grid-row:1!important;
    justify-self:center!important;
    width:84px!important;
    height:42px!important;
    min-width:84px!important;
    max-width:84px!important;
    min-height:42px!important;
    max-height:42px!important;
    display:grid!important;
    place-items:center!important;
    line-height:0!important;
  }

  body.page-tool .aiai-global-mobile-head__brand img,
  body.page-tool .aiai-flow2-brand img{
    display:block!important;
    width:84px!important;
    max-width:84px!important;
    max-height:42px!important;
    object-fit:contain!important;
  }

  body.page-tool .aiai-global-mobile-head__menu{
    grid-column:3!important;
    grid-row:1!important;
    justify-self:end!important;
    width:40px!important;
    height:40px!important;
    min-width:40px!important;
    min-height:40px!important;
    padding:0!important;
    border:0!important;
    border-radius:12px!important;
    background:transparent!important;
    color:#555864!important;
    box-shadow:none!important;
    display:grid!important;
    place-items:center!important;
  }

  body.page-tool .aiai-global-mobile-head__menu svg{
    width:17px!important;
    height:17px!important;
  }

  body.page-tool .aiai-tool-r20,
  body.page-tool .aiai-tool-r20 *{box-sizing:border-box;min-width:0}

  body.page-tool .aiai-tool-r20{
    display:block!important;
    width:100%;
    color:var(--r20-ink);
  }

  body.page-tool .r20-shell{
    width:min(100%,430px);
    margin-inline:auto;
    padding:2px 17px calc(76px + env(safe-area-inset-bottom));
  }

  /* Tool identity: deliberately not a Result-style hero card. */
  body.page-tool .r20-identity-signature{
    position:relative;
    padding:2px 0 21px;
    border-bottom:1px solid var(--r20-line-2);
  }

  body.page-tool .r20-identity-signature::before{
    content:"";
    position:absolute;
    inset-inline-start:0;
    top:5px;
    width:2px;
    height:80px;
    border-radius:999px;
    background:linear-gradient(var(--r20-violet),var(--r20-cyan));
    opacity:.9;
  }

  body.page-tool .r20-identity-top{
    padding-inline-start:15px;
    display:grid;
    grid-template-columns:62px minmax(0,1fr);
    gap:14px;
    align-items:center;
  }

  body.page-tool .r20-tool-mark{
    width:62px;
    height:62px;
    display:grid;
    place-items:center;
    overflow:hidden;
    border:1px solid var(--r20-line-2);
    border-radius:19px;
    background:#fff;
    box-shadow:0 10px 28px rgba(42,34,83,.055);
    font-style:normal;
  }

  body.page-tool .r20-tool-mark :where(img,svg){
    display:block;
    max-width:68%;
    max-height:68%;
    width:auto;
    height:auto;
    object-fit:contain;
  }

  body.page-tool .r20-identity-kicker{
    display:flex;
    align-items:center;
    gap:7px;
    margin-bottom:3px;
    color:var(--r20-violet);
    font-size:10.3px;
    font-weight:700;
  }

  body.page-tool .r20-identity-kicker i{
    width:6px;
    height:6px;
    flex:none;
    border-radius:50%;
    background:var(--r20-violet);
    box-shadow:0 0 0 4px rgba(101,72,232,.08);
  }

  body.page-tool .r20-identity-copy h1{
    margin:0;
    color:var(--r20-ink);
    font:600 33px/1.08 var(--r20-display);
    letter-spacing:-.8px;
  }

  body.page-tool .r20-identity-copy p{
    max-width:31ch;
    margin:7px 0 0;
    color:var(--r20-muted);
    font-size:13.2px;
    line-height:1.82;
  }

  body.page-tool .r20-registry{
    margin-top:19px;
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    border-top:1px solid var(--r20-line);
    border-bottom:1px solid var(--r20-line);
  }

  body.page-tool .r20-registry>div{
    min-width:0;
    padding:11px 7px 10px;
  }

  body.page-tool .r20-registry>div+div{
    border-inline-start:1px solid var(--r20-line);
  }

  body.page-tool .r20-registry small{
    display:block;
    margin-bottom:4px;
    color:#746E80;
    font-size:9px;
    font-weight:700;
  }

  body.page-tool .r20-registry b{
    display:block;
    color:#36323F;
    font-size:11.15px;
    line-height:1.45;
    font-weight:700;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  body.page-tool .r20-identity-actions{
    margin-top:14px;
    display:flex;
    align-items:center;
    gap:15px;
    flex-wrap:wrap;
  }

  body.page-tool .r20-primary-action{
    min-height:42px;
    padding:0 17px;
    border-radius:13px;
    background:var(--r20-violet);
    color:#fff;
    display:inline-grid;
    place-items:center;
    text-decoration:none;
    font-size:11.6px;
    font-weight:700;
    box-shadow:0 9px 22px rgba(101,72,232,.16);
  }

  body.page-tool .r20-secondary-link{
    color:var(--r20-violet);
    text-decoration:none;
    font-size:10.7px;
    font-weight:700;
  }

  body.page-tool .r20-muted-link{
    color:#6C6775;
    text-decoration:none;
    font-size:10.6px;
    font-weight:650;
  }

  body.page-tool .r20-orientation{
    padding:20px 0 0;
  }

  body.page-tool .r20-orientation-label{
    margin-bottom:8px;
    color:var(--r20-soft);
    font-size:9.8px;
    font-weight:700;
  }

  body.page-tool .r20-orientation-main{
    color:#292534;
    font-size:17px;
    line-height:1.68;
    font-weight:650;
  }

  body.page-tool .r20-orientation-grid{
    margin-top:15px;
    display:grid;
    grid-template-columns:1fr 1fr;
    border-top:1px solid var(--r20-line);
    border-bottom:1px solid var(--r20-line);
  }

  body.page-tool .r20-orientation-cell{
    padding:13px 0;
  }

  body.page-tool .r20-orientation-cell:first-child{
    padding-inline-end:14px;
    border-inline-end:1px solid var(--r20-line);
  }

  body.page-tool .r20-orientation-cell:last-child{
    padding-inline-start:14px;
  }

  body.page-tool .r20-orientation-cell small{
    display:block;
    margin-bottom:5px;
    color:var(--r20-soft);
    font-size:9.6px;
    font-weight:700;
  }

  body.page-tool .r20-orientation-cell strong{
    display:block;
    color:#45404F;
    font-size:12.2px;
    line-height:1.72;
  }

  body.page-tool .r20-orientation-cell.is-boundary small{
    color:var(--r20-orange);
  }

  /* Motion is progressive enhancement only; content is visible by default. */
  body.page-tool .r20-reveal-ready{
    opacity:.72;
    transform:translateY(6px);
    transition:
      opacity .42s cubic-bezier(.2,.7,.2,1),
      transform .42s cubic-bezier(.2,.7,.2,1);
    will-change:opacity,transform;
  }

  body.page-tool .r20-reveal-ready.is-visible{
    opacity:1;
    transform:none;
    will-change:auto;
  }

  body.page-tool .r20-signature-section{
    margin-top:36px;
  }

  body.page-tool .r20-signature-head{
    padding-bottom:13px;
  }

  body.page-tool .r20-section-eyebrow{
    color:var(--r20-soft);
    font-size:9.8px;
    font-weight:700;
  }

  body.page-tool .r20-signature-head h2{
    margin:4px 0 0;
    color:var(--r20-ink);
    font-size:20.6px;
    line-height:1.42;
    font-weight:700;
  }

  body.page-tool .r20-signature-head>p{
    max-width:37ch;
    margin:6px 0 0;
    color:var(--r20-muted);
    font-size:12.4px;
    line-height:1.82;
  }

  /* Capability map: qualitative labels only; no fake quantitative meters. */
  body.page-tool .r20-capability-map{
    border-top:1px solid var(--r20-line-2);
    border-bottom:1px solid var(--r20-line-2);
  }

  body.page-tool .r20-capability-row{
    display:grid;
    grid-template-columns:98px minmax(0,1fr);
    gap:15px;
    padding:15px 0;
  }

  body.page-tool .r20-capability-row+.r20-capability-row{
    border-top:1px solid var(--r20-line);
  }

  body.page-tool .r20-cap-name{
    position:relative;
    padding-inline-start:14px;
  }

  body.page-tool .r20-cap-name::before{
    content:"";
    position:absolute;
    inset-inline-start:0;
    top:6px;
    width:5px;
    height:5px;
    border-radius:50%;
    background:var(--r20-violet);
  }

  body.page-tool .r20-cap-name small{
    display:block;
    margin-bottom:4px;
    color:var(--r20-violet);
    font-size:8.9px;
    font-weight:800;
  }

  body.page-tool .r20-cap-name b{
    display:block;
    color:#302C39;
    font-size:11.6px;
    line-height:1.5;
  }

  body.page-tool .r20-cap-body p{
    margin:0;
    color:#5B5664;
    font-size:12.5px;
    line-height:1.82;
  }

  body.page-tool .r20-cap-note{
    margin-top:7px;
    color:#746E80;
    font-size:9.3px;
    line-height:1.5;
  }

  /* Tasks use a quiet dot, not numbered verdict-like badges. */
  body.page-tool .r20-signature-task-list{
    border-top:1px solid var(--r20-line-2);
  }

  body.page-tool .r20-signature-task{
    position:relative;
    padding-block:15px;
    padding-inline:18px 0;
    border-bottom:1px solid var(--r20-line);
  }

  body.page-tool .r20-signature-task::before{
    content:"";
    position:absolute;
    inset-inline-start:0;
    top:22px;
    width:5px;
    height:5px;
    border-radius:50%;
    background:var(--r20-cyan);
    box-shadow:0 0 0 4px var(--r20-cyan-soft);
  }

  body.page-tool .r20-signature-task small{
    display:block;
    margin-bottom:3px;
    color:#746E80;
    font-size:9.3px;
    font-weight:700;
  }

  body.page-tool .r20-signature-task h3{
    margin:0;
    color:#2D2936;
    font-size:13.1px;
    line-height:1.6;
  }

  body.page-tool .r20-signature-task p{
    margin:5px 0 0;
    color:#5D5866;
    font-size:12.3px;
    line-height:1.82;
  }

  body.page-tool .r20-signature-task a{
    display:inline-block;
    margin-top:6px;
    color:var(--r20-violet);
    text-decoration:none;
    font-size:10.4px;
    font-weight:700;
  }

  body.page-tool .r20-plan-ledger{
    border-top:1px solid var(--r20-line-2);
    border-bottom:1px solid var(--r20-line-2);
  }

  body.page-tool .r20-plan-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) auto;
    gap:17px;
    padding:15px 0;
  }

  body.page-tool .r20-plan-row+.r20-plan-row{
    border-top:1px solid var(--r20-line);
  }

  body.page-tool .r20-plan-row small{
    display:block;
    color:#746E80;
    font-size:9.3px;
    font-weight:700;
  }

  body.page-tool .r20-plan-row h3{
    margin:3px 0 3px;
    color:#2D2936;
    font-size:12.9px;
  }

  body.page-tool .r20-plan-row p{
    margin:0;
    color:#615B69;
    font-size:11.95px;
    line-height:1.76;
  }

  body.page-tool .r20-plan-row>strong{
    color:var(--r20-violet);
    font-size:12.3px;
    padding-top:18px;
  }

  body.page-tool .r20-pay-rule{
    padding:13px 0 0;
  }

  body.page-tool .r20-pay-rule small{
    display:block;
    color:var(--r20-violet);
    font-size:9.6px;
    font-weight:700;
  }

  body.page-tool .r20-pay-rule p{
    margin:5px 0 0;
    color:#5E5868;
    font-size:12.1px;
    line-height:1.8;
  }

  body.page-tool .r20-pay-rule a{
    display:inline-block;
    margin-top:6px;
    color:var(--r20-violet);
    text-decoration:none;
    font-size:10.3px;
    font-weight:700;
  }

  body.page-tool .r20-signature-alt-list{
    border-top:1px solid var(--r20-line-2);
  }

  body.page-tool .r20-signature-alt{
    position:relative;
    padding-block:15px;
    padding-inline:18px 0;
    border-bottom:1px solid var(--r20-line);
  }

  body.page-tool .r20-signature-alt::before{
    content:"";
    position:absolute;
    inset-inline-start:0;
    top:22px;
    width:5px;
    height:5px;
    border-radius:50%;
    background:var(--r20-orange);
    box-shadow:0 0 0 4px var(--r20-orange-soft);
  }

  body.page-tool .r20-signature-alt small{
    color:var(--r20-orange);
    font-size:9.5px;
    font-weight:700;
  }

  body.page-tool .r20-signature-alt h3{
    margin:3px 0 4px;
    color:#2D2936;
    font-size:12.9px;
    line-height:1.55;
  }

  body.page-tool .r20-signature-alt p{
    margin:0;
    color:#5D5766;
    font-size:12.2px;
    line-height:1.79;
  }

  body.page-tool .r20-signature-alt a{
    display:inline-block;
    margin-top:6px;
    color:var(--r20-violet);
    text-decoration:none;
    font-size:10.3px;
    font-weight:700;
  }

  body.page-tool .r20-signature-sources{
    border-top:1px solid var(--r20-line-2);
  }

  body.page-tool .r20-signature-sources>a{
    min-height:55px;
    display:grid;
    grid-template-columns:8px minmax(0,1fr) 18px;
    gap:10px;
    align-items:center;
    padding:9px 0;
    border-bottom:1px solid var(--r20-line);
    color:inherit;
    text-decoration:none;
  }

  body.page-tool .r20-source-dot{
    width:6px;
    height:6px;
    border-radius:50%;
    background:var(--r20-cyan);
  }

  body.page-tool .r20-signature-sources b{
    display:block;
    color:#2F2B38;
    font-size:11.95px;
  }

  body.page-tool .r20-signature-sources small{
    display:block;
    margin-top:2px;
    color:#746E80;
    font-size:9.1px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  body.page-tool .r20-signature-sources i{
    justify-self:end;
    color:var(--r20-violet);
    font-style:normal;
  }

  body.page-tool .r20-record{
    margin-top:12px;
    display:grid;
    grid-template-columns:84px minmax(0,1fr);
    border-top:1px solid var(--r20-line);
    border-bottom:1px solid var(--r20-line);
  }

  body.page-tool .r20-record>div{
    display:contents;
  }

  body.page-tool .r20-record small,
  body.page-tool .r20-record b,
  body.page-tool .r20-record p{
    padding:11px 0;
  }

  body.page-tool .r20-record small{
    color:#746E80;
    font-size:9.4px;
    font-weight:700;
  }

  body.page-tool .r20-record b,
  body.page-tool .r20-record p{
    margin:0;
    color:#4A4555;
    font-size:11.5px;
    line-height:1.76;
  }

  body.page-tool .r20-record>div+div small,
  body.page-tool .r20-record>div+div b,
  body.page-tool .r20-record>div+div p{
    border-top:1px solid var(--r20-line);
  }

  body.page-tool .r20-change-link{
    display:inline-block;
    margin-top:9px;
    color:var(--r20-violet);
    text-decoration:none;
    font-size:10.3px;
    font-weight:700;
  }

  body.page-tool .r20-signature-final{
    margin-top:36px;
    padding-top:19px;
    border-top:1px solid var(--r20-line-2);
  }

  body.page-tool .r20-signature-final small{
    color:var(--r20-soft);
    font-size:9.7px;
    font-weight:700;
  }

  body.page-tool .r20-signature-final h2{
    margin:4px 0 5px;
    color:var(--r20-ink);
    font-size:17.3px;
    line-height:1.52;
  }

  body.page-tool .r20-signature-final p{
    margin:0;
    color:var(--r20-muted);
    font-size:11.8px;
    line-height:1.78;
  }

  body.page-tool .r20-signature-final a{
    display:inline-block;
    margin-top:10px;
    color:var(--r20-violet);
    text-decoration:none;
    font-size:11.2px;
    font-weight:700;
  }

  body.page-tool .r20-empty{
    margin:0;
    padding:15px 0;
    color:var(--r20-muted);
    font-size:11.8px;
    line-height:1.75;
  }

  body.page-tool .aiai-global-mobile-footer-v1{
    margin-top:0!important;
    padding:28px 16px calc(34px + env(safe-area-inset-bottom))!important;
    border-top:1px solid var(--r20-line)!important;
    background:transparent!important;
    color:var(--r20-muted)!important;
  }

  body.page-tool .aiai-global-mobile-footer-v1 nav{
    border-color:var(--r20-line)!important;
  }

  body.page-tool .aiai-global-mobile-footer-v1 nav a,
  body.page-tool .aiai-global-mobile-footer-v1 nav button,
  body.page-tool .aiai-global-mobile-footer-v1 small{
    color:#6E697B!important;
  }
}



@media (max-width:767px){
  /* AIAI_TOOL_PROFILE_V3_READABILITY_R25
     Precision rebuild of the approved V3 composition:
     same structure and content, calmer hierarchy, readable Arabic, no card/tab redesign. */

  body.page-tool .aiai-global-mobile-head__menu{
    width:44px!important;
    height:44px!important;
    min-width:44px!important;
    min-height:44px!important;
  }

  body.page-tool .r20-shell{
    padding:8px 19px calc(58px + env(safe-area-inset-bottom));
  }

  body.page-tool .r20-identity-signature{
    padding:7px 0 26px;
  }

  body.page-tool .r20-identity-top{
    grid-template-columns:68px minmax(0,1fr);
    gap:15px;
    padding-inline-start:14px;
  }

  body.page-tool .r20-tool-mark{
    width:68px;
    height:68px;
    border-radius:20px;
  }

  body.page-tool .r20-identity-kicker{
    font-size:10.7px;
    margin-bottom:4px;
  }

  body.page-tool .r20-identity-copy h1{
    font-size:32px;
    line-height:1.08;
    letter-spacing:-.55px;
  }

  body.page-tool .r20-identity-copy p{
    max-width:34ch;
    margin-top:8px;
    font-size:14.5px;
    line-height:1.78;
  }

  /* Four cramped columns become a calm 2×2 registry without changing its information. */
  body.page-tool .r20-registry{
    margin-top:22px;
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  body.page-tool .r20-registry>div{
    min-height:58px;
    padding:11px 12px 10px;
  }

  body.page-tool .r20-registry>div+div{
    border-inline-start:0;
  }

  body.page-tool .r20-registry>div:nth-child(even){
    border-inline-start:1px solid var(--r20-line);
  }

  body.page-tool .r20-registry>div:nth-child(n+3){
    border-top:1px solid var(--r20-line);
  }

  body.page-tool .r20-registry small{
    margin-bottom:5px;
    font-size:10.2px;
    line-height:1.35;
  }

  body.page-tool .r20-registry b{
    font-size:12.7px;
    line-height:1.5;
    white-space:normal;
    overflow:visible;
    text-overflow:clip;
  }

  body.page-tool .r20-identity-actions{
    margin-top:16px;
    gap:10px 15px;
  }

  body.page-tool .r20-primary-action{
    min-height:46px;
    padding-inline:19px;
    font-size:12.6px;
  }

  body.page-tool .r20-secondary-link,
  body.page-tool .r20-muted-link{
    min-height:42px;
    display:inline-flex;
    align-items:center;
    padding-block:2px;
    font-size:11.7px;
  }

  body.page-tool .r20-orientation{
    padding-top:24px;
  }

  body.page-tool .r20-orientation-label{
    font-size:10.5px;
    margin-bottom:9px;
  }

  body.page-tool .r20-orientation-main{
    font-size:18.2px;
    line-height:1.72;
    font-weight:600;
  }

  body.page-tool .r20-orientation-grid{
    margin-top:17px;
  }

  body.page-tool .r20-orientation-cell{
    padding:15px 0;
  }

  body.page-tool .r20-orientation-cell small{
    font-size:10.2px;
  }

  body.page-tool .r20-orientation-cell strong{
    font-size:13.4px;
    line-height:1.72;
  }

  body.page-tool .r20-signature-section{
    margin-top:44px;
  }

  body.page-tool .r20-signature-head{
    padding-bottom:15px;
  }

  body.page-tool .r20-section-eyebrow{
    font-size:10.5px;
  }

  body.page-tool .r20-signature-head h2{
    margin-top:5px;
    font-family:var(--r20-display);
    font-size:22px;
    line-height:1.42;
    font-weight:600;
    letter-spacing:-.02em;
  }

  body.page-tool .r20-signature-head>p{
    max-width:39ch;
    margin-top:7px;
    font-size:14px;
    line-height:1.78;
  }

  body.page-tool .r20-capability-row{
    grid-template-columns:104px minmax(0,1fr);
    gap:16px;
    padding:18px 0;
  }

  body.page-tool .r20-cap-name small{
    font-size:9.8px;
  }

  body.page-tool .r20-cap-name b{
    font-size:12.8px;
    line-height:1.55;
  }

  body.page-tool .r20-cap-body p{
    font-size:13.8px;
    line-height:1.78;
  }

  body.page-tool .r20-cap-note{
    margin-top:8px;
    font-size:10.4px;
    line-height:1.58;
  }

  body.page-tool .r20-signature-task,
  body.page-tool .r20-signature-alt{
    padding-block:18px;
    padding-inline-start:20px;
  }

  body.page-tool .r20-signature-task small,
  body.page-tool .r20-signature-alt small{
    font-size:10.5px;
    line-height:1.45;
  }

  body.page-tool .r20-signature-task h3,
  body.page-tool .r20-signature-alt h3{
    font-size:14.2px;
    line-height:1.62;
  }

  body.page-tool .r20-signature-task p,
  body.page-tool .r20-signature-alt p{
    margin-top:6px;
    font-size:13.5px;
    line-height:1.78;
  }

  body.page-tool .r20-signature-task a,
  body.page-tool .r20-signature-alt a,
  body.page-tool .r20-pay-rule a,
  body.page-tool .r20-change-link{
    min-height:40px;
    display:inline-flex;
    align-items:center;
    font-size:11.6px;
  }

  body.page-tool .r20-plan-row{
    gap:15px;
    padding:17px 0;
  }

  body.page-tool .r20-plan-row small{
    font-size:10px;
  }

  body.page-tool .r20-plan-row h3{
    font-size:14px;
    line-height:1.55;
  }

  body.page-tool .r20-plan-row p{
    font-size:13.1px;
    line-height:1.75;
  }

  body.page-tool .r20-plan-row>strong{
    font-size:13.2px;
    padding-top:19px;
  }

  body.page-tool .r20-pay-rule{
    padding-top:15px;
  }

  body.page-tool .r20-pay-rule small{
    font-size:10.2px;
  }

  body.page-tool .r20-pay-rule p{
    font-size:13.2px;
    line-height:1.77;
  }

  body.page-tool .r20-signature-sources>a{
    min-height:62px;
    grid-template-columns:8px minmax(0,1fr) 18px;
    gap:11px;
    padding:11px 0;
  }

  body.page-tool .r20-signature-sources b{
    font-size:13px;
    line-height:1.5;
  }

  body.page-tool .r20-signature-sources small{
    margin-top:3px;
    max-width:100%;
    font-size:10px;
    line-height:1.45;
  }

  body.page-tool .r20-record{
    margin-top:15px;
    grid-template-columns:92px minmax(0,1fr);
  }

  body.page-tool .r20-record small,
  body.page-tool .r20-record b,
  body.page-tool .r20-record p{
    padding:12px 0;
  }

  body.page-tool .r20-record small{
    font-size:10.2px;
  }

  body.page-tool .r20-record b,
  body.page-tool .r20-record p{
    font-size:12.8px;
    line-height:1.72;
  }

  body.page-tool .r20-signature-final{
    margin-top:42px;
    padding-top:21px;
  }

  body.page-tool .r20-signature-final small{
    font-size:10.3px;
  }

  body.page-tool .r20-signature-final h2{
    margin-top:5px;
    font-family:var(--r20-display);
    font-size:19px;
    line-height:1.5;
    font-weight:600;
  }

  body.page-tool .r20-signature-final p{
    font-size:13.2px;
    line-height:1.74;
  }

  body.page-tool .r20-signature-final a{
    min-height:42px;
    display:inline-flex;
    align-items:center;
    font-size:11.8px;
  }

  body.page-tool .r20-empty{
    padding:17px 0;
    font-size:13px;
    line-height:1.75;
  }

  /* Full-page captures and off-screen sections must never look faded. */
  body.page-tool .r20-reveal-ready,
  body.page-tool .r20-reveal-ready.is-visible{
    opacity:1!important;
    transform:none!important;
    transition:none!important;
    will-change:auto!important;
  }
}

@media (min-width:768px){
  body.page-tool .aiai-tool-r20{display:none!important}
  body.page-tool .aiai-tool-mobile-v17{display:none!important}
  body.page-tool .aiai-tool-legacy-v17{display:block!important}
}

@media (max-width:360px){
  body.page-tool .r20-shell{padding-inline:14px}
  body.page-tool .r20-identity-top{grid-template-columns:56px minmax(0,1fr);gap:12px}
  body.page-tool .r20-tool-mark{width:56px;height:56px;border-radius:17px}
  body.page-tool .r20-identity-copy h1{font-size:30px}
  body.page-tool .r20-registry b{font-size:10.6px}
}

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

/* AIAI_TOOL_PROFILE_R20_MOBILE_SCOPE_LOCK_R1 */


/* AIAI_TOOL_PROFILE_V3_LEGACY_HIDE_FIX_R1
   V17/R19 contain a higher-specificity mobile display:block!important rule.
   This selector intentionally outranks those legacy rules so only V3 is visible. */
@media (max-width:767px){
  body.public-design-v440.aiai-luminous-internal-v1.page-tool .aiai-tool-mobile-v17,
  body.public-design-v440.aiai-luminous-internal-v1.page-tool .aiai-tool-legacy-v17,
  body.public-design-v440.aiai-luminous-internal-v1.page-tool [data-aiai-tool-v17]{
    display:none!important;
  }
}




/* AIAI_TOOL_PROFILE_CONTRAST_LOCK_R1 */


/* AIAI_TOOL_PROFILE_CLEAN_READ_R1
   Remove scroll marker entirely; reserve logical inline-start space for RTL semantic dots. */
@media (max-width:767px){
  body.page-tool .r20-signature-task small,
  body.page-tool .r20-signature-alt small{
    font-size:10px;
    line-height:1.45;
  }
}

/* AIAI_TOOL_PROFILE_REVEAL_MOTION_R1 */


/* AIAI_TOOL_PROFILE_BG_FOOTER_LOCK_R1
   Match the approved Result-page background exactly and remove the Tool-page mobile footer. */
@media (max-width:767px){
  body.public-design-v440.aiai-luminous-internal-v1.page-tool .aiai-global-mobile-footer-v1,
  body.public-design-v440.aiai-luminous-internal-v1.page-tool .aiai-flow2-footer-v1,
  body.public-design-v440.aiai-luminous-internal-v1.page-tool .lum-footer,
  body.public-design-v440.aiai-luminous-internal-v1.page-tool .site-footer{
    display:none!important;
  }
}


/* AIAI_TOOL_PROFILE_V3_BACKGROUND_FORCE_R1 */
@media (max-width:767px){
  /* Loaded before the legacy approved-reference stylesheet, so this selector
     intentionally outranks its warm-ivory body rule for page-tool only. */
  body.public-design-v440.aiai-luminous-internal-v1.page-tool{
    --r20-bg:#F7F6FB;
    background:
      radial-gradient(72% 25% at 50% 0,rgba(101,72,232,.045),transparent 78%),
      var(--r20-bg)!important;
  }

  body.public-design-v440.aiai-luminous-internal-v1.page-tool>.aiai-global-mobile-head-v1,
  body.public-design-v440.aiai-luminous-internal-v1.page-tool>main,
  body.public-design-v440.aiai-luminous-internal-v1.page-tool .aiai-tool-r20,
  body.public-design-v440.aiai-luminous-internal-v1.page-tool .r20-shell{
    background:transparent!important;
  }

  body.public-design-v440.aiai-luminous-internal-v1.page-tool .aiai-global-mobile-footer-v1,
  body.public-design-v440.aiai-luminous-internal-v1.page-tool .aiai-flow2-footer-v1,
  body.public-design-v440.aiai-luminous-internal-v1.page-tool .lum-footer,
  body.public-design-v440.aiai-luminous-internal-v1.page-tool .site-footer{
    display:none!important;
  }
}


/* AIAI_TOOL_PROFILE_TOOL_FIT_R26 */
@media (max-width:767px){
  /* Remove decorative/duplicated labels: the information hierarchy now speaks for itself. */
  body.page-tool .r20-shell{
    padding-top:0;
  }

  body.page-tool .r20-identity-signature{
    padding-top:0;
  }

  body.page-tool .r20-identity-signature::before{
    content:none!important;
    display:none!important;
  }

  body.page-tool .r20-identity-top{
    padding-inline-start:0;
  }

  body.page-tool .r20-signature-head h2,
  body.page-tool .r20-signature-final h2{
    margin-top:0;
  }

  body.page-tool .r20-orientation{
    padding-top:21px;
  }

  body.page-tool .r20-signature-section{
    margin-top:40px;
  }

  /* Context-preserving Tool Fit entry. Not a dashboard card. */
  body.page-tool .r20-fit-form[hidden]{
    display:none!important;
  }

  body.page-tool .r20-fit-form{
    margin-top:15px;
    padding:16px 0 2px;
    border-top:1px solid var(--r20-line);
  }

  body.page-tool .r20-fit-form label{
    display:block;
    margin:0 0 9px;
    color:var(--r20-ink);
    font-family:var(--r20-display);
    font-size:15px;
    line-height:1.5;
    font-weight:600;
  }

  body.page-tool .r20-fit-form textarea{
    width:100%;
    min-height:94px;
    resize:vertical;
    appearance:none;
    border:1px solid #D9D5E5;
    border-radius:15px;
    background:rgba(255,255,255,.76);
    color:var(--r20-ink);
    padding:12px 13px;
    font:500 13.5px/1.72 var(--r20-font);
    outline:none;
    box-shadow:0 8px 24px rgba(42,34,83,.035);
  }

  body.page-tool .r20-fit-form textarea::placeholder{
    color:#8A8595;
  }

  body.page-tool .r20-fit-form textarea:focus{
    border-color:rgba(101,72,232,.58);
    box-shadow:0 0 0 3px rgba(101,72,232,.08);
  }

  body.page-tool .r20-fit-form-actions{
    margin-top:10px;
    display:grid;
    grid-template-columns:auto minmax(0,1fr);
    gap:11px;
    align-items:center;
  }

  body.page-tool .r20-fit-form-actions button{
    min-height:44px;
    min-width:82px;
    appearance:none;
    border:0;
    border-radius:12px;
    background:var(--r20-violet);
    color:#fff;
    padding:0 17px;
    font:700 12px/1 var(--r20-font);
    cursor:pointer;
    box-shadow:0 8px 20px rgba(101,72,232,.14);
  }

  body.page-tool .r20-fit-form-actions small{
    color:#716B7D;
    font-size:10.4px;
    line-height:1.65;
  }
}


/* AIAI_TOOL_PROFILE_TOOL_FIT_INLINE_R26 */
@media (max-width:767px){
  body.page-tool .r20-fit-form-actions button:disabled{
    opacity:.62;
    cursor:wait;
  }

  body.page-tool .r20-fit-result[hidden]{
    display:none!important;
  }

  body.page-tool .r20-fit-result{
    margin-top:16px;
    padding:16px 0 3px;
    border-top:1px solid var(--r20-line-2);
  }

  body.page-tool .r20-fit-result-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
  }

  body.page-tool .r20-fit-result-head>span{
    display:inline-flex;
    align-items:center;
    gap:6px;
    color:var(--r20-violet);
    font-size:10.2px;
    font-weight:800;
  }

  body.page-tool .r20-fit-result-head>span::before{
    content:"";
    width:6px;
    height:6px;
    flex:none;
    border-radius:50%;
    background:currentColor;
    box-shadow:0 0 0 4px rgba(101,72,232,.07);
  }

  body.page-tool .r20-fit-result-head>a{
    color:#777181;
    text-decoration:none;
    font-size:10.2px;
    font-weight:700;
  }

  body.page-tool .r20-fit-result[data-state="loading"] .r20-fit-result-head>span{
    color:#777181;
  }

  body.page-tool .r20-fit-result[data-state="conditional"] .r20-fit-result-head>span{
    color:var(--r20-orange);
  }

  body.page-tool .r20-fit-result[data-state="unlikely"] .r20-fit-result-head>span,
  body.page-tool .r20-fit-result[data-state="insufficient_evidence"] .r20-fit-result-head>span,
  body.page-tool .r20-fit-result[data-state="unresolved"] .r20-fit-result-head>span{
    color:#6F6978;
  }

  body.page-tool .r20-fit-result h2{
    margin:10px 0 0;
    color:var(--r20-ink);
    font-family:var(--r20-display);
    font-size:18px;
    line-height:1.58;
    font-weight:600;
    letter-spacing:-.02em;
  }

  body.page-tool .r20-fit-result>p{
    margin:7px 0 0;
    color:#595360;
    font-size:13.2px;
    line-height:1.78;
  }

  body.page-tool .r20-fit-result-winner{
    margin-top:13px;
    padding:11px 12px;
    border-inline-start:2px solid var(--r20-violet);
    background:rgba(255,255,255,.52);
  }

  body.page-tool .r20-fit-result-winner[hidden]{
    display:none!important;
  }

  body.page-tool .r20-fit-result-winner small{
    display:block;
    color:#7A7483;
    font-size:9.6px;
    font-weight:700;
  }

  body.page-tool .r20-fit-result-winner b{
    display:block;
    margin-top:3px;
    color:var(--r20-ink);
    font-family:var(--r20-display);
    font-size:14px;
    line-height:1.4;
    font-weight:600;
  }

  body.page-tool .r20-fit-result-actions{
    margin-top:10px;
    display:flex;
    align-items:center;
    gap:8px 14px;
    flex-wrap:wrap;
  }

  body.page-tool .r20-fit-result-actions a{
    min-height:38px;
    display:inline-flex;
    align-items:center;
    color:var(--r20-violet);
    text-decoration:none;
    font-size:10.8px;
    font-weight:700;
  }

  body.page-tool .r20-fit-result-actions a[hidden]{
    display:none!important;
  }
}


/* AIAI_TOOL_PROFILE_TOOL_FIT_R27_FINAL_PRECISION */
@media (max-width:767px){
  body.page-tool [data-r20-fit-primary][hidden]{
    display:none!important;
  }

  body.page-tool .r20-fit-form{
    margin-top:14px;
    padding-top:15px;
  }

  body.page-tool .r20-fit-form-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    margin-bottom:9px;
  }

  body.page-tool .r20-fit-form-head label{
    margin:0;
  }

  body.page-tool .r20-fit-close{
    flex:none;
    appearance:none;
    border:0;
    background:transparent;
    color:#777181;
    padding:6px 0 6px 8px;
    font:700 10.8px/1 var(--r20-font);
    cursor:pointer;
  }

  body.page-tool .r20-fit-form textarea{
    min-height:72px;
    max-height:160px;
    height:72px;
    resize:none;
    overflow-y:hidden;
    padding:11px 13px;
  }

  body.page-tool .r20-fit-result-head{
    justify-content:flex-start;
  }

  body.page-tool .r20-fit-result-actions{
    margin-top:13px;
    padding-top:4px;
    gap:8px 16px;
  }

  body.page-tool .r20-fit-result-actions [data-r20-fit-full]{
    color:#5F5969;
  }

  body.page-tool .r20-fit-result-actions [data-r20-fit-compare]{
    color:var(--r20-violet);
  }
}
