/* Desktop and phone artwork are separate, complete compositions. */
.diagram-mobile,.technical-scroll>.diagram-mobile,.agent-visual>.diagram-mobile,.article-diagram>.diagram-mobile{display:none}
.diagram-desktop{display:block}

@media(max-width:760px){
  /* The section owns vertical scrolling. Content padding does not move the
     scrollbar inward, and no second reading scrollbar sits inside it. */
  .screen-stack{touch-action:pan-y pinch-zoom}
  .screen-mode .showcase-screen.site-screen{
    display:block;
    padding:28px 20px 40px;
    overflow-x:hidden;
    overflow-y:auto;
    scrollbar-width:thin;
    scrollbar-color:#677580 #0d1117;
    overscroll-behavior-y:contain;
    touch-action:pan-y pinch-zoom;
    container-type:normal;
  }
  .screen-mode .showcase-screen.site-screen::-webkit-scrollbar{width:5px}
  .screen-mode .showcase-screen.site-screen::-webkit-scrollbar-thumb{background:#677580;border-radius:3px}
  .screen-mode .showcase-screen.site-screen::-webkit-scrollbar-track{background:#0d1117}
  .homepage .chapter-shell,.screen-mode .chapter-shell{
    width:100%;max-height:none;overflow:visible;margin:0;padding:0;container-type:normal;
    touch-action:pan-y pinch-zoom;
  }
  .screen-next{display:none}
  .screen-counter{display:none}
  .chapter-heading,.heading-explanation,.chapter-footnote{min-width:0}
  .heading-explanation>p{font-size:13px;line-height:1.9}
  .technical-workspace{padding:0 11px 12px}
  .technical-scroll,.agent-visual{overflow:visible;min-width:0;max-width:100%;touch-action:pan-y pinch-zoom}
  .technical-scroll::before,.agent-visual::before{display:none;content:none}
  .technical-scroll>.diagram-desktop,.agent-visual>.diagram-desktop,.article-diagram>.diagram-desktop{display:none}
  .technical-scroll>.diagram-mobile,.screen-mode .technical-scroll>.diagram-mobile,
  .agent-visual>.diagram-mobile,.article-diagram>.diagram-mobile{
    display:block;width:100%;min-width:0;max-width:440px;height:auto;margin-inline:auto;
  }
  .evolution-blueprint,.solution-canvas{margin-inline:0;padding:0}
  .workspace-ribbon{padding-inline:0}
  .state-switch button{font-size:12px;min-height:36px;padding:6px 10px}
  .structure-insight{font-size:12px;padding-inline:0}
  .model-responsibilities strong{font-size:12px}
  .model-responsibilities p>span{font-size:11px}
  .chapter-footnote{font-size:11px}

  /* Real evidence stays intact; a phone sees the whole screenshot and can
     open the original to read its application-sized text. */
  .product-view-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0;overflow:visible}
  .product-view-list button{min-width:0;flex:none;padding:11px 8px}
  .product-view-list button>span{font-size:12px}
  .product-preview{display:block}
  .product-shot-viewport,.screen-mode .product-shot-viewport,.subpage .product-shot-viewport{
    height:auto;max-height:none;overflow:visible;flex:none;
  }
  .product-shot-viewport img{width:100%;height:auto;max-width:100%;object-fit:contain}
  .product-preview-caption{align-items:flex-start}
  .product-preview-caption p{font-size:11px}
  .product-frame-header{gap:10px;height:44px}
  .product-frame-header button{font-size:12px;min-height:40px}

  .agent-experience{gap:20px}
  .decision-app{overflow:visible}
  .decision-app-header{border-radius:8px 8px 0 0;gap:10px}
  .decision-app-header>div:first-child{min-width:0}
  .decision-app-stats{gap:8px}
  .decision-app-stats>span{font-size:8px}
  .agent-step-switch{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:0 9px;overflow:visible;border-radius:0 0 8px 8px}
  .agent-step-switch button{justify-content:center;font-size:12px;padding-block:12px}
  .agent-step-switch small{display:inline;font-size:9px}
  .conversation-user>p,.conversation-assistant>p{font-size:13px}
  .conversation-shell .host-switch{justify-content:space-between;gap:10px}

  .subpage .article-diagram{overflow:visible;padding-inline:0}
}

@media(max-width:380px){
  .screen-mode .showcase-screen.site-screen{padding-inline:16px}
  .decision-app-header>div:first-child>div>span{font-size:8px}
  .decision-app-stats{gap:6px}
}

@media print{.diagram-mobile{display:none!important}.diagram-desktop{display:block!important}}
