:root{--ink:#132438;--text:#1C2733;--muted:#556776;--line:#D8DEE1;--accent:#0B7480;--soft:#F8F6F1;--violet:#6D63C9;--green:#4D8A63;--amber:#C68A32}*{box-sizing:border-box}body{margin:0;color:var(--text);font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;background:var(--soft)}.page-shell{display:flex;min-height:100vh}.mdl-sidebar{flex:0 0 220px;width:220px;min-width:220px;max-width:220px}.main{width:100%;padding:32px 34px 70px}.wrap{max-width:1180px;margin:auto}.hero{border:1px solid var(--line);border-top:4px solid var(--accent);border-radius:12px;padding:24px;background:linear-gradient(135deg,#fff,#f1f8f8)}.hero h1{font-family:Georgia,serif;font-size:38px;margin:0 0 10px;color:var(--ink)}.lead,.note{color:var(--muted);line-height:1.6}.pill{display:inline-flex;padding:5px 8px;border:1px solid #b9dadd;border-radius:999px;background:#f1fbfb;color:#0B7480;font-weight:800;font-size:11px;margin:0 6px 6px 0}.card{border:1px solid var(--line);border-radius:12px;padding:20px;margin-top:18px;background:#fff;box-shadow:0 8px 24px rgba(19,36,56,.035)}.card h2{margin:0 0 12px;padding-bottom:10px;border-bottom:2px solid #edf2f2;color:var(--ink)}.grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.grid3{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:750;color:var(--ink)}textarea,input,select{width:100%;padding:10px 11px;border:1px solid #b9c8cf;border-radius:7px;font:inherit;background:#fff;color:var(--text)}textarea{min-height:120px;font-family:Consolas,monospace}button,.related a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 15px;border:1px solid var(--accent);border-radius:7px;background:var(--accent);color:#fff!important;text-decoration:none!important;font-weight:800;font-size:13px;cursor:pointer;margin:10px 8px 0 0}.status{margin-top:12px;padding:10px 12px;border:1px solid var(--line);border-radius:7px;background:#f4fbfc}.status.err{background:#fff5f5;color:#84242c}.stats{display:flex;flex-wrap:wrap;gap:8px}.stat{border:1px solid #cfe3e8;border-radius:8px;background:#f6fbfb;padding:9px 11px}.stat b{display:block;font-size:17px;color:var(--accent)}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:10px}table{width:100%;border-collapse:collapse;font-size:13px;background:#fff}th,td{padding:9px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}th{background:#eef7f8}.mono{font-family:Consolas,monospace;word-break:break-all;white-space:pre-wrap}.architecture{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.module{padding:9px 12px;border-radius:8px;background:#132438;color:#fff;font-weight:800;font-size:12px}.arrow{color:#0B7480;font-weight:900}.notice{border-left:4px solid var(--amber);background:#fff9ef;padding:12px 14px;border-radius:7px}.related a:nth-of-type(2n){background:#fff;color:var(--accent)!important}.small{font-size:12px}.domain-therapy .hero{border-top-color:#6D63C9}.domain-protein .hero{border-top-color:#4D8A63}.domain-dna .hero{border-top-color:#5CCDD6}.domain-flow .hero{border-top-color:#7868D1}@media(max-width:900px){.page-shell{display:block}.mdl-sidebar{width:100%}.main{padding:22px 16px}.grid,.grid3,.grid4{grid-template-columns:1fr}}
/* BIOINFO_PHASE71_86_WORKFLOW_BUTTON_FIX_START */
.related a:nth-of-type(2n){
  background:#FFFFFF !important;
  color:var(--accent) !important;
  border-color:var(--accent) !important;
}
.related a:nth-of-type(2n):hover,
.related a:nth-of-type(2n):focus-visible{
  background:#EEF7F8 !important;
  color:#095F68 !important;
  border-color:#095F68 !important;
}
/* BIOINFO_PHASE71_86_WORKFLOW_BUTTON_FIX_END */

/* BIOINFO_PHASE71_86_LAYOUT_STABILITY_FIX */
@media(min-width:901px){
  html{scrollbar-gutter:stable}
  .mdl-sidebar{
    flex:0 0 220px;
    width:220px;
    min-width:220px;
    max-width:220px;
  }
}

/* BIOINFO_PHASE71_86_MOBILE_CONTENT_FIX_START */
@media(max-width:900px){
  html,body{
    max-width:100%;
    overflow-x:hidden;
  }

  .page-shell{
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    min-height:0 !important;
  }

  /* mobile-responsive.css exclusively owns sidebar/drawer geometry */
  .main{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    padding:18px 14px 82px !important;
    overflow-x:hidden !important;
  }

  .wrap{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    margin:0 auto !important;
  }

  .hero{
    width:100% !important;
    padding:18px 16px !important;
    border-radius:10px !important;
  }

  .hero h1{
    margin:0 0 10px !important;
    font-size:clamp(28px,8.5vw,36px) !important;
    line-height:1.08 !important;
    letter-spacing:-.02em !important;
    overflow-wrap:anywhere !important;
    word-break:normal !important;
  }

  .lead,.note{
    font-size:15px !important;
    line-height:1.55 !important;
  }

  .card{
    width:100% !important;
    min-width:0 !important;
    padding:16px 14px !important;
    margin-top:14px !important;
    border-radius:10px !important;
  }

  .card h2{
    font-size:20px !important;
    line-height:1.25 !important;
  }

  .grid,.grid3,.grid4{
    grid-template-columns:minmax(0,1fr) !important;
    gap:12px !important;
  }

  label{
    min-width:0 !important;
    font-size:12px !important;
  }

  input,select,textarea{
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    font-size:16px !important;
  }

  textarea{
    min-height:105px !important;
  }

  button,.related a{
    min-height:44px !important;
    max-width:100% !important;
    white-space:normal !important;
    line-height:1.25 !important;
    text-align:center !important;
  }

  .related{
    display:flex !important;
    flex-wrap:wrap !important;
    gap:8px !important;
  }

  .related h2{
    flex:0 0 100% !important;
    width:100% !important;
  }

  .related a{
    flex:1 1 150px !important;
    margin:0 !important;
  }

  .stats{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:8px !important;
  }

  .stat{
    min-width:0 !important;
    overflow-wrap:anywhere !important;
  }

  .table-wrap{
    width:100% !important;
    max-width:100% !important;
    overflow-x:auto !important;
    -webkit-overflow-scrolling:touch !important;
  }

  .table-wrap table{
    width:max-content !important;
    min-width:100% !important;
    max-width:none !important;
  }

  .mono,pre,code{
    max-width:100% !important;
    overflow-x:auto !important;
    white-space:pre-wrap !important;
    overflow-wrap:anywhere !important;
  }

  .architecture{
    max-width:100% !important;
    gap:6px !important;
  }

  .module{
    max-width:100% !important;
    overflow-wrap:anywhere !important;
  }

  .notice{
    padding:12px !important;
  }
}

@media(max-width:520px){
  .main{
    padding-left:12px !important;
    padding-right:12px !important;
  }

  .hero{
    padding:16px 14px !important;
  }

  .hero h1{
    font-size:clamp(27px,9vw,33px) !important;
  }

  .card{
    padding:15px 12px !important;
  }

  .stats{
    grid-template-columns:minmax(0,1fr) !important;
  }

  .related a{
    flex:1 1 100% !important;
    width:100% !important;
  }
}
/* BIOINFO_PHASE71_86_MOBILE_CONTENT_FIX_END */

/* BIOINFO_PHASE71_86_MOBILE_FINAL_FIX_START */
@media(max-width:900px){
  /* The Phase sidebar must NEVER occupy normal document flow on a phone.
     High specificity intentionally wins over the mobile horizontal-nav rules
     injected at runtime by site-navigation.js. */
  html body .page-shell > aside.mdl-sidebar,
  html body .page-shell > aside.sidebar,
  html body .page-shell > aside.mdl-sidebar.mdl-unified-side,
  html body .page-shell > aside.sidebar.mdl-unified-side{
    display:block !important;
    position:fixed !important;
    top:58px !important;
    left:0 !important;
    right:auto !important;
    bottom:0 !important;

    width:min(86vw,320px) !important;
    min-width:0 !important;
    max-width:320px !important;
    height:calc(100dvh - 58px) !important;
    min-height:0 !important;
    max-height:calc(100dvh - 58px) !important;

    margin:0 !important;
    padding:8px 10px max(18px,env(safe-area-inset-bottom)) !important;
    overflow-y:auto !important;
    overflow-x:hidden !important;
    -webkit-overflow-scrolling:touch !important;
    overscroll-behavior:contain !important;
    touch-action:pan-y !important;

    z-index:2100 !important;
    box-sizing:border-box !important;
    transform:translate3d(-105%,0,0) !important;
    transition:transform .18s ease !important;
    pointer-events:auto !important;
  }

  html body.mdl-mobile-nav-open-final .page-shell > aside.mdl-sidebar,
  html body.mdl-mobile-nav-open-final .page-shell > aside.sidebar,
  html body.mdl-mobile-nav-open-final .page-shell > aside.mdl-sidebar.mdl-unified-side,
  html body.mdl-mobile-nav-open-final .page-shell > aside.sidebar.mdl-unified-side{
    transform:translate3d(0,0,0) !important;
  }

  /* Inside the drawer, restore the real vertical sidebar. */
  html body .page-shell > aside.mdl-unified-side .mdl-unified-nav{
    display:flex !important;
    flex-direction:column !important;
    flex-wrap:nowrap !important;
    width:100% !important;
    gap:2px !important;
    overflow:visible !important;
  }

  html body .page-shell > aside.mdl-unified-side .mdl-unified-group{
    display:flex !important;
    flex-direction:column !important;
    width:100% !important;
  }

  html body .page-shell > aside.mdl-unified-side .mdl-unified-label{
    display:block !important;
  }

  html body .page-shell > aside.mdl-unified-side .mdl-unified-link{
    display:flex !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    flex:0 0 auto !important;
    white-space:normal !important;
  }

  /* No phantom sidebar spacer above the tool content. */
  html body .page-shell{
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    min-height:0 !important;
    height:auto !important;
  }

  html body .page-shell > main.main{
    display:block !important;
    width:100% !important;
    min-width:0 !important;
    max-width:100% !important;
    margin:0 !important;
    padding:14px 12px 82px !important;
  }

  html body .page-shell > main.main > .wrap{
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
  }

  /* Keep the shared backdrop tappable but always below the drawer/header. */
  html body .mdl-mobile-backdrop-final{
    z-index:2000 !important;
  }

  html body .mdl-canonical-full-header{
    z-index:2200 !important;
  }

  /* Ensure the control itself remains tappable above page content. */
  html body .mdl-mobile-menu-btn-final{
    position:relative !important;
    z-index:2301 !important;
    pointer-events:auto !important;
    touch-action:manipulation !important;
  }
}
/* BIOINFO_PHASE71_86_MOBILE_FINAL_FIX_END */
