/* R4.6.26.21 — single-subsystem workspace polish.
   Applies only when the strict permission context reports exactly one workspace. */
body.single-subsystem-user{
  --r462621-accent:#1479d6;
  --r462621-accent-soft:#eaf5ff;
  --r462621-border:rgba(31,116,190,.14);
  background:
    radial-gradient(circle at 88% 3%,rgba(54,164,232,.10),transparent 30rem),
    linear-gradient(180deg,#f7fbff 0%,#f4f9fd 52%,#f8fbfe 100%)!important;
}
body.single-subsystem-user.system-research{--r462621-accent:#0c7fbd;--r462621-accent-soft:#e7f7fc}
body.single-subsystem-user.system-daily{--r462621-accent:#176fd1;--r462621-accent-soft:#eaf2ff}
body.single-subsystem-user .switch-system-btn,
body.single-subsystem-user .mobile-switch-form{display:none!important}
body.single-subsystem-user .system-chip{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.26)!important;
  box-shadow:0 10px 26px rgba(6,44,79,.18),inset 0 1px 0 rgba(255,255,255,.22)!important;
}
body.single-subsystem-user .system-chip::after{
  content:"专属工作区";
  display:inline-flex;
  align-items:center;
  margin-left:8px;
  padding:2px 7px;
  border-radius:999px;
  background:rgba(255,255,255,.18);
  color:#fff;
  font-size:9px;
  font-weight:800;
  letter-spacing:.08em;
  vertical-align:1px;
}
body.single-subsystem-user .r390-topbar{
  border-bottom-color:var(--r462621-border)!important;
  background:rgba(249,252,255,.88)!important;
  backdrop-filter:blur(18px) saturate(1.15)!important;
}
body.single-subsystem-user .r390-topbar .user-menu{
  padding:6px 8px 6px 7px;
  border:1px solid var(--r462621-border);
  border-radius:16px;
  background:rgba(255,255,255,.82);
  box-shadow:0 8px 25px rgba(30,94,145,.08);
}
body.single-subsystem-user .r390-topbar .avatar{
  box-shadow:0 0 0 4px var(--r462621-accent-soft);
}
body.single-subsystem-user .page-content{max-width:1540px}
body.single-subsystem-user .r390-sidebar .nav-item{
  transition:transform .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease;
}
body.single-subsystem-user .r390-sidebar .nav-item:hover{transform:translateX(2px)}
body.single-subsystem-user .r390-sidebar .nav-item.active{
  box-shadow:0 10px 22px rgba(5,48,83,.18),inset 0 1px 0 rgba(255,255,255,.18)!important;
}
body.single-subsystem-user .card,
body.single-subsystem-user .metric-card,
body.single-subsystem-user .r390-stat-grid>a{
  border-color:var(--r462621-border)!important;
  box-shadow:0 10px 28px rgba(32,94,139,.055)!important;
}

/* Tablets and Android landscape: retain a stable, uncluttered workspace. */
@media (min-width:769px) and (max-width:1180px){
  body.single-subsystem-user .r390-sidebar{width:224px!important}
  body.single-subsystem-user .r390-main{margin-left:224px!important}
  body.single-subsystem-user .page-content{padding-left:22px!important;padding-right:22px!important}
  body.single-subsystem-user .r390-topbar{padding-left:24px!important;padding-right:24px!important}
}

/* Phone / Android WebView / coarse-pointer layout. */
@media (max-width:768px),(pointer:coarse) and (max-width:980px){
  body.single-subsystem-user .mobile-header-r390{
    gap:8px!important;
    border-bottom:1px solid var(--r462621-border)!important;
    background:rgba(249,252,255,.96)!important;
    box-shadow:0 6px 20px rgba(31,96,145,.10)!important;
    backdrop-filter:blur(16px) saturate(1.12)!important;
  }
  body.single-subsystem-user .mobile-header-r390 .brand{flex:1 1 auto!important;min-width:0!important}
  body.single-subsystem-user .mobile-header-r390 .brand b{max-width:52vw!important}
  body.single-subsystem-user .mobile-tools-r390 summary,
  body.single-subsystem-user .mobile-logout-r390{
    border:1px solid var(--r462621-border)!important;
    background:#fff!important;
    box-shadow:0 5px 14px rgba(30,92,140,.07)!important;
  }
  body.single-subsystem-user .mobile-tools-panel-r390{
    border:1px solid var(--r462621-border)!important;
    border-radius:18px!important;
    box-shadow:0 18px 45px rgba(21,73,115,.18)!important;
  }
  body.single-subsystem-user .page-content{
    padding-left:max(10px,env(safe-area-inset-left))!important;
    padding-right:max(10px,env(safe-area-inset-right))!important;
    padding-bottom:calc(84px + env(safe-area-inset-bottom))!important;
  }
  body.single-subsystem-user .mobile-nav.is-single-system{
    display:grid!important;
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    padding-left:max(8px,env(safe-area-inset-left))!important;
    padding-right:max(8px,env(safe-area-inset-right))!important;
    border-top:1px solid var(--r462621-border)!important;
    background:rgba(255,255,255,.965)!important;
    box-shadow:0 -10px 28px rgba(27,82,125,.10)!important;
    backdrop-filter:blur(18px) saturate(1.14)!important;
  }
  body.single-subsystem-user .mobile-nav.is-single-system>a{
    min-width:0!important;
    border-radius:14px!important;
  }
  body.single-subsystem-user .mobile-nav.is-single-system>a.active{
    background:var(--r462621-accent-soft)!important;
    color:var(--r462621-accent)!important;
  }
  body.single-subsystem-user .mobile-nav.is-single-system .mobile-add{
    justify-self:center!important;
    width:54px!important;
    height:54px!important;
    margin-inline:auto!important;
    background:linear-gradient(145deg,var(--r462621-accent),#18a9d5)!important;
    box-shadow:0 12px 26px rgba(14,111,184,.28)!important;
  }
  body.single-subsystem-user .r390-hero,
  body.single-subsystem-user .card{border-radius:18px!important}
}

@media (max-width:390px){
  body.single-subsystem-user .mobile-header-r390 .brand b{max-width:44vw!important;font-size:14px!important}
  body.single-subsystem-user .mobile-tools-r390 summary,
  body.single-subsystem-user .mobile-logout-r390{padding-inline:8px!important}
  body.single-subsystem-user .mobile-nav.is-single-system a small{font-size:9px!important}
}
