/* Loaded separately so mobile browsers always receive the current layout rules. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

@media (max-width: 680px) {
  .site-header {
    width: calc(100vw - 18px) !important;
    max-width: 1080px;
    min-width: 0;
    margin-right: auto;
    margin-left: auto;
  }

  .case-study {
    width: calc(100vw - 28px) !important;
    max-width: 620px;
    min-width: 0;
    margin-right: auto;
    margin-left: auto;
  }

  .case-study,
  .case-study > *,
  .case-content,
  .case-section,
  .workflow-section,
  .artefact-section,
  .workflow-automation-cover,
  .reporting-dashboard,
  .target-allocation-board,
  .daily-tracker-board,
  .creator-showcase {
    min-width: 0;
    max-width: 100%;
  }

  .case-content {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .case-section {
    width: 100%;
    overflow: hidden;
  }

  .mock-table-shell,
  .reporting-stage-tabs {
    max-width: 100%;
    overscroll-behavior-x: contain;
  }

  .tap-ready {
    position: relative;
  }

  .workflow-automation-cover.tap-ready::after {
    content: "轻触查看流程状态";
    position: absolute;
    right: 16px;
    bottom: 14px;
    padding: 4px 8px;
    border: 1px solid rgba(219, 243, 255, 0.28);
    border-radius: 999px;
    color: rgba(229, 244, 255, 0.82);
    background: rgba(9, 35, 71, 0.56);
    font-size: 0.58rem;
    line-height: 1;
    pointer-events: none;
  }

  .workflow-automation-cover.tap-ready.is-touched::after {
    content: "流程已展开";
    border-color: rgba(207, 245, 170, 0.58);
    color: #dcffc8;
  }

  .workflow-node,
  .artefact-tabs button,
  .reporting-stage-tabs button,
  .daily-tracker-row,
  .creator-gallery-card {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  .workflow-node:active,
  .artefact-tabs button:active,
  .reporting-stage-tabs button:active,
  .daily-tracker-row:active,
  .creator-gallery-card:active {
    transform: scale(0.98);
  }
}
